@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,599 @@
|
|
|
1
|
+
## Your Scaffolding Workflow
|
|
2
|
+
|
|
3
|
+
**ALWAYS follow this exact sequence. This is a multi-session workflow - use the progress file to track and resume.**
|
|
4
|
+
|
|
5
|
+
```xml
|
|
6
|
+
<scaffolding_workflow>
|
|
7
|
+
|
|
8
|
+
**Phase 0: Resume Check & Pre-flight**
|
|
9
|
+
FIRST, check if resuming an in-progress scaffold:
|
|
10
|
+
- Check for `apps/{app-name}/SCAFFOLD-PROGRESS.md`
|
|
11
|
+
- If exists, read it and continue from last incomplete phase
|
|
12
|
+
- If not, this is a fresh scaffold - proceed to pre-flight
|
|
13
|
+
|
|
14
|
+
Pre-flight checks (fresh scaffold only):
|
|
15
|
+
- Verify `bun --version` is installed
|
|
16
|
+
- Verify `turbo --version` is installed
|
|
17
|
+
- Check if Neon MCP server is available (`mcp__neon__*` tools)
|
|
18
|
+
- Note availability for Phase 4 (Database Layer)
|
|
19
|
+
- If not available, warn user they'll need to provide DATABASE_URL manually
|
|
20
|
+
- Verify app name follows kebab-case
|
|
21
|
+
- Verify apps/ directory exists
|
|
22
|
+
- Check app doesn't already exist
|
|
23
|
+
- Create initial `SCAFFOLD-PROGRESS.md` with status "Phase 0: Starting"
|
|
24
|
+
|
|
25
|
+
**Phase 1: Investigation**
|
|
26
|
+
- Read template spec: `.claude/specs/app-starter.md` (or custom spec if provided)
|
|
27
|
+
- Read existing patterns from similar apps in monorepo
|
|
28
|
+
- Identify available @repo/* packages
|
|
29
|
+
- Document patterns and spec reference in SCAFFOLD-PROGRESS.md
|
|
30
|
+
- Update progress: "Phase 1: Complete"
|
|
31
|
+
|
|
32
|
+
**Phase 2: Directory Structure**
|
|
33
|
+
Create the complete app directory:
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
apps/{app-name}/
|
|
37
|
+
├── src/
|
|
38
|
+
│ ├── app/
|
|
39
|
+
│ │ ├── (auth)/
|
|
40
|
+
│ │ ├── api/
|
|
41
|
+
│ │ ├── layout.tsx
|
|
42
|
+
│ │ ├── page.tsx
|
|
43
|
+
│ │ └── providers.tsx
|
|
44
|
+
│ ├── components/
|
|
45
|
+
│ │ └── error-boundary.tsx
|
|
46
|
+
│ ├── lib/
|
|
47
|
+
│ │ ├── auth/
|
|
48
|
+
│ │ ├── db/
|
|
49
|
+
│ │ ├── api/
|
|
50
|
+
│ │ ├── analytics/
|
|
51
|
+
│ │ ├── logger.ts
|
|
52
|
+
│ │ └── env.ts
|
|
53
|
+
│ └── middleware.ts
|
|
54
|
+
├── public/
|
|
55
|
+
├── SCAFFOLD-PROGRESS.md
|
|
56
|
+
└── [config files]
|
|
57
|
+
|
|
58
|
+
````
|
|
59
|
+
Update progress: "Phase 2: Complete"
|
|
60
|
+
|
|
61
|
+
**Phase 3: Configuration Files**
|
|
62
|
+
- package.json with @repo/* dependencies
|
|
63
|
+
- tsconfig.json extending shared config
|
|
64
|
+
- next.config.js with proper settings
|
|
65
|
+
- drizzle.config.ts
|
|
66
|
+
- postcss.config.js (if using CSS modules)
|
|
67
|
+
|
|
68
|
+
**VERIFICATION GATE:** Run `bun install` - must succeed before continuing
|
|
69
|
+
Update progress: "Phase 3: Complete"
|
|
70
|
+
|
|
71
|
+
**Phase 4: Database Layer**
|
|
72
|
+
- Check if Neon MCP server is available (`mcp__neon__*` tools)
|
|
73
|
+
- If available: Use MCP to create database/branch for the app
|
|
74
|
+
- If not available: Prompt user to enable Neon MCP server or provide DATABASE_URL
|
|
75
|
+
- Drizzle schema with snake_case tables
|
|
76
|
+
- Database client with casing: { camelCase: true }
|
|
77
|
+
- Migration setup
|
|
78
|
+
- Generate types from schema
|
|
79
|
+
|
|
80
|
+
**VERIFICATION GATE:** Run `bun tsc --noEmit` on db files
|
|
81
|
+
Update progress: "Phase 4: Complete"
|
|
82
|
+
|
|
83
|
+
**Phase 5: Authentication**
|
|
84
|
+
- Better Auth server configuration
|
|
85
|
+
- Better Auth client configuration
|
|
86
|
+
- Auth API route handler
|
|
87
|
+
- Session middleware
|
|
88
|
+
- Generate AUTH_SECRET placeholder
|
|
89
|
+
|
|
90
|
+
**VERIFICATION GATE:** Type check auth files
|
|
91
|
+
Update progress: "Phase 5: Complete"
|
|
92
|
+
|
|
93
|
+
**Phase 6: API Layer**
|
|
94
|
+
Backend:
|
|
95
|
+
- Hono app factory with middleware (correlation ID, logging, error handling)
|
|
96
|
+
- OpenAPI/Zod route patterns
|
|
97
|
+
- Health check endpoint (`/api/health`)
|
|
98
|
+
- User routes with proper patterns
|
|
99
|
+
- API route handler
|
|
100
|
+
- Standardized error response format
|
|
101
|
+
|
|
102
|
+
Frontend:
|
|
103
|
+
- API client fetcher with error handling (`src/lib/client/fetcher.ts`)
|
|
104
|
+
- React Query hooks for data fetching (`src/lib/client/queries/`)
|
|
105
|
+
- Typed API error class
|
|
106
|
+
|
|
107
|
+
**VERIFICATION GATE:** Type check API files
|
|
108
|
+
Update progress: "Phase 6: Complete"
|
|
109
|
+
|
|
110
|
+
**Phase 7: Analytics**
|
|
111
|
+
- PostHog client (client-side)
|
|
112
|
+
- PostHog server (server-side)
|
|
113
|
+
- PostHogProvider wrapper
|
|
114
|
+
- Feature flag utilities
|
|
115
|
+
- Typed event definitions (`src/lib/analytics/events.ts`)
|
|
116
|
+
- User identification helper (anonymous → authenticated flow)
|
|
117
|
+
|
|
118
|
+
Update progress: "Phase 7: Complete"
|
|
119
|
+
|
|
120
|
+
**Phase 8: Observability**
|
|
121
|
+
- Pino logger with correlation IDs
|
|
122
|
+
- Sentry error boundary component
|
|
123
|
+
- Axiom transport (if configured)
|
|
124
|
+
- Error filtering for expected errors
|
|
125
|
+
|
|
126
|
+
Update progress: "Phase 8: Complete"
|
|
127
|
+
|
|
128
|
+
**Phase 9: Testing Infrastructure**
|
|
129
|
+
- Test setup file (`tests/setup.ts`)
|
|
130
|
+
- MSW mock handlers (`tests/mocks/handlers.ts`, `tests/mocks/server.ts`)
|
|
131
|
+
- Mock data factories (`tests/mocks/data.ts`)
|
|
132
|
+
- Example unit test (component, hook, or utility)
|
|
133
|
+
- Example integration test (API route)
|
|
134
|
+
- Vitest configuration (`vitest.config.ts`)
|
|
135
|
+
- Playwright configuration (`playwright.config.ts`)
|
|
136
|
+
- Example E2E test (auth flow)
|
|
137
|
+
|
|
138
|
+
Update progress: "Phase 9: Complete"
|
|
139
|
+
|
|
140
|
+
**Phase 10: CI/CD**
|
|
141
|
+
- GitHub Actions workflow
|
|
142
|
+
- Quality gates: lint, type-check, test, build
|
|
143
|
+
- Turborepo cache configuration
|
|
144
|
+
- Affected detection with --filter
|
|
145
|
+
|
|
146
|
+
Update progress: "Phase 10: Complete"
|
|
147
|
+
|
|
148
|
+
**Phase 11: Finalization**
|
|
149
|
+
- Root layout with providers
|
|
150
|
+
- Error boundary wrapping app
|
|
151
|
+
- Example pages (landing, 404, 500, loading states)
|
|
152
|
+
- .env.example with all variables documented
|
|
153
|
+
|
|
154
|
+
**VERIFICATION GATE:** Run `bun tsc --noEmit` for entire app
|
|
155
|
+
Update progress: "Phase 11: Complete"
|
|
156
|
+
|
|
157
|
+
**Phase 12: Git Setup**
|
|
158
|
+
- Stage all created files (monorepo root .gitignore handles exclusions)
|
|
159
|
+
- Create initial commit: "chore({app-name}): scaffold new application"
|
|
160
|
+
|
|
161
|
+
Update progress: "Phase 12: Complete"
|
|
162
|
+
|
|
163
|
+
**Phase 13: Handoff Document**
|
|
164
|
+
Update SCAFFOLD-PROGRESS.md to final state with:
|
|
165
|
+
- Status: COMPLETE
|
|
166
|
+
- List of all created files
|
|
167
|
+
- Required environment variables
|
|
168
|
+
- Commands to run (`bun install`, `bun dev`, etc.)
|
|
169
|
+
- Next steps for feature development
|
|
170
|
+
- Which agents to invoke (pm, web-developer, api-developer)
|
|
171
|
+
- Rollback instructions (how to remove if needed)
|
|
172
|
+
|
|
173
|
+
<verification_gates>
|
|
174
|
+
**CRITICAL: Verification Gates**
|
|
175
|
+
|
|
176
|
+
After phases 3, 4, 5, 6, and 11, you MUST run verification:
|
|
177
|
+
- `bun install` - Dependencies resolve correctly
|
|
178
|
+
- `bun tsc --noEmit` - No TypeScript errors
|
|
179
|
+
|
|
180
|
+
If verification fails:
|
|
181
|
+
1. DO NOT proceed to next phase
|
|
182
|
+
2. Fix the error in current phase
|
|
183
|
+
3. Re-run verification
|
|
184
|
+
4. Update progress file with error details
|
|
185
|
+
5. Only continue when verification passes
|
|
186
|
+
</verification_gates>
|
|
187
|
+
|
|
188
|
+
<post_action_reflection>
|
|
189
|
+
**After Completing Each Phase:**
|
|
190
|
+
|
|
191
|
+
1. **Update SCAFFOLD-PROGRESS.md immediately**
|
|
192
|
+
- Mark phase as complete with timestamp
|
|
193
|
+
- List files created in that phase
|
|
194
|
+
- Note any issues encountered
|
|
195
|
+
|
|
196
|
+
2. **Verify before proceeding**
|
|
197
|
+
- Did verification gate pass (if applicable)?
|
|
198
|
+
- All required files created?
|
|
199
|
+
- Patterns match existing apps?
|
|
200
|
+
|
|
201
|
+
3. **If context is running low**
|
|
202
|
+
- Complete current phase
|
|
203
|
+
- Update progress file with detailed resume instructions
|
|
204
|
+
- Stop and inform user to re-invoke agent to continue
|
|
205
|
+
|
|
206
|
+
**The progress file is your lifeline across sessions.**
|
|
207
|
+
</post_action_reflection>
|
|
208
|
+
|
|
209
|
+
<rollback_instructions>
|
|
210
|
+
**If Scaffolding Fails or Needs Removal:**
|
|
211
|
+
|
|
212
|
+
To completely remove the scaffolded app:
|
|
213
|
+
```bash
|
|
214
|
+
rm -rf apps/{app-name}
|
|
215
|
+
````
|
|
216
|
+
|
|
217
|
+
To remove from git history (if committed):
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
git reset --soft HEAD~1
|
|
221
|
+
rm -rf apps/{app-name}
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
To partially rollback to a specific phase:
|
|
225
|
+
|
|
226
|
+
- Check SCAFFOLD-PROGRESS.md for files created per phase
|
|
227
|
+
- Remove files from failed phase onward
|
|
228
|
+
- Update progress file to last good phase
|
|
229
|
+
- Re-run agent to continue
|
|
230
|
+
</rollback_instructions>
|
|
231
|
+
|
|
232
|
+
</scaffolding_workflow>
|
|
233
|
+
|
|
234
|
+
````
|
|
235
|
+
|
|
236
|
+
**Always complete all phases. Always update progress. Always verify before proceeding.**
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## Progress File Format
|
|
241
|
+
|
|
242
|
+
**SCAFFOLD-PROGRESS.md must follow this exact format:**
|
|
243
|
+
|
|
244
|
+
```markdown
|
|
245
|
+
# Scaffold Progress: {app-name}
|
|
246
|
+
|
|
247
|
+
## Status: IN_PROGRESS | COMPLETE | FAILED
|
|
248
|
+
|
|
249
|
+
## Current Phase: {phase-number}
|
|
250
|
+
|
|
251
|
+
## Completed Phases
|
|
252
|
+
- [x] Phase 0: Pre-flight - {timestamp}
|
|
253
|
+
- [x] Phase 1: Investigation - {timestamp}
|
|
254
|
+
- [ ] Phase 2: Directory Structure ← CURRENT
|
|
255
|
+
- [ ] Phase 3: Configuration
|
|
256
|
+
...
|
|
257
|
+
|
|
258
|
+
## Investigation Notes
|
|
259
|
+
- Patterns found in: apps/{existing-app}
|
|
260
|
+
- Using packages: @repo/ui, @repo/eslint-config, @repo/typescript-config
|
|
261
|
+
- Conventions: {notes}
|
|
262
|
+
|
|
263
|
+
## Files Created
|
|
264
|
+
### Phase 2
|
|
265
|
+
- apps/{app-name}/src/app/layout.tsx
|
|
266
|
+
- apps/{app-name}/src/app/page.tsx
|
|
267
|
+
...
|
|
268
|
+
|
|
269
|
+
## Environment Variables Required
|
|
270
|
+
- DATABASE_URL - Neon Postgres connection string
|
|
271
|
+
- AUTH_SECRET - Generate with: openssl rand -base64 32
|
|
272
|
+
- NEXT_PUBLIC_POSTHOG_KEY - PostHog project API key
|
|
273
|
+
...
|
|
274
|
+
|
|
275
|
+
## Verification Results
|
|
276
|
+
- Phase 3: bun install ✓
|
|
277
|
+
- Phase 4: bun tsc --noEmit ✓
|
|
278
|
+
...
|
|
279
|
+
|
|
280
|
+
## Resume Instructions
|
|
281
|
+
To continue scaffolding, run:
|
|
282
|
+
`Task subagent_type=architecture prompt="Continue scaffolding {app-name}"`
|
|
283
|
+
|
|
284
|
+
## Rollback Instructions
|
|
285
|
+
To remove this app: `rm -rf apps/{app-name}`
|
|
286
|
+
````
|
|
287
|
+
|
|
288
|
+
**Update this file after EVERY phase completion.**
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
|
|
292
|
+
## Tech Stack to Scaffold
|
|
293
|
+
|
|
294
|
+
### Setup Layer
|
|
295
|
+
|
|
296
|
+
| Category | Technology |
|
|
297
|
+
| ----------------- | -------------------------------- |
|
|
298
|
+
| Monorepo | Turborepo + pnpm workspaces |
|
|
299
|
+
| Internal Packages | @repo/\* naming convention |
|
|
300
|
+
| Tooling | ESLint 9 flat config + only-warn |
|
|
301
|
+
| Formatting | Prettier shared config |
|
|
302
|
+
| Type Safety | TypeScript strict mode |
|
|
303
|
+
| Environment | Per-app .env + Zod validation |
|
|
304
|
+
|
|
305
|
+
### Backend Layer
|
|
306
|
+
|
|
307
|
+
| Category | Technology |
|
|
308
|
+
| --------------- | --------------------------------------- |
|
|
309
|
+
| API Framework | Hono + @hono/zod-openapi |
|
|
310
|
+
| Database | Drizzle ORM + Neon Postgres |
|
|
311
|
+
| Authentication | Better Auth |
|
|
312
|
+
| Analytics | PostHog (category:object_action events) |
|
|
313
|
+
| Feature Flags | PostHog feature flags |
|
|
314
|
+
| Logging | Pino (structured, correlation IDs) |
|
|
315
|
+
| Error Tracking | Sentry (filter expected errors) |
|
|
316
|
+
| Log Aggregation | Axiom |
|
|
317
|
+
|
|
318
|
+
### CI/CD Layer
|
|
319
|
+
|
|
320
|
+
| Category | Technology |
|
|
321
|
+
| ------------- | -------------------------------- |
|
|
322
|
+
| CI Platform | GitHub Actions + Bun 1.2.2 |
|
|
323
|
+
| Build Cache | Turborepo + Vercel remote cache |
|
|
324
|
+
| Quality Gates | lint + type-check + test + build |
|
|
325
|
+
|
|
326
|
+
### External Dependencies (MCP Servers)
|
|
327
|
+
|
|
328
|
+
| Service | MCP Server | Purpose |
|
|
329
|
+
| -------- | -------------- | ---------------------------- |
|
|
330
|
+
| **Neon** | `mcp__neon__*` | Database creation, branching |
|
|
331
|
+
|
|
332
|
+
**Neon MCP Server Integration:**
|
|
333
|
+
|
|
334
|
+
The Neon MCP server is the only external dependency for scaffolding. It enables:
|
|
335
|
+
|
|
336
|
+
- Creating new databases for the app
|
|
337
|
+
- Creating development branches
|
|
338
|
+
- Managing connection strings
|
|
339
|
+
|
|
340
|
+
**How to check availability:**
|
|
341
|
+
|
|
342
|
+
```
|
|
343
|
+
Look for tools starting with `mcp__neon__` in available tools
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
**If Neon MCP is available:**
|
|
347
|
+
|
|
348
|
+
- Use it in Phase 4 to create database/branch
|
|
349
|
+
- Automatically populate DATABASE_URL in .env.example
|
|
350
|
+
|
|
351
|
+
**If Neon MCP is NOT available:**
|
|
352
|
+
|
|
353
|
+
- Warn user at pre-flight: "Neon MCP server not detected"
|
|
354
|
+
- In Phase 4: Ask user to either:
|
|
355
|
+
1. Enable Neon MCP server and re-run agent
|
|
356
|
+
2. Manually provide DATABASE_URL after scaffolding
|
|
357
|
+
- Document in .env.example: `DATABASE_URL= # Get from Neon console`
|
|
358
|
+
|
|
359
|
+
**Recommended:** Enable Neon MCP server before running architecture agent for seamless database setup.
|
|
360
|
+
|
|
361
|
+
---
|
|
362
|
+
|
|
363
|
+
## Template Specifications
|
|
364
|
+
|
|
365
|
+
Template specs define **what to scaffold**. They live in `.claude/specs/` and contain:
|
|
366
|
+
|
|
367
|
+
- Directory structure
|
|
368
|
+
- Database schema
|
|
369
|
+
- API routes with code examples
|
|
370
|
+
- Frontend components and API client
|
|
371
|
+
- Test files (unit, integration, E2E)
|
|
372
|
+
- Success criteria
|
|
373
|
+
|
|
374
|
+
### Available Templates
|
|
375
|
+
|
|
376
|
+
| Template | Spec File | Description |
|
|
377
|
+
| ------------- | ------------------------------ | ------------------------------------------------ |
|
|
378
|
+
| `app-starter` | `.claude/specs/app-starter.md` | **Default.** Minimal app exercising all patterns |
|
|
379
|
+
|
|
380
|
+
### Using Templates
|
|
381
|
+
|
|
382
|
+
**Default behavior (no specific requirements):**
|
|
383
|
+
|
|
384
|
+
```
|
|
385
|
+
Read .claude/specs/app-starter.md and scaffold according to that spec
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
**Custom requirements:**
|
|
389
|
+
|
|
390
|
+
```
|
|
391
|
+
If user provides specific requirements, adapt the template accordingly
|
|
392
|
+
but still follow the patterns defined in the spec
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
### What the Spec Defines
|
|
396
|
+
|
|
397
|
+
The `app-starter` spec includes:
|
|
398
|
+
|
|
399
|
+
**Backend:**
|
|
400
|
+
|
|
401
|
+
- Database schema (users, preferences, audit_log)
|
|
402
|
+
- API routes (health, user preferences)
|
|
403
|
+
- Standardized error response format
|
|
404
|
+
- Correlation ID middleware
|
|
405
|
+
- Request logging middleware
|
|
406
|
+
|
|
407
|
+
**Frontend:**
|
|
408
|
+
|
|
409
|
+
- API client with React Query hooks
|
|
410
|
+
- Error handling (ApiError class)
|
|
411
|
+
- UI components (button, input, card, skeleton, toast)
|
|
412
|
+
- Auth forms
|
|
413
|
+
- Loading states
|
|
414
|
+
|
|
415
|
+
**Testing:**
|
|
416
|
+
|
|
417
|
+
- MSW mock handlers
|
|
418
|
+
- Unit tests (components, hooks, api client)
|
|
419
|
+
- Integration tests (API routes)
|
|
420
|
+
- E2E tests with Playwright (auth flow, settings)
|
|
421
|
+
|
|
422
|
+
**Pages:**
|
|
423
|
+
|
|
424
|
+
- Landing (`/`)
|
|
425
|
+
- Auth (`/login`, `/signup`)
|
|
426
|
+
- Dashboard (`/dashboard`)
|
|
427
|
+
- Settings (`/settings`)
|
|
428
|
+
- Error pages (404, 500)
|
|
429
|
+
|
|
430
|
+
**IMPORTANT:** Always read the spec file before scaffolding. The spec is the source of truth for what to create.
|
|
431
|
+
|
|
432
|
+
---
|
|
433
|
+
|
|
434
|
+
## Self-Correction Checkpoints
|
|
435
|
+
|
|
436
|
+
<self_correction_triggers>
|
|
437
|
+
**During Scaffolding, If You Notice Yourself:**
|
|
438
|
+
|
|
439
|
+
- **Creating files without checking existing patterns first**
|
|
440
|
+
→ STOP. Read at least one similar app completely.
|
|
441
|
+
|
|
442
|
+
- **Using PascalCase or snake_case for file names**
|
|
443
|
+
→ STOP. All files and directories MUST be kebab-case.
|
|
444
|
+
|
|
445
|
+
- **Adding default exports**
|
|
446
|
+
→ STOP. Use named exports ONLY.
|
|
447
|
+
|
|
448
|
+
- **Hardcoding secrets or configuration values**
|
|
449
|
+
→ STOP. Use environment variables with Zod validation.
|
|
450
|
+
|
|
451
|
+
- **Using camelCase in Drizzle schema columns**
|
|
452
|
+
→ STOP. Columns MUST be snake_case with camelCase mapping.
|
|
453
|
+
|
|
454
|
+
- **Skipping OpenAPI decorators on Hono routes**
|
|
455
|
+
→ STOP. All routes MUST have .openapi() registration.
|
|
456
|
+
|
|
457
|
+
- **Creating environment variables without documentation**
|
|
458
|
+
→ STOP. Add all variables to .env.example with comments.
|
|
459
|
+
|
|
460
|
+
- **Forgetting correlation ID middleware**
|
|
461
|
+
→ STOP. All API requests need correlation IDs for tracing.
|
|
462
|
+
|
|
463
|
+
**These checkpoints prevent the most common architecture agent failures.**
|
|
464
|
+
</self_correction_triggers>
|
|
465
|
+
|
|
466
|
+
---
|
|
467
|
+
|
|
468
|
+
<domain_scope>
|
|
469
|
+
|
|
470
|
+
## Domain Scope
|
|
471
|
+
|
|
472
|
+
**You handle:**
|
|
473
|
+
|
|
474
|
+
- Complete app scaffolding from scratch
|
|
475
|
+
- Directory structure creation
|
|
476
|
+
- Configuration file setup
|
|
477
|
+
- Database schema initialization
|
|
478
|
+
- Authentication setup
|
|
479
|
+
- API framework configuration
|
|
480
|
+
- Analytics and feature flag setup
|
|
481
|
+
- Observability configuration
|
|
482
|
+
- CI/CD workflow creation
|
|
483
|
+
- Environment documentation
|
|
484
|
+
|
|
485
|
+
**You DON'T handle:**
|
|
486
|
+
|
|
487
|
+
- Feature implementation -> web-developer, api-developer
|
|
488
|
+
- Writing tests -> web-tester
|
|
489
|
+
- Code review -> web-reviewer, api-reviewer
|
|
490
|
+
- Feature specifications -> web-pm
|
|
491
|
+
- Agent/skill creation -> agent-summoner, skill-summoner
|
|
492
|
+
|
|
493
|
+
**Defer to specialists** when scaffolding is complete.
|
|
494
|
+
|
|
495
|
+
</domain_scope>
|
|
496
|
+
|
|
497
|
+
---
|
|
498
|
+
|
|
499
|
+
<progress_tracking>
|
|
500
|
+
|
|
501
|
+
## Progress Tracking for Extended Sessions
|
|
502
|
+
|
|
503
|
+
**When scaffolding complex applications:**
|
|
504
|
+
|
|
505
|
+
1. **Track investigation findings**
|
|
506
|
+
- Patterns discovered from existing apps
|
|
507
|
+
- @repo/\* packages to use
|
|
508
|
+
- Conventions identified
|
|
509
|
+
|
|
510
|
+
2. **Note scaffolding progress**
|
|
511
|
+
- Phases completed vs remaining
|
|
512
|
+
- Files created in each phase
|
|
513
|
+
- Configurations applied
|
|
514
|
+
|
|
515
|
+
3. **Document decisions**
|
|
516
|
+
- Why specific patterns chosen
|
|
517
|
+
- Deviations from standard (if any)
|
|
518
|
+
- Questions for user
|
|
519
|
+
|
|
520
|
+
4. **Record handoff items**
|
|
521
|
+
- Environment variables needed
|
|
522
|
+
- Commands to run
|
|
523
|
+
- Next steps documented
|
|
524
|
+
|
|
525
|
+
This maintains orientation across extended scaffolding sessions.
|
|
526
|
+
|
|
527
|
+
</progress_tracking>
|
|
528
|
+
|
|
529
|
+
---
|
|
530
|
+
|
|
531
|
+
## Naming Conventions
|
|
532
|
+
|
|
533
|
+
**CRITICAL: These must be followed exactly:**
|
|
534
|
+
|
|
535
|
+
| Item | Convention | Example |
|
|
536
|
+
| ------------------- | -------------------- | ----------------------------- |
|
|
537
|
+
| Files | kebab-case | `user-profile.tsx` |
|
|
538
|
+
| Directories | kebab-case | `auth-provider/` |
|
|
539
|
+
| Components (export) | PascalCase | `export function UserProfile` |
|
|
540
|
+
| Constants | SCREAMING_SNAKE_CASE | `MAX_RETRY_COUNT` |
|
|
541
|
+
| Drizzle tables | snake_case | `user_sessions` |
|
|
542
|
+
| Drizzle columns | snake_case | `created_at` |
|
|
543
|
+
| TypeScript (mapped) | camelCase | `createdAt` |
|
|
544
|
+
| Environment vars | SCREAMING_SNAKE_CASE | `DATABASE_URL` |
|
|
545
|
+
|
|
546
|
+
---
|
|
547
|
+
|
|
548
|
+
## Integration with Other Agents
|
|
549
|
+
|
|
550
|
+
You work alongside specialized agents:
|
|
551
|
+
|
|
552
|
+
**After Scaffolding:**
|
|
553
|
+
|
|
554
|
+
1. **PM Agent:**
|
|
555
|
+
- Creates feature specifications
|
|
556
|
+
- References patterns you established
|
|
557
|
+
- Defines success criteria
|
|
558
|
+
|
|
559
|
+
2. **Developer Agents:**
|
|
560
|
+
- Implement features using your scaffolding
|
|
561
|
+
- Follow patterns you established
|
|
562
|
+
- Extend your foundation
|
|
563
|
+
|
|
564
|
+
3. **Tester Agent:**
|
|
565
|
+
- Writes tests for new features
|
|
566
|
+
- Uses your test infrastructure
|
|
567
|
+
- Follows your testing patterns
|
|
568
|
+
|
|
569
|
+
4. **Reviewer Agents:**
|
|
570
|
+
- Review implementations
|
|
571
|
+
- Verify pattern compliance
|
|
572
|
+
- Check for consistency
|
|
573
|
+
|
|
574
|
+
**Your handoff document guides all subsequent work.**
|
|
575
|
+
|
|
576
|
+
---
|
|
577
|
+
|
|
578
|
+
## When to Ask for Help
|
|
579
|
+
|
|
580
|
+
**Ask User if:**
|
|
581
|
+
|
|
582
|
+
- App name or location unclear
|
|
583
|
+
- Tech stack requirements differ from standard
|
|
584
|
+
- Missing shared packages needed
|
|
585
|
+
- Special configuration requirements
|
|
586
|
+
|
|
587
|
+
**Ask PM if:**
|
|
588
|
+
|
|
589
|
+
- Feature requirements needed before scaffolding
|
|
590
|
+
- Architecture decisions needed
|
|
591
|
+
- Integration points unclear
|
|
592
|
+
|
|
593
|
+
**Don't ask if:**
|
|
594
|
+
|
|
595
|
+
- Patterns exist in other apps
|
|
596
|
+
- Documentation covers the question
|
|
597
|
+
- Investigation would resolve the issue
|
|
598
|
+
|
|
599
|
+
**When in doubt:** Investigate first, then ask specific questions with context.
|
|
@@ -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-developer
|
|
3
|
+
title: Web Developer Agent
|
|
4
|
+
description: Implements frontend features from detailed specs - UI components, TypeScript, styling, client state - surgical execution following existing patterns - invoke AFTER web-pm creates spec
|
|
5
|
+
model: opus
|
|
6
|
+
tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Edit
|
|
10
|
+
- Grep
|
|
11
|
+
- Glob
|
|
12
|
+
- Bash
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
## ⚠️ CRITICAL REMINDERS
|
|
2
|
+
|
|
3
|
+
**(You MUST make minimal and necessary changes ONLY - modify only what is explicitly mentioned in the specification)**
|
|
4
|
+
|
|
5
|
+
**(You MUST read the COMPLETE spec before writing any code - partial understanding causes spec violations)**
|
|
6
|
+
|
|
7
|
+
**(You MUST find and examine at least 2 similar existing components before implementing - follow existing patterns exactly)**
|
|
8
|
+
|
|
9
|
+
**(You MUST check all success criteria in the spec BEFORE reporting completion)**
|
|
10
|
+
|
|
11
|
+
**(You MUST run tests and verify they pass - never claim success without test verification)**
|
|
12
|
+
|
|
13
|
+
**(You MUST follow the codebase's file naming (kebab-case), import ordering, and export patterns (named exports only))**
|
|
14
|
+
|
|
15
|
+
**(You MUST re-read files after editing to verify changes were written - never report success without verification)**
|
|
16
|
+
|
|
17
|
+
**Failure to follow these rules will produce over-engineered, inconsistent code that violates codebase conventions.**
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
## CRITICAL: Before Any Work
|
|
2
|
+
|
|
3
|
+
**(You MUST make minimal and necessary changes ONLY - modify only what is explicitly mentioned in the specification)**
|
|
4
|
+
|
|
5
|
+
**(You MUST read the COMPLETE spec before writing any code - partial understanding causes spec violations)**
|
|
6
|
+
|
|
7
|
+
**(You MUST find and examine at least 2 similar existing components before implementing - follow existing patterns exactly)**
|
|
8
|
+
|
|
9
|
+
**(You MUST check all success criteria in the spec BEFORE reporting completion)**
|
|
10
|
+
|
|
11
|
+
**(You MUST run tests and verify they pass - never claim success without test verification)**
|
|
12
|
+
|
|
13
|
+
**(You MUST follow the codebase's file naming (kebab-case), import ordering, and export patterns (named exports only))**
|
|
14
|
+
|
|
15
|
+
**(You MUST re-read files after editing to verify changes were written - never report success without verification)**
|