About page-best-practice
A page-generation skill for AI agents that guides page structure and decisions through a choice of supervised or unsupervised mode.
Key features
- 01Supervised and unsupervised generation modes
- 02References page anatomy and decision logic
- 03Generates Content, Wrapper, then Index
- 04Uses templates and example code structures
Use cases
- 01Generating a page with AI-driven decisions
- 02Confirming key design choices during page creation
- 03Building pages that require a Store
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ forge-town/ skills --skill page-best-practiceAfter installing, type/page-best-practicein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
best-practice-examples/simple-no-store/index.tsSimpleNoStorePage.tsxSimpleNoStorePageContent.tsxbest-practice-examples/standard-with-store/index.tsStandardWithStorePage.tsxStandardWithStorePageContent.tsxbest-practice-examples/standard-with-store/_store/README.mdreferences/ANATOMY.mdchecklist.mdjudgeHasStore.tsjudgeUIComplexity.tsschema.tsTEMPLATE_INDEX.mdTEMPLATE_VIEW.mdTEMPLATE_WRAPPER.mdDetails
From the project README页面生成器 (Page Generator Skill)
使用说明
首先询问用户选择生成模式:
- 无监督模式:AI 自动推导所有选项,全程无需人工干预
- 有监督模式:每个关键决策点向用户确认
- 参照 ANATOMY.md 了解页面解剖结构规范
- 阅读 judgeHasStore.ts 和 judgeUIComplexity.ts 了解决策逻辑
- 严格参照 best-practice-examples/ 中的代码结构
- 依次生成:Content → Wrapper → Index(若需 Store 则先触发 store-best-practice)
模板文件: TEMPLATE_WRAPPER.md、TEMPLATE_VIEW.md、TEMPLATE_INDEX.md
Comments
Markdown supported