agents-inc 0.152.1 → 0.153.0
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 +33 -0
- package/README.md +31 -35
- package/dist/{chunk-LDP5ASDM.js → chunk-2HC2SNRP.js} +2 -15
- package/dist/chunk-2HC2SNRP.js.map +1 -0
- package/dist/{chunk-WKTHWQKM.js → chunk-35VOK7XE.js} +1338 -2573
- package/dist/chunk-35VOK7XE.js.map +1 -0
- package/dist/{chunk-SX5H6TSC.js → chunk-4VYALFQZ.js} +11 -8
- package/dist/chunk-4VYALFQZ.js.map +1 -0
- package/dist/{chunk-KXYVJGJP.js → chunk-6CNRMCFM.js} +3 -2
- package/dist/{chunk-KXYVJGJP.js.map → chunk-6CNRMCFM.js.map} +1 -1
- package/dist/{chunk-LZ52XEPR.js → chunk-ACKC577F.js} +7 -6
- package/dist/chunk-ACKC577F.js.map +1 -0
- package/dist/{chunk-XHUODHZ4.js → chunk-BMGBA6HJ.js} +22 -49
- package/dist/chunk-BMGBA6HJ.js.map +1 -0
- package/dist/{chunk-FVDKAVOL.js → chunk-EFU6P3B7.js} +18 -51
- package/dist/chunk-EFU6P3B7.js.map +1 -0
- package/dist/{chunk-STMHDOZD.js → chunk-F7Z5I6GU.js} +12 -9
- package/dist/chunk-F7Z5I6GU.js.map +1 -0
- package/dist/{chunk-E5X6RJ4E.js → chunk-FIHTAFST.js} +29 -26
- package/dist/chunk-FIHTAFST.js.map +1 -0
- package/dist/{chunk-QZZJFYUQ.js → chunk-FRWKCE6R.js} +3 -3
- package/dist/chunk-FRWKCE6R.js.map +1 -0
- package/dist/{chunk-5UWKOOIS.js → chunk-HEBPKK5L.js} +129 -195
- package/dist/chunk-HEBPKK5L.js.map +1 -0
- package/dist/{chunk-MJ2KHG24.js → chunk-IO4VEW5U.js} +6 -6
- package/dist/{chunk-MJ2KHG24.js.map → chunk-IO4VEW5U.js.map} +1 -1
- package/dist/{chunk-TUPYW2IQ.js → chunk-JC7DBPRD.js} +9 -12
- package/dist/chunk-JC7DBPRD.js.map +1 -0
- package/dist/{chunk-5GUOIJSG.js → chunk-JFAUQDZM.js} +3 -15
- package/dist/chunk-JFAUQDZM.js.map +1 -0
- package/dist/{chunk-ZL7PFNHN.js → chunk-K3O3YQYG.js} +2 -2
- package/dist/{chunk-SKQWRUPX.js → chunk-K7PJDWER.js} +59 -33
- package/dist/chunk-K7PJDWER.js.map +1 -0
- package/dist/{chunk-MVR3SYMN.js → chunk-KET3EVGX.js} +4 -3
- package/dist/{chunk-MVR3SYMN.js.map → chunk-KET3EVGX.js.map} +1 -1
- package/dist/{chunk-MWG4VU64.js → chunk-M5HSTNYU.js} +50 -56
- package/dist/chunk-M5HSTNYU.js.map +1 -0
- package/dist/{chunk-TJJPWUMA.js → chunk-NSJ2S7R5.js} +3 -2
- package/dist/{chunk-TJJPWUMA.js.map → chunk-NSJ2S7R5.js.map} +1 -1
- package/dist/{chunk-IHUY4M22.js → chunk-NXGMM5YN.js} +4 -4
- package/dist/chunk-NXQAY5U7.js +18441 -0
- package/dist/chunk-NXQAY5U7.js.map +1 -0
- package/dist/{chunk-Q2KG7UV3.js → chunk-OJJLYHM3.js} +2 -1
- package/dist/{chunk-Q2KG7UV3.js.map → chunk-OJJLYHM3.js.map} +1 -1
- package/dist/{chunk-PZIZNMHK.js → chunk-ORJ5Y222.js} +159 -138
- package/dist/chunk-ORJ5Y222.js.map +1 -0
- package/dist/{chunk-NR3OZGL4.js → chunk-OZXAJNLA.js} +2 -1
- package/dist/{chunk-NR3OZGL4.js.map → chunk-OZXAJNLA.js.map} +1 -1
- package/dist/{chunk-MM7CTTAV.js → chunk-Q5FLW4JG.js} +2 -2
- package/dist/{chunk-MM7CTTAV.js.map → chunk-Q5FLW4JG.js.map} +1 -1
- package/dist/{chunk-GRVKW3CC.js → chunk-R4SEU3DF.js} +3 -2
- package/dist/{chunk-GRVKW3CC.js.map → chunk-R4SEU3DF.js.map} +1 -1
- package/dist/{chunk-76ADG7LQ.js → chunk-R54KIGN2.js} +8 -22
- package/dist/chunk-R54KIGN2.js.map +1 -0
- package/dist/{chunk-SBHBBZKF.js → chunk-REKOWTIB.js} +25 -120
- package/dist/chunk-REKOWTIB.js.map +1 -0
- package/dist/chunk-TY6CAOL7.js +40 -0
- package/dist/chunk-TY6CAOL7.js.map +1 -0
- package/dist/{chunk-BNSRA6HL.js → chunk-U2DNAHFE.js} +39 -176
- package/dist/chunk-U2DNAHFE.js.map +1 -0
- package/dist/{chunk-PMM2MYMA.js → chunk-U2YSGBHA.js} +624 -349
- package/dist/chunk-U2YSGBHA.js.map +1 -0
- package/dist/{chunk-DTSG5XZB.js → chunk-V3ENMW7G.js} +3 -3
- package/dist/{chunk-L7SZXUBJ.js → chunk-VECFAKM5.js} +7 -6
- package/dist/{chunk-L7SZXUBJ.js.map → chunk-VECFAKM5.js.map} +1 -1
- package/dist/chunk-VGEBYCQZ.js +59 -0
- package/dist/chunk-VGEBYCQZ.js.map +1 -0
- package/dist/chunk-VZRO7RYT.js +3694 -0
- package/dist/chunk-VZRO7RYT.js.map +1 -0
- package/dist/{chunk-LASI35KT.js → chunk-WDAO3RUY.js} +14 -28
- package/dist/chunk-WDAO3RUY.js.map +1 -0
- package/dist/{chunk-MQ7FLIYS.js → chunk-WG6V6VJV.js} +3 -2
- package/dist/{chunk-MQ7FLIYS.js.map → chunk-WG6V6VJV.js.map} +1 -1
- package/dist/chunk-X5XJ6WKO.js +284 -0
- package/dist/chunk-X5XJ6WKO.js.map +1 -0
- package/dist/{chunk-RNJWAKMO.js → chunk-XGMOXMS4.js} +9 -8
- package/dist/chunk-XGMOXMS4.js.map +1 -0
- package/dist/{chunk-IUQBOCSU.js → chunk-ZBPEFQ4G.js} +2 -1
- package/dist/{chunk-IUQBOCSU.js.map → chunk-ZBPEFQ4G.js.map} +1 -1
- package/dist/{chunk-QRDTLVXG.js → chunk-ZNDLUWWD.js} +9 -22
- package/dist/chunk-ZNDLUWWD.js.map +1 -0
- package/dist/commands/build/marketplace.js +114 -35
- package/dist/commands/build/marketplace.js.map +1 -1
- package/dist/commands/build/plugins.js +9 -10
- package/dist/commands/build/plugins.js.map +1 -1
- package/dist/commands/compile.js +97 -70
- package/dist/commands/compile.js.map +1 -1
- package/dist/commands/doctor.js +793 -64
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/edit.js +169 -208
- package/dist/commands/edit.js.map +1 -1
- package/dist/commands/eject.js +24 -39
- package/dist/commands/eject.js.map +1 -1
- package/dist/commands/init.js +41 -46
- package/dist/commands/list.js +10 -12
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/search.js +20 -81
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/uninstall.js +25 -31
- package/dist/commands/uninstall.js.map +1 -1
- package/dist/commands/update.js +82 -332
- package/dist/commands/update.js.map +1 -1
- package/dist/components/common/confirm.js +1 -1
- package/dist/components/common/prompt-confirm.js +1 -1
- package/dist/components/common/select-list.js +2 -2
- package/dist/components/common/spinner.js +1 -1
- package/dist/components/wizard/category-grid.js +5 -6
- package/dist/components/wizard/checkbox-grid.js +5 -6
- package/dist/components/wizard/domain-selection.js +12 -13
- package/dist/components/wizard/run-wizard-session.js +30 -36
- package/dist/components/wizard/scroll-affordance.js +2 -2
- package/dist/components/wizard/skill-agent-summary.js +7 -7
- package/dist/components/wizard/source-grid.js +6 -11
- package/dist/components/wizard/stack-selection.js +9 -9
- package/dist/components/wizard/step-agents.js +12 -12
- package/dist/components/wizard/step-build.js +10 -11
- package/dist/components/wizard/step-confirm.js +11 -11
- package/dist/components/wizard/step-sources.js +11 -17
- package/dist/components/wizard/step-stack.js +10 -10
- package/dist/components/wizard/summary-panel.js +10 -10
- package/dist/components/wizard/toast.js +2 -2
- package/dist/components/wizard/wizard-layout.js +15 -16
- package/dist/components/wizard/wizard-tabs.js +6 -12
- package/dist/components/wizard/wizard.js +29 -35
- package/dist/config-exports.js +1 -1
- package/dist/copy-local-skills-KF2RAVD3.js +14 -0
- package/dist/hooks/init.js +49 -48
- package/dist/hooks/init.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/load-agent-defs-DGXGBU3Q.js +15 -0
- package/dist/{loader-5JP4S7CJ.js → loader-4U7UCE2Y.js} +7 -5
- package/dist/recompile-project-agents-CJVBAWDJ.js +20 -0
- package/dist/{source-loader-MZYCPL2S.js → source-loader-ZNSYJJCI.js} +6 -6
- package/dist/src/agents/developer/ai-developer/identity.md +4 -4
- package/dist/src/agents/developer/ai-developer/playbook.md +1 -1
- package/dist/src/agents/developer/api-developer/identity.md +4 -4
- package/dist/src/agents/developer/api-developer/metadata.yaml +1 -1
- package/dist/src/agents/developer/cli-developer/identity.md +4 -4
- package/dist/src/agents/developer/web-developer/identity.md +2 -2
- package/dist/src/agents/developer/web-developer/metadata.yaml +1 -1
- package/dist/src/agents/meta/agent-summoner/identity.md +4 -5
- package/dist/src/agents/meta/agent-summoner/output.md +2 -2
- package/dist/src/agents/meta/agent-summoner/playbook.md +15 -16
- package/dist/src/agents/meta/codex-keeper/identity.md +4 -4
- package/dist/src/agents/meta/codex-keeper/playbook.md +1 -1
- package/dist/src/agents/meta/convention-keeper/identity.md +1 -1
- package/dist/src/agents/meta/skill-summoner/critical-reminders.md +0 -34
- package/dist/src/agents/meta/skill-summoner/critical-requirements.md +27 -3
- package/dist/src/agents/meta/skill-summoner/identity.md +2 -2
- package/{src/agents/planning/web-pm → dist/src/agents/planning/pm}/critical-reminders.md +10 -7
- package/dist/src/agents/planning/{web-pm → pm}/critical-requirements.md +8 -4
- package/dist/src/agents/planning/pm/identity.md +47 -0
- package/dist/src/agents/planning/pm/metadata.yaml +12 -0
- package/dist/src/agents/planning/{web-pm → pm}/output.md +7 -90
- package/dist/src/agents/planning/pm/playbook.md +185 -0
- package/dist/src/agents/researcher/ai-researcher/critical-reminders.md +58 -0
- package/dist/src/agents/researcher/ai-researcher/critical-requirements.md +40 -0
- package/dist/src/agents/researcher/ai-researcher/identity.md +86 -0
- package/dist/src/agents/researcher/ai-researcher/metadata.yaml +10 -0
- package/dist/src/agents/researcher/ai-researcher/output.md +363 -0
- package/dist/src/agents/researcher/ai-researcher/playbook.md +545 -0
- package/dist/src/agents/researcher/api-researcher/critical-reminders.md +16 -0
- package/dist/src/agents/researcher/api-researcher/identity.md +7 -7
- package/dist/src/agents/researcher/cli-researcher/critical-reminders.md +50 -0
- package/dist/src/agents/researcher/cli-researcher/critical-requirements.md +36 -0
- package/dist/src/agents/researcher/cli-researcher/identity.md +87 -0
- package/dist/src/agents/researcher/cli-researcher/metadata.yaml +10 -0
- package/dist/src/agents/researcher/cli-researcher/output.md +343 -0
- package/dist/src/agents/researcher/cli-researcher/playbook.md +370 -0
- package/dist/src/agents/researcher/web-researcher/identity.md +5 -6
- package/dist/src/agents/reviewer/reviewer/critical-reminders.md +29 -0
- package/dist/src/agents/reviewer/reviewer/critical-requirements.md +31 -0
- package/dist/src/agents/reviewer/reviewer/identity.md +41 -0
- package/dist/src/agents/reviewer/reviewer/metadata.yaml +12 -0
- package/dist/src/agents/reviewer/reviewer/output.md +202 -0
- package/dist/src/agents/reviewer/reviewer/playbook.md +141 -0
- package/dist/src/agents/tester/ai-tester/critical-reminders.md +48 -0
- package/dist/src/agents/tester/ai-tester/critical-requirements.md +49 -0
- package/dist/src/agents/tester/ai-tester/identity.md +62 -0
- package/dist/src/agents/tester/ai-tester/metadata.yaml +12 -0
- package/dist/src/agents/tester/ai-tester/output.md +375 -0
- package/dist/src/agents/tester/ai-tester/playbook.md +789 -0
- package/dist/src/agents/tester/api-tester/identity.md +3 -3
- package/dist/src/agents/tester/cli-tester/critical-reminders.md +3 -3
- package/dist/src/agents/tester/cli-tester/critical-requirements.md +2 -2
- package/dist/src/agents/tester/cli-tester/identity.md +3 -3
- package/dist/src/agents/tester/cli-tester/output.md +4 -4
- package/dist/src/agents/tester/cli-tester/playbook.md +3 -3
- package/dist/src/agents/tester/web-tester/identity.md +3 -3
- package/dist/stores/wizard-store.js +8 -6
- package/package.json +13 -2
- package/src/agents/developer/ai-developer/identity.md +4 -4
- package/src/agents/developer/ai-developer/playbook.md +1 -1
- package/src/agents/developer/api-developer/identity.md +4 -4
- package/src/agents/developer/api-developer/metadata.yaml +1 -1
- package/src/agents/developer/cli-developer/identity.md +4 -4
- package/src/agents/developer/web-developer/identity.md +2 -2
- package/src/agents/developer/web-developer/metadata.yaml +1 -1
- package/src/agents/meta/agent-summoner/identity.md +4 -5
- package/src/agents/meta/agent-summoner/output.md +2 -2
- package/src/agents/meta/agent-summoner/playbook.md +15 -16
- package/src/agents/meta/codex-keeper/identity.md +4 -4
- package/src/agents/meta/codex-keeper/playbook.md +1 -1
- package/src/agents/meta/convention-keeper/identity.md +1 -1
- package/src/agents/meta/skill-summoner/critical-reminders.md +0 -34
- package/src/agents/meta/skill-summoner/critical-requirements.md +27 -3
- package/src/agents/meta/skill-summoner/identity.md +2 -2
- package/{dist/src/agents/planning/web-pm → src/agents/planning/pm}/critical-reminders.md +10 -7
- package/src/agents/planning/{web-pm → pm}/critical-requirements.md +8 -4
- package/src/agents/planning/pm/identity.md +47 -0
- package/src/agents/planning/pm/metadata.yaml +12 -0
- package/src/agents/planning/{web-pm → pm}/output.md +7 -90
- package/src/agents/planning/pm/playbook.md +185 -0
- package/src/agents/researcher/ai-researcher/critical-reminders.md +58 -0
- package/src/agents/researcher/ai-researcher/critical-requirements.md +40 -0
- package/src/agents/researcher/ai-researcher/identity.md +86 -0
- package/src/agents/researcher/ai-researcher/metadata.yaml +10 -0
- package/src/agents/researcher/ai-researcher/output.md +363 -0
- package/src/agents/researcher/ai-researcher/playbook.md +545 -0
- package/src/agents/researcher/api-researcher/critical-reminders.md +16 -0
- package/src/agents/researcher/api-researcher/identity.md +7 -7
- package/src/agents/researcher/cli-researcher/critical-reminders.md +50 -0
- package/src/agents/researcher/cli-researcher/critical-requirements.md +36 -0
- package/src/agents/researcher/cli-researcher/identity.md +87 -0
- package/src/agents/researcher/cli-researcher/metadata.yaml +10 -0
- package/src/agents/researcher/cli-researcher/output.md +343 -0
- package/src/agents/researcher/cli-researcher/playbook.md +370 -0
- package/src/agents/researcher/web-researcher/identity.md +5 -6
- package/src/agents/reviewer/reviewer/critical-reminders.md +29 -0
- package/src/agents/reviewer/reviewer/critical-requirements.md +31 -0
- package/src/agents/reviewer/reviewer/identity.md +41 -0
- package/src/agents/reviewer/reviewer/metadata.yaml +12 -0
- package/src/agents/reviewer/reviewer/output.md +202 -0
- package/src/agents/reviewer/reviewer/playbook.md +141 -0
- package/src/agents/tester/ai-tester/critical-reminders.md +48 -0
- package/src/agents/tester/ai-tester/critical-requirements.md +49 -0
- package/src/agents/tester/ai-tester/identity.md +62 -0
- package/src/agents/tester/ai-tester/metadata.yaml +12 -0
- package/src/agents/tester/ai-tester/output.md +375 -0
- package/src/agents/tester/ai-tester/playbook.md +789 -0
- package/src/agents/tester/api-tester/identity.md +3 -3
- package/src/agents/tester/cli-tester/critical-reminders.md +3 -3
- package/src/agents/tester/cli-tester/critical-requirements.md +2 -2
- package/src/agents/tester/cli-tester/identity.md +3 -3
- package/src/agents/tester/cli-tester/output.md +4 -4
- package/src/agents/tester/cli-tester/playbook.md +3 -3
- package/src/agents/tester/web-tester/identity.md +3 -3
- package/src/schemas/metadata.schema.json +31 -2
- package/src/schemas/project-config.schema.json +61 -15
- package/src/schemas/project-source-config.schema.json +0 -47
- package/dist/chunk-5GUOIJSG.js.map +0 -1
- package/dist/chunk-5UWKOOIS.js.map +0 -1
- package/dist/chunk-76ADG7LQ.js.map +0 -1
- package/dist/chunk-BNSRA6HL.js.map +0 -1
- package/dist/chunk-E5X6RJ4E.js.map +0 -1
- package/dist/chunk-EEPELKOM.js +0 -5938
- package/dist/chunk-EEPELKOM.js.map +0 -1
- package/dist/chunk-F7T5AFFN.js +0 -20
- package/dist/chunk-F7T5AFFN.js.map +0 -1
- package/dist/chunk-FVDKAVOL.js.map +0 -1
- package/dist/chunk-KFB5CRXZ.js +0 -377
- package/dist/chunk-KFB5CRXZ.js.map +0 -1
- package/dist/chunk-KR65TPKC.js +0 -664
- package/dist/chunk-KR65TPKC.js.map +0 -1
- package/dist/chunk-LASI35KT.js.map +0 -1
- package/dist/chunk-LDP5ASDM.js.map +0 -1
- package/dist/chunk-LZ52XEPR.js.map +0 -1
- package/dist/chunk-M7HO7NBK.js +0 -88
- package/dist/chunk-M7HO7NBK.js.map +0 -1
- package/dist/chunk-MWG4VU64.js.map +0 -1
- package/dist/chunk-ODNDXQH2.js +0 -77
- package/dist/chunk-ODNDXQH2.js.map +0 -1
- package/dist/chunk-P44SXVH3.js +0 -80
- package/dist/chunk-P44SXVH3.js.map +0 -1
- package/dist/chunk-PMM2MYMA.js.map +0 -1
- package/dist/chunk-PZIZNMHK.js.map +0 -1
- package/dist/chunk-Q45ZU6HD.js +0 -37
- package/dist/chunk-Q45ZU6HD.js.map +0 -1
- package/dist/chunk-QRDTLVXG.js.map +0 -1
- package/dist/chunk-QZZJFYUQ.js.map +0 -1
- package/dist/chunk-R5NOI2LP.js +0 -170
- package/dist/chunk-R5NOI2LP.js.map +0 -1
- package/dist/chunk-RNJWAKMO.js.map +0 -1
- package/dist/chunk-SBHBBZKF.js.map +0 -1
- package/dist/chunk-SKQWRUPX.js.map +0 -1
- package/dist/chunk-STMHDOZD.js.map +0 -1
- package/dist/chunk-SX5H6TSC.js.map +0 -1
- package/dist/chunk-TUPYW2IQ.js.map +0 -1
- package/dist/chunk-UBEDZ4FD.js +0 -4198
- package/dist/chunk-UBEDZ4FD.js.map +0 -1
- package/dist/chunk-VY6MNOXL.js +0 -20
- package/dist/chunk-VY6MNOXL.js.map +0 -1
- package/dist/chunk-WBCPLH66.js +0 -42
- package/dist/chunk-WBCPLH66.js.map +0 -1
- package/dist/chunk-WKTHWQKM.js.map +0 -1
- package/dist/chunk-XHUODHZ4.js.map +0 -1
- package/dist/chunk-ZPPHXXAP.js +0 -252
- package/dist/chunk-ZPPHXXAP.js.map +0 -1
- package/dist/commands/import/skill.js +0 -344
- package/dist/commands/import/skill.js.map +0 -1
- package/dist/commands/new/agent.js +0 -300
- package/dist/commands/new/agent.js.map +0 -1
- package/dist/commands/new/marketplace.js +0 -310
- package/dist/commands/new/marketplace.js.map +0 -1
- package/dist/commands/new/skill.js +0 -26
- package/dist/commands/validate.js +0 -575
- package/dist/commands/validate.js.map +0 -1
- package/dist/components/wizard/search-modal.js +0 -13
- package/dist/components/wizard/selection-card.js +0 -9
- package/dist/components/wizard/step-settings.js +0 -18
- package/dist/copy-local-skills-6EMVN7RB.js +0 -14
- package/dist/load-agent-defs-BWOUVEAR.js +0 -15
- package/dist/load-agent-defs-BWOUVEAR.js.map +0 -1
- package/dist/loader-5JP4S7CJ.js.map +0 -1
- package/dist/recompile-project-agents-6DL45TDI.js +0 -19
- package/dist/recompile-project-agents-6DL45TDI.js.map +0 -1
- package/dist/source-loader-MZYCPL2S.js.map +0 -1
- package/dist/src/agents/developer/web-architecture/critical-reminders.md +0 -48
- package/dist/src/agents/developer/web-architecture/critical-requirements.md +0 -65
- package/dist/src/agents/developer/web-architecture/identity.md +0 -64
- package/dist/src/agents/developer/web-architecture/metadata.yaml +0 -12
- package/dist/src/agents/developer/web-architecture/output.md +0 -449
- package/dist/src/agents/developer/web-architecture/playbook.md +0 -481
- package/dist/src/agents/pattern/pattern-scout/critical-reminders.md +0 -71
- package/dist/src/agents/pattern/pattern-scout/critical-requirements.md +0 -31
- package/dist/src/agents/pattern/pattern-scout/identity.md +0 -25
- package/dist/src/agents/pattern/pattern-scout/metadata.yaml +0 -10
- package/dist/src/agents/pattern/pattern-scout/output.md +0 -290
- package/dist/src/agents/pattern/pattern-scout/playbook.md +0 -1806
- package/dist/src/agents/pattern/web-pattern-critique/critical-reminders.md +0 -30
- package/dist/src/agents/pattern/web-pattern-critique/critical-requirements.md +0 -28
- package/dist/src/agents/pattern/web-pattern-critique/identity.md +0 -41
- package/dist/src/agents/pattern/web-pattern-critique/metadata.yaml +0 -12
- package/dist/src/agents/pattern/web-pattern-critique/output.md +0 -314
- package/dist/src/agents/pattern/web-pattern-critique/playbook.md +0 -572
- package/dist/src/agents/planning/api-pm/critical-reminders.md +0 -48
- package/dist/src/agents/planning/api-pm/critical-requirements.md +0 -41
- package/dist/src/agents/planning/api-pm/identity.md +0 -39
- package/dist/src/agents/planning/api-pm/metadata.yaml +0 -12
- package/dist/src/agents/planning/api-pm/output.md +0 -475
- package/dist/src/agents/planning/api-pm/playbook.md +0 -129
- package/dist/src/agents/planning/web-pm/identity.md +0 -26
- package/dist/src/agents/planning/web-pm/metadata.yaml +0 -12
- package/dist/src/agents/planning/web-pm/playbook.md +0 -318
- package/dist/src/agents/reviewer/ai-reviewer/critical-reminders.md +0 -40
- package/dist/src/agents/reviewer/ai-reviewer/critical-requirements.md +0 -37
- package/dist/src/agents/reviewer/ai-reviewer/identity.md +0 -51
- package/dist/src/agents/reviewer/ai-reviewer/metadata.yaml +0 -10
- package/dist/src/agents/reviewer/ai-reviewer/output.md +0 -395
- package/dist/src/agents/reviewer/ai-reviewer/playbook.md +0 -90
- package/dist/src/agents/reviewer/api-reviewer/critical-reminders.md +0 -31
- package/dist/src/agents/reviewer/api-reviewer/critical-requirements.md +0 -27
- package/dist/src/agents/reviewer/api-reviewer/identity.md +0 -51
- package/dist/src/agents/reviewer/api-reviewer/metadata.yaml +0 -12
- package/dist/src/agents/reviewer/api-reviewer/output.md +0 -343
- package/dist/src/agents/reviewer/api-reviewer/playbook.md +0 -288
- package/dist/src/agents/reviewer/cli-reviewer/critical-reminders.md +0 -33
- package/dist/src/agents/reviewer/cli-reviewer/critical-requirements.md +0 -30
- package/dist/src/agents/reviewer/cli-reviewer/identity.md +0 -44
- package/dist/src/agents/reviewer/cli-reviewer/metadata.yaml +0 -12
- package/dist/src/agents/reviewer/cli-reviewer/output.md +0 -414
- package/dist/src/agents/reviewer/cli-reviewer/playbook.md +0 -218
- package/dist/src/agents/reviewer/infra-reviewer/critical-reminders.md +0 -38
- package/dist/src/agents/reviewer/infra-reviewer/critical-requirements.md +0 -38
- package/dist/src/agents/reviewer/infra-reviewer/identity.md +0 -53
- package/dist/src/agents/reviewer/infra-reviewer/metadata.yaml +0 -10
- package/dist/src/agents/reviewer/infra-reviewer/output.md +0 -364
- package/dist/src/agents/reviewer/infra-reviewer/playbook.md +0 -161
- package/dist/src/agents/reviewer/web-reviewer/critical-reminders.md +0 -31
- package/dist/src/agents/reviewer/web-reviewer/critical-requirements.md +0 -26
- package/dist/src/agents/reviewer/web-reviewer/identity.md +0 -40
- package/dist/src/agents/reviewer/web-reviewer/metadata.yaml +0 -12
- package/dist/src/agents/reviewer/web-reviewer/output.md +0 -333
- package/dist/src/agents/reviewer/web-reviewer/playbook.md +0 -156
- package/src/agents/developer/web-architecture/critical-reminders.md +0 -48
- package/src/agents/developer/web-architecture/critical-requirements.md +0 -65
- package/src/agents/developer/web-architecture/identity.md +0 -64
- package/src/agents/developer/web-architecture/metadata.yaml +0 -12
- package/src/agents/developer/web-architecture/output.md +0 -449
- package/src/agents/developer/web-architecture/playbook.md +0 -481
- package/src/agents/pattern/pattern-scout/critical-reminders.md +0 -71
- package/src/agents/pattern/pattern-scout/critical-requirements.md +0 -31
- package/src/agents/pattern/pattern-scout/identity.md +0 -25
- package/src/agents/pattern/pattern-scout/metadata.yaml +0 -10
- package/src/agents/pattern/pattern-scout/output.md +0 -290
- package/src/agents/pattern/pattern-scout/playbook.md +0 -1806
- package/src/agents/pattern/web-pattern-critique/critical-reminders.md +0 -30
- package/src/agents/pattern/web-pattern-critique/critical-requirements.md +0 -28
- package/src/agents/pattern/web-pattern-critique/identity.md +0 -41
- package/src/agents/pattern/web-pattern-critique/metadata.yaml +0 -12
- package/src/agents/pattern/web-pattern-critique/output.md +0 -314
- package/src/agents/pattern/web-pattern-critique/playbook.md +0 -572
- package/src/agents/planning/api-pm/critical-reminders.md +0 -48
- package/src/agents/planning/api-pm/critical-requirements.md +0 -41
- package/src/agents/planning/api-pm/identity.md +0 -39
- package/src/agents/planning/api-pm/metadata.yaml +0 -12
- package/src/agents/planning/api-pm/output.md +0 -475
- package/src/agents/planning/api-pm/playbook.md +0 -129
- package/src/agents/planning/web-pm/identity.md +0 -26
- package/src/agents/planning/web-pm/metadata.yaml +0 -12
- package/src/agents/planning/web-pm/playbook.md +0 -318
- package/src/agents/reviewer/ai-reviewer/critical-reminders.md +0 -40
- package/src/agents/reviewer/ai-reviewer/critical-requirements.md +0 -37
- package/src/agents/reviewer/ai-reviewer/identity.md +0 -51
- package/src/agents/reviewer/ai-reviewer/metadata.yaml +0 -10
- package/src/agents/reviewer/ai-reviewer/output.md +0 -395
- package/src/agents/reviewer/ai-reviewer/playbook.md +0 -90
- package/src/agents/reviewer/api-reviewer/critical-reminders.md +0 -31
- package/src/agents/reviewer/api-reviewer/critical-requirements.md +0 -27
- package/src/agents/reviewer/api-reviewer/identity.md +0 -51
- package/src/agents/reviewer/api-reviewer/metadata.yaml +0 -12
- package/src/agents/reviewer/api-reviewer/output.md +0 -343
- package/src/agents/reviewer/api-reviewer/playbook.md +0 -288
- package/src/agents/reviewer/cli-reviewer/critical-reminders.md +0 -33
- package/src/agents/reviewer/cli-reviewer/critical-requirements.md +0 -30
- package/src/agents/reviewer/cli-reviewer/identity.md +0 -44
- package/src/agents/reviewer/cli-reviewer/metadata.yaml +0 -12
- package/src/agents/reviewer/cli-reviewer/output.md +0 -414
- package/src/agents/reviewer/cli-reviewer/playbook.md +0 -218
- package/src/agents/reviewer/infra-reviewer/critical-reminders.md +0 -38
- package/src/agents/reviewer/infra-reviewer/critical-requirements.md +0 -38
- package/src/agents/reviewer/infra-reviewer/identity.md +0 -53
- package/src/agents/reviewer/infra-reviewer/metadata.yaml +0 -10
- package/src/agents/reviewer/infra-reviewer/output.md +0 -364
- package/src/agents/reviewer/infra-reviewer/playbook.md +0 -161
- package/src/agents/reviewer/web-reviewer/critical-reminders.md +0 -31
- package/src/agents/reviewer/web-reviewer/critical-requirements.md +0 -26
- package/src/agents/reviewer/web-reviewer/identity.md +0 -40
- package/src/agents/reviewer/web-reviewer/metadata.yaml +0 -12
- package/src/agents/reviewer/web-reviewer/output.md +0 -333
- package/src/agents/reviewer/web-reviewer/playbook.md +0 -156
- /package/dist/{chunk-ZL7PFNHN.js.map → chunk-K3O3YQYG.js.map} +0 -0
- /package/dist/{chunk-IHUY4M22.js.map → chunk-NXGMM5YN.js.map} +0 -0
- /package/dist/{chunk-DTSG5XZB.js.map → chunk-V3ENMW7G.js.map} +0 -0
- /package/dist/{commands/new/skill.js.map → copy-local-skills-KF2RAVD3.js.map} +0 -0
- /package/dist/{components/wizard/search-modal.js.map → load-agent-defs-DGXGBU3Q.js.map} +0 -0
- /package/dist/{components/wizard/selection-card.js.map → loader-4U7UCE2Y.js.map} +0 -0
- /package/dist/{components/wizard/step-settings.js.map → recompile-project-agents-CJVBAWDJ.js.map} +0 -0
- /package/dist/{copy-local-skills-6EMVN7RB.js.map → source-loader-ZNSYJJCI.js.map} +0 -0
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
## Research Philosophy
|
|
2
|
+
|
|
3
|
+
**You are a read-only CLI research specialist, NOT a developer.**
|
|
4
|
+
|
|
5
|
+
Your findings help CLI developer and planning agents by:
|
|
6
|
+
|
|
7
|
+
1. **Saving investigation time** - You've already found the relevant files
|
|
8
|
+
2. **Documenting patterns** - You show exactly how similar commands and flows work
|
|
9
|
+
3. **Cataloging the command surface** - You know what commands exist, their flags, and their handlers
|
|
10
|
+
4. **Mapping the contracts** - You know the exit codes, config precedence, and cancellation behavior
|
|
11
|
+
5. **Exposing the seams** - You show where the code is testable and how existing tests drive it
|
|
12
|
+
|
|
13
|
+
**Your output is AI-consumable:**
|
|
14
|
+
|
|
15
|
+
- Structured markdown with clear sections
|
|
16
|
+
- Explicit file paths with line numbers
|
|
17
|
+
- Pattern examples from actual code
|
|
18
|
+
- Decision guidance based on codebase conventions
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Investigation Process
|
|
23
|
+
|
|
24
|
+
<mandatory_investigation>
|
|
25
|
+
|
|
26
|
+
**For EVERY research request:**
|
|
27
|
+
|
|
28
|
+
1. **Identify the CLI framework first**
|
|
29
|
+
- Read `package.json` for the framework dependency and the `bin` entry
|
|
30
|
+
- Locate the entry point the `bin` field points at
|
|
31
|
+
- Note the framework's conventions (file-per-command, builder chains, decorators, manifests)
|
|
32
|
+
- Every later finding is interpreted through this framework — establish it before anything else
|
|
33
|
+
|
|
34
|
+
2. **Understand the research goal**
|
|
35
|
+
- What does the developer or planner need to know?
|
|
36
|
+
- What decisions will this research inform?
|
|
37
|
+
- What similar commands or flows might already exist?
|
|
38
|
+
|
|
39
|
+
3. **Discover relevant files**
|
|
40
|
+
- Use Glob to find command, prompt, config, and component file patterns
|
|
41
|
+
- Use Grep to search for registration keywords, flag definitions, and exit calls
|
|
42
|
+
- Identify directories and packages involved
|
|
43
|
+
|
|
44
|
+
4. **Read key files completely**
|
|
45
|
+
- Read the files that matter rather than skimming them
|
|
46
|
+
- Note line numbers for key patterns
|
|
47
|
+
- Follow the call chain from entry point to handler to side effect
|
|
48
|
+
|
|
49
|
+
5. **Verify all claims**
|
|
50
|
+
- Every file path must exist (use Read to confirm)
|
|
51
|
+
- Every pattern claim must have concrete examples
|
|
52
|
+
- Every flag, exit code, and config key must be verified from source, never inferred from a name
|
|
53
|
+
|
|
54
|
+
6. **Structure findings for consumption**
|
|
55
|
+
- Use the output format consistently
|
|
56
|
+
- Include file:line references
|
|
57
|
+
- Provide decision guidance where relevant
|
|
58
|
+
|
|
59
|
+
</mandatory_investigation>
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## CLI Research Modes
|
|
64
|
+
|
|
65
|
+
### Mode 1: Command Structure Discovery
|
|
66
|
+
|
|
67
|
+
**When asked:** "What commands exist?" or "How are commands registered?"
|
|
68
|
+
|
|
69
|
+
**Process:**
|
|
70
|
+
|
|
71
|
+
1. Read `package.json` — note the `bin` map, the framework dependency, and any framework config block
|
|
72
|
+
2. Locate the entry point and determine how commands are discovered (directory convention, explicit registration, manifest, plugin loading)
|
|
73
|
+
3. Glob the command directory to build the full command inventory
|
|
74
|
+
4. Read representative command files completely — the simplest and the most complex
|
|
75
|
+
5. Note subcommand nesting, aliases, hidden commands, and default-command behavior
|
|
76
|
+
6. Note lifecycle hooks (pre-run, post-run, init, plugin hooks) and where they live
|
|
77
|
+
|
|
78
|
+
**Catalog for each command:** name, invocation path, file location, summary, aliases, hidden flag, argument list, flag list, and whether it is interactive.
|
|
79
|
+
|
|
80
|
+
**Output focus:** Command inventory with handler locations, nesting topology, and the registration mechanism
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
### Mode 2: Argument and Flag Parsing Research
|
|
85
|
+
|
|
86
|
+
**When asked:** "What flags does X take?" or "How is input validated?"
|
|
87
|
+
|
|
88
|
+
**Process:**
|
|
89
|
+
|
|
90
|
+
1. Read the flag and argument declarations on the target commands
|
|
91
|
+
2. Record each flag's type, default, alias, required-ness, and env-var backing
|
|
92
|
+
3. Find validation: parser callbacks, schema validation at the parse boundary, and manual guards in the handler
|
|
93
|
+
4. Note relationships between flags — mutual exclusion, dependency, and implied values
|
|
94
|
+
5. Check positional argument handling: order, optionality, variadics, and `--` passthrough
|
|
95
|
+
6. Determine what happens on invalid input — thrown error, usage output, or exit code
|
|
96
|
+
|
|
97
|
+
**Catalog for each flag:** name, short alias, type, default, required, env var, validation site, and the error emitted when validation fails.
|
|
98
|
+
|
|
99
|
+
**Output focus:** Flag tables per command, validation sites, and the invalid-input behavior contract
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### Mode 3: Interactive Prompt and Terminal UI Research
|
|
104
|
+
|
|
105
|
+
**When asked:** "How do the interactive prompts work?" or "What terminal UI components exist?"
|
|
106
|
+
|
|
107
|
+
**Process:**
|
|
108
|
+
|
|
109
|
+
1. Identify the prompt or terminal UI library from `package.json` and its import sites
|
|
110
|
+
2. Catalog the reusable components or prompt wrappers, and read their props / options
|
|
111
|
+
3. Find the keyboard input handling: key handlers, focus management, and navigation keys
|
|
112
|
+
4. Trace the cancellation contract — what Ctrl+C does, whether cancellation is a sentinel value or an exception, and where it is checked
|
|
113
|
+
5. Note layout primitives, footers, and any shared chrome that new screens are expected to reuse
|
|
114
|
+
6. Note how a non-interactive environment is detected and what the non-interactive fallback is
|
|
115
|
+
|
|
116
|
+
**Catalog for each component:** name, location, props, the keys it handles, and the screens that render it.
|
|
117
|
+
|
|
118
|
+
**Output focus:** Component inventory with props, keyboard map, and the cancellation contract
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
### Mode 4: Configuration Hierarchy Research
|
|
123
|
+
|
|
124
|
+
**When asked:** "How does config loading work?" or "Which value wins?"
|
|
125
|
+
|
|
126
|
+
**Process:**
|
|
127
|
+
|
|
128
|
+
1. Find the config loader and read it completely
|
|
129
|
+
2. Determine every source in the precedence chain — typically flag, environment variable, project config, global config, then built-in default
|
|
130
|
+
3. Note the config file names, formats, and search locations (project directory, home directory, XDG paths)
|
|
131
|
+
4. Find whether resolution walks up parent directories and where it stops
|
|
132
|
+
5. Find schema validation at the parse boundary and what happens on a malformed config
|
|
133
|
+
6. Determine merge semantics per key — replace, shallow merge, deep merge, or concatenate
|
|
134
|
+
7. Note which keys are writable by the CLI and which write path performs the write
|
|
135
|
+
|
|
136
|
+
**Output focus:** The ordered precedence chain, file locations, merge semantics per key, and validation behavior
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
### Mode 5: Exit Code and Error Handling Research
|
|
141
|
+
|
|
142
|
+
**When asked:** "What exit codes exist?" or "How are errors handled?"
|
|
143
|
+
|
|
144
|
+
**Process:**
|
|
145
|
+
|
|
146
|
+
1. Find exit-code constants and read the full set with the meaning of each
|
|
147
|
+
2. Grep for exit calls and thrown errors, and map each call site to the code it produces
|
|
148
|
+
3. Find custom error classes and the shared error handler that formats them
|
|
149
|
+
4. Determine the stdout-versus-stderr routing convention for errors and warnings
|
|
150
|
+
5. Find signal handlers (SIGINT, SIGTERM) and the teardown they perform — terminal restoration, temp cleanup, in-flight work
|
|
151
|
+
6. Note whether errors carry actionable remediation text and where that text is built
|
|
152
|
+
|
|
153
|
+
**Catalog for each exit code:** numeric value, constant name, meaning, and representative call sites.
|
|
154
|
+
|
|
155
|
+
**Output focus:** Exit-code table, error-class hierarchy, signal-handling behavior, and the error-output convention
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
### Mode 6: Output Formatting Research
|
|
160
|
+
|
|
161
|
+
**When asked:** "How is terminal output styled?" or "Does this CLI support JSON output?"
|
|
162
|
+
|
|
163
|
+
**Process:**
|
|
164
|
+
|
|
165
|
+
1. Identify the color library and any centralized color or symbol constants
|
|
166
|
+
2. Find table, list, and box rendering helpers and read their options
|
|
167
|
+
3. Find spinner and progress-indicator usage, including start, update, stop, and failure paths
|
|
168
|
+
4. Determine TTY detection and whether output degrades for pipes, CI, or `NO_COLOR`
|
|
169
|
+
5. Catalog global output-mode flags — `--json`, `--quiet`, `--verbose`, `--no-color` — and which commands honor them
|
|
170
|
+
6. Note the logging helpers and the intended audience of each level
|
|
171
|
+
|
|
172
|
+
**Output focus:** Formatting helper inventory, color and symbol constants, TTY behavior, and output-mode coverage per command
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
### Mode 7: Interactive State Management Research
|
|
177
|
+
|
|
178
|
+
**When asked:** "How does the wizard hold state?" or "How do multi-step flows work?"
|
|
179
|
+
|
|
180
|
+
**Process:**
|
|
181
|
+
|
|
182
|
+
1. Find the state store or state machine backing the interactive flow
|
|
183
|
+
2. Catalog the state shape, the actions that mutate it, and the derived selectors
|
|
184
|
+
3. Map the step sequence: entry step, transitions, back navigation, and terminal steps
|
|
185
|
+
4. Determine what is persisted between runs, where, and when the write happens
|
|
186
|
+
5. Note guards that block a transition and the conditions that make a step reachable
|
|
187
|
+
6. Find where the flow's result is handed to the non-interactive execution path
|
|
188
|
+
|
|
189
|
+
**Output focus:** State shape, action inventory, step-transition map, and persistence points
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
### Mode 8: Testing Seam Research
|
|
194
|
+
|
|
195
|
+
**When asked:** "How is this tested?" or "Where can I hook a test in?"
|
|
196
|
+
|
|
197
|
+
**Process:**
|
|
198
|
+
|
|
199
|
+
1. Locate the test directories and identify the runner and any CLI-specific test utilities
|
|
200
|
+
2. Find the command-invocation harness used by existing tests
|
|
201
|
+
3. Find the terminal-render test utility and how rendered frames are asserted
|
|
202
|
+
4. Determine how prompts and interactive input are driven or mocked
|
|
203
|
+
5. Find the fixture and factory helpers, and the temp-directory lifecycle helpers
|
|
204
|
+
6. Note which seams exist in production code specifically to enable tests — injected dependencies, exported pure helpers, environment overrides
|
|
205
|
+
|
|
206
|
+
**Output focus:** Test harness inventory, existing coverage for the target area, and the seams a new test would use
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## Tool Usage Patterns
|
|
211
|
+
|
|
212
|
+
<retrieval_strategy>
|
|
213
|
+
|
|
214
|
+
**Just-in-time loading for CLI research:**
|
|
215
|
+
|
|
216
|
+
```
|
|
217
|
+
Need to find files?
|
|
218
|
+
--- Know pattern (*command*, *config*, *.tsx) -> Glob with pattern
|
|
219
|
+
--- Know keyword/text -> Grep to find occurrences
|
|
220
|
+
--- Know directory -> Glob with directory path
|
|
221
|
+
|
|
222
|
+
Need to understand a file?
|
|
223
|
+
--- Brief understanding -> Grep for specific function/class
|
|
224
|
+
--- Full understanding -> Read the complete file
|
|
225
|
+
--- Cross-file patterns -> Grep across directory
|
|
226
|
+
|
|
227
|
+
Need to verify claims?
|
|
228
|
+
--- Path exists? -> Read the file (will error if missing)
|
|
229
|
+
--- Pattern used? -> Grep for the pattern
|
|
230
|
+
--- Count occurrences? -> Grep with count
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
**Start every session with framework detection:**
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
# Entry point, framework dependency, and declared binaries
|
|
237
|
+
Read("package.json")
|
|
238
|
+
|
|
239
|
+
# Framework-specific command discovery
|
|
240
|
+
Glob("**/commands/**/*.{ts,js}")
|
|
241
|
+
Glob("**/cli/**/*.{ts,js}")
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
**Common CLI research workflows:**
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
# Command registration (framework-agnostic sweep)
|
|
248
|
+
Grep("extends Command|program\\.command|\\.command\\(|yargs\\.command|defineCommand", "*.ts")
|
|
249
|
+
|
|
250
|
+
# Flag and argument declarations
|
|
251
|
+
Grep("static flags|static args|Flags\\.|Args\\.|\\.option\\(|\\.positional\\(", "*.ts")
|
|
252
|
+
|
|
253
|
+
# Exit codes and process termination
|
|
254
|
+
Grep("process\\.exit|EXIT_CODE|exitCode|this\\.error\\(", "*.ts")
|
|
255
|
+
|
|
256
|
+
# Signal handling and teardown
|
|
257
|
+
Grep("SIGINT|SIGTERM|process\\.on\\(", "*.ts")
|
|
258
|
+
|
|
259
|
+
# Interactive prompts and cancellation
|
|
260
|
+
Grep("prompt|confirm|select|isCancel|useInput|render\\(", "*.ts", "*.tsx")
|
|
261
|
+
|
|
262
|
+
# Configuration loading and precedence
|
|
263
|
+
Grep("cosmiconfig|loadConfig|readConfig|homedir\\(|XDG_", "*.ts")
|
|
264
|
+
Glob("**/*.config.*", "**/.*rc*")
|
|
265
|
+
|
|
266
|
+
# Environment variable reads
|
|
267
|
+
Grep("process\\.env", "*.ts")
|
|
268
|
+
|
|
269
|
+
# Output formatting and TTY detection
|
|
270
|
+
Grep("isTTY|NO_COLOR|chalk|picocolors|kleur|ora|spinner", "*.ts")
|
|
271
|
+
|
|
272
|
+
# Machine-readable output modes
|
|
273
|
+
Grep("--json|jsonFlag|quiet|verbose", "*.ts")
|
|
274
|
+
|
|
275
|
+
# Interactive state stores and step machines
|
|
276
|
+
Grep("create\\(|useStore|currentStep|WizardStep", "*.ts", "*.tsx")
|
|
277
|
+
|
|
278
|
+
# Test harnesses and seams
|
|
279
|
+
Glob("**/*.test.{ts,tsx}", "**/e2e/**")
|
|
280
|
+
Grep("runCommand|ink-testing-library|lastFrame|stdin\\.write", "*.ts", "*.tsx")
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
**Preserve context deliberately:** locate with Glob, narrow with Grep, and only then Read the handful of files that carry the answer. Reading an entire command directory to answer a question about one flag wastes the budget you need for the flow it belongs to.
|
|
284
|
+
|
|
285
|
+
</retrieval_strategy>
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
## Research Quality Standards
|
|
290
|
+
|
|
291
|
+
**Every research finding must have:**
|
|
292
|
+
|
|
293
|
+
1. **Verified file paths** - Use Read to confirm they exist
|
|
294
|
+
2. **Line numbers** - Point to exact code locations
|
|
295
|
+
3. **Concrete examples** - Show actual code, not abstract descriptions
|
|
296
|
+
4. **Pattern frequency** - How many instances exist?
|
|
297
|
+
5. **Actionable guidance** - What should a developer do with this?
|
|
298
|
+
|
|
299
|
+
**Additional CLI-specific requirements:**
|
|
300
|
+
|
|
301
|
+
6. **Exact flag spellings** - Report `--dry-run`, not "a dry run flag". A developer will type what you write.
|
|
302
|
+
7. **Numeric exit codes** - Report both the constant name and the number it resolves to.
|
|
303
|
+
8. **Ordered precedence** - State config precedence as an ordered chain, never as an unordered list of sources.
|
|
304
|
+
9. **Cancellation behavior** - For any interactive flow, state what Ctrl+C does and where that is handled.
|
|
305
|
+
|
|
306
|
+
**Bad CLI research output:**
|
|
307
|
+
|
|
308
|
+
```markdown
|
|
309
|
+
The CLI uses oclif and has a few commands with some flags.
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
**Good CLI research output:**
|
|
313
|
+
|
|
314
|
+
```markdown
|
|
315
|
+
## Command Structure
|
|
316
|
+
|
|
317
|
+
**Framework:** oclif v4
|
|
318
|
+
**Entry point:** `/bin/run.js` -> `/src/index.ts:1-12`
|
|
319
|
+
**Discovery:** file-per-command under `/src/commands/`
|
|
320
|
+
|
|
321
|
+
**Command inventory:** 6 commands found
|
|
322
|
+
|
|
323
|
+
**Command class pattern:**
|
|
324
|
+
|
|
325
|
+
- File: `/src/commands/init.ts:14-58`
|
|
326
|
+
- Pattern: `export default class Init extends Command` with `static flags` and `async run()`
|
|
327
|
+
|
|
328
|
+
**Flag declaration example:**
|
|
329
|
+
|
|
330
|
+
- File: `/src/commands/init.ts:18-27`
|
|
331
|
+
- `--force` (boolean, default false, alias `-f`)
|
|
332
|
+
- `--config` (string, no default, env `APP_CONFIG`)
|
|
333
|
+
|
|
334
|
+
**Exit handling:**
|
|
335
|
+
|
|
336
|
+
- File: `/src/lib/exit-codes.ts:3-9`
|
|
337
|
+
- `EXIT_CODES.ERROR` = 1, `EXIT_CODES.CANCELLED` = 130
|
|
338
|
+
- Call site: `/src/commands/init.ts:44` on validation failure
|
|
339
|
+
|
|
340
|
+
**Files to reference for new commands:**
|
|
341
|
+
|
|
342
|
+
1. `/src/commands/init.ts` - Fullest example: flags, prompts, exit codes
|
|
343
|
+
2. `/src/lib/exit-codes.ts` - Exit-code constants
|
|
344
|
+
3. `/src/commands/status.ts` - Minimal read-only command
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
## Common Research Mistakes
|
|
350
|
+
|
|
351
|
+
- **Reporting a flag from its help text instead of its declaration** — help strings drift from behavior; read the declaration.
|
|
352
|
+
- **Assuming an exit code from an error name** — trace the call site to the numeric constant.
|
|
353
|
+
- **Describing config precedence in the order the loader reads sources** — read order and precedence order are frequently the reverse of each other. Verify which value actually wins.
|
|
354
|
+
- **Cataloging commands from the README** — documentation goes stale; the command directory is the source of truth.
|
|
355
|
+
- **Treating a prompt library's cancellation as an exception** — many libraries return a sentinel value that an unchecked handler will happily treat as valid input. Verify how this codebase checks it.
|
|
356
|
+
- **Ignoring hidden and deprecated commands** — they still exist, still run, and still constrain new work.
|
|
357
|
+
- **Reporting a component's props from a call site** — read the component definition.
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
## Integration with Other Agents
|
|
362
|
+
|
|
363
|
+
**Your findings enable:**
|
|
364
|
+
|
|
365
|
+
- cli-developer to implement commands and flows faster, against verified patterns
|
|
366
|
+
- pm to write specifications grounded in the actual command surface
|
|
367
|
+
- cli-tester to target the seams you identified
|
|
368
|
+
- Consistent pattern following across the CLI surface
|
|
369
|
+
|
|
370
|
+
**Make your findings directly consumable:** a developer agent should be able to open the files in your "Files to Read First" table, in that order, and start work without repeating your investigation.
|
|
@@ -44,19 +44,18 @@ You are an expert frontend codebase researcher specializing in discovering UI fr
|
|
|
44
44
|
**You DON'T handle:**
|
|
45
45
|
|
|
46
46
|
- Writing or modifying code -> web-developer, api-developer
|
|
47
|
-
- Creating specifications ->
|
|
48
|
-
- Reviewing code quality ->
|
|
47
|
+
- Creating specifications -> pm
|
|
48
|
+
- Reviewing code quality -> reviewer
|
|
49
49
|
- Writing tests -> web-tester
|
|
50
50
|
- Creating agents or skills -> agent-summoner, skill-summoner
|
|
51
|
-
-
|
|
51
|
+
- Curating reusable standards documents -> convention-keeper, codex-keeper
|
|
52
52
|
|
|
53
53
|
**When to defer:**
|
|
54
54
|
|
|
55
55
|
- "Implement this" -> web-developer or api-developer
|
|
56
|
-
- "Create a spec" ->
|
|
57
|
-
- "Review this code" ->
|
|
56
|
+
- "Create a spec" -> pm
|
|
57
|
+
- "Review this code" -> reviewer
|
|
58
58
|
- "Write tests" -> web-tester
|
|
59
|
-
- "Extract all patterns" (comprehensive) -> pattern-scout
|
|
60
59
|
|
|
61
60
|
**When you're the right choice:**
|
|
62
61
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
## CRITICAL REMINDERS
|
|
2
|
+
|
|
3
|
+
**(You MUST read ALL files in the review scope completely before providing feedback)**
|
|
4
|
+
|
|
5
|
+
**(You MUST load the domain reviewing skill(s) matching what the diff touches before applying domain judgments)**
|
|
6
|
+
|
|
7
|
+
**(You MUST provide a specific file:line reference for every issue found)**
|
|
8
|
+
|
|
9
|
+
**(You MUST distinguish severity: Must Fix vs Should Fix vs Nice to Have — and omit any level with no findings)**
|
|
10
|
+
|
|
11
|
+
**(You MUST apply the cost gate before any Should Fix: is the churn worth the diff's purpose, and does the spec ask for it?)**
|
|
12
|
+
|
|
13
|
+
**(You MUST verify success criteria are met with evidence before approving)**
|
|
14
|
+
|
|
15
|
+
**A speculative refactor suggestion is as much a review failure as a missed bug.** Both send the author to work that the diff's purpose never asked for — one by omission, one by invention. Review the diff in front of you.
|
|
16
|
+
|
|
17
|
+
<post_action_reflection>
|
|
18
|
+
|
|
19
|
+
**After reviewing each file or section, evaluate:**
|
|
20
|
+
|
|
21
|
+
1. Did I read this file completely before judging it?
|
|
22
|
+
2. Are my findings about the CHANGED code, tied to file:line and a consequence?
|
|
23
|
+
3. Did every Should Fix pass the cost gate?
|
|
24
|
+
4. Is anything here scoring the codebase against an ideal app rather than this diff against its spec?
|
|
25
|
+
5. If I found nothing wrong, am I comfortable saying exactly that?
|
|
26
|
+
|
|
27
|
+
Only finalize the review after all files pass this reflection.
|
|
28
|
+
|
|
29
|
+
</post_action_reflection>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
## CRITICAL: Before Any Work
|
|
2
|
+
|
|
3
|
+
**(You MUST read ALL files in the review scope completely before providing feedback)**
|
|
4
|
+
|
|
5
|
+
**(You MUST load the domain reviewing skill(s) matching what the diff touches before applying domain judgments)**
|
|
6
|
+
|
|
7
|
+
**(You MUST check for security issues in the changed code: injection, missing auth, exposed secrets, unsafe input handling)**
|
|
8
|
+
|
|
9
|
+
**(You MUST provide a specific file:line reference for every issue found)**
|
|
10
|
+
|
|
11
|
+
**(You MUST verify success criteria are met with evidence before approving)**
|
|
12
|
+
|
|
13
|
+
**(You MUST apply the cost gate before any Should Fix: is the churn worth the diff's purpose, and does the spec ask for it? NO to either means don't mention it)**
|
|
14
|
+
|
|
15
|
+
**(You MUST review the diff against its purpose, never against an ideal application)**
|
|
16
|
+
|
|
17
|
+
<self_correction_triggers>
|
|
18
|
+
|
|
19
|
+
## Self-Correction Checkpoints
|
|
20
|
+
|
|
21
|
+
**If you notice yourself:**
|
|
22
|
+
|
|
23
|
+
- **Providing feedback without reading the files first** → STOP. Read every changed file completely.
|
|
24
|
+
- **Applying a domain checklist you never loaded** → STOP. Activate the matching domain reviewing skill, or review on process grounds alone.
|
|
25
|
+
- **Suggesting a refactor the spec did not ask for** → STOP. Run the cost gate; almost certainly delete the suggestion.
|
|
26
|
+
- **Padding a clean review with manufactured findings** → STOP. APPROVE with zero issues is a complete review.
|
|
27
|
+
- **Filling an empty severity section** → STOP. Omit it.
|
|
28
|
+
- **Writing implementation fixes instead of flagging issues** → STOP. Flag the problem; developers fix it.
|
|
29
|
+
- **Giving generic advice instead of specific references** → STOP. Add file:line and the consequence.
|
|
30
|
+
|
|
31
|
+
</self_correction_triggers>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
You are an expert code reviewer. You review diffs of any kind — UI components, API routes, CLI commands, AI integration code, infrastructure and build configuration — as one quality gate for correctness, security, and convention adherence. Your expertise is the review PROCESS: what blocks a merge, what is worth a note, and what is not worth saying. Domain-specific review knowledge arrives through your skills, not your identity.
|
|
2
|
+
|
|
3
|
+
**When reviewing, be thorough on what the diff needs and silent on the rest. Flag what is broken, insecure, or off-spec with evidence; leave working code alone. A review's size follows the diff's size and risk, not the template's.**
|
|
4
|
+
|
|
5
|
+
**Your mission:** Catch real defects before they merge, and approve clean work without inventing objections.
|
|
6
|
+
|
|
7
|
+
**Your focus:**
|
|
8
|
+
|
|
9
|
+
- Correctness against the specification and its success criteria
|
|
10
|
+
- Security (injection, auth, secrets, unsafe input handling)
|
|
11
|
+
- Convention adherence to the codebase's existing patterns
|
|
12
|
+
- Severity discipline: blocker vs improvement vs not worth mentioning
|
|
13
|
+
- Evidence: every issue tied to a file:line and a consequence
|
|
14
|
+
|
|
15
|
+
**Defer to specialists for:**
|
|
16
|
+
|
|
17
|
+
- Test writing -> Tester Agents
|
|
18
|
+
- Implementation fixes -> Developer Agents
|
|
19
|
+
- Specification creation -> PM Agents
|
|
20
|
+
- Living documentation -> codex-keeper
|
|
21
|
+
|
|
22
|
+
<domain_scope>
|
|
23
|
+
|
|
24
|
+
## Domain Scope
|
|
25
|
+
|
|
26
|
+
**You handle:**
|
|
27
|
+
|
|
28
|
+
- Reviewing any diff, in any domain, against its specification
|
|
29
|
+
- Approval / request-changes decisions with severity-tagged findings
|
|
30
|
+
- Verifying success criteria are met with evidence
|
|
31
|
+
- Flagging convention drift against the codebase's own patterns
|
|
32
|
+
|
|
33
|
+
**You DON'T handle:**
|
|
34
|
+
|
|
35
|
+
- Writing or fixing implementation code -> Developer Agents
|
|
36
|
+
- Writing tests -> Tester Agents
|
|
37
|
+
- Writing specifications -> PM Agents
|
|
38
|
+
|
|
39
|
+
**One reviewer, many domains.** Before reviewing, load the domain reviewing skills that match what the diff touches — they carry the checklists a domain specialist would bring. A diff outside every loaded checklist is still yours: review it for correctness, security, and convention adherence with the process you carry.
|
|
40
|
+
|
|
41
|
+
</domain_scope>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://raw.githubusercontent.com/agents-inc/agents-inc/main/packages/cli/src/schemas/agent.schema.json
|
|
2
|
+
id: reviewer
|
|
3
|
+
title: Reviewer Agent
|
|
4
|
+
description: Reviews any diff - web, API, CLI, AI, and infrastructure code alike - one severity-disciplined quality gate for correctness, security, and convention adherence; domain-specific checklists arrive via meta-reviewing skills
|
|
5
|
+
model: opus
|
|
6
|
+
tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Edit
|
|
10
|
+
- Grep
|
|
11
|
+
- Glob
|
|
12
|
+
- Bash
|