eai-cli 0.0.0-bootstrap.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/LICENSE +183 -0
- package/NOTICE +4 -0
- package/README.md +14 -0
- package/dist/commands/agent.d.ts +3 -0
- package/dist/commands/agent.d.ts.map +1 -0
- package/dist/commands/agent.js +69 -0
- package/dist/commands/agent.js.map +1 -0
- package/dist/commands/blocks.d.ts +3 -0
- package/dist/commands/blocks.d.ts.map +1 -0
- package/dist/commands/blocks.js +249 -0
- package/dist/commands/blocks.js.map +1 -0
- package/dist/commands/chat.d.ts +6 -0
- package/dist/commands/chat.d.ts.map +1 -0
- package/dist/commands/chat.js +105 -0
- package/dist/commands/chat.js.map +1 -0
- package/dist/commands/deploy.d.ts +36 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +712 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/dev.d.ts +15 -0
- package/dist/commands/dev.d.ts.map +1 -0
- package/dist/commands/dev.js +133 -0
- package/dist/commands/dev.js.map +1 -0
- package/dist/commands/docs.d.ts +6 -0
- package/dist/commands/docs.d.ts.map +1 -0
- package/dist/commands/docs.js +118 -0
- package/dist/commands/docs.js.map +1 -0
- package/dist/commands/env.d.ts +10 -0
- package/dist/commands/env.d.ts.map +1 -0
- package/dist/commands/env.js +200 -0
- package/dist/commands/env.js.map +1 -0
- package/dist/commands/errors.d.ts +3 -0
- package/dist/commands/errors.d.ts.map +1 -0
- package/dist/commands/errors.js +72 -0
- package/dist/commands/errors.js.map +1 -0
- package/dist/commands/gofer.d.ts +3 -0
- package/dist/commands/gofer.d.ts.map +1 -0
- package/dist/commands/gofer.js +134 -0
- package/dist/commands/gofer.js.map +1 -0
- package/dist/commands/init.d.ts +14 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +1437 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/login.d.ts +7 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +117 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/provision.d.ts +6 -0
- package/dist/commands/provision.d.ts.map +1 -0
- package/dist/commands/provision.js +855 -0
- package/dist/commands/provision.js.map +1 -0
- package/dist/commands/publicapi.d.ts +6 -0
- package/dist/commands/publicapi.d.ts.map +1 -0
- package/dist/commands/publicapi.js +184 -0
- package/dist/commands/publicapi.js.map +1 -0
- package/dist/commands/resources.d.ts +38 -0
- package/dist/commands/resources.d.ts.map +1 -0
- package/dist/commands/resources.js +1010 -0
- package/dist/commands/resources.js.map +1 -0
- package/dist/commands/runtime.d.ts +3 -0
- package/dist/commands/runtime.d.ts.map +1 -0
- package/dist/commands/runtime.js +78 -0
- package/dist/commands/runtime.js.map +1 -0
- package/dist/commands/template.d.ts +3 -0
- package/dist/commands/template.d.ts.map +1 -0
- package/dist/commands/template.js +365 -0
- package/dist/commands/template.js.map +1 -0
- package/dist/commands/tenant.d.ts +45 -0
- package/dist/commands/tenant.d.ts.map +1 -0
- package/dist/commands/tenant.js +1036 -0
- package/dist/commands/tenant.js.map +1 -0
- package/dist/commands/types.d.ts +130 -0
- package/dist/commands/types.d.ts.map +1 -0
- package/dist/commands/types.js +1636 -0
- package/dist/commands/types.js.map +1 -0
- package/dist/commands/update.d.ts +13 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/update.js +163 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/commands/user.d.ts +6 -0
- package/dist/commands/user.d.ts.map +1 -0
- package/dist/commands/user.js +359 -0
- package/dist/commands/user.js.map +1 -0
- package/dist/commands/verify.d.ts +40 -0
- package/dist/commands/verify.d.ts.map +1 -0
- package/dist/commands/verify.js +1442 -0
- package/dist/commands/verify.js.map +1 -0
- package/dist/commands/vertical.d.ts +24 -0
- package/dist/commands/vertical.d.ts.map +1 -0
- package/dist/commands/vertical.js +301 -0
- package/dist/commands/vertical.js.map +1 -0
- package/dist/commands/whoami.d.ts +6 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +73 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/commands/workflow.d.ts +6 -0
- package/dist/commands/workflow.d.ts.map +1 -0
- package/dist/commands/workflow.js +400 -0
- package/dist/commands/workflow.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +272 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/agent-guide.d.ts +24 -0
- package/dist/lib/agent-guide.d.ts.map +1 -0
- package/dist/lib/agent-guide.js +155 -0
- package/dist/lib/agent-guide.js.map +1 -0
- package/dist/lib/api.d.ts +338 -0
- package/dist/lib/api.d.ts.map +1 -0
- package/dist/lib/api.js +991 -0
- package/dist/lib/api.js.map +1 -0
- package/dist/lib/auth.d.ts +65 -0
- package/dist/lib/auth.d.ts.map +1 -0
- package/dist/lib/auth.js +592 -0
- package/dist/lib/auth.js.map +1 -0
- package/dist/lib/azure-cli.d.ts +6 -0
- package/dist/lib/azure-cli.d.ts.map +1 -0
- package/dist/lib/azure-cli.js +13 -0
- package/dist/lib/azure-cli.js.map +1 -0
- package/dist/lib/block-catalog-normalize.d.ts +47 -0
- package/dist/lib/block-catalog-normalize.d.ts.map +1 -0
- package/dist/lib/block-catalog-normalize.js +355 -0
- package/dist/lib/block-catalog-normalize.js.map +1 -0
- package/dist/lib/block-catalog-types.d.ts +111 -0
- package/dist/lib/block-catalog-types.d.ts.map +1 -0
- package/dist/lib/block-catalog-types.js +41 -0
- package/dist/lib/block-catalog-types.js.map +1 -0
- package/dist/lib/block-catalog-utils.d.ts +7 -0
- package/dist/lib/block-catalog-utils.d.ts.map +1 -0
- package/dist/lib/block-catalog-utils.js +47 -0
- package/dist/lib/block-catalog-utils.js.map +1 -0
- package/dist/lib/block-catalog-validation.d.ts +5 -0
- package/dist/lib/block-catalog-validation.d.ts.map +1 -0
- package/dist/lib/block-catalog-validation.js +112 -0
- package/dist/lib/block-catalog-validation.js.map +1 -0
- package/dist/lib/block-catalog.d.ts +3 -0
- package/dist/lib/block-catalog.d.ts.map +1 -0
- package/dist/lib/block-catalog.js +284 -0
- package/dist/lib/block-catalog.js.map +1 -0
- package/dist/lib/cloud-env.d.ts +25 -0
- package/dist/lib/cloud-env.d.ts.map +1 -0
- package/dist/lib/cloud-env.js +79 -0
- package/dist/lib/cloud-env.js.map +1 -0
- package/dist/lib/config.d.ts +116 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +195 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/context.d.ts +43 -0
- package/dist/lib/context.d.ts.map +1 -0
- package/dist/lib/context.js +68 -0
- package/dist/lib/context.js.map +1 -0
- package/dist/lib/error-codes.d.ts +56 -0
- package/dist/lib/error-codes.d.ts.map +1 -0
- package/dist/lib/error-codes.js +211 -0
- package/dist/lib/error-codes.js.map +1 -0
- package/dist/lib/error-guidance/catalog.d.ts +648 -0
- package/dist/lib/error-guidance/catalog.d.ts.map +1 -0
- package/dist/lib/error-guidance/catalog.js +940 -0
- package/dist/lib/error-guidance/catalog.js.map +1 -0
- package/dist/lib/error-guidance/match.d.ts +3 -0
- package/dist/lib/error-guidance/match.d.ts.map +1 -0
- package/dist/lib/error-guidance/match.js +46 -0
- package/dist/lib/error-guidance/match.js.map +1 -0
- package/dist/lib/error-guidance/render.d.ts +5 -0
- package/dist/lib/error-guidance/render.d.ts.map +1 -0
- package/dist/lib/error-guidance/render.js +92 -0
- package/dist/lib/error-guidance/render.js.map +1 -0
- package/dist/lib/error-guidance/types.d.ts +76 -0
- package/dist/lib/error-guidance/types.d.ts.map +1 -0
- package/dist/lib/error-guidance/types.js +2 -0
- package/dist/lib/error-guidance/types.js.map +1 -0
- package/dist/lib/error-guidance/validate.d.ts +3 -0
- package/dist/lib/error-guidance/validate.d.ts.map +1 -0
- package/dist/lib/error-guidance/validate.js +59 -0
- package/dist/lib/error-guidance/validate.js.map +1 -0
- package/dist/lib/gofer-installer.d.ts +32 -0
- package/dist/lib/gofer-installer.d.ts.map +1 -0
- package/dist/lib/gofer-installer.js +589 -0
- package/dist/lib/gofer-installer.js.map +1 -0
- package/dist/lib/gofer-refresh.d.ts +46 -0
- package/dist/lib/gofer-refresh.d.ts.map +1 -0
- package/dist/lib/gofer-refresh.js +536 -0
- package/dist/lib/gofer-refresh.js.map +1 -0
- package/dist/lib/next-route-exports.d.ts +6 -0
- package/dist/lib/next-route-exports.d.ts.map +1 -0
- package/dist/lib/next-route-exports.js +127 -0
- package/dist/lib/next-route-exports.js.map +1 -0
- package/dist/lib/npm.d.ts +2 -0
- package/dist/lib/npm.d.ts.map +1 -0
- package/dist/lib/npm.js +4 -0
- package/dist/lib/npm.js.map +1 -0
- package/dist/lib/object-type-defaults.d.ts +4 -0
- package/dist/lib/object-type-defaults.d.ts.map +1 -0
- package/dist/lib/object-type-defaults.js +72 -0
- package/dist/lib/object-type-defaults.js.map +1 -0
- package/dist/lib/output.d.ts +35 -0
- package/dist/lib/output.d.ts.map +1 -0
- package/dist/lib/output.js +166 -0
- package/dist/lib/output.js.map +1 -0
- package/dist/lib/profile.d.ts +52 -0
- package/dist/lib/profile.d.ts.map +1 -0
- package/dist/lib/profile.js +116 -0
- package/dist/lib/profile.js.map +1 -0
- package/dist/lib/project-manifest.d.ts +42 -0
- package/dist/lib/project-manifest.d.ts.map +1 -0
- package/dist/lib/project-manifest.js +191 -0
- package/dist/lib/project-manifest.js.map +1 -0
- package/dist/lib/resourceapi-bundle.d.ts +33 -0
- package/dist/lib/resourceapi-bundle.d.ts.map +1 -0
- package/dist/lib/resourceapi-bundle.js +79 -0
- package/dist/lib/resourceapi-bundle.js.map +1 -0
- package/dist/lib/runtime-contract.d.ts +84 -0
- package/dist/lib/runtime-contract.d.ts.map +1 -0
- package/dist/lib/runtime-contract.js +318 -0
- package/dist/lib/runtime-contract.js.map +1 -0
- package/dist/lib/schema-builder.d.ts +28 -0
- package/dist/lib/schema-builder.d.ts.map +1 -0
- package/dist/lib/schema-builder.js +69 -0
- package/dist/lib/schema-builder.js.map +1 -0
- package/dist/lib/tenant-context.d.ts +127 -0
- package/dist/lib/tenant-context.d.ts.map +1 -0
- package/dist/lib/tenant-context.js +573 -0
- package/dist/lib/tenant-context.js.map +1 -0
- package/dist/lib/update-check.d.ts +52 -0
- package/dist/lib/update-check.d.ts.map +1 -0
- package/dist/lib/update-check.js +271 -0
- package/dist/lib/update-check.js.map +1 -0
- package/dist/lib/update-maintenance.d.ts +15 -0
- package/dist/lib/update-maintenance.d.ts.map +1 -0
- package/dist/lib/update-maintenance.js +187 -0
- package/dist/lib/update-maintenance.js.map +1 -0
- package/dist/lib/utils.d.ts +23 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +48 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/workflow-provisioning.d.ts +54 -0
- package/dist/lib/workflow-provisioning.d.ts.map +1 -0
- package/dist/lib/workflow-provisioning.js +281 -0
- package/dist/lib/workflow-provisioning.js.map +1 -0
- package/package.json +51 -0
- package/resources/gofer/.gofer-version +7 -0
- package/resources/gofer/agents-skills/0_gofer_start/SKILL.md +1287 -0
- package/resources/gofer/agents-skills/0a_problem_validation/SKILL.md +429 -0
- package/resources/gofer/agents-skills/10_gofer_cloud/SKILL.md +635 -0
- package/resources/gofer/agents-skills/1_gofer_research/SKILL.md +1159 -0
- package/resources/gofer/agents-skills/2_gofer_specify/SKILL.md +860 -0
- package/resources/gofer/agents-skills/3_gofer_plan/SKILL.md +886 -0
- package/resources/gofer/agents-skills/4_gofer_tasks/SKILL.md +748 -0
- package/resources/gofer/agents-skills/5_gofer_implement/SKILL.md +924 -0
- package/resources/gofer/agents-skills/6_gofer_validate/SKILL.md +2269 -0
- package/resources/gofer/agents-skills/7_gofer_save/SKILL.md +423 -0
- package/resources/gofer/agents-skills/7a_stakeholder_comms/SKILL.md +508 -0
- package/resources/gofer/agents-skills/8_gofer_branding/SKILL.md +315 -0
- package/resources/gofer/agents-skills/9_gofer_tests/SKILL.md +558 -0
- package/resources/gofer/agents-skills/gofer_bootstrap_workspace/SKILL.md +148 -0
- package/resources/gofer/agents-skills/gofer_check_workspace/SKILL.md +119 -0
- package/resources/gofer/agents-skills/gofer_constitution/SKILL.md +612 -0
- package/resources/gofer/agents-skills/gofer_diagnose/SKILL.md +114 -0
- package/resources/gofer/agents-skills/gofer_eai_first_run/SKILL.md +397 -0
- package/resources/gofer/agents-skills/gofer_hydrate/SKILL.md +561 -0
- package/resources/gofer/agents-skills/gofer_personality/SKILL.md +44 -0
- package/resources/gofer/agents-skills/gofer_plan/SKILL.md +40 -0
- package/resources/gofer/agents-skills/gofer_side/SKILL.md +45 -0
- package/resources/gofer/agents-skills/gofer_spec_summary/SKILL.md +112 -0
- package/resources/gofer/agents-skills/gofer_tdd/SKILL.md +112 -0
- package/resources/gofer/agents-skills/gofer_vocabulary/SKILL.md +112 -0
- package/resources/gofer/agents-skills/gofer_zoom_out/SKILL.md +112 -0
- package/resources/gofer/bash-scripts/check-context-health.sh +365 -0
- package/resources/gofer/bash-scripts/check-persona-pack.sh +81 -0
- package/resources/gofer/bash-scripts/check-prerequisites.sh +168 -0
- package/resources/gofer/bash-scripts/common.sh +192 -0
- package/resources/gofer/bash-scripts/create-new-feature.sh +260 -0
- package/resources/gofer/bash-scripts/install-optional-tools.sh +270 -0
- package/resources/gofer/bash-scripts/log-stage.sh +224 -0
- package/resources/gofer/bash-scripts/mark-task-complete.sh +74 -0
- package/resources/gofer/bash-scripts/pipeline-state.sh +306 -0
- package/resources/gofer/bash-scripts/read-failed-approaches.sh +114 -0
- package/resources/gofer/bash-scripts/read-session-memories.sh +96 -0
- package/resources/gofer/bash-scripts/save-checkpoint.sh +407 -0
- package/resources/gofer/bash-scripts/setup-plan.sh +62 -0
- package/resources/gofer/bash-scripts/sync-implementation-status.sh +47 -0
- package/resources/gofer/bash-scripts/update-agent-context.sh +772 -0
- package/resources/gofer/bash-scripts/validate-artifact.sh +335 -0
- package/resources/gofer/bash-scripts/verify-task.sh +384 -0
- package/resources/gofer/bash-scripts/write-failed-approach.sh +110 -0
- package/resources/gofer/bash-scripts/write-periodic-checkpoint.sh +128 -0
- package/resources/gofer/bash-scripts/write-session-memory.sh +118 -0
- package/resources/gofer/claude-agents/assumption-tracker.md +168 -0
- package/resources/gofer/claude-agents/business-metrics-analyzer.md +169 -0
- package/resources/gofer/claude-agents/business-problem-validator.md +168 -0
- package/resources/gofer/claude-agents/codebase-analyzer.md +124 -0
- package/resources/gofer/claude-agents/codebase-locator.md +95 -0
- package/resources/gofer/claude-agents/codebase-pattern-finder.md +180 -0
- package/resources/gofer/claude-agents/comms-writer.md +158 -0
- package/resources/gofer/claude-agents/engineer-review.md +169 -0
- package/resources/gofer/claude-agents/implement-bug-triangulator.md +94 -0
- package/resources/gofer/claude-agents/implement-code-review-council.md +89 -0
- package/resources/gofer/claude-agents/implement-doc-writer.md +89 -0
- package/resources/gofer/claude-agents/implement-error-hardener.md +84 -0
- package/resources/gofer/claude-agents/implement-performance-explorer.md +95 -0
- package/resources/gofer/claude-agents/implement-test-diversifier.md +82 -0
- package/resources/gofer/claude-agents/implement-variant-generator.md +80 -0
- package/resources/gofer/claude-agents/multi-perspective-judge.md +114 -0
- package/resources/gofer/claude-agents/plan-api-comparator.md +90 -0
- package/resources/gofer/claude-agents/plan-architecture-diverger.md +100 -0
- package/resources/gofer/claude-agents/plan-data-model-stress-tester.md +95 -0
- package/resources/gofer/claude-agents/plan-migration-path-finder.md +95 -0
- package/resources/gofer/claude-agents/plan-refactor-rewrite-advisor.md +97 -0
- package/resources/gofer/claude-agents/research-dependency-evaluator.md +106 -0
- package/resources/gofer/claude-agents/research-horizon-scanner.md +100 -0
- package/resources/gofer/claude-agents/research-market-scanner.md +137 -0
- package/resources/gofer/claude-agents/research-perspective-multiplier.md +102 -0
- package/resources/gofer/claude-agents/scope-creep-detector.md +152 -0
- package/resources/gofer/claude-agents/specify-ambiguity-detector.md +95 -0
- package/resources/gofer/claude-agents/specify-journey-stress-tester.md +92 -0
- package/resources/gofer/claude-agents/tasks-cross-cutting-scanner.md +91 -0
- package/resources/gofer/claude-agents/tasks-rollback-planner.md +89 -0
- package/resources/gofer/claude-agents/validate-security-red-team.md +102 -0
- package/resources/gofer/claude-agents/validation-correctness.md +103 -0
- package/resources/gofer/claude-agents/validation-integration.md +129 -0
- package/resources/gofer/claude-agents/validation-performance.md +120 -0
- package/resources/gofer/claude-agents/validation-security.md +115 -0
- package/resources/gofer/claude-agents/validation-standards.md +151 -0
- package/resources/gofer/claude-agents/validation-test-quality.md +146 -0
- package/resources/gofer/claude-agents/visual-bounded-context-writer.md +40 -0
- package/resources/gofer/claude-agents/visual-c4-writer.md +45 -0
- package/resources/gofer/claude-agents/visual-erd-writer.md +34 -0
- package/resources/gofer/claude-agents/visual-heatmap-writer.md +63 -0
- package/resources/gofer/claude-agents/visual-risk-writer.md +64 -0
- package/resources/gofer/claude-commands/0_gofer_start.md +1282 -0
- package/resources/gofer/claude-commands/0a_problem_validation.md +424 -0
- package/resources/gofer/claude-commands/10_gofer_cloud.md +630 -0
- package/resources/gofer/claude-commands/1_gofer_research.md +1154 -0
- package/resources/gofer/claude-commands/2_gofer_specify.md +855 -0
- package/resources/gofer/claude-commands/3_gofer_plan.md +881 -0
- package/resources/gofer/claude-commands/4_gofer_tasks.md +743 -0
- package/resources/gofer/claude-commands/5_gofer_implement.md +919 -0
- package/resources/gofer/claude-commands/6_gofer_validate.md +2264 -0
- package/resources/gofer/claude-commands/7_gofer_save.md +418 -0
- package/resources/gofer/claude-commands/7a_stakeholder_comms.md +503 -0
- package/resources/gofer/claude-commands/8_gofer_branding.md +310 -0
- package/resources/gofer/claude-commands/9_gofer_tests.md +553 -0
- package/resources/gofer/claude-commands/gofer_bootstrap_workspace.md +143 -0
- package/resources/gofer/claude-commands/gofer_check_workspace.md +114 -0
- package/resources/gofer/claude-commands/gofer_constitution.md +607 -0
- package/resources/gofer/claude-commands/gofer_diagnose.md +109 -0
- package/resources/gofer/claude-commands/gofer_eai_first_run.md +392 -0
- package/resources/gofer/claude-commands/gofer_hydrate.md +556 -0
- package/resources/gofer/claude-commands/gofer_personality.md +39 -0
- package/resources/gofer/claude-commands/gofer_plan.md +35 -0
- package/resources/gofer/claude-commands/gofer_side.md +40 -0
- package/resources/gofer/claude-commands/gofer_spec_summary.md +107 -0
- package/resources/gofer/claude-commands/gofer_tdd.md +107 -0
- package/resources/gofer/claude-commands/gofer_vocabulary.md +107 -0
- package/resources/gofer/claude-commands/gofer_zoom_out.md +107 -0
- package/resources/gofer/claude-skills/eai-gofer/SKILL.md +56 -0
- package/resources/gofer/commands/.gitkeep +0 -0
- package/resources/gofer/commands/0_gofer_start.md +1299 -0
- package/resources/gofer/commands/0a_problem_validation.md +405 -0
- package/resources/gofer/commands/10_gofer_cloud.md +611 -0
- package/resources/gofer/commands/1_gofer_research.md +1135 -0
- package/resources/gofer/commands/2_gofer_specify.md +836 -0
- package/resources/gofer/commands/3_gofer_plan.md +862 -0
- package/resources/gofer/commands/4_gofer_tasks.md +724 -0
- package/resources/gofer/commands/5_gofer_implement.md +900 -0
- package/resources/gofer/commands/6_gofer_validate.md +2245 -0
- package/resources/gofer/commands/7_gofer_save.md +399 -0
- package/resources/gofer/commands/7a_stakeholder_comms.md +484 -0
- package/resources/gofer/commands/8_gofer_branding.md +291 -0
- package/resources/gofer/commands/9_gofer_tests.md +534 -0
- package/resources/gofer/commands/gofer_bootstrap_workspace.md +159 -0
- package/resources/gofer/commands/gofer_check_workspace.md +130 -0
- package/resources/gofer/commands/gofer_constitution.md +588 -0
- package/resources/gofer/commands/gofer_diagnose.md +89 -0
- package/resources/gofer/commands/gofer_eai_first_run.md +392 -0
- package/resources/gofer/commands/gofer_hydrate.md +537 -0
- package/resources/gofer/commands/gofer_personality.md +61 -0
- package/resources/gofer/commands/gofer_plan.md +51 -0
- package/resources/gofer/commands/gofer_side.md +56 -0
- package/resources/gofer/commands/gofer_spec_summary.md +87 -0
- package/resources/gofer/commands/gofer_tdd.md +87 -0
- package/resources/gofer/commands/gofer_vocabulary.md +87 -0
- package/resources/gofer/commands/gofer_zoom_out.md +87 -0
- package/resources/gofer/copilot-instructions/gofer-cost.instructions.md +13 -0
- package/resources/gofer/copilot-instructions/language-server.instructions.md +49 -0
- package/resources/gofer/copilot-instructions/typescript.instructions.md +47 -0
- package/resources/gofer/copilot-instructions/vscode-extension.instructions.md +46 -0
- package/resources/gofer/copilot-prompts/0_gofer_start.prompt.md +1308 -0
- package/resources/gofer/copilot-prompts/0a_problem_validation.prompt.md +429 -0
- package/resources/gofer/copilot-prompts/10_gofer_cloud.prompt.md +644 -0
- package/resources/gofer/copilot-prompts/1_gofer_research.prompt.md +1177 -0
- package/resources/gofer/copilot-prompts/2_gofer_specify.prompt.md +878 -0
- package/resources/gofer/copilot-prompts/3_gofer_plan.prompt.md +904 -0
- package/resources/gofer/copilot-prompts/4_gofer_tasks.prompt.md +766 -0
- package/resources/gofer/copilot-prompts/5_gofer_implement.prompt.md +942 -0
- package/resources/gofer/copilot-prompts/6_gofer_validate.prompt.md +2277 -0
- package/resources/gofer/copilot-prompts/7_gofer_save.prompt.md +433 -0
- package/resources/gofer/copilot-prompts/7a_stakeholder_comms.prompt.md +516 -0
- package/resources/gofer/copilot-prompts/8_gofer_branding.prompt.md +323 -0
- package/resources/gofer/copilot-prompts/9_gofer_tests.prompt.md +566 -0
- package/resources/gofer/copilot-prompts/gofer_bootstrap_workspace.prompt.md +161 -0
- package/resources/gofer/copilot-prompts/gofer_check_workspace.prompt.md +132 -0
- package/resources/gofer/copilot-prompts/gofer_constitution.prompt.md +621 -0
- package/resources/gofer/copilot-prompts/gofer_diagnose.prompt.md +127 -0
- package/resources/gofer/copilot-prompts/gofer_eai_first_run.prompt.md +410 -0
- package/resources/gofer/copilot-prompts/gofer_hydrate.prompt.md +571 -0
- package/resources/gofer/copilot-prompts/gofer_personality.prompt.md +57 -0
- package/resources/gofer/copilot-prompts/gofer_plan.prompt.md +53 -0
- package/resources/gofer/copilot-prompts/gofer_side.prompt.md +58 -0
- package/resources/gofer/copilot-prompts/gofer_spec_summary.prompt.md +125 -0
- package/resources/gofer/copilot-prompts/gofer_tdd.prompt.md +125 -0
- package/resources/gofer/copilot-prompts/gofer_vocabulary.prompt.md +125 -0
- package/resources/gofer/copilot-prompts/gofer_zoom_out.prompt.md +125 -0
- package/resources/gofer/gemini/agents/assumption-tracker.md +171 -0
- package/resources/gofer/gemini/agents/business-metrics-analyzer.md +172 -0
- package/resources/gofer/gemini/agents/business-problem-validator.md +171 -0
- package/resources/gofer/gemini/agents/codebase-analyzer.md +127 -0
- package/resources/gofer/gemini/agents/codebase-locator.md +98 -0
- package/resources/gofer/gemini/agents/codebase-pattern-finder.md +183 -0
- package/resources/gofer/gemini/agents/comms-writer.md +161 -0
- package/resources/gofer/gemini/agents/engineer-review.md +172 -0
- package/resources/gofer/gemini/agents/implement-bug-triangulator.md +97 -0
- package/resources/gofer/gemini/agents/implement-code-review-council.md +92 -0
- package/resources/gofer/gemini/agents/implement-doc-writer.md +92 -0
- package/resources/gofer/gemini/agents/implement-error-hardener.md +87 -0
- package/resources/gofer/gemini/agents/implement-performance-explorer.md +98 -0
- package/resources/gofer/gemini/agents/implement-test-diversifier.md +85 -0
- package/resources/gofer/gemini/agents/implement-variant-generator.md +83 -0
- package/resources/gofer/gemini/agents/multi-perspective-judge.md +117 -0
- package/resources/gofer/gemini/agents/plan-api-comparator.md +93 -0
- package/resources/gofer/gemini/agents/plan-architecture-diverger.md +103 -0
- package/resources/gofer/gemini/agents/plan-data-model-stress-tester.md +98 -0
- package/resources/gofer/gemini/agents/plan-migration-path-finder.md +98 -0
- package/resources/gofer/gemini/agents/plan-refactor-rewrite-advisor.md +100 -0
- package/resources/gofer/gemini/agents/research-dependency-evaluator.md +109 -0
- package/resources/gofer/gemini/agents/research-horizon-scanner.md +103 -0
- package/resources/gofer/gemini/agents/research-market-scanner.md +140 -0
- package/resources/gofer/gemini/agents/research-perspective-multiplier.md +105 -0
- package/resources/gofer/gemini/agents/scope-creep-detector.md +155 -0
- package/resources/gofer/gemini/agents/specify-ambiguity-detector.md +98 -0
- package/resources/gofer/gemini/agents/specify-journey-stress-tester.md +95 -0
- package/resources/gofer/gemini/agents/tasks-cross-cutting-scanner.md +94 -0
- package/resources/gofer/gemini/agents/tasks-rollback-planner.md +92 -0
- package/resources/gofer/gemini/agents/validate-security-red-team.md +105 -0
- package/resources/gofer/gemini/agents/validation-correctness.md +106 -0
- package/resources/gofer/gemini/agents/validation-integration.md +132 -0
- package/resources/gofer/gemini/agents/validation-performance.md +123 -0
- package/resources/gofer/gemini/agents/validation-security.md +118 -0
- package/resources/gofer/gemini/agents/validation-standards.md +154 -0
- package/resources/gofer/gemini/agents/validation-test-quality.md +149 -0
- package/resources/gofer/gemini/agents/visual-bounded-context-writer.md +40 -0
- package/resources/gofer/gemini/agents/visual-c4-writer.md +44 -0
- package/resources/gofer/gemini/agents/visual-erd-writer.md +36 -0
- package/resources/gofer/gemini/agents/visual-heatmap-writer.md +63 -0
- package/resources/gofer/gemini/agents/visual-risk-writer.md +64 -0
- package/resources/gofer/gemini/commands/gofer/.gitkeep +0 -0
- package/resources/gofer/gemini/commands/gofer/0_gofer_start.md +1282 -0
- package/resources/gofer/gemini/commands/gofer/0_gofer_start.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/0a_problem_validation.md +424 -0
- package/resources/gofer/gemini/commands/gofer/0a_problem_validation.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/10_gofer_cloud.md +630 -0
- package/resources/gofer/gemini/commands/gofer/10_gofer_cloud.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/1_gofer_research.md +1154 -0
- package/resources/gofer/gemini/commands/gofer/1_gofer_research.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/2_gofer_specify.md +855 -0
- package/resources/gofer/gemini/commands/gofer/2_gofer_specify.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/3_gofer_plan.md +881 -0
- package/resources/gofer/gemini/commands/gofer/3_gofer_plan.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/4_gofer_tasks.md +743 -0
- package/resources/gofer/gemini/commands/gofer/4_gofer_tasks.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/5_gofer_implement.md +919 -0
- package/resources/gofer/gemini/commands/gofer/5_gofer_implement.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/6_gofer_validate.md +2264 -0
- package/resources/gofer/gemini/commands/gofer/6_gofer_validate.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/7_gofer_save.md +418 -0
- package/resources/gofer/gemini/commands/gofer/7_gofer_save.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/7a_stakeholder_comms.md +503 -0
- package/resources/gofer/gemini/commands/gofer/7a_stakeholder_comms.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/8_gofer_branding.md +310 -0
- package/resources/gofer/gemini/commands/gofer/8_gofer_branding.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/9_gofer_tests.md +553 -0
- package/resources/gofer/gemini/commands/gofer/9_gofer_tests.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_bootstrap_workspace.md +143 -0
- package/resources/gofer/gemini/commands/gofer/gofer_bootstrap_workspace.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_check_workspace.md +114 -0
- package/resources/gofer/gemini/commands/gofer/gofer_check_workspace.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_constitution.md +607 -0
- package/resources/gofer/gemini/commands/gofer/gofer_constitution.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_diagnose.md +109 -0
- package/resources/gofer/gemini/commands/gofer/gofer_diagnose.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_eai_first_run.md +392 -0
- package/resources/gofer/gemini/commands/gofer/gofer_eai_first_run.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_hydrate.md +556 -0
- package/resources/gofer/gemini/commands/gofer/gofer_hydrate.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_personality.md +39 -0
- package/resources/gofer/gemini/commands/gofer/gofer_personality.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_plan.md +35 -0
- package/resources/gofer/gemini/commands/gofer/gofer_plan.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_side.md +40 -0
- package/resources/gofer/gemini/commands/gofer/gofer_side.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_spec_summary.md +107 -0
- package/resources/gofer/gemini/commands/gofer/gofer_spec_summary.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_tdd.md +107 -0
- package/resources/gofer/gemini/commands/gofer/gofer_tdd.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_vocabulary.md +107 -0
- package/resources/gofer/gemini/commands/gofer/gofer_vocabulary.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/gofer_zoom_out.md +107 -0
- package/resources/gofer/gemini/commands/gofer/gofer_zoom_out.toml +2 -0
- package/resources/gofer/gemini/commands/gofer/manifest.json +32 -0
- package/resources/gofer/gemini/extension.json +16 -0
- package/resources/gofer/github-agents/gofer-business.agent.md +20 -0
- package/resources/gofer/github-agents/gofer-implement.agent.md +15 -0
- package/resources/gofer/github-agents/gofer-plan.agent.md +15 -0
- package/resources/gofer/github-agents/gofer-research.agent.md +15 -0
- package/resources/gofer/github-agents/gofer-validate.agent.md +10 -0
- package/resources/gofer/github-skills/eai-gofer/SKILL.md +56 -0
- package/resources/gofer/hook-scripts/agent-stop.mjs +655 -0
- package/resources/gofer/hook-scripts/log-stage-launch-time.mjs +77 -0
- package/resources/gofer/hook-scripts/post-tool-use.mjs +333 -0
- package/resources/gofer/hook-scripts/queued-input.mjs +188 -0
- package/resources/gofer/hook-scripts/session-lifecycle.mjs +93 -0
- package/resources/gofer/hook-scripts/user-prompt-submit.mjs +228 -0
- package/resources/gofer/instruction-templates/base/agents-base.md +37 -0
- package/resources/gofer/instruction-templates/base/claude-base.md +7 -0
- package/resources/gofer/instruction-templates/base/copilot-base.md +26 -0
- package/resources/gofer/instruction-templates/gofer/gofer-claude.md +5 -0
- package/resources/gofer/instruction-templates/gofer/gofer-copilot.md +9 -0
- package/resources/gofer/instruction-templates/languages/generic.md +7 -0
- package/resources/gofer/instruction-templates/languages/go.md +8 -0
- package/resources/gofer/instruction-templates/languages/java.md +8 -0
- package/resources/gofer/instruction-templates/languages/python.md +9 -0
- package/resources/gofer/instruction-templates/languages/rust.md +9 -0
- package/resources/gofer/instruction-templates/languages/typescript.md +19 -0
- package/resources/gofer/instruction-templates/workflow/principles.md +52 -0
- package/resources/gofer/memory/constitution.md +391 -0
- package/resources/gofer/memory/context-profiles.yaml +74 -0
- package/resources/gofer/memory/decisions/000-use-adr-for-decisions.md +67 -0
- package/resources/gofer/memory/decisions/001-di-framework.md +190 -0
- package/resources/gofer/memory/decisions/002-module-extraction.md +305 -0
- package/resources/gofer/memory/decisions/003-error-handling.md +368 -0
- package/resources/gofer/memory/decisions/004-cache-eviction.md +436 -0
- package/resources/gofer/memory/decisions/005-constants-management.md +520 -0
- package/resources/gofer/memory/decisions/README.md +129 -0
- package/resources/gofer/memory/diagrams/di-container.mmd +321 -0
- package/resources/gofer/memory/diagrams/extension-activation.mmd +184 -0
- package/resources/gofer/memory/diagrams/module-dependencies.mmd +264 -0
- package/resources/gofer/memory/gofer-model-policy.yaml +97 -0
- package/resources/gofer/memory/lessons.md +46 -0
- package/resources/gofer/node-scripts/canonical-descriptions.mjs +86 -0
- package/resources/gofer/node-scripts/check-version-alignment.mjs +131 -0
- package/resources/gofer/node-scripts/codex-doctor.mjs +425 -0
- package/resources/gofer/node-scripts/generate-commands.mjs +1366 -0
- package/resources/gofer/node-scripts/generate-issues.js +563 -0
- package/resources/gofer/node-scripts/gofer-closed-loop-audit.mjs +893 -0
- package/resources/gofer/node-scripts/gofer-loop-audit.mjs +541 -0
- package/resources/gofer/node-scripts/gofer-performance-report.mjs +306 -0
- package/resources/gofer/node-scripts/gofer-workspace-bootstrap.mjs +56 -0
- package/resources/gofer/node-scripts/gofer-workspace-check.mjs +56 -0
- package/resources/gofer/node-scripts/lib/ai-leverage-tagger.mjs +103 -0
- package/resources/gofer/node-scripts/lib/assemble-stakeholder-pack.mjs +114 -0
- package/resources/gofer/node-scripts/lib/marp-deck.mjs +87 -0
- package/resources/gofer/node-scripts/lib/mermaid-tabular-fallback.mjs +264 -0
- package/resources/gofer/node-scripts/lib/render-visual.mjs +54 -0
- package/resources/gofer/node-scripts/lib/validate-aliases.mjs +85 -0
- package/resources/gofer/node-scripts/lib/visual-counts.mjs +44 -0
- package/resources/gofer/node-scripts/lib/visual-pass-pipeline.mjs +134 -0
- package/resources/gofer/node-scripts/mermaid-export.mjs +72 -0
- package/resources/gofer/node-scripts/package-agent-plugin.mjs +940 -0
- package/resources/gofer/node-scripts/parse-stage-command.mjs +211 -0
- package/resources/gofer/node-scripts/schemas/.gitkeep +0 -0
- package/resources/gofer/node-scripts/schemas/stage-command.schema.json +72 -0
- package/resources/gofer/node-scripts/sync-extension-resources.mjs +110 -0
- package/resources/gofer/node-scripts/workspace-bootstrap-lib.mjs +1166 -0
- package/resources/gofer/powershell-scripts/install-optional-tools.ps1 +214 -0
- package/resources/gofer/references/platform/README.md +17 -0
- package/resources/gofer/references/platform/deployment-repo.md +9 -0
- package/resources/gofer/references/platform/eai-app-template.md +45 -0
- package/resources/gofer/references/platform/eai-config-driven-ui.md +156 -0
- package/resources/gofer/references/platform/eai-error-catalog.yaml +197 -0
- package/resources/gofer/references/platform/eai-repo-contract.md +134 -0
- package/resources/gofer/references/platform/eai-service-patterns.md +56 -0
- package/resources/gofer/references/platform/eai.md +85 -0
- package/resources/gofer/references/platform/vertical-template.md +49 -0
- package/resources/gofer/specify-commands/.gitkeep +0 -0
- package/resources/gofer/specify-commands/0_gofer_start.md +1299 -0
- package/resources/gofer/specify-commands/0a_problem_validation.md +405 -0
- package/resources/gofer/specify-commands/10_gofer_cloud.md +611 -0
- package/resources/gofer/specify-commands/1_gofer_research.md +1135 -0
- package/resources/gofer/specify-commands/2_gofer_specify.md +836 -0
- package/resources/gofer/specify-commands/3_gofer_plan.md +862 -0
- package/resources/gofer/specify-commands/4_gofer_tasks.md +724 -0
- package/resources/gofer/specify-commands/5_gofer_implement.md +900 -0
- package/resources/gofer/specify-commands/6_gofer_validate.md +2245 -0
- package/resources/gofer/specify-commands/7_gofer_save.md +399 -0
- package/resources/gofer/specify-commands/7a_stakeholder_comms.md +484 -0
- package/resources/gofer/specify-commands/8_gofer_branding.md +291 -0
- package/resources/gofer/specify-commands/9_gofer_tests.md +534 -0
- package/resources/gofer/specify-commands/gofer_bootstrap_workspace.md +159 -0
- package/resources/gofer/specify-commands/gofer_check_workspace.md +130 -0
- package/resources/gofer/specify-commands/gofer_constitution.md +588 -0
- package/resources/gofer/specify-commands/gofer_diagnose.md +89 -0
- package/resources/gofer/specify-commands/gofer_eai_first_run.md +392 -0
- package/resources/gofer/specify-commands/gofer_hydrate.md +537 -0
- package/resources/gofer/specify-commands/gofer_personality.md +61 -0
- package/resources/gofer/specify-commands/gofer_plan.md +51 -0
- package/resources/gofer/specify-commands/gofer_side.md +56 -0
- package/resources/gofer/specify-commands/gofer_spec_summary.md +87 -0
- package/resources/gofer/specify-commands/gofer_tdd.md +87 -0
- package/resources/gofer/specify-commands/gofer_vocabulary.md +87 -0
- package/resources/gofer/specify-commands/gofer_zoom_out.md +87 -0
- package/resources/gofer/system-skills/0_gofer_start/SKILL.md +1287 -0
- package/resources/gofer/system-skills/0a_problem_validation/SKILL.md +429 -0
- package/resources/gofer/system-skills/10_gofer_cloud/SKILL.md +635 -0
- package/resources/gofer/system-skills/1_gofer_research/SKILL.md +1159 -0
- package/resources/gofer/system-skills/2_gofer_specify/SKILL.md +860 -0
- package/resources/gofer/system-skills/3_gofer_plan/SKILL.md +886 -0
- package/resources/gofer/system-skills/4_gofer_tasks/SKILL.md +748 -0
- package/resources/gofer/system-skills/5_gofer_implement/SKILL.md +924 -0
- package/resources/gofer/system-skills/6_gofer_validate/SKILL.md +2269 -0
- package/resources/gofer/system-skills/7_gofer_save/SKILL.md +423 -0
- package/resources/gofer/system-skills/7a_stakeholder_comms/SKILL.md +508 -0
- package/resources/gofer/system-skills/8_gofer_branding/SKILL.md +315 -0
- package/resources/gofer/system-skills/9_gofer_tests/SKILL.md +558 -0
- package/resources/gofer/system-skills/gofer_bootstrap_workspace/SKILL.md +148 -0
- package/resources/gofer/system-skills/gofer_check_workspace/SKILL.md +119 -0
- package/resources/gofer/system-skills/gofer_constitution/SKILL.md +612 -0
- package/resources/gofer/system-skills/gofer_diagnose/SKILL.md +114 -0
- package/resources/gofer/system-skills/gofer_eai_first_run/SKILL.md +397 -0
- package/resources/gofer/system-skills/gofer_hydrate/SKILL.md +561 -0
- package/resources/gofer/system-skills/gofer_personality/SKILL.md +44 -0
- package/resources/gofer/system-skills/gofer_plan/SKILL.md +40 -0
- package/resources/gofer/system-skills/gofer_side/SKILL.md +45 -0
- package/resources/gofer/system-skills/gofer_spec_summary/SKILL.md +112 -0
- package/resources/gofer/system-skills/gofer_tdd/SKILL.md +112 -0
- package/resources/gofer/system-skills/gofer_vocabulary/SKILL.md +112 -0
- package/resources/gofer/system-skills/gofer_zoom_out/SKILL.md +112 -0
- package/resources/gofer/templates/agent-file-template.md +28 -0
- package/resources/gofer/templates/assumptions-template.md +94 -0
- package/resources/gofer/templates/audit-history-template.md +35 -0
- package/resources/gofer/templates/brand/brand-profile-template.json +45 -0
- package/resources/gofer/templates/brand/document-style-template.md +50 -0
- package/resources/gofer/templates/brand/marp-theme-template.css +58 -0
- package/resources/gofer/templates/brownfield-analysis.md +44 -0
- package/resources/gofer/templates/business-metrics-template.md +120 -0
- package/resources/gofer/templates/business-owner-summary-template.md +83 -0
- package/resources/gofer/templates/checklist-template.md +40 -0
- package/resources/gofer/templates/ciso-security-summary-template.md +70 -0
- package/resources/gofer/templates/context-bundle-template.md +76 -0
- package/resources/gofer/templates/contract-pack-template.md +109 -0
- package/resources/gofer/templates/cto-architecture-summary-template.md +83 -0
- package/resources/gofer/templates/discovery-template.md +92 -0
- package/resources/gofer/templates/eai-preflight-template.md +144 -0
- package/resources/gofer/templates/goal-ledger-template.json +69 -0
- package/resources/gofer/templates/gofer-model-policy.yaml +97 -0
- package/resources/gofer/templates/issues-template.md +106 -0
- package/resources/gofer/templates/journey/base-journey.md +95 -0
- package/resources/gofer/templates/journey/industry-variants.yaml +277 -0
- package/resources/gofer/templates/loop-contract-template.json +68 -0
- package/resources/gofer/templates/plan-template.md +215 -0
- package/resources/gofer/templates/problem-brief-template.md +85 -0
- package/resources/gofer/templates/proposal-review-template.md +79 -0
- package/resources/gofer/templates/research-template.md +222 -0
- package/resources/gofer/templates/reuse-scan-template.md +43 -0
- package/resources/gofer/templates/sequence-diagrams/option-spectrum.yaml +178 -0
- package/resources/gofer/templates/service-fit-matrix-template.md +29 -0
- package/resources/gofer/templates/session-handoff-template.md +172 -0
- package/resources/gofer/templates/spec-summary-template.md +118 -0
- package/resources/gofer/templates/spec-template.md +196 -0
- package/resources/gofer/templates/stakeholder-comms-template.md +330 -0
- package/resources/gofer/templates/stakeholder-review-index-template.md +54 -0
- package/resources/gofer/templates/tasks-template.md +323 -0
- package/resources/gofer/templates/ui-approval-template.md +32 -0
- package/resources/gofer/templates/ui-preview-brief-template.md +65 -0
- package/resources/gofer/templates/ui-review-log-template.md +11 -0
- package/resources/gofer/templates/visuals/.gitkeep +0 -0
- package/resources/gofer/templates/visuals/bounded-context-map.md +19 -0
- package/resources/gofer/templates/visuals/bounded-context-template.md +47 -0
- package/resources/gofer/templates/visuals/c4-container-template.md +38 -0
- package/resources/gofer/templates/visuals/c4-container.md +20 -0
- package/resources/gofer/templates/visuals/c4-context-template.md +46 -0
- package/resources/gofer/templates/visuals/capability-heatmap-template.md +54 -0
- package/resources/gofer/templates/visuals/data-model-erd-template.md +41 -0
- package/resources/gofer/templates/visuals/erd.md +19 -0
- package/resources/gofer/templates/visuals/impact-canvas.md +40 -0
- package/resources/gofer/templates/visuals/risk-heatmap-template.md +51 -0
- package/resources/gofer/templates/visuals/roi-projection.md +17 -0
- package/resources/gofer/templates/visuals/value-stream-asis.md +16 -0
- package/resources/gofer/templates/visuals/value-stream-tobe.md +18 -0
- package/resources/gofer/templates/working-backwards-prfaq-template.md +165 -0
- package/resources/linked-sources.json +25 -0
|
@@ -0,0 +1,1154 @@
|
|
|
1
|
+
## Workspace Preflight
|
|
2
|
+
|
|
3
|
+
Before doing stage/helper work:
|
|
4
|
+
|
|
5
|
+
1. Resolve the repository root.
|
|
6
|
+
2. Check the core Gofer sentinels:
|
|
7
|
+
- `.specify/.gofer-version`
|
|
8
|
+
- `.specify/commands/0_gofer_start.md`
|
|
9
|
+
- `.specify/templates/spec-template.md`
|
|
10
|
+
- `.specify/templates/loop-contract-template.json`
|
|
11
|
+
- `.specify/templates/working-backwards-prfaq-template.md`
|
|
12
|
+
- `.specify/templates/business-owner-summary-template.md`
|
|
13
|
+
- `.specify/templates/cto-architecture-summary-template.md`
|
|
14
|
+
- `.specify/templates/ciso-security-summary-template.md`
|
|
15
|
+
- `.specify/templates/stakeholder-review-index-template.md`
|
|
16
|
+
- `.specify/scripts/bash/create-new-feature.sh`
|
|
17
|
+
- `.specify/scripts/node/parse-stage-command.mjs`
|
|
18
|
+
- `.specify/scripts/node/gofer-loop-audit.mjs`
|
|
19
|
+
- `.specify/scripts/hooks/post-tool-use.mjs`
|
|
20
|
+
- `.specify/scripts/powershell/install-optional-tools.ps1`
|
|
21
|
+
- `.specify/templates/gofer-model-policy.yaml`
|
|
22
|
+
- `.specify/memory/gofer-model-policy.yaml`
|
|
23
|
+
- `.specify/specs/`
|
|
24
|
+
- `.specify/memory/`
|
|
25
|
+
3. Check host-specific repo-owned files when relevant:
|
|
26
|
+
- Claude: `AGENTS.md`, `CLAUDE.md`, `.claude/settings.json`
|
|
27
|
+
- Codex: `AGENTS.md`
|
|
28
|
+
- Copilot: `.github/copilot-instructions.md`
|
|
29
|
+
- VS Code extension mirrors Claude/Copilot/Gemini resources itself and should still keep the core scaffold healthy
|
|
30
|
+
4. If the repo already has the workspace checker script, prefer running:
|
|
31
|
+
- `node .specify/scripts/node/gofer-workspace-check.mjs --host claude --json`
|
|
32
|
+
5. If the workspace is missing or stale, ask exactly:
|
|
33
|
+
- **"This repo is missing or stale for Gofer. Initialize/update it now?"**
|
|
34
|
+
6. If the user says yes, run the Gofer workspace bootstrap helper and then resume this command from the top.
|
|
35
|
+
7. If the user says no, stop and explain that Gofer stage/helper work depends on the repo-owned scaffold.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
description: Deep codebase and technology research for feature implementation
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
# Gofer Research
|
|
42
|
+
|
|
43
|
+
## EAI Platform Session Preflight
|
|
44
|
+
|
|
45
|
+
Before any Gofer stage/helper command does pipeline work:
|
|
46
|
+
|
|
47
|
+
1. Treat durable delivery as EAI Platform delivery by default, with Azure second
|
|
48
|
+
and every other stack only by explicit exception.
|
|
49
|
+
2. Run `eai whoami` and confirm the EAI CLI is installed, the user is logged in,
|
|
50
|
+
and an active tenant is visible.
|
|
51
|
+
3. If `eai` is missing, `eai whoami` fails, the token is expired, or no active
|
|
52
|
+
tenant is available, stop and run `/gofer:eai-first-run` or ask the user to
|
|
53
|
+
approve login/setup before continuing.
|
|
54
|
+
4. For EAI app delivery, do not continue into research, specification, planning,
|
|
55
|
+
tasks, implementation, or validation until
|
|
56
|
+
`.specify/specs/{feature}/eai-preflight.md` records login, tenant, template,
|
|
57
|
+
app-readiness, and next-action evidence.
|
|
58
|
+
5. Do not write tokens, secrets, private tenant IDs, or local `.env` values into
|
|
59
|
+
Gofer artifacts; record only product-safe readiness status and evidence.
|
|
60
|
+
|
|
61
|
+
## Token And Cost Policy
|
|
62
|
+
<!-- gofer:token-cost-policy:start -->
|
|
63
|
+
|
|
64
|
+
Before spawning agents, calling tools, or loading large files:
|
|
65
|
+
|
|
66
|
+
1. Treat `.specify/memory/gofer-model-policy.yaml` as the repo-owned source of truth for simple, medium, hard, and arbiter model routing. If it is missing, run `/gofer:bootstrap-workspace` before continuing.
|
|
67
|
+
2. Use the cheapest capable model first.
|
|
68
|
+
- Claude: Haiku for scouting/extraction; Sonnet for normal implementation, synthesis, validation, and security; Opus for high-risk arbitration or release-critical failures.
|
|
69
|
+
- Codex/OpenAI: GPT mini for simple coding; GPT nano only for locate/classify/summarize/mechanical work; GPT-5.3-Codex or flagship GPT for tool-heavy coding, architecture, and release-critical validation.
|
|
70
|
+
- Gemini: Flash-Lite for cheap large-context scan/summarize; Flash for default research synthesis; Pro for large-context architecture or high-risk arbitration.
|
|
71
|
+
- Copilot: prefer Auto for simple and default work; ask the user before choosing a paid/high-tier picker model for hard security, architecture, or release gates.
|
|
72
|
+
3. Keep raw tool output out of the main conversation context. Save stable findings to `.specify/specs/{feature}/context-bundle.md`, then work from summaries.
|
|
73
|
+
4. Use provider prompt/context caching only for stable, non-secret prefixes: Gofer scaffold, AGENTS/CLAUDE/Copilot instructions, constitution, repo map, stage contracts, and validation rubric.
|
|
74
|
+
5. Before continuing after large research, planning, implementation, or validation bursts, checkpoint the durable artifacts and compact/clear/resume context when the host supports it.
|
|
75
|
+
6. Escalate model tier only when a cheaper pass is low-confidence, contradictory, security-sensitive, or blocking release quality.
|
|
76
|
+
<!-- gofer:token-cost-policy:end -->
|
|
77
|
+
|
|
78
|
+
## User Input
|
|
79
|
+
|
|
80
|
+
```text
|
|
81
|
+
$ARGUMENTS
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
You **MUST** consider the user input before proceeding (if not empty).
|
|
85
|
+
|
|
86
|
+
## Execution Profile And Public Risk Labels
|
|
87
|
+
|
|
88
|
+
Classify the request before spawning agents. Choose exactly one effective
|
|
89
|
+
execution profile. This is a per-run depth decision: it controls research
|
|
90
|
+
depth, agent fanout, and artifact production for this feature. It does not
|
|
91
|
+
change the repo's broader workflow/content family, such as the optional VS Code
|
|
92
|
+
`gofer.workflowProfile` setting.
|
|
93
|
+
|
|
94
|
+
Use repository-neutral labels only: `docs-only`, `single-repo-code`,
|
|
95
|
+
`cross-repo`, `api-contract`, `auth-security`, `data-model`, `infra-config`,
|
|
96
|
+
`release-critical`, `broad-fanout`, `unknown-blast-radius`, or `unknown`.
|
|
97
|
+
|
|
98
|
+
- **fast**: docs-only, small clarification work, or clearly bounded low-risk
|
|
99
|
+
single-repo work. Use one locator/summarizer, keep existing required
|
|
100
|
+
artifacts concise, and skip optional councils unless evidence contradicts the
|
|
101
|
+
request.
|
|
102
|
+
- **standard**: ordinary single-repository feature work. Standard is the
|
|
103
|
+
catch-all for work that is not fast, full, or dynamic.
|
|
104
|
+
- **full**: bounded high-risk work such as known cross-repo impact, API
|
|
105
|
+
contracts, auth/security, data model, infra/config, release risk, or migration
|
|
106
|
+
risk. Use specialist fan-out, explicit evidence, blast-radius notes, and
|
|
107
|
+
richer test/release obligations.
|
|
108
|
+
- **dynamic**: explicit dynamic workflow requests, workspace-wide
|
|
109
|
+
audits/sweeps/migrations, unknown blast radius, broad fanout, or work spanning
|
|
110
|
+
more than three repos/workstreams. Do not launch broad shard fanout during
|
|
111
|
+
research; identify shard candidates and confirmation gates first.
|
|
112
|
+
|
|
113
|
+
Use this priority order so profiles are mutually exclusive and collectively
|
|
114
|
+
exhaustive: dynamic first, then full, then fast, then standard as the catch-all.
|
|
115
|
+
Users may request a deeper profile. Do not run below the computed
|
|
116
|
+
`profileFloor` without explicit approval.
|
|
117
|
+
|
|
118
|
+
Record the decision in `.specify/specs/{feature}/execution-profile.md` with
|
|
119
|
+
frontmatter fields: `classificationVersion`, `requestedProfile`,
|
|
120
|
+
`profileFloor`, `effectiveProfile`, `riskLabels`, `overrideStatus`,
|
|
121
|
+
`requiresConfirmation`, and `classificationReason`. If `dynamic` is selected by
|
|
122
|
+
the classifier but was not explicitly requested, set `requiresConfirmation:
|
|
123
|
+
true` and stop for confirmation before broad fanout work.
|
|
124
|
+
|
|
125
|
+
Artifact-churn rule: preserve existing required artifacts, but do not create
|
|
126
|
+
large optional diagrams, councils, issue lists, workflow DAGs, or extended
|
|
127
|
+
reports unless the classified risk or user request justifies them. Mark weak
|
|
128
|
+
claims as inferred or unknown instead of inventing certainty.
|
|
129
|
+
|
|
130
|
+
## Outline
|
|
131
|
+
|
|
132
|
+
This is the **first stage** of the unified Gofer pipeline. Your job is to:
|
|
133
|
+
|
|
134
|
+
1. Check context health
|
|
135
|
+
2. Understand what the user wants to build
|
|
136
|
+
3. Research the codebase to find where it should be implemented
|
|
137
|
+
4. Identify patterns, existing code, and integration points
|
|
138
|
+
5. Document technology decisions, business scenarios, and architecture options
|
|
139
|
+
6. Prepare any supporting review context needed before specification begins
|
|
140
|
+
|
|
141
|
+
**Output**:
|
|
142
|
+
|
|
143
|
+
- `.specify/specs/{feature}/research.md`
|
|
144
|
+
- `.specify/specs/{feature}/goal-ledger.json`
|
|
145
|
+
- `.specify/specs/{feature}/loop-contract.json`
|
|
146
|
+
- `.specify/specs/{feature}/working-backwards-prfaq.md`
|
|
147
|
+
- `.specify/specs/{feature}/prfaq-history/01-research.md`
|
|
148
|
+
- `.specify/specs/{feature}/business-owner-summary.md` (draft; mark missing inputs pending)
|
|
149
|
+
- `.specify/specs/{feature}/stakeholder-review-index.md`
|
|
150
|
+
- `.specify/specs/{feature}/proposal-review.md` (optional supporting review context)
|
|
151
|
+
- `.specify/specs/{feature}/journeys/base-journey.md` (application delivery default)
|
|
152
|
+
- `.specify/specs/{feature}/eai-preflight.md` (EAI app delivery default)
|
|
153
|
+
- `.specify/specs/{feature}/ui-preview-brief.md` (application delivery default)
|
|
154
|
+
- `.specify/specs/{feature}/context-bundle.md` (EnterpriseAI profile only)
|
|
155
|
+
- `.specify/specs/{feature}/reuse-scan.md` (EnterpriseAI profile only)
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Step 0: Context Health Check
|
|
160
|
+
|
|
161
|
+
Before starting research, assess context window health:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
.specify/scripts/bash/check-context-health.sh
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
- If **< 50%**: Proceed normally
|
|
168
|
+
- If **50-70%**: Consider compacting after this stage completes
|
|
169
|
+
- If **> 70%**: Start a new session with a handoff summary
|
|
170
|
+
|
|
171
|
+
Research is typically the heaviest context stage - monitor usage.
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## Step 0.5: Load Discovery Context (If Available)
|
|
176
|
+
|
|
177
|
+
Check if discovery.md exists for this feature:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
ls -la .specify/specs/{feature}/discovery.md 2>/dev/null
|
|
181
|
+
ls -la .specify/specs/{feature}/eai-preflight.md 2>/dev/null
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
If discovery.md exists:
|
|
185
|
+
|
|
186
|
+
1. **Load the discovery findings** to inform research focus:
|
|
187
|
+
- Problem Statement → Focus research on solving this specific problem
|
|
188
|
+
- Target Users → Research UX patterns appropriate for these users
|
|
189
|
+
- Value Proposition → Research metrics and measurement approaches
|
|
190
|
+
- Competitive Analysis → If researched, focus on differentiation
|
|
191
|
+
- Application Classification → Determine whether a four-step AI-augmented
|
|
192
|
+
app journey is required
|
|
193
|
+
- AI-Augmented Journey → If app delivery, preserve the four-step-or-fewer
|
|
194
|
+
journey as the scope spine for research
|
|
195
|
+
- EAI Preflight → If present, preserve CLI install/login/tenant/template/app
|
|
196
|
+
readiness decisions and do not re-ask for information already confirmed
|
|
197
|
+
- Shared numbered-stage contract → if non-app, preserve the current shared
|
|
198
|
+
stages without adding app-only preview or service-fit requirements
|
|
199
|
+
|
|
200
|
+
2. **Use discovery to guide agent prompts**:
|
|
201
|
+
- Codebase Locator: Focus on areas related to the discovered problem
|
|
202
|
+
- Codebase Analyzer: Analyze patterns relevant to target users
|
|
203
|
+
- Pattern Finder: Find examples that deliver similar value
|
|
204
|
+
- AI Pattern Finder: Find existing chatbot, voice, accessibility,
|
|
205
|
+
translation, contextual prefill, recommendation, validation, or
|
|
206
|
+
human-review patterns that can support each journey step
|
|
207
|
+
|
|
208
|
+
3. **Load discovery memories** via MemoryManager if available:
|
|
209
|
+
```
|
|
210
|
+
Category: 'discovery'
|
|
211
|
+
Tags: ['#feature-{id}']
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
If no discovery.md exists, proceed with standard research flow.
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Step 1: Get Feature Context
|
|
219
|
+
|
|
220
|
+
If no feature description provided in $ARGUMENTS:
|
|
221
|
+
|
|
222
|
+
1. Ask: **"What feature or change would you like to work on?"**
|
|
223
|
+
2. Wait for user response
|
|
224
|
+
|
|
225
|
+
Once you have the feature description:
|
|
226
|
+
|
|
227
|
+
1. **Generate a short name** (2-4 words) for the feature
|
|
228
|
+
2. Run `.specify/scripts/bash/create-new-feature.sh --json "$DESCRIPTION"` with
|
|
229
|
+
`--short-name "your-short-name"` to create the feature directory
|
|
230
|
+
3. Parse JSON output for FEATURE_DIR and BRANCH_NAME
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
## Step 2: Spawn Parallel Research Agents
|
|
235
|
+
|
|
236
|
+
**CRITICAL**: You **MUST** launch these agents using the Task tool. Do NOT
|
|
237
|
+
perform this research work inline in the main context. The main context should
|
|
238
|
+
only orchestrate and review agent outputs.
|
|
239
|
+
|
|
240
|
+
### Agent 1: Codebase Locator
|
|
241
|
+
|
|
242
|
+
```
|
|
243
|
+
Task: subagent_type="codebase-locator", model="haiku"
|
|
244
|
+
Prompt: "Find all code related to [FEATURE AREA] in this codebase.
|
|
245
|
+
Identify: entry points, related files, directory structure, key classes/functions.
|
|
246
|
+
Focus on: [specific aspects from user's description]"
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### Agent 2: Codebase Analyzer
|
|
250
|
+
|
|
251
|
+
```
|
|
252
|
+
Task: subagent_type="codebase-analyzer", model="sonnet"
|
|
253
|
+
Prompt: "Analyze how [RELATED FUNCTIONALITY] is implemented in this codebase.
|
|
254
|
+
Explain: architecture patterns, data flow, key abstractions.
|
|
255
|
+
Focus on: [how similar features work]"
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
### Agent 3: Pattern Finder
|
|
259
|
+
|
|
260
|
+
```
|
|
261
|
+
Task: subagent_type="codebase-pattern-finder", model="haiku"
|
|
262
|
+
Prompt: "Find examples of [PATTERN TYPE] in this codebase.
|
|
263
|
+
Show: similar implementations we should model after.
|
|
264
|
+
Include: file paths, code snippets, conventions used."
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
**Run all three agents in parallel** for maximum efficiency in standard/full
|
|
268
|
+
mode. In fast mode, collapse this into one concise locator/summarizer unless
|
|
269
|
+
the feature touches a full-depth risk label. In dynamic mode, do not start broad
|
|
270
|
+
fanout yet; have these agents identify candidate shards, unresolved ownership,
|
|
271
|
+
and evidence needed before P3 builds the workflow DAG.
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## Step 2.5: Multi-Perspective Research (Optional)
|
|
276
|
+
|
|
277
|
+
After the core research agents complete, optionally run additional perspective
|
|
278
|
+
strategies for deeper analysis. **Skip this step if the feature is
|
|
279
|
+
straightforward or time-constrained.** For dynamic mode, use this step to test
|
|
280
|
+
the proposed shard boundaries and stop conditions, not to execute the shards.
|
|
281
|
+
|
|
282
|
+
### Strategy #6: Research Perspective Multiplier
|
|
283
|
+
|
|
284
|
+
When the feature involves complex integration or unfamiliar territory, spawn 5
|
|
285
|
+
perspective agents:
|
|
286
|
+
|
|
287
|
+
```
|
|
288
|
+
Task: subagent_type="research-perspective-multiplier", model="haiku"
|
|
289
|
+
Prompt: "Research [TOPIC] from perspective [1-5].
|
|
290
|
+
Perspective 1: Existing codebase patterns
|
|
291
|
+
Perspective 2: Open-source project approaches
|
|
292
|
+
Perspective 3: Latest documentation/guides
|
|
293
|
+
Perspective 4: Anti-patterns to avoid
|
|
294
|
+
Perspective 5: Emerging approaches
|
|
295
|
+
Context: [summary of feature and existing research findings]"
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
Run all 5 perspectives in parallel, then synthesize with judge:
|
|
299
|
+
|
|
300
|
+
```
|
|
301
|
+
Task: subagent_type="multi-perspective-judge", model="opus"
|
|
302
|
+
Prompt: "Judge verdict type: research synthesis.
|
|
303
|
+
Synthesize these 5 research perspectives into a unified recommendation.
|
|
304
|
+
[paste all 5 agent outputs]"
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
### Strategy #9: Dependency Evaluator
|
|
308
|
+
|
|
309
|
+
When the research proposes new dependencies, evaluate each one:
|
|
310
|
+
|
|
311
|
+
```
|
|
312
|
+
Task: subagent_type="research-dependency-evaluator", model="haiku"
|
|
313
|
+
Prompt: "Evaluate [LIBRARY NAME] from perspective [1-3].
|
|
314
|
+
Perspective 1: Evaluate the proposed library
|
|
315
|
+
Perspective 2: Find alternatives
|
|
316
|
+
Perspective 3: Estimate building without it
|
|
317
|
+
Needed functionality: [what we need from it]"
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
Run all 3 perspectives in parallel, then synthesize with judge:
|
|
321
|
+
|
|
322
|
+
```
|
|
323
|
+
Task: subagent_type="multi-perspective-judge", model="opus"
|
|
324
|
+
Prompt: "Judge verdict type: dependency decision.
|
|
325
|
+
Decide whether to adopt, find alternative, or build in-house.
|
|
326
|
+
[paste all 3 agent outputs]"
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
### Strategy #20: Technology Horizon Scanner
|
|
330
|
+
|
|
331
|
+
For features touching evolving technology areas:
|
|
332
|
+
|
|
333
|
+
```
|
|
334
|
+
Task: subagent_type="research-horizon-scanner", model="haiku"
|
|
335
|
+
Prompt: "Scan for emerging alternatives and approaches relevant to [TOPIC].
|
|
336
|
+
Current approach: [what we're considering]
|
|
337
|
+
Tech stack: [relevant technologies]"
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
This is a single agent — no judge synthesis needed. Include findings in the
|
|
341
|
+
research document.
|
|
342
|
+
|
|
343
|
+
---
|
|
344
|
+
|
|
345
|
+
## Step 3: Technology Research
|
|
346
|
+
|
|
347
|
+
While waiting for agents, research any technology questions:
|
|
348
|
+
|
|
349
|
+
1. **Identify unknowns** from the feature description:
|
|
350
|
+
- New libraries or frameworks needed?
|
|
351
|
+
- Integration patterns to research?
|
|
352
|
+
- Best practices to follow?
|
|
353
|
+
|
|
354
|
+
2. **Research each unknown** (use WebSearch if needed):
|
|
355
|
+
- Decision: [what to use]
|
|
356
|
+
- Rationale: [why chosen]
|
|
357
|
+
- Alternatives: [what else considered]
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
## Step 3.5: Competitive Analysis Stage Flag (Optional, Run-Level)
|
|
362
|
+
|
|
363
|
+
Before drafting `research.md`, resolve competitive-analysis behavior for the
|
|
364
|
+
run:
|
|
365
|
+
|
|
366
|
+
- Treat competitive analysis as an explicit stage flag:
|
|
367
|
+
`includeCompetitiveAnalysis` (alias: `competitiveAnalysisEnabled`).
|
|
368
|
+
- Default for `workflowProfile=enterpriseai`: `includeCompetitiveAnalysis=true`.
|
|
369
|
+
- Allow per-run override to disable competitive analysis without blocking the
|
|
370
|
+
rest of the pipeline.
|
|
371
|
+
- Always generate `business-analysis.md` for EnterpriseAI runs.
|
|
372
|
+
- Always generate `market-analysis.md` for EnterpriseAI runs.
|
|
373
|
+
- When competitive analysis is disabled:
|
|
374
|
+
- Record `competitiveAnalysisEnabled=false` in research outputs.
|
|
375
|
+
- Keep `market-analysis.md` as a baseline traceability artifact with
|
|
376
|
+
disabled-state messaging (no comparative metrics).
|
|
377
|
+
- Continue to `/2_gofer_specify` normally (no stage failure).
|
|
378
|
+
|
|
379
|
+
When enabled, `market-analysis.md` must include:
|
|
380
|
+
|
|
381
|
+
- At least 3 alternatives.
|
|
382
|
+
- Explicit EnterpriseAI-selected direction rationale.
|
|
383
|
+
- Traceability indicators for downstream `spec.md` and `plan.md` references.
|
|
384
|
+
|
|
385
|
+
---
|
|
386
|
+
|
|
387
|
+
## Step 3.6: Context Bundle and Reuse-Before-Create Scan
|
|
388
|
+
|
|
389
|
+
The standard Gofer workflow is the public default. When `workflowProfile` is
|
|
390
|
+
explicitly `enterpriseai`, generate:
|
|
391
|
+
|
|
392
|
+
1. `{FEATURE_DIR}/context-bundle.md`
|
|
393
|
+
- Feature summary and approved business scenario.
|
|
394
|
+
- Application classification: app delivery or non-app work, with rationale.
|
|
395
|
+
- Four-step-or-fewer AI-augmented journey summary when app delivery applies.
|
|
396
|
+
- AI-readable blocks bridge summary: external/internal/hybrid profile
|
|
397
|
+
choice, package lane, coupling status, public-readiness target, and block
|
|
398
|
+
porting posture.
|
|
399
|
+
- Relevant existing specs, code paths, platform references, and API surfaces.
|
|
400
|
+
- EAI preflight summary: CLI version, login/account status, tenant readiness,
|
|
401
|
+
template initialization state, app enrollment readiness, block catalog
|
|
402
|
+
readiness, and next action. Do not include tokens, secrets, tenant-private
|
|
403
|
+
payloads, or `.env.local` values.
|
|
404
|
+
- EnterpriseAI object types, tenant assumptions, deployment target, and
|
|
405
|
+
validation criteria.
|
|
406
|
+
- A compact "what the next agent needs" section to avoid dumping entire
|
|
407
|
+
source files into later stages.
|
|
408
|
+
2. `{FEATURE_DIR}/reuse-scan.md`
|
|
409
|
+
- Existing object types, APIs/events, workflows, modules, specs, and
|
|
410
|
+
reference implementations that may satisfy the need.
|
|
411
|
+
- Existing AI assistance capabilities: chat, voice, accessibility,
|
|
412
|
+
translation, contextual prefill, recommendation, validation, completion
|
|
413
|
+
checks, audit logging, and escalation.
|
|
414
|
+
- Existing UI block/package assets, Storybook story IDs, theme override
|
|
415
|
+
points, and source-platform dependencies that affect reuse, porting, or decoupling.
|
|
416
|
+
- EAI Platform/Azure stack fit for every app-delivery capability. Treat EAI
|
|
417
|
+
Platform services as primary evidence, Azure as the preferred supporting
|
|
418
|
+
substrate, and unrelated app stacks as exceptions only.
|
|
419
|
+
- Decision for each candidate: reuse, extend, or create new.
|
|
420
|
+
- Rationale, evidence path, and stakeholder/architecture owner if a new
|
|
421
|
+
platform concept is recommended.
|
|
422
|
+
3. `{FEATURE_DIR}/ui-preview-brief.md` (application delivery only)
|
|
423
|
+
- MVP preview scope: target users, must-have screens, target workflow, and
|
|
424
|
+
the smallest useful UI slice to show first.
|
|
425
|
+
- Package profile: selected external/internal/hybrid profile choice, package
|
|
426
|
+
lane, coupling status, public-readiness target, and why that lane is
|
|
427
|
+
appropriate for this feature.
|
|
428
|
+
- EAI App Template constraint map: which approved template blocks or layout
|
|
429
|
+
patterns the preview should use before any create-new UI concept is
|
|
430
|
+
considered.
|
|
431
|
+
- Block catalog evidence: run `eai --describe`, `eai blocks list`,
|
|
432
|
+
`eai blocks describe <id>` for each candidate, and
|
|
433
|
+
`eai resources schema --format json`; record stable block IDs, required resources,
|
|
434
|
+
data/action bindings, Storybook story IDs, theme override points, package
|
|
435
|
+
lane, coupling status, and any custom-block exception that needs approval.
|
|
436
|
+
- Block porting and source-platform decoupling evidence: identify whether
|
|
437
|
+
each selected block is reused as-is, ported into a package lane, or
|
|
438
|
+
blocked by source-platform coupling; define the adapter/resource-schema
|
|
439
|
+
boundary for any decoupling work.
|
|
440
|
+
- Public-readiness evidence: for external or hybrid profiles, capture package
|
|
441
|
+
exports, consumer-facing constraints, accessibility/theming expectations,
|
|
442
|
+
and what still prevents public consumption.
|
|
443
|
+
- Branding inputs: whether client styling, logos, colors, copy tone, or
|
|
444
|
+
other corporate-brand artifacts must be applied.
|
|
445
|
+
- Preview validation plan: what screenshot, browser-render, or
|
|
446
|
+
Playwright-style self-review evidence must exist before Gofer presents the
|
|
447
|
+
preview to the stakeholder.
|
|
448
|
+
- Non-app runs MUST skip this artifact and record "Not applicable" in
|
|
449
|
+
`research.md`.
|
|
450
|
+
4. `{FEATURE_DIR}/eai-preflight.md` (EAI app delivery only, created by
|
|
451
|
+
`/0_gofer_start` when possible and updated here when missing or stale)
|
|
452
|
+
- Verify the safe public EAI source set used for research:
|
|
453
|
+
`https://eai-tools.github.io/eai/docs/overview`,
|
|
454
|
+
`https://eai-tools.github.io/eai/docs/api-reference`,
|
|
455
|
+
`https://eai-tools.github.io/eai/registry/`,
|
|
456
|
+
`https://eai-tools.github.io/eai/scenarios`, and
|
|
457
|
+
`https://github.com/eai-tools/eai-app-template`.
|
|
458
|
+
- Record whether `eai --describe` found the expected scaffolding,
|
|
459
|
+
authentication, tenant, app, resource schema, workflow
|
|
460
|
+
readiness, block catalog, diagnostics, Gofer-refresh, and template-check
|
|
461
|
+
commands.
|
|
462
|
+
- Record whether `eai update --check` reports the installed CLI is current
|
|
463
|
+
or requires an upgrade before app delivery proceeds.
|
|
464
|
+
- Record whether the app template markers exist:
|
|
465
|
+
`src/eai.config/object-types.ts`, `src/eai.config/register.ts`,
|
|
466
|
+
`.env.example`, `.npmrc`, and `package.json`.
|
|
467
|
+
- Record whether the current repo is ready for `eai verify`, needs
|
|
468
|
+
`eai init <app-name>`, or must avoid scaffolding because it is a non-empty
|
|
469
|
+
non-EAI repo.
|
|
470
|
+
- Record whether `eai template check --format json` and `eai gofer refresh
|
|
471
|
+
--check --format json` succeed, report drift, or return `E001` because the
|
|
472
|
+
repo is not yet an EAI app project.
|
|
473
|
+
- Record the app stack policy decision: EAI Platform including the EAI app
|
|
474
|
+
template first, Azure second, or approved non-EAI exception.
|
|
475
|
+
- Record the selected package profile and block-catalog readiness evidence
|
|
476
|
+
from `eai blocks list`, `eai blocks readiness`, and selected
|
|
477
|
+
`eai blocks describe <id>` calls.
|
|
478
|
+
- Record resource provisioning state, object-type publish state,
|
|
479
|
+
schema/storage health state, workflow readiness, last completed gate,
|
|
480
|
+
blocked gate, and next recovery command so later stages inherit the real
|
|
481
|
+
platform lifecycle instead of guessing.
|
|
482
|
+
- Use `.specify/references/platform/eai-repo-contract.md` and
|
|
483
|
+
`.specify/references/platform/eai-error-catalog.yaml` whenever recovery,
|
|
484
|
+
command ordering, or drift handling is unclear.
|
|
485
|
+
- Record only product-safe status labels such as `ready`,
|
|
486
|
+
`account_required`, `login_required`, `tenant_required`,
|
|
487
|
+
`operator_required`, `template_required`, `user_confirmation_required`,
|
|
488
|
+
or `not_applicable`.
|
|
489
|
+
|
|
490
|
+
Do not recommend a new EnterpriseAI object type, API/event, workflow, or module
|
|
491
|
+
until the reuse-before-create scan is complete. Do not recommend a non-EAI app
|
|
492
|
+
runtime, database, hosting platform, or primary service as the default app
|
|
493
|
+
substrate; use it only as an explicit integration/migration reference or
|
|
494
|
+
approved exception after the EAI Platform/Azure fit has been evaluated.
|
|
495
|
+
|
|
496
|
+
---
|
|
497
|
+
|
|
498
|
+
## Step 4: Synthesize Findings
|
|
499
|
+
|
|
500
|
+
Once all agents complete:
|
|
501
|
+
|
|
502
|
+
1. **Compile findings** from all sources
|
|
503
|
+
2. **Identify key integration points** in the codebase
|
|
504
|
+
3. **Document patterns to follow** from existing code
|
|
505
|
+
4. **Note constraints and considerations**
|
|
506
|
+
5. **Distill business scenario options and architecture recommendations** for
|
|
507
|
+
user review before specification
|
|
508
|
+
|
|
509
|
+
### Structured Discovery Outputs (MANDATORY)
|
|
510
|
+
|
|
511
|
+
`research.md` MUST include all of the following in explicit sections:
|
|
512
|
+
|
|
513
|
+
1. **Structured Problem Statement**
|
|
514
|
+
- Problem summary
|
|
515
|
+
- Current state friction
|
|
516
|
+
- Desired EnterpriseAI-oriented outcome
|
|
517
|
+
2. **Structured Target Persona**
|
|
518
|
+
- Primary persona name/role
|
|
519
|
+
- Skill level (novice/intermediate/advanced)
|
|
520
|
+
- Primary needs and constraints
|
|
521
|
+
3. **Structured Value Proposition**
|
|
522
|
+
- Primary value delivered
|
|
523
|
+
- Quantified or measurable goal
|
|
524
|
+
- Why this should be EnterpriseAI-first
|
|
525
|
+
4. **Application-Delivery Gate Summary** (app delivery only)
|
|
526
|
+
- Preview-first rationale and the smallest useful MVP to show first
|
|
527
|
+
- EAI App Template reuse constraints and any approved extension gaps
|
|
528
|
+
- External/internal/hybrid profile choice, package lane, coupling status,
|
|
529
|
+
public-readiness target, block-porting needs, and source-platform decoupling status
|
|
530
|
+
- Candidate capability-discovery inputs for the later service-fit gate
|
|
531
|
+
- Non-app runs must explicitly state "Not applicable"
|
|
532
|
+
5. **Goal Ledger Seed**
|
|
533
|
+
- Goal IDs, business outcomes, metrics, targets, owners, and confidence
|
|
534
|
+
- Delivery states for any capability that starts mock/hybrid before going live
|
|
535
|
+
- Re-loop triggers for objective drift, assumption expiry, contract drift,
|
|
536
|
+
UX scope changes, and post-validation code/test movement
|
|
537
|
+
6. **Loop Contract Seed**
|
|
538
|
+
- Initialize `{FEATURE_DIR}/loop-contract.json` if it is missing:
|
|
539
|
+
`node .specify/scripts/node/gofer-loop-audit.mjs --feature-dir {FEATURE_DIR} --stage 1_research --init --json`
|
|
540
|
+
- Align the loop objective, maximum iterations, evaluation commands, success
|
|
541
|
+
criteria, stop conditions, and human escalation rules with the research
|
|
542
|
+
risk profile.
|
|
543
|
+
- Keep the default contract for ordinary work, but tighten it for
|
|
544
|
+
release-critical, security, data, auth, platform, or cross-repo work.
|
|
545
|
+
|
|
546
|
+
### Novice Walkthrough Guardrail (MANDATORY)
|
|
547
|
+
|
|
548
|
+
Assume a novice user can read only in-repo/generated artifacts.
|
|
549
|
+
|
|
550
|
+
- Do not require external docs to understand or act on research output.
|
|
551
|
+
- Explain terms and recommendations in plain language before advanced details.
|
|
552
|
+
|
|
553
|
+
---
|
|
554
|
+
|
|
555
|
+
## Step 4.5: Generate Research Visuals (Persona Pack — US4)
|
|
556
|
+
|
|
557
|
+
After synthesis, dispatch the visual writers in parallel to produce the
|
|
558
|
+
research-stage visuals. These run AFTER research findings are compiled so they
|
|
559
|
+
can cite real integration points and capability mentions, but BEFORE
|
|
560
|
+
`research.md` is finalized so the writers can append cross-references to the
|
|
561
|
+
generated artefacts.
|
|
562
|
+
|
|
563
|
+
Run two sub-agents concurrently:
|
|
564
|
+
|
|
565
|
+
1. **`visual-c4-writer`** (Context level only at this stage)
|
|
566
|
+
- Inputs:
|
|
567
|
+
- `<feature_dir>/research.md` (working draft)
|
|
568
|
+
- `<feature_dir>/discovery.md` (if present)
|
|
569
|
+
- Template: `.specify/templates/visuals/c4-context-template.md`
|
|
570
|
+
- Output: `<feature_dir>/visuals/c4-context.md`
|
|
571
|
+
- Required: Mermaid `C4Context` block with named external systems and at
|
|
572
|
+
least one Person; plain-language preamble ≥30 ≤200 words.
|
|
573
|
+
|
|
574
|
+
2. **`visual-heatmap-writer`** (Capability heatmap)
|
|
575
|
+
- Inputs:
|
|
576
|
+
- `<feature_dir>/research.md` (working draft)
|
|
577
|
+
- Template: `.specify/templates/visuals/capability-heatmap-template.md`
|
|
578
|
+
- Output: `<feature_dir>/visuals/capability-heatmap.md`
|
|
579
|
+
- Required: Mermaid `quadrantChart` placing each capability on maturity ×
|
|
580
|
+
strategic-value axes plus tabular complement listing touched / extended /
|
|
581
|
+
replaced capabilities.
|
|
582
|
+
|
|
583
|
+
Both writers must honour the ≥30 ≤200 word plain-language preamble rule
|
|
584
|
+
(NFR-010). If a renderer fails downstream, the `mermaid-tabular-fallback.mjs`
|
|
585
|
+
helper provides a markdown-table replacement without losing information.
|
|
586
|
+
|
|
587
|
+
Cross-reference the generated artefacts from `research.md` (Step 5) under a new
|
|
588
|
+
`## Visuals` section.
|
|
589
|
+
|
|
590
|
+
---
|
|
591
|
+
|
|
592
|
+
## Step 5: Generate Research Document
|
|
593
|
+
|
|
594
|
+
Write to `{FEATURE_DIR}/research.md`:
|
|
595
|
+
|
|
596
|
+
````markdown
|
|
597
|
+
---
|
|
598
|
+
date: [ISO timestamp]
|
|
599
|
+
researcher: Gofer
|
|
600
|
+
feature: '[Feature Name]'
|
|
601
|
+
status: complete
|
|
602
|
+
---
|
|
603
|
+
|
|
604
|
+
# Research: [Feature Name]
|
|
605
|
+
|
|
606
|
+
## Feature Summary
|
|
607
|
+
|
|
608
|
+
[Brief description of what we're building]
|
|
609
|
+
|
|
610
|
+
## Goal Ledger Seed
|
|
611
|
+
|
|
612
|
+
Reference `.specify/specs/{feature}/goal-ledger.json` and capture:
|
|
613
|
+
|
|
614
|
+
- Goal IDs with business outcomes, metrics, targets, owners, and confidence
|
|
615
|
+
- Delivery-state discipline (`mock`, `hybrid`, `live`) for each risky capability
|
|
616
|
+
- Re-loop triggers that should reopen `/2_gofer_specify`, `/3_gofer_plan`,
|
|
617
|
+
`/4_gofer_tasks`, or `/6_gofer_validate`
|
|
618
|
+
|
|
619
|
+
## Loop Contract Seed
|
|
620
|
+
|
|
621
|
+
Reference `.specify/specs/{feature}/loop-contract.json` and capture:
|
|
622
|
+
|
|
623
|
+
- The current feature objective in one measurable sentence
|
|
624
|
+
- Evaluation commands that must pass before implementation and validation close
|
|
625
|
+
- Maximum check-repair iterations before human escalation
|
|
626
|
+
- Stop conditions that define when Gofer should stop looping
|
|
627
|
+
|
|
628
|
+
## Structured Discovery Output
|
|
629
|
+
|
|
630
|
+
### Problem Statement
|
|
631
|
+
|
|
632
|
+
- **Problem**: [What is not working today]
|
|
633
|
+
- **Current State Friction**: [Where users lose time/quality]
|
|
634
|
+
- **Desired EnterpriseAI Outcome**: [What success looks like in EAI terms]
|
|
635
|
+
|
|
636
|
+
### Target Persona
|
|
637
|
+
|
|
638
|
+
- **Primary Persona**: [Name/role]
|
|
639
|
+
- **Skill Level**: [novice/intermediate/advanced]
|
|
640
|
+
- **Top Needs**: [Need 1, Need 2, Need 3]
|
|
641
|
+
- **Constraints**: [Constraints that shape delivery]
|
|
642
|
+
|
|
643
|
+
### Value Proposition
|
|
644
|
+
|
|
645
|
+
- **Primary Value**: [Core value delivered]
|
|
646
|
+
- **Measurable Goal**: [Quantified target]
|
|
647
|
+
- **EnterpriseAI-First Rationale**: [Why EAI is the primary fit]
|
|
648
|
+
- **EAI Platform/Azure Stack Fit**: [EAI services and Azure capabilities to use;
|
|
649
|
+
exceptions only if approved]
|
|
650
|
+
|
|
651
|
+
## Context Bundle Summary
|
|
652
|
+
|
|
653
|
+
- **Relevant Specs**: [Existing specs to carry forward]
|
|
654
|
+
- **Relevant Code Paths**: [Files/directories and why they matter]
|
|
655
|
+
- **EnterpriseAI Object Types**: [Known or candidate object types]
|
|
656
|
+
- **EAI Platform Services and Azure Capabilities**: [Primary platform services,
|
|
657
|
+
supporting Azure services, and any blocked capabilities]
|
|
658
|
+
- **Tenant and Deployment Assumptions**: [Tenant, identity, runtime, target environment]
|
|
659
|
+
- **Validation Criteria**: [Business, security, data, architecture, and operational checks]
|
|
660
|
+
|
|
661
|
+
## Reuse-Before-Create Scan
|
|
662
|
+
|
|
663
|
+
| Candidate | Existing Evidence | Decision | Rationale | Owner |
|
|
664
|
+
| --------- | ----------------- | -------- | --------- | ----- |
|
|
665
|
+
| [Object type/API/workflow/module/spec] | [Path or reference] | Reuse/Extend/Create New | [Why] | [Owner] |
|
|
666
|
+
|
|
667
|
+
## Business Scenario Analysis
|
|
668
|
+
|
|
669
|
+
### Scenario Options Considered
|
|
670
|
+
|
|
671
|
+
| Scenario | User/Business Fit | Delivery Trade-off | Recommendation |
|
|
672
|
+
| ---------- | ----------------- | ------------------ | -------------- |
|
|
673
|
+
| [Option 1] | [Why it fits] | [Cost/complexity] | [Adopt/defer] |
|
|
674
|
+
| [Option 2] | [Why it fits] | [Cost/complexity] | [Adopt/defer] |
|
|
675
|
+
|
|
676
|
+
### Recommended Scenario
|
|
677
|
+
|
|
678
|
+
[Which scenario should move forward into specification and why]
|
|
679
|
+
|
|
680
|
+
## Codebase Analysis
|
|
681
|
+
|
|
682
|
+
### Where to Implement
|
|
683
|
+
|
|
684
|
+
| Component | Location | Purpose |
|
|
685
|
+
| ------------- | ----------------- | -------------- |
|
|
686
|
+
| [Component 1] | `path/to/file.ts` | [What it does] |
|
|
687
|
+
| [Component 2] | `path/to/dir/` | [What it does] |
|
|
688
|
+
|
|
689
|
+
### Existing Patterns to Follow
|
|
690
|
+
|
|
691
|
+
#### Pattern 1: [Name]
|
|
692
|
+
|
|
693
|
+
Found in: `path/to/example.ts:45-67`
|
|
694
|
+
|
|
695
|
+
```typescript
|
|
696
|
+
// Example code showing the pattern
|
|
697
|
+
```
|
|
698
|
+
````
|
|
699
|
+
|
|
700
|
+
Why relevant: [Explanation]
|
|
701
|
+
|
|
702
|
+
#### Pattern 2: [Name]
|
|
703
|
+
|
|
704
|
+
...
|
|
705
|
+
|
|
706
|
+
### Integration Points
|
|
707
|
+
|
|
708
|
+
1. **[Integration 1]**: How to connect with existing code
|
|
709
|
+
2. **[Integration 2]**: ...
|
|
710
|
+
|
|
711
|
+
### Related Code
|
|
712
|
+
|
|
713
|
+
- `path/file.ts:123` - [Description]
|
|
714
|
+
- `path/other.ts:45` - [Description]
|
|
715
|
+
|
|
716
|
+
## Technology Decisions
|
|
717
|
+
|
|
718
|
+
### Decision 1: [Topic]
|
|
719
|
+
|
|
720
|
+
- **Choice**: [What we'll use]
|
|
721
|
+
- **Rationale**: [Why]
|
|
722
|
+
- **Alternatives considered**: [What else]
|
|
723
|
+
|
|
724
|
+
### Decision 2: [Topic]
|
|
725
|
+
|
|
726
|
+
...
|
|
727
|
+
|
|
728
|
+
## Recommended Architecture Direction
|
|
729
|
+
|
|
730
|
+
### Recommended Architecture
|
|
731
|
+
|
|
732
|
+
[Plain-language summary of the architecture direction this feature should use]
|
|
733
|
+
|
|
734
|
+
### Architecture Options Considered
|
|
735
|
+
|
|
736
|
+
| Option | Why choose it | Why not choose it now |
|
|
737
|
+
| ---------- | ------------- | --------------------- |
|
|
738
|
+
| [Option 1] | [Benefit] | [Trade-off] |
|
|
739
|
+
| [Option 2] | [Benefit] | [Trade-off] |
|
|
740
|
+
|
|
741
|
+
## Constraints & Considerations
|
|
742
|
+
|
|
743
|
+
- [Constraint 1]: [Impact on implementation]
|
|
744
|
+
- [Constraint 2]: ...
|
|
745
|
+
|
|
746
|
+
## Open Questions
|
|
747
|
+
|
|
748
|
+
- [ ] [Question needing user input]
|
|
749
|
+
- [ ] [Another question]
|
|
750
|
+
|
|
751
|
+
## Recommendations
|
|
752
|
+
|
|
753
|
+
1. [Key recommendation for implementation]
|
|
754
|
+
2. [Another recommendation]
|
|
755
|
+
|
|
756
|
+
`````
|
|
757
|
+
|
|
758
|
+
---
|
|
759
|
+
|
|
760
|
+
## Step 5.5: Generate Supporting Proposal Review Document
|
|
761
|
+
|
|
762
|
+
Write to `{FEATURE_DIR}/proposal-review.md`:
|
|
763
|
+
|
|
764
|
+
````markdown
|
|
765
|
+
---
|
|
766
|
+
feature: '[Feature Name]'
|
|
767
|
+
created: [ISO timestamp]
|
|
768
|
+
status: supporting_context
|
|
769
|
+
recommendedScenario: '[short label]'
|
|
770
|
+
recommendedArchitecture: '[short label]'
|
|
771
|
+
selectedOption: ''
|
|
772
|
+
approvedBy: ''
|
|
773
|
+
approvedAt: ''
|
|
774
|
+
---
|
|
775
|
+
|
|
776
|
+
# Proposal Review: [Feature Name]
|
|
777
|
+
|
|
778
|
+
## What We Found
|
|
779
|
+
|
|
780
|
+
[Short, evidence-backed summary of the research findings]
|
|
781
|
+
|
|
782
|
+
## Business Scenarios Considered
|
|
783
|
+
|
|
784
|
+
| Scenario | User Value | Delivery Trade-off | Recommendation |
|
|
785
|
+
| -------- | ---------- | ------------------ | -------------- |
|
|
786
|
+
| [Option 1] | [Value] | [Trade-off] | [Adopt/defer] |
|
|
787
|
+
| [Option 2] | [Value] | [Trade-off] | [Adopt/defer] |
|
|
788
|
+
|
|
789
|
+
## Recommended Business Scenario
|
|
790
|
+
|
|
791
|
+
[What should be specified next and why]
|
|
792
|
+
|
|
793
|
+
## Technology Architecture Recommendation
|
|
794
|
+
|
|
795
|
+
### Recommended Architecture
|
|
796
|
+
|
|
797
|
+
[Plain-language architecture direction]
|
|
798
|
+
|
|
799
|
+
### Architecture Options
|
|
800
|
+
|
|
801
|
+
| Option | Why choose it | Why not choose it now |
|
|
802
|
+
| ------ | ------------- | --------------------- |
|
|
803
|
+
| [Option 1] | [Benefit] | [Trade-off] |
|
|
804
|
+
| [Option 2] | [Benefit] | [Trade-off] |
|
|
805
|
+
|
|
806
|
+
## Key Decisions and Why
|
|
807
|
+
|
|
808
|
+
- [Decision]: [Rationale]
|
|
809
|
+
- [Decision]: [Rationale]
|
|
810
|
+
|
|
811
|
+
## What Can Change Before Specification
|
|
812
|
+
|
|
813
|
+
- Scope changes the user may request
|
|
814
|
+
- Architecture changes the user may request
|
|
815
|
+
- Options that can be revisited before writing spec.md
|
|
816
|
+
|
|
817
|
+
## Open Questions
|
|
818
|
+
|
|
819
|
+
- [ ] [Question needing user input]
|
|
820
|
+
- [ ] [Another question]
|
|
821
|
+
|
|
822
|
+
## User Feedback and Overrides
|
|
823
|
+
|
|
824
|
+
- Pending user review
|
|
825
|
+
|
|
826
|
+
## Approval
|
|
827
|
+
|
|
828
|
+
- Status: supporting_context
|
|
829
|
+
- Next action: carry any user feedback into `/2_gofer_specify`
|
|
830
|
+
`````
|
|
831
|
+
|
|
832
|
+
---
|
|
833
|
+
|
|
834
|
+
## Step 6: Review, Discuss, and Hand Off To Specification
|
|
835
|
+
|
|
836
|
+
Before presenting the handoff, update the stakeholder-facing product release
|
|
837
|
+
PR/FAQ artifacts:
|
|
838
|
+
|
|
839
|
+
1. Create or update `{FEATURE_DIR}/working-backwards-prfaq.md` from
|
|
840
|
+
`.specify/templates/working-backwards-prfaq-template.md`.
|
|
841
|
+
- Fill the Press Release with the best current customer problem, launch
|
|
842
|
+
promise, customer benefit, and "How To Get Started" story from research.
|
|
843
|
+
- Fill External FAQ with researched customer/process evidence and mark
|
|
844
|
+
unknown claims as `Pending research validation` instead of inventing them.
|
|
845
|
+
- Fill Internal FAQ Business Owner and CTO sections with research options,
|
|
846
|
+
platform constraints, and architecture trade-offs.
|
|
847
|
+
2. Write an immutable snapshot to
|
|
848
|
+
`{FEATURE_DIR}/prfaq-history/01-research.md`.
|
|
849
|
+
3. Create or update `{FEATURE_DIR}/business-owner-summary.md` from
|
|
850
|
+
`.specify/templates/business-owner-summary-template.md` using
|
|
851
|
+
`problem-brief.md`, `discovery.md`, `research.md`, value-stream, and ROI
|
|
852
|
+
evidence when present. If `spec-summary.md` or `business-metrics.md` does
|
|
853
|
+
not exist yet, keep the relevant rows and mark status `Pending /2 or /7a`.
|
|
854
|
+
4. Update `{FEATURE_DIR}/stakeholder-review-index.md` from
|
|
855
|
+
`.specify/templates/stakeholder-review-index-template.md` and mark the
|
|
856
|
+
Business Owner and CTO review asks that should be answered before or during
|
|
857
|
+
`/2_gofer_specify`.
|
|
858
|
+
|
|
859
|
+
After saving `research.md`, `goal-ledger.json`, `proposal-review.md`, and the
|
|
860
|
+
PR/FAQ review artifacts:
|
|
861
|
+
|
|
862
|
+
1. **Present summary** to user:
|
|
863
|
+
- What was found
|
|
864
|
+
- Business scenarios considered
|
|
865
|
+
- Recommended business scenario
|
|
866
|
+
- Recommended architecture direction
|
|
867
|
+
- Options and trade-offs
|
|
868
|
+
- Any open questions needing input
|
|
869
|
+
|
|
870
|
+
2. **Ask focused follow-up questions only if needed**:
|
|
871
|
+
- Clarify the preferred business scenario if the research found real alternatives
|
|
872
|
+
- Clarify the preferred architecture direction if the trade-off is still ambiguous
|
|
873
|
+
- Confirm whether the user wants to stop after research or continue into specification
|
|
874
|
+
|
|
875
|
+
3. **Run architecture questions one-by-one (MANDATORY when architecture options
|
|
876
|
+
exist)**:
|
|
877
|
+
- Ask exactly ONE architecture question at a time using AskUserQuestion
|
|
878
|
+
- After each answer, ask whether the user wants to discuss that question
|
|
879
|
+
before locking the answer
|
|
880
|
+
- If the user asks clarifying questions, answer them first, then re-ask the
|
|
881
|
+
same question for a final decision
|
|
882
|
+
- Record the final answer in `proposal-review.md` before moving to the next
|
|
883
|
+
question
|
|
884
|
+
- Never bundle multiple architecture decisions into a single prompt
|
|
885
|
+
|
|
886
|
+
Suggested order:
|
|
887
|
+
1. Confirm preferred architecture option
|
|
888
|
+
2. Confirm the key trade-off priority (speed, flexibility, reliability, cost)
|
|
889
|
+
3. Confirm non-negotiable constraints/integration boundaries
|
|
890
|
+
|
|
891
|
+
4. **If the user requests changes**:
|
|
892
|
+
- Update `proposal-review.md` with the feedback in
|
|
893
|
+
`User Feedback and Overrides`
|
|
894
|
+
- Set `status: revised_supporting_context` if the recommendation must change
|
|
895
|
+
- Revise the recommendation before continuing
|
|
896
|
+
|
|
897
|
+
5. **If the user wants to stop after research**:
|
|
898
|
+
- End after summarizing the current findings
|
|
899
|
+
- Do not auto-chain until the user explicitly asks to continue
|
|
900
|
+
|
|
901
|
+
6. **Signal completion**:
|
|
902
|
+
|
|
903
|
+
```
|
|
904
|
+
|
|
905
|
+
✓ Research complete: {FEATURE_DIR}/research.md
|
|
906
|
+
✓ Goal ledger seeded: {FEATURE_DIR}/goal-ledger.json
|
|
907
|
+
✓ Loop contract seeded: {FEATURE_DIR}/loop-contract.json
|
|
908
|
+
✓ Working Backwards PR/FAQ updated: {FEATURE_DIR}/working-backwards-prfaq.md
|
|
909
|
+
✓ PR/FAQ research snapshot: {FEATURE_DIR}/prfaq-history/01-research.md
|
|
910
|
+
✓ Business Owner summary draft: {FEATURE_DIR}/business-owner-summary.md
|
|
911
|
+
✓ Stakeholder review index updated: {FEATURE_DIR}/stakeholder-review-index.md
|
|
912
|
+
✓ Supporting review context ready: {FEATURE_DIR}/proposal-review.md
|
|
913
|
+
|
|
914
|
+
Key findings:
|
|
915
|
+
|
|
916
|
+
- [Finding 1]
|
|
917
|
+
- [Finding 2]
|
|
918
|
+
|
|
919
|
+
```
|
|
920
|
+
|
|
921
|
+
**AUTO-CHAIN (DEFAULT)**: Unless the user explicitly asks to stop after
|
|
922
|
+
research, invoke the Skill tool with `skill="/2_gofer_specify"` immediately
|
|
923
|
+
after the research summary and any critical clarification answers are captured.
|
|
924
|
+
|
|
925
|
+
---
|
|
926
|
+
|
|
927
|
+
## Step 6.5: Brownfield/Legacy Analysis (For Existing Codebases)
|
|
928
|
+
|
|
929
|
+
When working in an existing codebase, add this section to research.md:
|
|
930
|
+
|
|
931
|
+
```markdown
|
|
932
|
+
## Brownfield Analysis
|
|
933
|
+
|
|
934
|
+
### Constraints & Limitations
|
|
935
|
+
|
|
936
|
+
| Constraint Type | Description | Impact on Implementation |
|
|
937
|
+
| ----------------- | ----------------------------------------- | ------------------------------ |
|
|
938
|
+
| Framework | [e.g., React 17 - no concurrent features] | [How this limits our approach] |
|
|
939
|
+
| Database | [e.g., PostgreSQL 12, existing schema] | [Schema constraints] |
|
|
940
|
+
| API Compatibility | [e.g., Must maintain v1 endpoints] | [Backward compatibility needs] |
|
|
941
|
+
| Performance | [e.g., Response time < 200ms] | [Optimization requirements] |
|
|
942
|
+
|
|
943
|
+
### Technical Debt to Avoid
|
|
944
|
+
|
|
945
|
+
The following patterns are deprecated or problematic - do NOT use:
|
|
946
|
+
|
|
947
|
+
| Pattern | Found In | Why Avoid | Use Instead |
|
|
948
|
+
| ------------- | ----------------- | --------- | -------------------- |
|
|
949
|
+
| [Old pattern] | `path/to/file.ts` | [Reason] | [Preferred approach] |
|
|
950
|
+
|
|
951
|
+
### Areas Requiring Extra Caution
|
|
952
|
+
|
|
953
|
+
- **[Area 1]**: [Why it's fragile and what to watch for]
|
|
954
|
+
- **[Area 2]**: [Known issues or gotchas]
|
|
955
|
+
|
|
956
|
+
### Integration Requirements
|
|
957
|
+
|
|
958
|
+
| Existing Service | Integration Method | Notes |
|
|
959
|
+
| ---------------- | ------------------ | ------------------------------ |
|
|
960
|
+
| [Service 1] | [API/Import/Event] | [Authentication, format, etc.] |
|
|
961
|
+
|
|
962
|
+
### Downstream Dependencies
|
|
963
|
+
|
|
964
|
+
Code that depends on areas we're modifying:
|
|
965
|
+
|
|
966
|
+
- `path/to/dependent.ts:45` - [What it depends on]
|
|
967
|
+
- `path/to/consumer.ts:123` - [What it expects]
|
|
968
|
+
```
|
|
969
|
+
|
|
970
|
+
### Brownfield Checklist
|
|
971
|
+
|
|
972
|
+
Before modifying existing code:
|
|
973
|
+
|
|
974
|
+
- [ ] Understand current behavior (read and trace code flow)
|
|
975
|
+
- [ ] Document what must NOT change (protected boundaries)
|
|
976
|
+
- [ ] Identify downstream dependencies
|
|
977
|
+
- [ ] Add characterization tests if modifying complex logic
|
|
978
|
+
- [ ] Plan rollback strategy for risky changes
|
|
979
|
+
|
|
980
|
+
---
|
|
981
|
+
|
|
982
|
+
## Step 6.5: Journey Variant Generation (Optional)
|
|
983
|
+
|
|
984
|
+
**If a base journey exists** at
|
|
985
|
+
`.specify/specs/{feature}/journeys/base-journey.md`:
|
|
986
|
+
|
|
987
|
+
Generate industry variants to discover innovative approaches from other domains.
|
|
988
|
+
|
|
989
|
+
### Generate Variant Count
|
|
990
|
+
|
|
991
|
+
Pick a random number between 10-50:
|
|
992
|
+
|
|
993
|
+
```bash
|
|
994
|
+
VARIANT_COUNT=$((RANDOM % 41 + 10))
|
|
995
|
+
echo "Generating $VARIANT_COUNT industry variants"
|
|
996
|
+
```
|
|
997
|
+
|
|
998
|
+
### Load Industry Templates
|
|
999
|
+
|
|
1000
|
+
Read `.specify/templates/journey/industry-variants.yaml` for industry-specific
|
|
1001
|
+
patterns.
|
|
1002
|
+
|
|
1003
|
+
### Generate Variants
|
|
1004
|
+
|
|
1005
|
+
For each variant, create a file at:
|
|
1006
|
+
`.specify/specs/{feature}/journeys/variants/{industry}-{number}.md`
|
|
1007
|
+
|
|
1008
|
+
Example: `healthcare-1.md`, `retail-2.md`, `finance-1.md`
|
|
1009
|
+
|
|
1010
|
+
**Distribute proportionally across 10 industries:**
|
|
1011
|
+
|
|
1012
|
+
- retail, healthcare, finance, education, hospitality
|
|
1013
|
+
- logistics, manufacturing, legal, real_estate, entertainment
|
|
1014
|
+
|
|
1015
|
+
**Each variant should include:**
|
|
1016
|
+
|
|
1017
|
+
````markdown
|
|
1018
|
+
---
|
|
1019
|
+
id: {feature}-{industry}-{number}
|
|
1020
|
+
baseJourneyId: {feature}-journey
|
|
1021
|
+
industry: {industry}
|
|
1022
|
+
variantNumber: {number}
|
|
1023
|
+
created: {ISO-timestamp}
|
|
1024
|
+
---
|
|
1025
|
+
|
|
1026
|
+
# Journey Variant: {Industry} #{number}
|
|
1027
|
+
|
|
1028
|
+
## Base Journey Reference
|
|
1029
|
+
|
|
1030
|
+
Based on: [base-journey.md](../base-journey.md)
|
|
1031
|
+
|
|
1032
|
+
## Industry Context
|
|
1033
|
+
|
|
1034
|
+
{Description of how this industry typically handles similar journeys}
|
|
1035
|
+
|
|
1036
|
+
## Adaptations
|
|
1037
|
+
|
|
1038
|
+
{How the base journey is adapted for this industry}
|
|
1039
|
+
|
|
1040
|
+
1. **Step N adapted**: {How step N changes in this industry}
|
|
1041
|
+
2. **Actor change**: {Different actors in this industry context}
|
|
1042
|
+
|
|
1043
|
+
## Innovation Insights
|
|
1044
|
+
|
|
1045
|
+
Key innovations from {industry} that could apply to your feature:
|
|
1046
|
+
|
|
1047
|
+
1. **{Innovation 1}**: {Description and how it could be applied}
|
|
1048
|
+
2. **{Innovation 2}**: {Description and how it could be applied}
|
|
1049
|
+
|
|
1050
|
+
## Modified Diagram
|
|
1051
|
+
|
|
1052
|
+
```mermaid
|
|
1053
|
+
sequenceDiagram
|
|
1054
|
+
{Industry-specific sequence diagram}
|
|
1055
|
+
```
|
|
1056
|
+
````
|
|
1057
|
+
|
|
1058
|
+
## Potential Application
|
|
1059
|
+
|
|
1060
|
+
How these insights could enhance your feature:
|
|
1061
|
+
|
|
1062
|
+
- {Specific suggestion 1}
|
|
1063
|
+
- {Specific suggestion 2}
|
|
1064
|
+
|
|
1065
|
+
````
|
|
1066
|
+
|
|
1067
|
+
### Document Innovation Summary
|
|
1068
|
+
|
|
1069
|
+
Add an "Innovation Insights" section to `research.md`:
|
|
1070
|
+
|
|
1071
|
+
```markdown
|
|
1072
|
+
## Innovation Insights (from Industry Variants)
|
|
1073
|
+
|
|
1074
|
+
Generated {N} journey variants across 10 industries.
|
|
1075
|
+
|
|
1076
|
+
### Top Innovations to Consider
|
|
1077
|
+
|
|
1078
|
+
| Industry | Innovation | Application Potential |
|
|
1079
|
+
|----------|------------|----------------------|
|
|
1080
|
+
| Healthcare | AI symptom checker | Could add AI-powered input validation |
|
|
1081
|
+
| Finance | Real-time fraud detection | Could add anomaly detection |
|
|
1082
|
+
| Retail | Personalized recommendations | Could add user-specific suggestions |
|
|
1083
|
+
|
|
1084
|
+
### Variant Summary
|
|
1085
|
+
|
|
1086
|
+
| Industry | Count | Key Patterns |
|
|
1087
|
+
|----------|-------|--------------|
|
|
1088
|
+
| Retail | 5 | Cart recovery, recommendations |
|
|
1089
|
+
| Healthcare | 4 | Patient portal, telehealth |
|
|
1090
|
+
| ... | ... | ... |
|
|
1091
|
+
````
|
|
1092
|
+
|
|
1093
|
+
### Skip Conditions
|
|
1094
|
+
|
|
1095
|
+
Skip variant generation if:
|
|
1096
|
+
|
|
1097
|
+
1. No base journey exists (user skipped journey mapping)
|
|
1098
|
+
2. Feature is purely technical (no user-facing journey)
|
|
1099
|
+
3. Context window is at Warning level (>50%)
|
|
1100
|
+
|
|
1101
|
+
---
|
|
1102
|
+
|
|
1103
|
+
## Step 7: Observability Logging
|
|
1104
|
+
|
|
1105
|
+
At stage completion, log metrics:
|
|
1106
|
+
|
|
1107
|
+
```bash
|
|
1108
|
+
.specify/scripts/bash/log-stage.sh 1_research --complete --tokens [N] --compactions [N]
|
|
1109
|
+
```
|
|
1110
|
+
|
|
1111
|
+
This tracks:
|
|
1112
|
+
|
|
1113
|
+
- Stage duration
|
|
1114
|
+
- Token usage
|
|
1115
|
+
- Compaction events
|
|
1116
|
+
- Quality metrics snapshot
|
|
1117
|
+
|
|
1118
|
+
Logs to: `.specify/logs/pipeline.jsonl`
|
|
1119
|
+
|
|
1120
|
+
---
|
|
1121
|
+
|
|
1122
|
+
## Important Notes
|
|
1123
|
+
|
|
1124
|
+
- **All output goes to `.specify/specs/{feature}/`** - not thoughts/shared/
|
|
1125
|
+
- **Run agents in parallel** for efficiency
|
|
1126
|
+
- **Include specific file paths and line numbers** for all references
|
|
1127
|
+
- **Structured Problem Statement + Persona + Value Proposition are required** in
|
|
1128
|
+
`research.md`
|
|
1129
|
+
- **Research must remain usable by novices without external docs**
|
|
1130
|
+
- **Research should inform specification directly** - focus on what helps users
|
|
1131
|
+
discuss the business scenario and architecture before `spec.md` is written
|
|
1132
|
+
- **Maximum 5 open questions** - make informed decisions for the rest
|
|
1133
|
+
- **Use `proposal-review.md` as optional supporting context, not as a blocking stage**
|
|
1134
|
+
- **Log stage completion** for observability tracking
|
|
1135
|
+
|
|
1136
|
+
---
|
|
1137
|
+
|
|
1138
|
+
## Optional Helpers: Vocabulary Extraction and Zoom-Out
|
|
1139
|
+
|
|
1140
|
+
If the operator explicitly requests the `vocabulary` selector after
|
|
1141
|
+
`research.md` exists, run `gofer:vocabulary` inline and write
|
|
1142
|
+
`.specify/specs/{feature}/glossary.md` using the same artifact contract as the
|
|
1143
|
+
standalone helper.
|
|
1144
|
+
|
|
1145
|
+
If the operator explicitly requests the `zoom-out` selector after `research.md`
|
|
1146
|
+
exists, run `gofer:zoom-out` inline and write
|
|
1147
|
+
`.specify/specs/{feature}/zoom-out-report.md` using the same artifact contract
|
|
1148
|
+
as the standalone helper.
|
|
1149
|
+
|
|
1150
|
+
If `research.md` is missing, continue the stage normally and report that the
|
|
1151
|
+
helper was not run.
|
|
1152
|
+
|
|
1153
|
+
These selectors are optional and do not change stage progress, routing, or
|
|
1154
|
+
pipeline state.
|