[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACPYX9GVFXYK90M3P38AWB":3,"skill-same:01M6ACPYX9GVFXYK90M3P38AWB":64},{"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":31,"linkOnly":32,"markdownContent":33,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":40,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":7,"updatedAt":43,"install":44,"resources":57},"01M6ACPYX9GVFXYK90M3P38AWB","manage-screens","OFBiz 屏幕界面管理",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-screens\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],"manage screens","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-screens\ndescription: Define and maintain UI screens using the OFBiz Screen Widget XML.\n---\n\n# Skill: manage-screens\n## Goal\nDefine and maintain complex UI screens using the OFBiz Screen Widget XML.\n\n## Triggers\n**ALWAYS** read this skill when:\n- Creating or modifying XML files in `widget\u002F` directory (e.g., `*Screens.xml`).\n- Registering screen resources in `ofbiz-component.xml`.\n- Defining new request-to-view mappings in `controller.xml`.\n\n## Use when\n- Developing new UI features or custom dashboards.\n- Modifying existing layouts or adding new containers\u002Fsections.\n- Integrating decorators for consistent styling and sub-menu logic.\n\n## Procedure\n1. **Research & Inheritance**: \n    - Identify existing screens to extend or use as templates.\n    - Check `CommonScreens.xml` for standard decorators (`main-decorator`, `CommonExampleDecorator`).\n2. **Decorator Pattern**: \n    - Use `\u003Cdecorator-screen>` to wrap screens. \n    - Populate sections like `body`, `pre-body`, or `menu-bar` using `\u003Cdecorator-section name=\"...\">`.\n    - Use `\u003Cdecorator-section-include>` in the decorator definition itself to mark insertion points.\n3. **Register**: Ensure the widget XML is registered in `ofbiz-component.xml`:\n   ```xml\n   \u003Cscreen-resource type=\"model\" loader=\"main\" location=\"component:\u002F\u002F[comp]\u002Fwidget\u002F[File]Screens.xml\"\u002F>\n   ```\n3. **Action Section (Complex)**: \n    - **Data Fetching**: Use `\u003Centity-one>`, `\u003Centity-and>`, `\u003Centity-condition>`.\n    - **Logic**: Use `\u003Cscript location=\"...\"\u002F>` for complex Groovy logic.\n    - **Service Calls**: Use `\u003Cservice service-name=\"...\" result-map=\"...\"\u002F>`.\n    - **Parameters**: Use `\u003Cset field=\"...\" from-field=\"parameters.xyz\"\u002F>`.\n4. **Widget Section (Fully Loaded)**:\n    - **Conditional Logic**: Use `\u003Csection>\u003Ccondition>\u003Cif-compare ...>` or `\u003Cif-has-permission ...>`.\n    - **Layout**: Use `\u003Ccontainer>`, `\u003Cscreenlet>`, `\u003Chorizontal-separator>`.\n    - **Links & Icons**: Use `\u003Clink target=\"...\" text=\"...\" style=\"...\" image-location=\"...\"\u002F>`.\n    - **Platform Specific**: Use `\u003Cplatform-specific>\u003Cxsl-fo>` for PDF or `\u003Chtml-template>` for raw FTL.\n5. **Styles and Scripts (UI Enhancement)**:\n    - **Global\u002FHeader Inclusion**: Use `\u003Cset field=\"layoutSettings.javaScripts[]\" value=\"...\" global=\"true\"\u002F>` and `\u003Cset field=\"layoutSettings.styleSheets[]\" value=\"...\" global=\"true\"\u002F>` in the `\u003Cactions>` section.\n    - **In-page\u002FLate Inclusion**: Use `\u003Cplatform-specific>\u003Chtml>\u003Chtml-template location=\"...\"\u002F>\u003C\u002Fhtml>\u003C\u002Fplatform-specific>` to include FTL files that contain inline `\u003Cscript>` or `\u003Cstyle>` tags.\n    - **External Libraries**: Always prefer the `layoutSettings` mechanism for standard JS\u002FCSS files to ensure they are properly managed by the decorator's `\u003Chead>`.\n6. **Pagination & Context**: Pass `viewIndex` and `viewSize` to included forms\u002Fgrids.\n\n## Guardrails\n- **Permissions**: ALWAYS include a `\u003Ccondition>` block with `\u003Cif-has-permission>` at the start of the primary `\u003Csection>`.\n- **Naming Conventions**: Screen names should be PascalCase (e.g., `EditExampleItems`).\n- **Reuse**: Prefer `\u003Cinclude-screen name=\"...\" location=\"...\"\u002F>` over duplicating widget blocks.\n- **Paths**: ALWAYS use the `component:\u002F\u002F` protocol for locations.\n\n## Examples\n**Example: Screen with Decorator and Conditional Sub-menus**\n```xml\n\u003Cscreen name=\"EditExample\">\n    \u003Csection>\n        \u003Cactions>\n            \u003Cset field=\"titleProperty\" value=\"PageTitleEditExample\"\u002F>\n            \u003Cset field=\"tabButtonItem\" value=\"EditExample\"\u002F>\n            \u003Cset field=\"exampleId\" from-field=\"parameters.exampleId\"\u002F>\n            \u003Centity-one entity-name=\"Example\" value-field=\"example\"\u002F>\n            \u003C!-- Include custom script for push notifications -->\n            \u003Cset field=\"layoutSettings.javaScripts[]\" value=\"\u002Fexample\u002Fjs\u002FExamplePushNotifications.js\" global=\"true\"\u002F>\n        \u003C\u002Factions>\n        \u003Cwidgets>\n            \u003Cdecorator-screen name=\"CommonExampleDecorator\" location=\"${parameters.mainDecoratorLocation}\">\n                \u003Cdecorator-section name=\"body\">\n                    \u003Csection>\n                        \u003Ccondition>\n                            \u003Cif-has-permission permission=\"EXAMPLE\" action=\"_UPDATE\"\u002F>\n                        \u003C\u002Fcondition>\n                        \u003Cwidgets>\n                            \u003Cscreenlet title=\"${uiLabelMap.ExampleDetails}\">\n                                \u003Cinclude-form name=\"EditExample\" location=\"component:\u002F\u002Fexample\u002Fwidget\u002Fexample\u002FExampleForms.xml\"\u002F>\n                            \u003C\u002Fscreenlet>\n                        \u003C\u002Fwidgets>\n                        \u003Cfail-widgets>\n                            \u003Clabel style=\"h3\">${uiLabelMap.ExampleUpdatePermissionError}\u003C\u002Flabel>\n                        \u003C\u002Ffail-widgets>\n                    \u003C\u002Fsection>\n                \u003C\u002Fdecorator-section>\n            \u003C\u002Fdecorator-screen>\n        \u003C\u002Fwidgets>\n    \u003C\u002Fsection>\n\u003C\u002Fscreen>\n```\n",{},"trunk","6c6c27710443de03e9247605d33a2e2f5bc3d1e2","ai-agent-skills\u002Fmanage-screens",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":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add apache\u002Fofbiz-plugins --skill manage-screens",{"tool":50,"command":51},"bunx","bunx skills add apache\u002Fofbiz-plugins --skill manage-screens",{"tool":53,"command":54},"pnpm","pnpm dlx skills add apache\u002Fofbiz-plugins --skill manage-screens","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-screens\u002FSKILL.md",true,[58],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fskill-feedback.md","REFERENCE","参考文档",2781,"https:\u002F\u002Fgithub.com\u002Ffmal\u002Fdotfiles\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fwrangler\u002Freferences\u002Fskill-feedback.md",[65,77,89,101,115,129],{"skillNo":66,"name":67,"nameZh":68,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":69,"categories":70,"keywords":75,"publishedAt":31},"01M6ACQSN90YKJZ92MQ52D9R8H","prepush-readiness","推送前就绪检查","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fprepush-readiness\u002FSKILL.md",[71,72],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":73,"categoryName":74,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[76],"prepush readiness",{"skillNo":78,"name":79,"nameZh":80,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":81,"categories":82,"keywords":87,"publishedAt":31},"01M6ACQPR1WRA751V4DXVC3AHF","manage-webapps","Web 应用管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-webapps\u002FSKILL.md",[83,84],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":85,"categoryName":86,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BWKS60NTYJHFE9FQSXGDKS","低代码应用开发",[88],"manage webapps",{"skillNo":90,"name":91,"nameZh":92,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":93,"categories":94,"keywords":99,"publishedAt":31},"01M6ACQMCX8Z7NY2CE08NCV6ND","manage-themes","主题管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-themes\u002FSKILL.md",[95,98],{"categoryNo":96,"categoryName":97,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[100],"manage themes",{"skillNo":102,"name":103,"nameZh":104,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":105,"categories":106,"keywords":113,"publishedAt":31},"01M6ACQHYN20AFWF6TKK4RGQ8A","manage-tests","测试管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-tests\u002FSKILL.md",[107,110],{"categoryNo":108,"categoryName":109,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":111,"categoryName":112,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[114],"manage tests",{"skillNo":116,"name":117,"nameZh":118,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":119,"categories":120,"keywords":127,"publishedAt":31},"01M6ACQFRMW7R45YD3HRAXPGWF","manage-templates","模板管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-templates\u002FSKILL.md",[121,124],{"categoryNo":122,"categoryName":123,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQ6TK1MPB82068236GSXDE","文档处理",{"categoryNo":125,"categoryName":126,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TPH3VQWKQZXV7EPF8VZ","办公行政人员",[128],"manage templates",{"skillNo":130,"name":131,"nameZh":132,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":133,"categories":134,"keywords":141,"publishedAt":31},"01M6ACQCSSDZQMD8VX2K3WRR93","manage-strategies","策略管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-strategies\u002FSKILL.md",[135,138],{"categoryNo":136,"categoryName":137,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BTXF8K9DFQC4T4TXVH0NMZ","策略与托管设置管理",{"categoryNo":139,"categoryName":140,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8C6RQ852C9AEJFCBGG1YA7S","IT 管理员",[142],"manage strategies"]