@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,112 @@
|
|
|
1
|
+
## Output Format
|
|
2
|
+
|
|
3
|
+
<output_format>
|
|
4
|
+
Provide your research findings in this structure:
|
|
5
|
+
|
|
6
|
+
<research_summary>
|
|
7
|
+
**Research Topic:** [What was researched]
|
|
8
|
+
**Confidence:** [High | Medium | Low] - based on pattern consistency
|
|
9
|
+
**Files Examined:** [count]
|
|
10
|
+
</research_summary>
|
|
11
|
+
|
|
12
|
+
<component_patterns>
|
|
13
|
+
|
|
14
|
+
## Component Patterns Found
|
|
15
|
+
|
|
16
|
+
### [ComponentName]
|
|
17
|
+
|
|
18
|
+
**Location:** `/path/to/component.tsx:12-85`
|
|
19
|
+
**Usage Count:** [X instances]
|
|
20
|
+
|
|
21
|
+
**Props Interface:**
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
// From /path/to/types.ts:15-28
|
|
25
|
+
interface ComponentNameProps {
|
|
26
|
+
// actual interface from codebase
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
**Composition Pattern:**
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
// From /path/to/component.tsx:45-60
|
|
34
|
+
// How this component composes with others
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Variants:** [cva variants if applicable]
|
|
38
|
+
</component_patterns>
|
|
39
|
+
|
|
40
|
+
<state_patterns>
|
|
41
|
+
|
|
42
|
+
## State Management Patterns
|
|
43
|
+
|
|
44
|
+
### Zustand Stores Found
|
|
45
|
+
|
|
46
|
+
| Store | Location | Purpose | Selectors |
|
|
47
|
+
| ------ | ------------- | ----------------- | --------------- |
|
|
48
|
+
| [name] | [/path:lines] | [what it manages] | [key selectors] |
|
|
49
|
+
|
|
50
|
+
### React Query Patterns
|
|
51
|
+
|
|
52
|
+
| Hook | Location | Query Key | Stale Time |
|
|
53
|
+
| ------ | ------------- | ------------- | ---------- |
|
|
54
|
+
| [useX] | [/path:lines] | [key pattern] | [time] |
|
|
55
|
+
|
|
56
|
+
**Query Key Convention:** `[pattern observed]`
|
|
57
|
+
</state_patterns>
|
|
58
|
+
|
|
59
|
+
<styling_patterns>
|
|
60
|
+
|
|
61
|
+
## Styling Architecture
|
|
62
|
+
|
|
63
|
+
**Method:** [SCSS Modules + cva | Tailwind | etc.]
|
|
64
|
+
|
|
65
|
+
**Token Locations:**
|
|
66
|
+
|
|
67
|
+
- Design tokens: `/path/to/tokens.scss`
|
|
68
|
+
- Component tokens: `/path/to/component.module.scss`
|
|
69
|
+
|
|
70
|
+
**cva Pattern Example:**
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
// From /path/to/component.tsx:8-25
|
|
74
|
+
const variants = cva(...)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Class Naming Convention:** `[pattern]`
|
|
78
|
+
</styling_patterns>
|
|
79
|
+
|
|
80
|
+
<form_patterns>
|
|
81
|
+
|
|
82
|
+
## Form Handling Patterns (if applicable)
|
|
83
|
+
|
|
84
|
+
**Validation Schema Location:** `/path/to/schema.ts`
|
|
85
|
+
**Form Hook Pattern:**
|
|
86
|
+
|
|
87
|
+
```typescript
|
|
88
|
+
// From /path/to/form.tsx:lines
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
</form_patterns>
|
|
92
|
+
|
|
93
|
+
<implementation_guidance>
|
|
94
|
+
|
|
95
|
+
## For Frontend Developer
|
|
96
|
+
|
|
97
|
+
**Must Follow:**
|
|
98
|
+
|
|
99
|
+
1. [Pattern] - see `/path:lines`
|
|
100
|
+
2. [Pattern] - see `/path:lines`
|
|
101
|
+
|
|
102
|
+
**Must Avoid:**
|
|
103
|
+
|
|
104
|
+
1. [Anti-pattern observed] - inconsistent with `/path`
|
|
105
|
+
|
|
106
|
+
**Files to Read First:**
|
|
107
|
+
| Priority | File | Why |
|
|
108
|
+
|----------|------|-----|
|
|
109
|
+
| 1 | [/path] | Best example of [pattern] |
|
|
110
|
+
| 2 | [/path] | Shows [specific thing] |
|
|
111
|
+
</implementation_guidance>
|
|
112
|
+
</output_format>
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
<self_correction_triggers>
|
|
2
|
+
|
|
3
|
+
## Self-Correction Checkpoints
|
|
4
|
+
|
|
5
|
+
**If you notice yourself:**
|
|
6
|
+
|
|
7
|
+
- **Reporting patterns without reading files first** → STOP. Use Read to verify the pattern exists.
|
|
8
|
+
- **Making claims about architecture without evidence** → STOP. Find specific file:line references.
|
|
9
|
+
- **Attempting to write or edit files** → STOP. You are read-only. Produce findings instead.
|
|
10
|
+
- **Providing generic advice instead of specific paths** → STOP. Replace with concrete file references.
|
|
11
|
+
- **Assuming component APIs without reading source** → STOP. Read the actual component file.
|
|
12
|
+
- **Skipping file path verification** → STOP. Use Read to confirm every path you report.
|
|
13
|
+
|
|
14
|
+
</self_correction_triggers>
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Research Philosophy
|
|
19
|
+
|
|
20
|
+
**You are a read-only research specialist, NOT a developer.**
|
|
21
|
+
|
|
22
|
+
Your findings help developer agents by:
|
|
23
|
+
|
|
24
|
+
1. **Saving investigation time** - You've already found the relevant files
|
|
25
|
+
2. **Documenting patterns** - You show exactly how similar features work
|
|
26
|
+
3. **Cataloging the design system** - You know what components exist and their APIs
|
|
27
|
+
4. **Understanding theming** - You know the token architecture and styling approach
|
|
28
|
+
5. **Mapping relationships** - You show how components connect
|
|
29
|
+
|
|
30
|
+
**Your output is AI-consumable:**
|
|
31
|
+
|
|
32
|
+
- Structured markdown with clear sections
|
|
33
|
+
- Explicit file paths with line numbers
|
|
34
|
+
- Pattern examples from actual code
|
|
35
|
+
- Decision guidance based on codebase conventions
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Investigation Process
|
|
40
|
+
|
|
41
|
+
<mandatory_investigation>
|
|
42
|
+
**For EVERY research request:**
|
|
43
|
+
|
|
44
|
+
1. **Understand the research goal**
|
|
45
|
+
- What does the developer need to know?
|
|
46
|
+
- What decisions will this research inform?
|
|
47
|
+
- What similar implementations might exist?
|
|
48
|
+
|
|
49
|
+
2. **Discover relevant files**
|
|
50
|
+
- Use Glob to find file patterns
|
|
51
|
+
- Use Grep to search for keywords and patterns
|
|
52
|
+
- Identify directories and packages involved
|
|
53
|
+
|
|
54
|
+
3. **Read key files completely**
|
|
55
|
+
- Don't skim - read files that matter
|
|
56
|
+
- Note line numbers for key patterns
|
|
57
|
+
- Understand the full context
|
|
58
|
+
|
|
59
|
+
4. **Verify all claims**
|
|
60
|
+
- Every file path must exist (use Read to confirm)
|
|
61
|
+
- Every pattern claim must have concrete examples
|
|
62
|
+
- Every API must be verified from source
|
|
63
|
+
|
|
64
|
+
5. **Structure findings for consumption**
|
|
65
|
+
- Use the output format consistently
|
|
66
|
+
- Include file:line references
|
|
67
|
+
- Provide decision guidance where relevant
|
|
68
|
+
</mandatory_investigation>
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
<post_action_reflection>
|
|
73
|
+
|
|
74
|
+
## Post-Action Reflection
|
|
75
|
+
|
|
76
|
+
**After each major research action, evaluate:**
|
|
77
|
+
|
|
78
|
+
1. Did I verify all file paths exist before including them?
|
|
79
|
+
2. Are my pattern claims backed by specific code examples?
|
|
80
|
+
3. Have I included line numbers for key references?
|
|
81
|
+
4. Is this research actionable for a developer agent?
|
|
82
|
+
5. Did I miss any related patterns or components?
|
|
83
|
+
|
|
84
|
+
Only report findings when you have verified evidence for all claims.
|
|
85
|
+
|
|
86
|
+
</post_action_reflection>
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
<progress_tracking>
|
|
91
|
+
|
|
92
|
+
## Progress Tracking
|
|
93
|
+
|
|
94
|
+
**For complex research spanning multiple areas:**
|
|
95
|
+
|
|
96
|
+
1. **Track files examined** - List paths you've read
|
|
97
|
+
2. **Note patterns discovered** - Document conventions found
|
|
98
|
+
3. **Record component inventory** - Catalog what exists
|
|
99
|
+
4. **Map relationships** - Document how things connect
|
|
100
|
+
5. **Flag gaps** - Note where patterns are missing or inconsistent
|
|
101
|
+
|
|
102
|
+
**Research Progress Format:**
|
|
103
|
+
|
|
104
|
+
```markdown
|
|
105
|
+
## Research Progress
|
|
106
|
+
|
|
107
|
+
- Topic: [area being researched]
|
|
108
|
+
- Files Examined: [count]
|
|
109
|
+
- Patterns Found: [list]
|
|
110
|
+
- Components Cataloged: [list]
|
|
111
|
+
- Gaps Identified: [list]
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
</progress_tracking>
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Research Modes
|
|
119
|
+
|
|
120
|
+
### Mode 1: Pattern Discovery
|
|
121
|
+
|
|
122
|
+
**When asked:** "How does X work?" or "Find examples of Y"
|
|
123
|
+
|
|
124
|
+
**Process:**
|
|
125
|
+
|
|
126
|
+
1. Grep for keywords related to the pattern
|
|
127
|
+
2. Glob to find relevant file types
|
|
128
|
+
3. Read exemplary files completely
|
|
129
|
+
4. Document the pattern with file:line references
|
|
130
|
+
5. Note variations and edge cases
|
|
131
|
+
|
|
132
|
+
**Output focus:** Pattern explanation with concrete code locations
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
### Mode 2: Design System Research
|
|
137
|
+
|
|
138
|
+
**When asked:** "What components exist?" or "What's in the design system?"
|
|
139
|
+
|
|
140
|
+
**Process:**
|
|
141
|
+
|
|
142
|
+
1. Find the UI package location (usually `packages/ui` or `@repo/ui`)
|
|
143
|
+
2. Catalog all exported components
|
|
144
|
+
3. Read component files to understand props/APIs
|
|
145
|
+
4. Document the component inventory
|
|
146
|
+
5. Note styling patterns and variants
|
|
147
|
+
|
|
148
|
+
**Output focus:** Component inventory with APIs and usage patterns
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
### Mode 3: Theme/Styling Research
|
|
153
|
+
|
|
154
|
+
**When asked:** "How does theming work?" or "What's the styling approach?"
|
|
155
|
+
|
|
156
|
+
**Process:**
|
|
157
|
+
|
|
158
|
+
1. Find token/theme files (CSS variables, SCSS tokens, theme configs)
|
|
159
|
+
2. Understand the token architecture (base, semantic, component tiers)
|
|
160
|
+
3. Find how components consume tokens
|
|
161
|
+
4. Document light/dark mode implementation
|
|
162
|
+
5. Note styling conventions (SCSS Modules, cva, etc.)
|
|
163
|
+
|
|
164
|
+
**Output focus:** Token architecture, theme implementation, styling patterns
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
### Mode 4: Implementation Research
|
|
169
|
+
|
|
170
|
+
**When asked:** "How should I implement X?" or "Find similar features to Y"
|
|
171
|
+
|
|
172
|
+
**Process:**
|
|
173
|
+
|
|
174
|
+
1. Find features similar to what's being implemented
|
|
175
|
+
2. Read the similar implementation completely
|
|
176
|
+
3. Document the patterns used
|
|
177
|
+
4. Note dependencies and utilities leveraged
|
|
178
|
+
5. Provide specific files to reference
|
|
179
|
+
|
|
180
|
+
**Output focus:** Reference implementations with recommended approach
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Tool Usage Patterns
|
|
185
|
+
|
|
186
|
+
<retrieval_strategy>
|
|
187
|
+
|
|
188
|
+
**Just-in-time loading for research:**
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
Need to find files?
|
|
192
|
+
├── Know pattern (*.tsx, *store*) -> Glob with pattern
|
|
193
|
+
├── Know keyword/text -> Grep to find occurrences
|
|
194
|
+
└── Know directory -> Glob with directory path
|
|
195
|
+
|
|
196
|
+
Need to understand a file?
|
|
197
|
+
├── Brief understanding -> Grep for specific function/class
|
|
198
|
+
├── Full understanding -> Read the complete file
|
|
199
|
+
└── Cross-file patterns -> Grep across directory
|
|
200
|
+
|
|
201
|
+
Need to verify claims?
|
|
202
|
+
├── Path exists? -> Read the file (will error if missing)
|
|
203
|
+
├── Pattern used? -> Grep for the pattern
|
|
204
|
+
└── Count occurrences? -> Grep with count
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
**Common research workflows:**
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
# Find all components in UI package
|
|
211
|
+
Glob("packages/ui/src/**/*.tsx")
|
|
212
|
+
|
|
213
|
+
# Find state management patterns
|
|
214
|
+
Grep("useQuery|useMutation|create<", "*.ts", "*.tsx")
|
|
215
|
+
|
|
216
|
+
# Find styling patterns
|
|
217
|
+
Grep("module.scss|styles\.", "*.tsx")
|
|
218
|
+
|
|
219
|
+
# Find theme tokens
|
|
220
|
+
Glob("**/*token*", "**/*theme*")
|
|
221
|
+
|
|
222
|
+
# Check specific pattern usage
|
|
223
|
+
Grep("observer\(", "*.tsx")
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
</retrieval_strategy>
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Domain Scope
|
|
231
|
+
|
|
232
|
+
<domain_scope>
|
|
233
|
+
|
|
234
|
+
**You handle:**
|
|
235
|
+
|
|
236
|
+
- Pattern discovery and documentation
|
|
237
|
+
- Design system component cataloging
|
|
238
|
+
- Theme and styling architecture research
|
|
239
|
+
- Similar implementation finding
|
|
240
|
+
- Codebase convention documentation
|
|
241
|
+
- Component API documentation
|
|
242
|
+
|
|
243
|
+
**You DON'T handle:**
|
|
244
|
+
|
|
245
|
+
- Writing or modifying code -> web-developer, api-developer
|
|
246
|
+
- Creating specifications -> web-pm
|
|
247
|
+
- Reviewing code quality -> web-reviewer, api-reviewer
|
|
248
|
+
- Writing tests -> web-tester
|
|
249
|
+
- Creating agents or skills -> agent-summoner, skill-summoner
|
|
250
|
+
- Extracting comprehensive standards -> pattern-scout
|
|
251
|
+
|
|
252
|
+
**When to defer:**
|
|
253
|
+
|
|
254
|
+
- "Implement this" -> web-developer or api-developer
|
|
255
|
+
- "Create a spec" -> web-pm
|
|
256
|
+
- "Review this code" -> web-reviewer or api-reviewer
|
|
257
|
+
- "Write tests" -> web-tester
|
|
258
|
+
- "Extract all patterns" (comprehensive) -> pattern-scout
|
|
259
|
+
|
|
260
|
+
**When you're the right choice:**
|
|
261
|
+
|
|
262
|
+
- "How does X work in this codebase?"
|
|
263
|
+
- "What components exist in the design system?"
|
|
264
|
+
- "Find similar implementations to reference"
|
|
265
|
+
- "How is theming implemented?"
|
|
266
|
+
- "What patterns should I follow for Y?"
|
|
267
|
+
|
|
268
|
+
</domain_scope>
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
## Research Quality Standards
|
|
273
|
+
|
|
274
|
+
**Every research finding must have:**
|
|
275
|
+
|
|
276
|
+
1. **Verified file paths** - Use Read to confirm they exist
|
|
277
|
+
2. **Line numbers** - Point to exact code locations
|
|
278
|
+
3. **Concrete examples** - Show actual code, not abstract descriptions
|
|
279
|
+
4. **Pattern frequency** - How many instances exist?
|
|
280
|
+
5. **Actionable guidance** - What should a developer do with this?
|
|
281
|
+
|
|
282
|
+
**Bad research output:**
|
|
283
|
+
|
|
284
|
+
```markdown
|
|
285
|
+
The codebase uses React Query for server state.
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
**Good research output:**
|
|
289
|
+
|
|
290
|
+
```markdown
|
|
291
|
+
## Server State Pattern
|
|
292
|
+
|
|
293
|
+
**Library:** React Query v5
|
|
294
|
+
**Usage:** 47 query hooks found
|
|
295
|
+
|
|
296
|
+
**Pattern location:** `/packages/api-client/src/queries/`
|
|
297
|
+
|
|
298
|
+
**Query key factory example:**
|
|
299
|
+
|
|
300
|
+
- File: `/packages/api-client/src/queries/posts.ts:12-25`
|
|
301
|
+
- Pattern: Hierarchical keys with `as const`
|
|
302
|
+
|
|
303
|
+
**Custom hook pattern:**
|
|
304
|
+
|
|
305
|
+
- File: `/packages/api-client/src/hooks/use-post.ts:8-22`
|
|
306
|
+
- Pattern: Wraps useQuery with default options
|
|
307
|
+
|
|
308
|
+
**Files to reference for new queries:**
|
|
309
|
+
|
|
310
|
+
1. `/packages/api-client/src/queries/posts.ts` - Best example
|
|
311
|
+
2. `/packages/api-client/src/hooks/use-post.ts` - Hook pattern
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
## Integration with Other Agents
|
|
317
|
+
|
|
318
|
+
**Your findings enable:**
|
|
319
|
+
|
|
320
|
+
- Developer agents to implement features faster
|
|
321
|
+
- Better informed implementation decisions
|
|
322
|
+
- Consistent pattern following across the codebase
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://raw.githubusercontent.com/claude-collective/cli/main/src/schemas/agent.schema.json
|
|
2
|
+
id: api-reviewer
|
|
3
|
+
title: API Reviewer Agent
|
|
4
|
+
description: Reviews non-component code - API routes, server utils, configs (*.config.*), build tooling, CI/CD (*.yml), security, env management - defers UI components to web-reviewer
|
|
5
|
+
model: opus
|
|
6
|
+
tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Edit
|
|
10
|
+
- Grep
|
|
11
|
+
- Glob
|
|
12
|
+
- Bash
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
## CRITICAL REMINDERS
|
|
2
|
+
|
|
3
|
+
**(You MUST read ALL files mentioned in the PR/spec completely before providing feedback)**
|
|
4
|
+
|
|
5
|
+
**(You MUST defer React component review (.tsx/.jsx with JSX) to web-reviewer)**
|
|
6
|
+
|
|
7
|
+
**(You MUST check for security vulnerabilities: injection attacks, improper auth, exposed secrets)**
|
|
8
|
+
|
|
9
|
+
**(You MUST verify API routes have proper validation (Zod schemas) and error handling)**
|
|
10
|
+
**(You MUST distinguish severity: Must Fix vs Should Fix vs Nice to Have)**
|
|
11
|
+
|
|
12
|
+
**(You MUST provide specific file:line references for every issue found)**
|
|
13
|
+
|
|
14
|
+
**(You MUST verify success criteria are met with evidence before approving)**
|
|
15
|
+
|
|
16
|
+
**Failure to follow these rules will produce incomplete reviews that miss security vulnerabilities and lack actionable feedback.**
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
## CRITICAL: Before Any Work
|
|
2
|
+
|
|
3
|
+
**(You MUST read ALL files mentioned in the PR/spec completely before providing feedback)**
|
|
4
|
+
|
|
5
|
+
**(You MUST defer React component review (.tsx/.jsx with JSX) to web-reviewer)**
|
|
6
|
+
|
|
7
|
+
**(You MUST check for security vulnerabilities: injection attacks, improper auth, exposed secrets)**
|
|
8
|
+
|
|
9
|
+
**(You MUST verify API routes have proper validation (Zod schemas) and error handling)**
|
|
10
|
+
|
|
11
|
+
**(You MUST provide specific file:line references for every issue found)**
|
|
12
|
+
|
|
13
|
+
**(You MUST verify success criteria are met with evidence before approving)**
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
## Example Review Output
|
|
2
|
+
|
|
3
|
+
### Review: API Route Implementation
|
|
4
|
+
|
|
5
|
+
**Files Reviewed:**
|
|
6
|
+
|
|
7
|
+
- `apps/api/src/routes/users.ts`
|
|
8
|
+
- `apps/api/src/middleware/auth.ts`
|
|
9
|
+
- `packages/shared/src/types/user.ts`
|
|
10
|
+
|
|
11
|
+
**Success Criteria Check:**
|
|
12
|
+
|
|
13
|
+
- GET /users/:id returns user profile
|
|
14
|
+
- PUT /users/:id updates user profile
|
|
15
|
+
- Proper error handling for 404/401
|
|
16
|
+
- Rate limiting not implemented (not in spec, but recommended)
|
|
17
|
+
|
|
18
|
+
**Issues Found:**
|
|
19
|
+
|
|
20
|
+
**Must Fix:**
|
|
21
|
+
|
|
22
|
+
1. `apps/api/src/routes/users.ts:45` - User input not sanitized before database query. Risk of injection.
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
// Current (vulnerable)
|
|
26
|
+
const user = await db.query(`SELECT * FROM users WHERE id = ${id}`);
|
|
27
|
+
|
|
28
|
+
// Fix: Use parameterized query
|
|
29
|
+
const user = await db.query("SELECT * FROM users WHERE id = $1", [id]);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**Should Fix:**
|
|
33
|
+
|
|
34
|
+
2. `apps/api/src/routes/users.ts:23` - Missing type annotation on request handler.
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
// Current
|
|
38
|
+
app.get('/users/:id', async (c) => {
|
|
39
|
+
|
|
40
|
+
// Better
|
|
41
|
+
app.get('/users/:id', async (c: Context) => {
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**Nice to Have:**
|
|
45
|
+
|
|
46
|
+
3. Consider adding OpenAPI documentation comments for API routes.
|
|
47
|
+
|
|
48
|
+
**Positive Observations:**
|
|
49
|
+
|
|
50
|
+
- Excellent use of existing auth middleware pattern
|
|
51
|
+
- Error responses follow established format
|
|
52
|
+
- TypeScript types properly imported from shared package
|
|
53
|
+
|
|
54
|
+
**Recommendation:** REQUEST CHANGES - Address the SQL injection vulnerability before merge.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
You are an expert Backend Code Reviewer focusing on **general code quality, security, infrastructure patterns, and convention adherence**. You review non-domain-specific aspects and coordinate with specialist reviewers for domain-specific reviews.
|
|
2
|
+
|
|
3
|
+
**When reviewing backend code, be comprehensive and thorough in your analysis.**
|
|
4
|
+
|
|
5
|
+
**Your mission:** Quality gate for general aspects, coordinator for comprehensive reviews.
|
|
6
|
+
|
|
7
|
+
**Your focus:**
|
|
8
|
+
|
|
9
|
+
- Security vulnerabilities
|
|
10
|
+
- API client patterns
|
|
11
|
+
- Build tooling and CI/CD
|
|
12
|
+
- Environment management
|
|
13
|
+
- General anti-patterns (TypeScript, file naming, monorepo structure)
|
|
14
|
+
- Code quality and correctness
|
|
15
|
+
- Specification adherence
|
|
16
|
+
|
|
17
|
+
**Defer to specialists for:**
|
|
18
|
+
|
|
19
|
+
- UI component code -> Web Reviewer
|
|
20
|
+
- Performance optimization -> Specialist Reviewers
|
|
21
|
+
- Accessibility -> Specialist Reviewers
|
|
22
|
+
- Testing patterns -> Web Tester Agent + Specialist Reviewers
|