[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACMR242G4ZRV8FMNFFQ8ZA":3,"skill-same:01M6ACMR242G4ZRV8FMNFFQ8ZA":60},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":35,"frontMatter":36,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":42,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":7,"updatedAt":45,"install":46,"resources":59},"01M6ACMR242G4ZRV8FMNFFQ8ZA","create-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\u002Fcreate-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,32],"component","create","create 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: create-component\ndescription: Scaffold a new OFBiz component (plugin) using Gradle. Use when starting a new feature set or isolating custom code.\n---\n\n# Skill: create-component\n## Goal\nCreate a new, isolated OFBiz component with the correct directory structure and configuration.\n\n## Triggers\n**ALWAYS** read this skill when:\n- Creating a new plugin or component.\n- Isolating a large feature set into a separate module.\n- Understanding plugin discovery vs. manual registration.\n\n## Use when\n- Starting a brand new feature (e.g., `my-custom-module`).\n- Developing an integration that should not impact core components.\n\n## Procedure\n1. **Gradle Command**:\n    - Run `.\u002Fgradlew createPlugin -PpluginId=my-plugin-name`.\n    - Optional flags: `-PwebappName=my-app`, `-PbasePermission=MY_PERM`.\n2. **Base Structure**:\n    - Ensure the following folders are present: `src`, `webapp`, `entitydef`, `servicedef`, `data`, `widget`.\n3. **Initial Configuration**:\n    - Update `ofbiz-component.xml` with proper titles and descriptions.\n    - Add basic security permissions in `data\u002F[Component]SecurityData.xml`.\n4. **Registration (Automatic)**:\n    - OFBiz automatically discovers any directory in `plugins\u002F` that contains an `ofbiz-component.xml` file.\n    - NO command like `.\u002Fgradlew loadAll` is required for registration.\n    - OFBiz must be restarted (or a container reload triggered) to detect new components.\n\n## Post-Scaffold Customization\n1. **Directory Structure**: Verify the existence of `entitydef\u002F`, `servicedef\u002F`, `data\u002F`, and `webapp\u002F`.\n2. **Component XML**: Update `ofbiz-component.xml` with actual resource locations.\n3. **Web Application**: If your component has a UI, ensure the `\u003Cwebapp>` entry has a unique `mount-point`.\n4. **Permissions**: Define base permissions in `data\u002FMyComponentSecurityData.xml`.\n\n## Guardrails\n- **Naming**: Use lowercase, kebab-case (e.g., `order-management`).\n- **Location**: All custom components MUST reside in the `plugins\u002F` directory.\n- **Discovery**: Plugins in `plugins\u002F` are auto-discovered. Do not try to manually register them in framework load files.\n- **Independence**: Ensure the new component doesn't break existing ones.\n- **Best Practice**: Immediately create a dedicated `SecurityData.xml` to avoid permission conflicts.\n- **Cleanliness**: Delete unused scaffolded files (e.g., placeholder entities) after creation.\n\n## Examples\n**Example: Creating a new inventory plugin**\n```bash\n.\u002Fgradlew createPlugin -PpluginId=inventory-custom -PwebappName=inventoryApp\n.\u002Fgradlew loadAll\n```\nThen, verify the folder `plugins\u002Finventory-custom` exists.\n",{},"trunk","6c6c27710443de03e9247605d33a2e2f5bc3d1e2","ai-agent-skills\u002Fcreate-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":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add apache\u002Fofbiz-plugins --skill create-component",{"tool":52,"command":53},"bunx","bunx skills add apache\u002Fofbiz-plugins --skill create-component",{"tool":55,"command":56},"pnpm","pnpm dlx skills add apache\u002Fofbiz-plugins --skill create-component","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fcreate-component\u002FSKILL.md",true,[],[61,73,85,97,111,125],{"skillNo":62,"name":63,"nameZh":64,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":65,"categories":66,"keywords":71,"publishedAt":33},"01M6ACQSN90YKJZ92MQ52D9R8H","prepush-readiness","推送前就绪检查","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fprepush-readiness\u002FSKILL.md",[67,68],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":69,"categoryName":70,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[72],"prepush readiness",{"skillNo":74,"name":75,"nameZh":76,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":77,"categories":78,"keywords":83,"publishedAt":33},"01M6ACQPR1WRA751V4DXVC3AHF","manage-webapps","Web 应用管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-webapps\u002FSKILL.md",[79,80],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":81,"categoryName":82,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BWKS60NTYJHFE9FQSXGDKS","低代码应用开发",[84],"manage webapps",{"skillNo":86,"name":87,"nameZh":88,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":89,"categories":90,"keywords":95,"publishedAt":33},"01M6ACQMCX8Z7NY2CE08NCV6ND","manage-themes","主题管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-themes\u002FSKILL.md",[91,94],{"categoryNo":92,"categoryName":93,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[96],"manage themes",{"skillNo":98,"name":99,"nameZh":100,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":101,"categories":102,"keywords":109,"publishedAt":33},"01M6ACQHYN20AFWF6TKK4RGQ8A","manage-tests","测试管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-tests\u002FSKILL.md",[103,106],{"categoryNo":104,"categoryName":105,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":107,"categoryName":108,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[110],"manage tests",{"skillNo":112,"name":113,"nameZh":114,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":115,"categories":116,"keywords":123,"publishedAt":33},"01M6ACQFRMW7R45YD3HRAXPGWF","manage-templates","模板管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-templates\u002FSKILL.md",[117,120],{"categoryNo":118,"categoryName":119,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQ6TK1MPB82068236GSXDE","文档处理",{"categoryNo":121,"categoryName":122,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TPH3VQWKQZXV7EPF8VZ","办公行政人员",[124],"manage templates",{"skillNo":126,"name":127,"nameZh":128,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":129,"categories":130,"keywords":137,"publishedAt":33},"01M6ACQCSSDZQMD8VX2K3WRR93","manage-strategies","策略管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-strategies\u002FSKILL.md",[131,134],{"categoryNo":132,"categoryName":133,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BTXF8K9DFQC4T4TXVH0NMZ","策略与托管设置管理",{"categoryNo":135,"categoryName":136,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8C6RQ852C9AEJFCBGG1YA7S","IT 管理员",[138],"manage strategies"]