[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACN4Z9M727XN64JM28GRPS":3,"skill-same:01M6ACN4Z9M727XN64JM28GRPS":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":7,"updatedAt":44,"install":45,"resources":58},"01M6ACN4Z9M727XN64JM28GRPS","manage-component","组件管理",null,"","apache\u002Fofbiz-plugins","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACMJJ1Q4WYATY4GXZ2FAVD",178,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-component\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现","SCENARIO","使用场景",[30,31],"component","manage component","2026-11-10 10:12:30",false,"\u003C!--\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements.  See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership.  The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License.  You may obtain a copy of the License at\n\nhttp:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied.  See the License for the\nspecific language governing permissions and limitations\nunder the License.\n-->\n\n---\nname: manage-component\ndescription: Maintain OFBiz component configuration, dependencies, and resource boundaries.\n---\n\n# Skill: manage-component\n## Goal\nConfigure and maintain the structure, resources, and dependencies of an OFBiz component (plugin). This includes registering business resources (entities, services, ECAs), defining web applications, and managing inter-component dependencies to ensure classpath and resource availability across the project.\n\n## Triggers\n**ALWAYS** read this skill when:\n- Creating a new component or modifying `ofbiz-component.xml`.\n- Adding new service, entity, or ECA resource files.\n- Managing project dependencies in `build.gradle` or inter-component dependencies.\n- Troubleshooting component loading, resource visibility, or classpath issues.\n\n## Rules & Procedures\n\n### 1. Resource Registration\nEvery XML resource must be explicitly registered in `ofbiz-component.xml` to be recognized by the framework.\n- **Entities**: `\u003Centity-resource type=\"model\" reader-name=\"main\" loader=\"main\" location=\"entitydef\u002Fentitymodel.xml\"\u002F>`\n- **EECA**: `\u003Centity-resource type=\"eca\" loader=\"main\" location=\"entitydef\u002Fentityeca.xml\"\u002F>`\n- **Services**: `\u003Cservice-resource type=\"model\" loader=\"main\" location=\"servicedef\u002Fservices.xml\"\u002F>`\n- **SECA**: `\u003Cservice-resource type=\"eca\" loader=\"main\" location=\"servicedef\u002Fserviceeca.xml\"\u002F>`\n- **Group Services**: `\u003Cservice-resource type=\"group\" loader=\"main\" location=\"servicedef\u002Fgroups.xml\"\u002F>`\n- **Seed\u002FDemo Data**: `\u003Centity-resource type=\"data\" reader-name=\"seed\" loader=\"main\" location=\"data\u002FMySeedData.xml\"\u002F>`\n- **Web Applications**: Register the webapp using `\u003Cwebapp name=\"...\" title=\"...\" server=\"default-server\" location=\"webapp\u002F...\" mount-point=\"\u002F...\"\u002F>`.\n\n> [!IMPORTANT]\n> **Screens are NOT registered** in `ofbiz-component.xml`. They are referenced directly via URIs or rendered by controllers.\n\n### 2. Dependency Management\n- **Inter-Component**: Use `\u003Cdepends-on component-name=\"xxx\"\u002F>` in `ofbiz-component.xml`. This ensures that component `xxx` is loaded first and its **classpath and resources** (services, entities) are available to the current component.\n- **External Libraries**: **Always prefer Gradle** for dependency management. Add `dependencies { implementation 'group:name:version' }` to `build.gradle`.\n- **Legacy Classpath**: Avoid using the `\u003Cclasspath>` tag in `ofbiz-component.xml`. OFBiz automatically loads all JAR files located in a component's `\u002Flib` directory.\n\n### 3. Resource Locations & Properties\n- **UI Labels**: Store localized text in `config\u002F[Component]UiLabels.xml`.\n- **System Settings**: Store technical\u002Fbusiness configurations in `config\u002F[component].properties`.\n- **Entity Definitions**: Place in `entitydef\u002F`.\n- **Service Definitions**: Place in `servicedef\u002F`.\n\n## Guardrails\n- **URI Enforcement**: **NEVER** use relative paths. ALWAYS use `component:\u002F\u002F[componentName]\u002Fpath\u002Fto\u002Ffile` for all resource references across components.\n- **Edit Discipline**: Do **NOT** modify `ofbiz-component.xml` unless new resources are actually being introduced. Avoid redundant edits.\n- **Circular Dependencies**: Avoid circular `\u003Cdepends-on>` relationships between components; they lead to unpredictable loading failures.\n- **Mount Points**: Ensure a unique `mount-point` for every `\u003Cwebapp>` entry to prevent URL collisions.\n- **Resource Loaders**: Avoid redefining `\u003Cresource-loader>` entries unless your component specifically requires a custom implementation. Standard components inherit loaders from core.\n- **Registry Completeness**: If it's an entity, service, or ECA XML, it **must** be in `ofbiz-component.xml` or it will not be loaded.\n\n## Bad Practices & Anti-patterns\n\n### Anti-pattern: Pathing Traps\n**Pitfall**: Hardcoding file system paths or using simple relative paths (e.g., `entitydef\u002Fmodel.xml`). While sometimes working locally, this breaks portability and leads to resource resolution failures in different environments.\n- **❌ Bad**: `location=\"entitydef\u002Fmodel.xml\"`\n- **✅ Good**: `location=\"component:\u002F\u002Fmycomponent\u002Fentitydef\u002Fmodel.xml\"`\n\n### Anti-pattern: Redundant Classpath Tagging\n**Pitfall**: Explicitly adding `\u003Cclasspath type=\"jar\" location=\"lib\u002F*\"\u002F>` when JARs in `\u002Flib` are already auto-loaded. This clutters the configuration.\n- **❌ Bad**: `\u003Cclasspath type=\"jar\" location=\"lib\u002Fmysql-connector.jar\"\u002F>`\n- **✅ Good**: Rely on `\u002Flib` auto-loading or use Gradle `dependencies`.\n\n### Anti-pattern: Mount Point Collisions\n**Pitfall**: Defining duplicate `mount-point` values for different `\u003Cwebapp>` entries (within the same component or across different components). This causes the web server to fail to start or leads to unpredictable URL routing.\n- **❌ Bad (Duplicate Mounts)**:\n  ```xml\n  \u003Cwebapp name=\"app1\" mount-point=\"\u002Fapp\" ...\u002F>\n  \u003Cwebapp name=\"app2\" mount-point=\"\u002Fapp\" ...\u002F>\n  ```\n- **✅ Good (Unique Mounts)**: \n  ```xml\n  \u003Cwebapp name=\"app1\" mount-point=\"\u002Fapp1\" ...\u002F>\n  \u003Cwebapp name=\"app2\" mount-point=\"\u002Fapp2\" ...\u002F>\n  ```\n\n---\n\n## Common Code Patterns (Examples)\n\n**Example: Comprehensive ofbiz-component.xml**\n```xml\n\u003Cofbiz-component name=\"myplugin\" xmlns:xsi=\"http:\u002F\u002Fwww.w3.org\u002F2001\u002FXMLSchema-instance\"\n        xsi:noNamespaceSchemaLocation=\"http:\u002F\u002Fofbiz.apache.org\u002Fdtds\u002Fofbiz-component.xsd\">\n    \u003C!-- Inherits resource-loader from core if not defined -->\n\n    \u003C!-- Components we depend on for classpath\u002Fresource availability -->\n    \u003Cdepends-on component-name=\"common\"\u002F>\n    \u003Cdepends-on component-name=\"party\"\u002F>\n\n    \u003C!-- Entity Definitions & ECAs -->\n    \u003Centity-resource type=\"model\" reader-name=\"main\" loader=\"main\" location=\"entitydef\u002Fentitymodel.xml\"\u002F>\n    \u003Centity-resource type=\"eca\" loader=\"main\" location=\"entitydef\u002Fentityeca.xml\"\u002F>\n\n    \u003C!-- Service Definitions & ECAs -->\n    \u003Cservice-resource type=\"model\" loader=\"main\" location=\"servicedef\u002Fservices.xml\"\u002F>\n    \u003Cservice-resource type=\"eca\" loader=\"main\" location=\"servicedef\u002Fserviceeca.xml\"\u002F>\n    \u003Cservice-resource type=\"group\" loader=\"main\" location=\"servicedef\u002Fgroups.xml\"\u002F>\n\n    \u003C!-- Data Resources -->\n    \u003Centity-resource type=\"data\" reader-name=\"seed\" loader=\"main\" location=\"data\u002FMySeedData.xml\"\u002F>\n    \u003Centity-resource type=\"data\" reader-name=\"demo\" loader=\"main\" location=\"data\u002FMyDemoData.xml\"\u002F>\n\n    \u003C!-- Web Applications -->\n    \u003Cwebapp name=\"myportal\" title=\"My Portal\" server=\"default-server\" location=\"webapp\u002Fmyportal\" mount-point=\"\u002Fmyportal\" app-bar-display=\"true\"\u002F>\n\u003C\u002Fofbiz-component>\n```\n",{},"trunk","6c6c27710443de03e9247605d33a2e2f5bc3d1e2","ai-agent-skills\u002Fmanage-component",222,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins","https:\u002F\u002Fofbiz.apache.org\u002F","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-12 22:04:06",{"source":9,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add apache\u002Fofbiz-plugins --skill manage-component",{"tool":51,"command":52},"bunx","bunx skills add apache\u002Fofbiz-plugins --skill manage-component",{"tool":54,"command":55},"pnpm","pnpm dlx skills add apache\u002Fofbiz-plugins --skill manage-component","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-component\u002FSKILL.md",true,[],[60,72,84,96,110,124],{"skillNo":61,"name":62,"nameZh":63,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":64,"categories":65,"keywords":70,"publishedAt":32},"01M6ACQSN90YKJZ92MQ52D9R8H","prepush-readiness","推送前就绪检查","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fprepush-readiness\u002FSKILL.md",[66,67],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":68,"categoryName":69,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[71],"prepush readiness",{"skillNo":73,"name":74,"nameZh":75,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":76,"categories":77,"keywords":82,"publishedAt":32},"01M6ACQPR1WRA751V4DXVC3AHF","manage-webapps","Web 应用管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-webapps\u002FSKILL.md",[78,79],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":80,"categoryName":81,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BWKS60NTYJHFE9FQSXGDKS","低代码应用开发",[83],"manage webapps",{"skillNo":85,"name":86,"nameZh":87,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":88,"categories":89,"keywords":94,"publishedAt":32},"01M6ACQMCX8Z7NY2CE08NCV6ND","manage-themes","主题管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-themes\u002FSKILL.md",[90,93],{"categoryNo":91,"categoryName":92,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[95],"manage themes",{"skillNo":97,"name":98,"nameZh":99,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":100,"categories":101,"keywords":108,"publishedAt":32},"01M6ACQHYN20AFWF6TKK4RGQ8A","manage-tests","测试管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-tests\u002FSKILL.md",[102,105],{"categoryNo":103,"categoryName":104,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":106,"categoryName":107,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[109],"manage tests",{"skillNo":111,"name":112,"nameZh":113,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":114,"categories":115,"keywords":122,"publishedAt":32},"01M6ACQFRMW7R45YD3HRAXPGWF","manage-templates","模板管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-templates\u002FSKILL.md",[116,119],{"categoryNo":117,"categoryName":118,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQ6TK1MPB82068236GSXDE","文档处理",{"categoryNo":120,"categoryName":121,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TPH3VQWKQZXV7EPF8VZ","办公行政人员",[123],"manage templates",{"skillNo":125,"name":126,"nameZh":127,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":128,"categories":129,"keywords":136,"publishedAt":32},"01M6ACQCSSDZQMD8VX2K3WRR93","manage-strategies","策略管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-strategies\u002FSKILL.md",[130,133],{"categoryNo":131,"categoryName":132,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BTXF8K9DFQC4T4TXVH0NMZ","策略与托管设置管理",{"categoryNo":134,"categoryName":135,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8C6RQ852C9AEJFCBGG1YA7S","IT 管理员",[137],"manage strategies"]