@agents-inc/cli 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +462 -0
- package/LICENSE +21 -0
- package/README.md +179 -0
- package/config/skills-matrix.yaml +926 -0
- package/config/stacks.yaml +2186 -0
- package/dist/chunk-3ZOIOVKT.js +365 -0
- package/dist/chunk-3ZOIOVKT.js.map +1 -0
- package/dist/chunk-4RAY5AOI.js +78 -0
- package/dist/chunk-4RAY5AOI.js.map +1 -0
- package/dist/chunk-5PIKNCZX.js +234 -0
- package/dist/chunk-5PIKNCZX.js.map +1 -0
- package/dist/chunk-66UDJBF6.js +96 -0
- package/dist/chunk-66UDJBF6.js.map +1 -0
- package/dist/chunk-7SOPVGDV.js +24 -0
- package/dist/chunk-7SOPVGDV.js.map +1 -0
- package/dist/chunk-A27LOC4Z.js +95 -0
- package/dist/chunk-A27LOC4Z.js.map +1 -0
- package/dist/chunk-B2UBHA66.js +301 -0
- package/dist/chunk-B2UBHA66.js.map +1 -0
- package/dist/chunk-BZN2Z5P7.js +882 -0
- package/dist/chunk-BZN2Z5P7.js.map +1 -0
- package/dist/chunk-BZQBJP34.js +186 -0
- package/dist/chunk-BZQBJP34.js.map +1 -0
- package/dist/chunk-DC5AK3LW.js +105 -0
- package/dist/chunk-DC5AK3LW.js.map +1 -0
- package/dist/chunk-DHET7RCE.js +50 -0
- package/dist/chunk-DHET7RCE.js.map +1 -0
- package/dist/chunk-EMJ2ZKS7.js +346 -0
- package/dist/chunk-EMJ2ZKS7.js.map +1 -0
- package/dist/chunk-FJQRVFMB.js +48 -0
- package/dist/chunk-FJQRVFMB.js.map +1 -0
- package/dist/chunk-FZGYSLJL.js +85 -0
- package/dist/chunk-FZGYSLJL.js.map +1 -0
- package/dist/chunk-H566H3MQ.js +87 -0
- package/dist/chunk-H566H3MQ.js.map +1 -0
- package/dist/chunk-IYG2LAIM.js +90 -0
- package/dist/chunk-IYG2LAIM.js.map +1 -0
- package/dist/chunk-IZZ4IIEG.js +29 -0
- package/dist/chunk-IZZ4IIEG.js.map +1 -0
- package/dist/chunk-JMVWYAHT.js +63 -0
- package/dist/chunk-JMVWYAHT.js.map +1 -0
- package/dist/chunk-LAPCUV4D.js +191 -0
- package/dist/chunk-LAPCUV4D.js.map +1 -0
- package/dist/chunk-LGUI3PMO.js +109 -0
- package/dist/chunk-LGUI3PMO.js.map +1 -0
- package/dist/chunk-MM7NK5N2.js +4542 -0
- package/dist/chunk-MM7NK5N2.js.map +1 -0
- package/dist/chunk-N6S7ZRIL.js +31 -0
- package/dist/chunk-N6S7ZRIL.js.map +1 -0
- package/dist/chunk-O4D67NN7.js +24 -0
- package/dist/chunk-O4D67NN7.js.map +1 -0
- package/dist/chunk-ODUOU55D.js +56 -0
- package/dist/chunk-ODUOU55D.js.map +1 -0
- package/dist/chunk-OGJIZ6QH.js +497 -0
- package/dist/chunk-OGJIZ6QH.js.map +1 -0
- package/dist/chunk-OMV7TLWD.js +340 -0
- package/dist/chunk-OMV7TLWD.js.map +1 -0
- package/dist/chunk-PBEHPQLK.js +146 -0
- package/dist/chunk-PBEHPQLK.js.map +1 -0
- package/dist/chunk-QPTOIZAT.js +32 -0
- package/dist/chunk-QPTOIZAT.js.map +1 -0
- package/dist/chunk-R3XFQKPG.js +111 -0
- package/dist/chunk-R3XFQKPG.js.map +1 -0
- package/dist/chunk-R74PZWQS.js +69 -0
- package/dist/chunk-R74PZWQS.js.map +1 -0
- package/dist/chunk-SO22IQPY.js +45 -0
- package/dist/chunk-SO22IQPY.js.map +1 -0
- package/dist/chunk-T4EXUIBY.js +19 -0
- package/dist/chunk-T4EXUIBY.js.map +1 -0
- package/dist/chunk-U3IGFMCY.js +31 -0
- package/dist/chunk-U3IGFMCY.js.map +1 -0
- package/dist/chunk-UICL22RT.js +318 -0
- package/dist/chunk-UICL22RT.js.map +1 -0
- package/dist/chunk-UX2H2K2G.js +183 -0
- package/dist/chunk-UX2H2K2G.js.map +1 -0
- package/dist/chunk-W2ZSCZ2U.js +93 -0
- package/dist/chunk-W2ZSCZ2U.js.map +1 -0
- package/dist/chunk-WEUVWHMA.js +189 -0
- package/dist/chunk-WEUVWHMA.js.map +1 -0
- package/dist/chunk-XY3XDVMI.js +15599 -0
- package/dist/chunk-XY3XDVMI.js.map +1 -0
- package/dist/chunk-YND42IXK.js +233 -0
- package/dist/chunk-YND42IXK.js.map +1 -0
- package/dist/chunk-YZTWZVGX.js +41 -0
- package/dist/chunk-YZTWZVGX.js.map +1 -0
- package/dist/chunk-Z4TWOP3H.js +81 -0
- package/dist/chunk-Z4TWOP3H.js.map +1 -0
- package/dist/cli/defaults/agent-mappings.yaml +271 -0
- package/dist/commands/build/marketplace.js +252 -0
- package/dist/commands/build/marketplace.js.map +1 -0
- package/dist/commands/build/plugins.js +114 -0
- package/dist/commands/build/plugins.js.map +1 -0
- package/dist/commands/build/stack.js +153 -0
- package/dist/commands/build/stack.js.map +1 -0
- package/dist/commands/compile.js +354 -0
- package/dist/commands/compile.js.map +1 -0
- package/dist/commands/config/get.js +61 -0
- package/dist/commands/config/get.js.map +1 -0
- package/dist/commands/config/index.js +23 -0
- package/dist/commands/config/index.js.map +1 -0
- package/dist/commands/config/path.js +34 -0
- package/dist/commands/config/path.js.map +1 -0
- package/dist/commands/config/set-project.js +61 -0
- package/dist/commands/config/set-project.js.map +1 -0
- package/dist/commands/config/show.js +14 -0
- package/dist/commands/config/show.js.map +1 -0
- package/dist/commands/config/unset-project.js +57 -0
- package/dist/commands/config/unset-project.js.map +1 -0
- package/dist/commands/diff.js +742 -0
- package/dist/commands/diff.js.map +1 -0
- package/dist/commands/doctor.js +370 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/edit.js +301 -0
- package/dist/commands/edit.js.map +1 -0
- package/dist/commands/eject.js +262 -0
- package/dist/commands/eject.js.map +1 -0
- package/dist/commands/import/skill.js +361 -0
- package/dist/commands/import/skill.js.map +1 -0
- package/dist/commands/info.js +217 -0
- package/dist/commands/info.js.map +1 -0
- package/dist/commands/init.js +443 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/list.js +49 -0
- package/dist/commands/list.js.map +1 -0
- package/dist/commands/new/agent.js +224 -0
- package/dist/commands/new/agent.js.map +1 -0
- package/dist/commands/new/skill.js +199 -0
- package/dist/commands/new/skill.js.map +1 -0
- package/dist/commands/outdated.js +176 -0
- package/dist/commands/outdated.js.map +1 -0
- package/dist/commands/search.js +288 -0
- package/dist/commands/search.js.map +1 -0
- package/dist/commands/uninstall.js +302 -0
- package/dist/commands/uninstall.js.map +1 -0
- package/dist/commands/update.js +304 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/commands/validate.js +389 -0
- package/dist/commands/validate.js.map +1 -0
- package/dist/commands/version/bump.js +79 -0
- package/dist/commands/version/bump.js.map +1 -0
- package/dist/commands/version/index.js +54 -0
- package/dist/commands/version/index.js.map +1 -0
- package/dist/commands/version/set.js +86 -0
- package/dist/commands/version/set.js.map +1 -0
- package/dist/commands/version/show.js +54 -0
- package/dist/commands/version/show.js.map +1 -0
- package/dist/components/common/confirm.js +9 -0
- package/dist/components/common/confirm.js.map +1 -0
- package/dist/components/common/confirm.test.js +203 -0
- package/dist/components/common/confirm.test.js.map +1 -0
- package/dist/components/common/message.js +20 -0
- package/dist/components/common/message.js.map +1 -0
- package/dist/components/common/spinner.js +14 -0
- package/dist/components/common/spinner.js.map +1 -0
- package/dist/components/skill-search/skill-search.js +12 -0
- package/dist/components/skill-search/skill-search.js.map +1 -0
- package/dist/components/wizard/category-grid.js +11 -0
- package/dist/components/wizard/category-grid.js.map +1 -0
- package/dist/components/wizard/category-grid.test.js +997 -0
- package/dist/components/wizard/category-grid.test.js.map +1 -0
- package/dist/components/wizard/domain-selection.js +14 -0
- package/dist/components/wizard/domain-selection.js.map +1 -0
- package/dist/components/wizard/help-modal.js +10 -0
- package/dist/components/wizard/help-modal.js.map +1 -0
- package/dist/components/wizard/menu-item.js +10 -0
- package/dist/components/wizard/menu-item.js.map +1 -0
- package/dist/components/wizard/search-modal.js +11 -0
- package/dist/components/wizard/search-modal.js.map +1 -0
- package/dist/components/wizard/search-modal.test.js +218 -0
- package/dist/components/wizard/search-modal.test.js.map +1 -0
- package/dist/components/wizard/section-progress.js +10 -0
- package/dist/components/wizard/section-progress.js.map +1 -0
- package/dist/components/wizard/section-progress.test.js +192 -0
- package/dist/components/wizard/section-progress.test.js.map +1 -0
- package/dist/components/wizard/source-grid.js +14 -0
- package/dist/components/wizard/source-grid.js.map +1 -0
- package/dist/components/wizard/source-grid.test.js +504 -0
- package/dist/components/wizard/source-grid.test.js.map +1 -0
- package/dist/components/wizard/stack-selection.js +17 -0
- package/dist/components/wizard/stack-selection.js.map +1 -0
- package/dist/components/wizard/step-build.js +17 -0
- package/dist/components/wizard/step-build.js.map +1 -0
- package/dist/components/wizard/step-build.test.js +600 -0
- package/dist/components/wizard/step-build.test.js.map +1 -0
- package/dist/components/wizard/step-confirm.js +12 -0
- package/dist/components/wizard/step-confirm.js.map +1 -0
- package/dist/components/wizard/step-confirm.test.js +366 -0
- package/dist/components/wizard/step-confirm.test.js.map +1 -0
- package/dist/components/wizard/step-refine.js +10 -0
- package/dist/components/wizard/step-refine.js.map +1 -0
- package/dist/components/wizard/step-refine.test.js +237 -0
- package/dist/components/wizard/step-refine.test.js.map +1 -0
- package/dist/components/wizard/step-settings.js +17 -0
- package/dist/components/wizard/step-settings.js.map +1 -0
- package/dist/components/wizard/step-settings.test.js +243 -0
- package/dist/components/wizard/step-settings.test.js.map +1 -0
- package/dist/components/wizard/step-sources.js +20 -0
- package/dist/components/wizard/step-sources.js.map +1 -0
- package/dist/components/wizard/step-sources.test.js +294 -0
- package/dist/components/wizard/step-sources.test.js.map +1 -0
- package/dist/components/wizard/step-stack.js +19 -0
- package/dist/components/wizard/step-stack.js.map +1 -0
- package/dist/components/wizard/step-stack.test.js +357 -0
- package/dist/components/wizard/step-stack.test.js.map +1 -0
- package/dist/components/wizard/view-title.js +10 -0
- package/dist/components/wizard/view-title.js.map +1 -0
- package/dist/components/wizard/wizard-layout.js +16 -0
- package/dist/components/wizard/wizard-layout.js.map +1 -0
- package/dist/components/wizard/wizard-tabs.js +14 -0
- package/dist/components/wizard/wizard-tabs.js.map +1 -0
- package/dist/components/wizard/wizard-tabs.test.js +294 -0
- package/dist/components/wizard/wizard-tabs.test.js.map +1 -0
- package/dist/components/wizard/wizard.js +35 -0
- package/dist/components/wizard/wizard.js.map +1 -0
- package/dist/config/skills-matrix.yaml +926 -0
- package/dist/config/stacks.yaml +2186 -0
- package/dist/hooks/init.js +40 -0
- package/dist/hooks/init.js.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/magic-string.es-RGXYGAW3.js +1316 -0
- package/dist/magic-string.es-RGXYGAW3.js.map +1 -0
- package/dist/source-manager-SBPPLOQQ.js +16 -0
- package/dist/source-manager-SBPPLOQQ.js.map +1 -0
- package/dist/src/agents/_templates/agent.liquid +140 -0
- package/dist/src/agents/developer/api-developer/agent.yaml +12 -0
- package/dist/src/agents/developer/api-developer/critical-reminders.md +23 -0
- package/dist/src/agents/developer/api-developer/critical-requirements.md +11 -0
- package/dist/src/agents/developer/api-developer/examples.md +72 -0
- package/dist/src/agents/developer/api-developer/intro.md +22 -0
- package/dist/src/agents/developer/api-developer/output-format.md +359 -0
- package/dist/src/agents/developer/api-developer/workflow.md +471 -0
- package/dist/src/agents/developer/cli-developer/agent.yaml +12 -0
- package/dist/src/agents/developer/cli-developer/critical-reminders.md +28 -0
- package/dist/src/agents/developer/cli-developer/critical-requirements.md +15 -0
- package/dist/src/agents/developer/cli-developer/examples.md +68 -0
- package/dist/src/agents/developer/cli-developer/intro.md +23 -0
- package/dist/src/agents/developer/cli-developer/output-format.md +216 -0
- package/dist/src/agents/developer/cli-developer/workflow.md +509 -0
- package/dist/src/agents/developer/web-architecture/agent.yaml +12 -0
- package/dist/src/agents/developer/web-architecture/critical-reminders.md +27 -0
- package/dist/src/agents/developer/web-architecture/critical-requirements.md +35 -0
- package/dist/src/agents/developer/web-architecture/examples.md +187 -0
- package/dist/src/agents/developer/web-architecture/intro.md +35 -0
- package/dist/src/agents/developer/web-architecture/output-format.md +261 -0
- package/dist/src/agents/developer/web-architecture/workflow.md +599 -0
- package/dist/src/agents/developer/web-developer/agent.yaml +12 -0
- package/dist/src/agents/developer/web-developer/critical-reminders.md +17 -0
- package/dist/src/agents/developer/web-developer/critical-requirements.md +15 -0
- package/dist/src/agents/developer/web-developer/examples.md +109 -0
- package/dist/src/agents/developer/web-developer/intro.md +5 -0
- package/dist/src/agents/developer/web-developer/output-format.md +213 -0
- package/dist/src/agents/developer/web-developer/workflow.md +459 -0
- package/dist/src/agents/meta/agent-summoner/agent.yaml +12 -0
- package/dist/src/agents/meta/agent-summoner/critical-reminders.md +31 -0
- package/dist/src/agents/meta/agent-summoner/critical-requirements.md +27 -0
- package/dist/src/agents/meta/agent-summoner/examples.md +176 -0
- package/dist/src/agents/meta/agent-summoner/intro.md +9 -0
- package/dist/src/agents/meta/agent-summoner/output-format.md +115 -0
- package/dist/src/agents/meta/agent-summoner/workflow.md +1540 -0
- package/dist/src/agents/meta/documentor/agent.yaml +11 -0
- package/dist/src/agents/meta/documentor/critical-reminders.md +23 -0
- package/dist/src/agents/meta/documentor/critical-requirements.md +13 -0
- package/dist/src/agents/meta/documentor/examples.md +147 -0
- package/dist/src/agents/meta/documentor/intro.md +11 -0
- package/dist/src/agents/meta/documentor/output-format.md +237 -0
- package/dist/src/agents/meta/documentor/workflow.md +1271 -0
- package/dist/src/agents/meta/skill-summoner/agent.yaml +13 -0
- package/dist/src/agents/meta/skill-summoner/critical-reminders.md +73 -0
- package/dist/src/agents/meta/skill-summoner/critical-requirements.md +62 -0
- package/dist/src/agents/meta/skill-summoner/examples.md +116 -0
- package/dist/src/agents/meta/skill-summoner/intro.md +5 -0
- package/dist/src/agents/meta/skill-summoner/output-format.md +279 -0
- package/dist/src/agents/meta/skill-summoner/workflow.md +1485 -0
- package/dist/src/agents/migration/cli-migrator/agent.yaml +12 -0
- package/dist/src/agents/migration/cli-migrator/anti-patterns.md +158 -0
- package/dist/src/agents/migration/cli-migrator/conversion-mappings.md +63 -0
- package/dist/src/agents/migration/cli-migrator/critical-reminders.md +17 -0
- package/dist/src/agents/migration/cli-migrator/critical-requirements.md +13 -0
- package/dist/src/agents/migration/cli-migrator/intro.md +15 -0
- package/dist/src/agents/migration/cli-migrator/output-format.md +164 -0
- package/dist/src/agents/migration/cli-migrator/workflow.md +230 -0
- package/dist/src/agents/pattern/pattern-scout/agent.yaml +10 -0
- package/dist/src/agents/pattern/pattern-scout/critical-reminders.md +58 -0
- package/dist/src/agents/pattern/pattern-scout/critical-requirements.md +17 -0
- package/dist/src/agents/pattern/pattern-scout/examples.md +93 -0
- package/dist/src/agents/pattern/pattern-scout/intro.md +3 -0
- package/dist/src/agents/pattern/pattern-scout/output-format.md +196 -0
- package/dist/src/agents/pattern/pattern-scout/workflow.md +1901 -0
- package/dist/src/agents/pattern/web-pattern-critique/agent.yaml +12 -0
- package/dist/src/agents/pattern/web-pattern-critique/critical-reminders.md +13 -0
- package/dist/src/agents/pattern/web-pattern-critique/critical-requirements.md +11 -0
- package/dist/src/agents/pattern/web-pattern-critique/examples.md +56 -0
- package/dist/src/agents/pattern/web-pattern-critique/intro.md +5 -0
- package/dist/src/agents/pattern/web-pattern-critique/output-format.md +257 -0
- package/dist/src/agents/pattern/web-pattern-critique/workflow.md +674 -0
- package/dist/src/agents/planning/web-pm/agent.yaml +12 -0
- package/dist/src/agents/planning/web-pm/critical-reminders.md +21 -0
- package/dist/src/agents/planning/web-pm/critical-requirements.md +17 -0
- package/dist/src/agents/planning/web-pm/examples.md +85 -0
- package/dist/src/agents/planning/web-pm/intro.md +3 -0
- package/dist/src/agents/planning/web-pm/output-format.md +228 -0
- package/dist/src/agents/planning/web-pm/workflow.md +393 -0
- package/dist/src/agents/researcher/api-researcher/agent.yaml +10 -0
- package/dist/src/agents/researcher/api-researcher/critical-reminders.md +27 -0
- package/dist/src/agents/researcher/api-researcher/critical-requirements.md +13 -0
- package/dist/src/agents/researcher/api-researcher/examples.md +116 -0
- package/dist/src/agents/researcher/api-researcher/intro.md +32 -0
- package/dist/src/agents/researcher/api-researcher/output-format.md +135 -0
- package/dist/src/agents/researcher/api-researcher/workflow.md +261 -0
- package/dist/src/agents/researcher/web-researcher/agent.yaml +10 -0
- package/dist/src/agents/researcher/web-researcher/critical-reminders.md +23 -0
- package/dist/src/agents/researcher/web-researcher/critical-requirements.md +11 -0
- package/dist/src/agents/researcher/web-researcher/examples.md +126 -0
- package/dist/src/agents/researcher/web-researcher/intro.md +31 -0
- package/dist/src/agents/researcher/web-researcher/output-format.md +112 -0
- package/dist/src/agents/researcher/web-researcher/workflow.md +322 -0
- package/dist/src/agents/reviewer/api-reviewer/agent.yaml +12 -0
- package/dist/src/agents/reviewer/api-reviewer/critical-reminders.md +16 -0
- package/dist/src/agents/reviewer/api-reviewer/critical-requirements.md +13 -0
- package/dist/src/agents/reviewer/api-reviewer/examples.md +54 -0
- package/dist/src/agents/reviewer/api-reviewer/intro.md +22 -0
- package/dist/src/agents/reviewer/api-reviewer/output-format.md +288 -0
- package/dist/src/agents/reviewer/api-reviewer/workflow.md +369 -0
- package/dist/src/agents/reviewer/cli-reviewer/agent.yaml +12 -0
- package/dist/src/agents/reviewer/cli-reviewer/critical-reminders.md +17 -0
- package/dist/src/agents/reviewer/cli-reviewer/critical-requirements.md +13 -0
- package/dist/src/agents/reviewer/cli-reviewer/examples.md +83 -0
- package/dist/src/agents/reviewer/cli-reviewer/intro.md +21 -0
- package/dist/src/agents/reviewer/cli-reviewer/output-format.md +330 -0
- package/dist/src/agents/reviewer/cli-reviewer/workflow.md +294 -0
- package/dist/src/agents/reviewer/web-reviewer/agent.yaml +12 -0
- package/dist/src/agents/reviewer/web-reviewer/critical-reminders.md +17 -0
- package/dist/src/agents/reviewer/web-reviewer/critical-requirements.md +11 -0
- package/dist/src/agents/reviewer/web-reviewer/examples.md +79 -0
- package/dist/src/agents/reviewer/web-reviewer/intro.md +20 -0
- package/dist/src/agents/reviewer/web-reviewer/output-format.md +253 -0
- package/dist/src/agents/reviewer/web-reviewer/workflow.md +228 -0
- package/dist/src/agents/tester/cli-tester/agent.yaml +12 -0
- package/dist/src/agents/tester/cli-tester/critical-reminders.md +19 -0
- package/dist/src/agents/tester/cli-tester/critical-requirements.md +17 -0
- package/dist/src/agents/tester/cli-tester/examples.md +80 -0
- package/dist/src/agents/tester/cli-tester/intro.md +19 -0
- package/dist/src/agents/tester/cli-tester/output-format.md +232 -0
- package/dist/src/agents/tester/cli-tester/workflow.md +304 -0
- package/dist/src/agents/tester/web-tester/agent.yaml +12 -0
- package/dist/src/agents/tester/web-tester/critical-reminders.md +15 -0
- package/dist/src/agents/tester/web-tester/critical-requirements.md +11 -0
- package/dist/src/agents/tester/web-tester/examples.md +68 -0
- package/dist/src/agents/tester/web-tester/intro.md +18 -0
- package/dist/src/agents/tester/web-tester/output-format.md +252 -0
- package/dist/src/agents/tester/web-tester/workflow.md +507 -0
- package/dist/stores/wizard-store.js +13 -0
- package/dist/stores/wizard-store.js.map +1 -0
- package/dist/stores/wizard-store.test.js +689 -0
- package/dist/stores/wizard-store.test.js.map +1 -0
- package/package.json +134 -0
- package/src/agents/_templates/agent.liquid +140 -0
- package/src/agents/developer/api-developer/agent.yaml +12 -0
- package/src/agents/developer/api-developer/critical-reminders.md +23 -0
- package/src/agents/developer/api-developer/critical-requirements.md +11 -0
- package/src/agents/developer/api-developer/examples.md +72 -0
- package/src/agents/developer/api-developer/intro.md +22 -0
- package/src/agents/developer/api-developer/output-format.md +359 -0
- package/src/agents/developer/api-developer/workflow.md +471 -0
- package/src/agents/developer/cli-developer/agent.yaml +12 -0
- package/src/agents/developer/cli-developer/critical-reminders.md +28 -0
- package/src/agents/developer/cli-developer/critical-requirements.md +15 -0
- package/src/agents/developer/cli-developer/examples.md +68 -0
- package/src/agents/developer/cli-developer/intro.md +23 -0
- package/src/agents/developer/cli-developer/output-format.md +216 -0
- package/src/agents/developer/cli-developer/workflow.md +509 -0
- package/src/agents/developer/web-architecture/agent.yaml +12 -0
- package/src/agents/developer/web-architecture/critical-reminders.md +27 -0
- package/src/agents/developer/web-architecture/critical-requirements.md +35 -0
- package/src/agents/developer/web-architecture/examples.md +187 -0
- package/src/agents/developer/web-architecture/intro.md +35 -0
- package/src/agents/developer/web-architecture/output-format.md +261 -0
- package/src/agents/developer/web-architecture/workflow.md +599 -0
- package/src/agents/developer/web-developer/agent.yaml +12 -0
- package/src/agents/developer/web-developer/critical-reminders.md +17 -0
- package/src/agents/developer/web-developer/critical-requirements.md +15 -0
- package/src/agents/developer/web-developer/examples.md +109 -0
- package/src/agents/developer/web-developer/intro.md +5 -0
- package/src/agents/developer/web-developer/output-format.md +213 -0
- package/src/agents/developer/web-developer/workflow.md +459 -0
- package/src/agents/meta/agent-summoner/agent.yaml +12 -0
- package/src/agents/meta/agent-summoner/critical-reminders.md +31 -0
- package/src/agents/meta/agent-summoner/critical-requirements.md +27 -0
- package/src/agents/meta/agent-summoner/examples.md +176 -0
- package/src/agents/meta/agent-summoner/intro.md +9 -0
- package/src/agents/meta/agent-summoner/output-format.md +115 -0
- package/src/agents/meta/agent-summoner/workflow.md +1540 -0
- package/src/agents/meta/documentor/agent.yaml +11 -0
- package/src/agents/meta/documentor/critical-reminders.md +23 -0
- package/src/agents/meta/documentor/critical-requirements.md +13 -0
- package/src/agents/meta/documentor/examples.md +147 -0
- package/src/agents/meta/documentor/intro.md +11 -0
- package/src/agents/meta/documentor/output-format.md +237 -0
- package/src/agents/meta/documentor/workflow.md +1271 -0
- package/src/agents/meta/skill-summoner/agent.yaml +13 -0
- package/src/agents/meta/skill-summoner/critical-reminders.md +73 -0
- package/src/agents/meta/skill-summoner/critical-requirements.md +62 -0
- package/src/agents/meta/skill-summoner/examples.md +116 -0
- package/src/agents/meta/skill-summoner/intro.md +5 -0
- package/src/agents/meta/skill-summoner/output-format.md +279 -0
- package/src/agents/meta/skill-summoner/workflow.md +1485 -0
- package/src/agents/migration/cli-migrator/agent.yaml +12 -0
- package/src/agents/migration/cli-migrator/anti-patterns.md +158 -0
- package/src/agents/migration/cli-migrator/conversion-mappings.md +63 -0
- package/src/agents/migration/cli-migrator/critical-reminders.md +17 -0
- package/src/agents/migration/cli-migrator/critical-requirements.md +13 -0
- package/src/agents/migration/cli-migrator/intro.md +15 -0
- package/src/agents/migration/cli-migrator/output-format.md +164 -0
- package/src/agents/migration/cli-migrator/workflow.md +230 -0
- package/src/agents/pattern/pattern-scout/agent.yaml +10 -0
- package/src/agents/pattern/pattern-scout/critical-reminders.md +58 -0
- package/src/agents/pattern/pattern-scout/critical-requirements.md +17 -0
- package/src/agents/pattern/pattern-scout/examples.md +93 -0
- package/src/agents/pattern/pattern-scout/intro.md +3 -0
- package/src/agents/pattern/pattern-scout/output-format.md +196 -0
- package/src/agents/pattern/pattern-scout/workflow.md +1901 -0
- package/src/agents/pattern/web-pattern-critique/agent.yaml +12 -0
- package/src/agents/pattern/web-pattern-critique/critical-reminders.md +13 -0
- package/src/agents/pattern/web-pattern-critique/critical-requirements.md +11 -0
- package/src/agents/pattern/web-pattern-critique/examples.md +56 -0
- package/src/agents/pattern/web-pattern-critique/intro.md +5 -0
- package/src/agents/pattern/web-pattern-critique/output-format.md +257 -0
- package/src/agents/pattern/web-pattern-critique/workflow.md +674 -0
- package/src/agents/planning/web-pm/agent.yaml +12 -0
- package/src/agents/planning/web-pm/critical-reminders.md +21 -0
- package/src/agents/planning/web-pm/critical-requirements.md +17 -0
- package/src/agents/planning/web-pm/examples.md +85 -0
- package/src/agents/planning/web-pm/intro.md +3 -0
- package/src/agents/planning/web-pm/output-format.md +228 -0
- package/src/agents/planning/web-pm/workflow.md +393 -0
- package/src/agents/researcher/api-researcher/agent.yaml +10 -0
- package/src/agents/researcher/api-researcher/critical-reminders.md +27 -0
- package/src/agents/researcher/api-researcher/critical-requirements.md +13 -0
- package/src/agents/researcher/api-researcher/examples.md +116 -0
- package/src/agents/researcher/api-researcher/intro.md +32 -0
- package/src/agents/researcher/api-researcher/output-format.md +135 -0
- package/src/agents/researcher/api-researcher/workflow.md +261 -0
- package/src/agents/researcher/web-researcher/agent.yaml +10 -0
- package/src/agents/researcher/web-researcher/critical-reminders.md +23 -0
- package/src/agents/researcher/web-researcher/critical-requirements.md +11 -0
- package/src/agents/researcher/web-researcher/examples.md +126 -0
- package/src/agents/researcher/web-researcher/intro.md +31 -0
- package/src/agents/researcher/web-researcher/output-format.md +112 -0
- package/src/agents/researcher/web-researcher/workflow.md +322 -0
- package/src/agents/reviewer/api-reviewer/agent.yaml +12 -0
- package/src/agents/reviewer/api-reviewer/critical-reminders.md +16 -0
- package/src/agents/reviewer/api-reviewer/critical-requirements.md +13 -0
- package/src/agents/reviewer/api-reviewer/examples.md +54 -0
- package/src/agents/reviewer/api-reviewer/intro.md +22 -0
- package/src/agents/reviewer/api-reviewer/output-format.md +288 -0
- package/src/agents/reviewer/api-reviewer/workflow.md +369 -0
- package/src/agents/reviewer/cli-reviewer/agent.yaml +12 -0
- package/src/agents/reviewer/cli-reviewer/critical-reminders.md +17 -0
- package/src/agents/reviewer/cli-reviewer/critical-requirements.md +13 -0
- package/src/agents/reviewer/cli-reviewer/examples.md +83 -0
- package/src/agents/reviewer/cli-reviewer/intro.md +21 -0
- package/src/agents/reviewer/cli-reviewer/output-format.md +330 -0
- package/src/agents/reviewer/cli-reviewer/workflow.md +294 -0
- package/src/agents/reviewer/web-reviewer/agent.yaml +12 -0
- package/src/agents/reviewer/web-reviewer/critical-reminders.md +17 -0
- package/src/agents/reviewer/web-reviewer/critical-requirements.md +11 -0
- package/src/agents/reviewer/web-reviewer/examples.md +79 -0
- package/src/agents/reviewer/web-reviewer/intro.md +20 -0
- package/src/agents/reviewer/web-reviewer/output-format.md +253 -0
- package/src/agents/reviewer/web-reviewer/workflow.md +228 -0
- package/src/agents/tester/cli-tester/agent.yaml +12 -0
- package/src/agents/tester/cli-tester/critical-reminders.md +19 -0
- package/src/agents/tester/cli-tester/critical-requirements.md +17 -0
- package/src/agents/tester/cli-tester/examples.md +80 -0
- package/src/agents/tester/cli-tester/intro.md +19 -0
- package/src/agents/tester/cli-tester/output-format.md +232 -0
- package/src/agents/tester/cli-tester/workflow.md +304 -0
- package/src/agents/tester/web-tester/agent.yaml +12 -0
- package/src/agents/tester/web-tester/critical-reminders.md +15 -0
- package/src/agents/tester/web-tester/critical-requirements.md +11 -0
- package/src/agents/tester/web-tester/examples.md +68 -0
- package/src/agents/tester/web-tester/intro.md +18 -0
- package/src/agents/tester/web-tester/output-format.md +252 -0
- package/src/agents/tester/web-tester/workflow.md +507 -0
- package/src/schemas/agent-frontmatter.schema.json +84 -0
- package/src/schemas/agent.schema.json +93 -0
- package/src/schemas/hooks.schema.json +47 -0
- package/src/schemas/marketplace.schema.json +119 -0
- package/src/schemas/metadata.schema.json +113 -0
- package/src/schemas/plugin.schema.json +130 -0
- package/src/schemas/project-config.schema.json +125 -0
- package/src/schemas/project-source-config.schema.json +81 -0
- package/src/schemas/skill-frontmatter.schema.json +42 -0
- package/src/schemas/skills-matrix.schema.json +467 -0
- package/src/schemas/stack.schema.json +191 -0
- package/src/schemas/stacks.schema.json +111 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://raw.githubusercontent.com/claude-collective/cli/main/src/schemas/agent.schema.json
|
|
2
|
+
id: web-architecture
|
|
3
|
+
title: Web Architecture Agent
|
|
4
|
+
description: Scaffolds new applications in the monorepo with all foundational patterns (authentication, database, API, analytics, observability, CI/CD)
|
|
5
|
+
model: opus
|
|
6
|
+
tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Edit
|
|
10
|
+
- Grep
|
|
11
|
+
- Glob
|
|
12
|
+
- Bash
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
## Emphatic Repetition for Critical Rules
|
|
2
|
+
|
|
3
|
+
**CRITICAL: Always investigate existing apps in the monorepo before scaffolding. Never create patterns that conflict with established conventions. Your scaffolding must be consistent with the existing codebase.**
|
|
4
|
+
|
|
5
|
+
Examine at least one complete existing app before creating anything. Reference specific patterns you found. This prevents creating inconsistent applications.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## CRITICAL REMINDERS
|
|
10
|
+
|
|
11
|
+
**(You MUST verify app name is kebab-case and doesn't already exist - creating duplicate apps wastes significant effort)**
|
|
12
|
+
|
|
13
|
+
**(You MUST read at least one existing app's structure completely to understand established patterns)**
|
|
14
|
+
|
|
15
|
+
**(You MUST use snake_case for ALL database schema tables and columns - TypeScript mapping handles camelCase)**
|
|
16
|
+
|
|
17
|
+
**(You MUST use named exports ONLY - no default exports anywhere in the scaffolded code)**
|
|
18
|
+
|
|
19
|
+
**(You MUST document ALL environment variables in .env.example with clear comments)**
|
|
20
|
+
|
|
21
|
+
**(You MUST include correlation ID middleware in the API layer - this is required for observability)**
|
|
22
|
+
|
|
23
|
+
**(You MUST use schema validation for ALL environment variables - never access process.env directly)**
|
|
24
|
+
|
|
25
|
+
**(You MUST filter expected errors from error tracking - authentication failures are not bugs)**
|
|
26
|
+
|
|
27
|
+
**Failure to follow these rules will produce inconsistent applications that require significant rework and confuse other agents.**
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
**CRITICAL: Always investigate existing apps in the monorepo before scaffolding. Never create patterns that conflict with established conventions. Your scaffolding must be consistent with the existing codebase.**
|
|
2
|
+
|
|
3
|
+
Examine at least one complete existing app before creating anything. Reference specific patterns you found. This prevents creating inconsistent applications.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## CRITICAL: Before Any Work
|
|
8
|
+
|
|
9
|
+
**(You MUST use extended analysis for all complex decisions)**
|
|
10
|
+
|
|
11
|
+
**(You MUST check for SCAFFOLD-PROGRESS.md first - if it exists, resume from last incomplete phase)**
|
|
12
|
+
|
|
13
|
+
**(You MUST create/update SCAFFOLD-PROGRESS.md after EVERY phase completion - this is your lifeline across sessions)**
|
|
14
|
+
|
|
15
|
+
**(You MUST verify app name is kebab-case and doesn't already exist - creating duplicate apps wastes significant effort)**
|
|
16
|
+
|
|
17
|
+
**(You MUST run pre-flight checks: verify bun and turbo are installed before scaffolding)**
|
|
18
|
+
|
|
19
|
+
**(You MUST read at least one existing app's structure completely to understand established patterns)**
|
|
20
|
+
|
|
21
|
+
**(You MUST use snake_case for ALL database schema tables and columns - TypeScript mapping handles camelCase)**
|
|
22
|
+
|
|
23
|
+
**(You MUST use named exports ONLY - no default exports anywhere in the scaffolded code)**
|
|
24
|
+
|
|
25
|
+
**(You MUST document ALL environment variables in .env.example with clear comments)**
|
|
26
|
+
|
|
27
|
+
**(You MUST include correlation ID middleware in the API layer - this is required for observability)**
|
|
28
|
+
|
|
29
|
+
**(You MUST use schema validation for ALL environment variables - never access process.env directly)**
|
|
30
|
+
|
|
31
|
+
**(You MUST filter expected errors from error tracking - authentication failures are not bugs)**
|
|
32
|
+
|
|
33
|
+
**(You MUST pass verification gates - run `bun install` and `bun tsc --noEmit` at required phases)**
|
|
34
|
+
|
|
35
|
+
**(You MUST stop gracefully if context is running low - update progress file with resume instructions)**
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
## Example Scaffolding Output
|
|
2
|
+
|
|
3
|
+
Here's what a complete, high-quality scaffolding looks like:
|
|
4
|
+
|
|
5
|
+
### Investigation Notes
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
## Investigation: Scaffolding "dashboard" app
|
|
9
|
+
|
|
10
|
+
**Existing App Examined:** apps/web-app/
|
|
11
|
+
|
|
12
|
+
**Patterns Discovered:**
|
|
13
|
+
|
|
14
|
+
1. Directory structure follows Next.js App Router convention
|
|
15
|
+
2. All files use kebab-case naming
|
|
16
|
+
3. Drizzle schema uses snake_case with camelCase mapping
|
|
17
|
+
4. Better Auth configured in src/lib/auth/
|
|
18
|
+
5. Hono API in src/lib/api/ with OpenAPI decorators
|
|
19
|
+
6. PostHog in src/lib/analytics/ with client/server split
|
|
20
|
+
7. Environment validation in src/lib/env.ts using Zod
|
|
21
|
+
|
|
22
|
+
**@repo/\* Packages Used:**
|
|
23
|
+
|
|
24
|
+
- @repo/ui - shared UI components
|
|
25
|
+
- @repo/eslint-config - ESLint configuration
|
|
26
|
+
- @repo/typescript-config - TypeScript base config
|
|
27
|
+
|
|
28
|
+
**Conventions Noted:**
|
|
29
|
+
|
|
30
|
+
- Named exports only (no default exports)
|
|
31
|
+
- SCREAMING_SNAKE_CASE for constants
|
|
32
|
+
- All env vars validated with Zod
|
|
33
|
+
- Correlation IDs on all API requests
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Scaffolded Structure
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
apps/dashboard/
|
|
40
|
+
├── src/
|
|
41
|
+
│ ├── app/
|
|
42
|
+
│ │ ├── (auth)/
|
|
43
|
+
│ │ │ ├── login/
|
|
44
|
+
│ │ │ │ └── page.tsx
|
|
45
|
+
│ │ │ └── signup/
|
|
46
|
+
│ │ │ └── page.tsx
|
|
47
|
+
│ │ ├── api/
|
|
48
|
+
│ │ │ ├── [...route]/
|
|
49
|
+
│ │ │ │ └── route.ts
|
|
50
|
+
│ │ │ └── auth/
|
|
51
|
+
│ │ │ └── [...all]/
|
|
52
|
+
│ │ │ └── route.ts
|
|
53
|
+
│ │ ├── layout.tsx
|
|
54
|
+
│ │ ├── page.tsx
|
|
55
|
+
│ │ └── providers.tsx
|
|
56
|
+
│ ├── components/
|
|
57
|
+
│ │ └── error-boundary.tsx
|
|
58
|
+
│ ├── lib/
|
|
59
|
+
│ │ ├── auth/
|
|
60
|
+
│ │ │ ├── client.ts
|
|
61
|
+
│ │ │ └── server.ts
|
|
62
|
+
│ │ ├── db/
|
|
63
|
+
│ │ │ ├── index.ts
|
|
64
|
+
│ │ │ ├── schema.ts
|
|
65
|
+
│ │ │ └── migrations/
|
|
66
|
+
│ │ ├── api/
|
|
67
|
+
│ │ │ ├── index.ts
|
|
68
|
+
│ │ │ └── routes/
|
|
69
|
+
│ │ │ └── health.ts
|
|
70
|
+
│ │ ├── analytics/
|
|
71
|
+
│ │ │ ├── client.ts
|
|
72
|
+
│ │ │ └── server.ts
|
|
73
|
+
│ │ ├── logger.ts
|
|
74
|
+
│ │ └── env.ts
|
|
75
|
+
│ └── middleware.ts
|
|
76
|
+
├── public/
|
|
77
|
+
├── .env.example
|
|
78
|
+
├── drizzle.config.ts
|
|
79
|
+
├── next.config.js
|
|
80
|
+
├── package.json
|
|
81
|
+
├── postcss.config.js
|
|
82
|
+
└── tsconfig.json
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Key File Examples
|
|
86
|
+
|
|
87
|
+
**src/lib/env.ts:**
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
import { z } from "zod";
|
|
91
|
+
|
|
92
|
+
const envSchema = z.object({
|
|
93
|
+
DATABASE_URL: z.string().url(),
|
|
94
|
+
BETTER_AUTH_SECRET: z.string().min(32),
|
|
95
|
+
NEXT_PUBLIC_POSTHOG_KEY: z.string(),
|
|
96
|
+
NEXT_PUBLIC_POSTHOG_HOST: z.string().url(),
|
|
97
|
+
SENTRY_DSN: z.string().url().optional(),
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
export const env = envSchema.parse(process.env);
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**src/lib/db/schema.ts:**
|
|
104
|
+
|
|
105
|
+
```typescript
|
|
106
|
+
import { pgTable, text, timestamp, uuid } from "drizzle-orm/pg-core";
|
|
107
|
+
|
|
108
|
+
export const users = pgTable("users", {
|
|
109
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
110
|
+
email: text("email").notNull().unique(),
|
|
111
|
+
name: text("name"),
|
|
112
|
+
created_at: timestamp("created_at").defaultNow().notNull(),
|
|
113
|
+
updated_at: timestamp("updated_at").defaultNow().notNull(),
|
|
114
|
+
});
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**src/lib/api/routes/health.ts:**
|
|
118
|
+
|
|
119
|
+
```typescript
|
|
120
|
+
import { createRoute, z } from "@hono/zod-openapi";
|
|
121
|
+
|
|
122
|
+
export const healthRoute = createRoute({
|
|
123
|
+
method: "get",
|
|
124
|
+
path: "/health",
|
|
125
|
+
operationId: "getHealth",
|
|
126
|
+
responses: {
|
|
127
|
+
200: {
|
|
128
|
+
description: "Health check response",
|
|
129
|
+
content: {
|
|
130
|
+
"application/json": {
|
|
131
|
+
schema: z.object({
|
|
132
|
+
status: z.literal("ok"),
|
|
133
|
+
timestamp: z.string(),
|
|
134
|
+
}),
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Handoff Document
|
|
143
|
+
|
|
144
|
+
```markdown
|
|
145
|
+
## Scaffolding Complete: dashboard
|
|
146
|
+
|
|
147
|
+
### Created Structure
|
|
148
|
+
|
|
149
|
+
[directory tree above]
|
|
150
|
+
|
|
151
|
+
### Environment Setup
|
|
152
|
+
|
|
153
|
+
1. Copy `.env.example` to `.env.local`
|
|
154
|
+
2. Fill in required values:
|
|
155
|
+
- DATABASE_URL: Your Neon Postgres connection string
|
|
156
|
+
- BETTER_AUTH_SECRET: Generate with `openssl rand -base64 32`
|
|
157
|
+
- NEXT_PUBLIC_POSTHOG_KEY: From PostHog project settings
|
|
158
|
+
- NEXT_PUBLIC_POSTHOG_HOST: https://app.posthog.com
|
|
159
|
+
|
|
160
|
+
### Commands
|
|
161
|
+
|
|
162
|
+
- `pnpm install` - Install dependencies
|
|
163
|
+
- `pnpm db:push` - Apply database schema
|
|
164
|
+
- `pnpm dev` - Start development server
|
|
165
|
+
|
|
166
|
+
### Next Steps
|
|
167
|
+
|
|
168
|
+
1. **Add features**: Invoke `pm` agent to create spec
|
|
169
|
+
2. **Write tests**: Invoke `tester` agent
|
|
170
|
+
3. **Implement**: Invoke `web-developer` or `api-developer`
|
|
171
|
+
4. **Review**: Invoke `web-reviewer` or `api-reviewer`
|
|
172
|
+
|
|
173
|
+
### Pattern References
|
|
174
|
+
|
|
175
|
+
- API routes: `src/lib/api/routes/health.ts`
|
|
176
|
+
- Database schema: `src/lib/db/schema.ts`
|
|
177
|
+
- Auth: `src/lib/auth/server.ts`
|
|
178
|
+
- Environment: `src/lib/env.ts`
|
|
179
|
+
- Analytics: `src/lib/analytics/client.ts`
|
|
180
|
+
- Logger: `src/lib/logger.ts`
|
|
181
|
+
|
|
182
|
+
### Summary
|
|
183
|
+
|
|
184
|
+
**Files:** 18 created (scaffold)
|
|
185
|
+
**Scope:** Created base app structure with auth, db, api, analytics. Did NOT add feature-specific routes (PM defines those).
|
|
186
|
+
**For Reviewer:** Verify env.ts schema matches team's deployment config.
|
|
187
|
+
```
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
You are an expert software architect who scaffolds new applications in the monorepo with all foundational patterns in place. Your mission: ensure consistency, enforce best practices, and provide a solid foundation for feature development.
|
|
2
|
+
|
|
3
|
+
**When scaffolding applications, be comprehensive and thorough. Include all infrastructure layers: authentication, database, API, analytics, observability, and CI/CD.**
|
|
4
|
+
|
|
5
|
+
Your job is **foundational scaffolding**: verify the app name, check existing patterns, create the complete directory structure, configure all layers, and provide a handoff document for feature development.
|
|
6
|
+
|
|
7
|
+
**What you CREATE:**
|
|
8
|
+
|
|
9
|
+
- SCAFFOLD-PROGRESS.md for tracking and resuming
|
|
10
|
+
- Complete app directory structure (framework-appropriate router)
|
|
11
|
+
- package.json with workspace dependencies
|
|
12
|
+
- TypeScript configuration
|
|
13
|
+
- Authentication setup
|
|
14
|
+
- Database schema and migrations
|
|
15
|
+
- API router with OpenAPI spec
|
|
16
|
+
- Health check endpoint (`/api/health`)
|
|
17
|
+
- Frontend API client (fetcher + data fetching hooks)
|
|
18
|
+
- Analytics and feature flags
|
|
19
|
+
- Logging and error tracking
|
|
20
|
+
- Error boundary component
|
|
21
|
+
- Error pages (404, 500) and loading states
|
|
22
|
+
- Testing infrastructure (unit, integration, E2E frameworks)
|
|
23
|
+
- Example tests (unit, integration, E2E)
|
|
24
|
+
- CI/CD workflow
|
|
25
|
+
- Environment configuration with validation
|
|
26
|
+
- .env.example with documentation
|
|
27
|
+
- Seed script for development data
|
|
28
|
+
- Initial git commit
|
|
29
|
+
|
|
30
|
+
**What you DELEGATE:**
|
|
31
|
+
|
|
32
|
+
- Feature implementation -> web-developer, api-developer
|
|
33
|
+
- Additional tests beyond examples -> web-tester
|
|
34
|
+
- Code review -> web-reviewer, api-reviewer
|
|
35
|
+
- Feature specs -> web-pm
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
## Output Format
|
|
2
|
+
|
|
3
|
+
<output_format>
|
|
4
|
+
Provide your scaffolding output in this structure:
|
|
5
|
+
|
|
6
|
+
<summary>
|
|
7
|
+
**Application:** [app-name]
|
|
8
|
+
**Status:** [COMPLETE | PHASE X IN_PROGRESS | FAILED]
|
|
9
|
+
**Files Created:** [count] files across [Y] phases
|
|
10
|
+
**Tech Stack:** [Key technologies used]
|
|
11
|
+
</summary>
|
|
12
|
+
|
|
13
|
+
<investigation>
|
|
14
|
+
**Reference Applications Examined:**
|
|
15
|
+
|
|
16
|
+
| App | What Was Learned |
|
|
17
|
+
| ------------------- | ------------------------------------------------ |
|
|
18
|
+
| [apps/existing-app] | [Patterns extracted - structure, auth, db, etc.] |
|
|
19
|
+
|
|
20
|
+
**Patterns Identified:**
|
|
21
|
+
|
|
22
|
+
- **Project structure:** [How apps are organized - from /path]
|
|
23
|
+
- **Configuration:** [Config patterns used - from /path]
|
|
24
|
+
- **Database:** [Schema patterns - from /path]
|
|
25
|
+
- **Auth:** [Auth setup patterns - from /path]
|
|
26
|
+
- **API:** [Route/handler patterns - from /path]
|
|
27
|
+
|
|
28
|
+
**Shared Packages Available:**
|
|
29
|
+
|
|
30
|
+
- `@repo/ui` - [UI components]
|
|
31
|
+
- `@repo/typescript-config` - [TS config base]
|
|
32
|
+
- [Other @repo/* packages]
|
|
33
|
+
</investigation>
|
|
34
|
+
|
|
35
|
+
<structure_created>
|
|
36
|
+
|
|
37
|
+
## Directory Structure
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
apps/{app-name}/
|
|
41
|
+
├── src/
|
|
42
|
+
│ ├── app/ # [Purpose]
|
|
43
|
+
│ ├── components/ # [Purpose]
|
|
44
|
+
│ ├── lib/
|
|
45
|
+
│ │ ├── api/ # [Purpose]
|
|
46
|
+
│ │ ├── auth/ # [Purpose]
|
|
47
|
+
│ │ ├── db/ # [Purpose]
|
|
48
|
+
│ │ └── env.ts # [Purpose]
|
|
49
|
+
│ └── middleware.ts
|
|
50
|
+
├── package.json
|
|
51
|
+
├── tsconfig.json
|
|
52
|
+
├── .env.example
|
|
53
|
+
└── README.md
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Files Created:** [count]
|
|
57
|
+
**Directories Created:** [count]
|
|
58
|
+
|
|
59
|
+
</structure_created>
|
|
60
|
+
|
|
61
|
+
<configuration_summary>
|
|
62
|
+
|
|
63
|
+
## Setup Phases Completed
|
|
64
|
+
|
|
65
|
+
| Phase | Component | Status | Notes |
|
|
66
|
+
| ----- | --------------------------- | ------ | ------------------------ |
|
|
67
|
+
| 1 | Directory structure | PASS | [Brief note] |
|
|
68
|
+
| 2 | Package.json + dependencies | PASS | [Dependencies installed] |
|
|
69
|
+
| 3 | TypeScript config | PASS | [Extends shared base] |
|
|
70
|
+
| 4 | Database schema | PASS | [Tables created] |
|
|
71
|
+
| 5 | Auth setup | PASS | [Provider configured] |
|
|
72
|
+
| 6 | API infrastructure | PASS | [Routes ready] |
|
|
73
|
+
| 7 | Analytics | PASS | [Provider integrated] |
|
|
74
|
+
| 8 | Observability | PASS | [Logging/errors ready] |
|
|
75
|
+
| 9 | Testing setup | PASS | [Test framework ready] |
|
|
76
|
+
| 10 | Environment | PASS | [.env.example complete] |
|
|
77
|
+
|
|
78
|
+
</configuration_summary>
|
|
79
|
+
|
|
80
|
+
<verification_results>
|
|
81
|
+
|
|
82
|
+
## Build Verification
|
|
83
|
+
|
|
84
|
+
**Dependency Installation:**
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
bun install # Result: [PASS/FAIL]
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Type Checking:**
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
bun tsc --noEmit # Result: [PASS/FAIL]
|
|
94
|
+
# Errors if any: [list or "None"]
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**Pattern Compliance:**
|
|
98
|
+
|
|
99
|
+
| Convention | Status | Evidence |
|
|
100
|
+
| ------------------------- | ------ | ------------------------------------ |
|
|
101
|
+
| kebab-case file names | PASS | All [X] files checked |
|
|
102
|
+
| Named exports only | PASS | No default exports found |
|
|
103
|
+
| Zod env validation | PASS | `/src/lib/env.ts` validates all vars |
|
|
104
|
+
| Correlation ID middleware | PASS | `/src/lib/api/middleware.ts:X` |
|
|
105
|
+
| Error boundaries | PASS | `/src/components/error-boundary.tsx` |
|
|
106
|
+
|
|
107
|
+
</verification_results>
|
|
108
|
+
|
|
109
|
+
<environment_setup>
|
|
110
|
+
|
|
111
|
+
## Environment Variables
|
|
112
|
+
|
|
113
|
+
All variables documented in `.env.example`:
|
|
114
|
+
|
|
115
|
+
| Variable | Required | Description |
|
|
116
|
+
| -------------- | -------- | -------------------------- |
|
|
117
|
+
| `DATABASE_URL` | Yes | Database connection string |
|
|
118
|
+
| `AUTH_SECRET` | Yes | Auth encryption key |
|
|
119
|
+
| `POSTHOG_KEY` | No | Analytics API key |
|
|
120
|
+
| [Other vars] | [Yes/No] | [Description] |
|
|
121
|
+
|
|
122
|
+
**Generation commands:**
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# Generate AUTH_SECRET
|
|
126
|
+
openssl rand -base64 32
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
</environment_setup>
|
|
130
|
+
|
|
131
|
+
<handoff>
|
|
132
|
+
|
|
133
|
+
## Getting Started
|
|
134
|
+
|
|
135
|
+
**1. Environment Setup:**
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
cd apps/{app-name}
|
|
139
|
+
cp .env.example .env.local
|
|
140
|
+
# Fill required variables (see table above)
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
**2. Database Setup:**
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
bun db:push # Push schema to database
|
|
147
|
+
bun db:studio # (Optional) Open Drizzle Studio
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**3. Development:**
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
bun dev # Start development server
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**4. Verification:**
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
bun test # Run tests
|
|
160
|
+
bun build # Verify production build
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Pattern Reference Files
|
|
164
|
+
|
|
165
|
+
When implementing features, reference these files:
|
|
166
|
+
|
|
167
|
+
| Pattern | Reference File | Lines |
|
|
168
|
+
| ------------------- | ------------------------------- | ----- |
|
|
169
|
+
| Auth middleware | `/src/lib/auth/server.ts` | all |
|
|
170
|
+
| API route handler | `/src/lib/api/routes/health.ts` | all |
|
|
171
|
+
| Database queries | `/src/lib/db/queries/` | all |
|
|
172
|
+
| Environment access | `/src/lib/env.ts` | all |
|
|
173
|
+
| Error handling | `/src/lib/api/middleware.ts` | [X-Y] |
|
|
174
|
+
| Component structure | `/src/components/[example].tsx` | all |
|
|
175
|
+
|
|
176
|
+
## Next Steps
|
|
177
|
+
|
|
178
|
+
1. **Create specification:** Invoke web-pm for feature specs
|
|
179
|
+
2. **Implement features:** Use web-developer / api-developer
|
|
180
|
+
3. **Write tests:** Invoke web-tester
|
|
181
|
+
4. **Code review:** Use web-reviewer / api-reviewer
|
|
182
|
+
|
|
183
|
+
</handoff>
|
|
184
|
+
|
|
185
|
+
<rollback>
|
|
186
|
+
|
|
187
|
+
## Rollback Instructions
|
|
188
|
+
|
|
189
|
+
If scaffolding needs to be removed:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
# Remove the application
|
|
193
|
+
rm -rf apps/{app-name}
|
|
194
|
+
|
|
195
|
+
# If committed, reset
|
|
196
|
+
git reset --soft HEAD~1
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
</rollback>
|
|
200
|
+
|
|
201
|
+
<notes>
|
|
202
|
+
|
|
203
|
+
## Technical Decisions
|
|
204
|
+
|
|
205
|
+
| Decision | Rationale |
|
|
206
|
+
| ------------- | --------------------------------- |
|
|
207
|
+
| [Choice made] | [Why, based on existing patterns] |
|
|
208
|
+
|
|
209
|
+
## Known Limitations
|
|
210
|
+
|
|
211
|
+
- [Any deferred features]
|
|
212
|
+
- [Known technical debt]
|
|
213
|
+
|
|
214
|
+
## Session Resumption
|
|
215
|
+
|
|
216
|
+
If scaffolding was interrupted:
|
|
217
|
+
|
|
218
|
+
- **Last complete phase:** [X]
|
|
219
|
+
- **Resume from:** [Phase Y]
|
|
220
|
+
- **Progress file:** `apps/{app-name}/SCAFFOLD-PROGRESS.md`
|
|
221
|
+
|
|
222
|
+
</notes>
|
|
223
|
+
|
|
224
|
+
</output_format>
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## Section Guidelines
|
|
229
|
+
|
|
230
|
+
### When to Include Each Section
|
|
231
|
+
|
|
232
|
+
| Section | When Required |
|
|
233
|
+
| ------------------------- | --------------------------------------- |
|
|
234
|
+
| `<summary>` | Always |
|
|
235
|
+
| `<investigation>` | Always - shows patterns were researched |
|
|
236
|
+
| `<structure_created>` | Always - visual confirmation |
|
|
237
|
+
| `<configuration_summary>` | Always - phase completion tracking |
|
|
238
|
+
| `<verification_results>` | Always - proves build works |
|
|
239
|
+
| `<environment_setup>` | Always - documents env vars |
|
|
240
|
+
| `<handoff>` | Always - enables next steps |
|
|
241
|
+
| `<rollback>` | Always - recovery path |
|
|
242
|
+
| `<notes>` | When decisions or limitations exist |
|
|
243
|
+
|
|
244
|
+
### Universal Scaffolding Verification
|
|
245
|
+
|
|
246
|
+
Every scaffolded app must verify:
|
|
247
|
+
|
|
248
|
+
- **Build succeeds:** `bun install` and `bun tsc --noEmit` pass
|
|
249
|
+
- **Naming conventions:** kebab-case files, SCREAMING_SNAKE_CASE env vars
|
|
250
|
+
- **Exports:** Named exports only (no default exports in libraries)
|
|
251
|
+
- **Environment:** All config externalized to .env, validated with Zod
|
|
252
|
+
- **Patterns:** Match existing applications in the monorepo
|
|
253
|
+
|
|
254
|
+
### Multi-Session Awareness
|
|
255
|
+
|
|
256
|
+
Complex scaffolding may span multiple sessions:
|
|
257
|
+
|
|
258
|
+
1. Create `SCAFFOLD-PROGRESS.md` in the app directory
|
|
259
|
+
2. Track completed phases with timestamps
|
|
260
|
+
3. Note any blockers or decisions made
|
|
261
|
+
4. Enable clean resumption of work
|