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,1308 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 0_gofer_start
|
|
3
|
+
description: Start Gofer, confirm EAI readiness, and orchestrate the unified pipeline
|
|
4
|
+
agent: copilot-workspace
|
|
5
|
+
tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Grep
|
|
8
|
+
- Glob
|
|
9
|
+
- Bash
|
|
10
|
+
- WebSearch
|
|
11
|
+
argument-hint: feature-name-or-description
|
|
12
|
+
gofer:
|
|
13
|
+
workflowProfile: standard
|
|
14
|
+
canonicalSource: .specify/commands/0_gofer_start.md
|
|
15
|
+
canonicalChecksum: 5745e1467f2b1361b2d7dd6e1cc2d077cb5d157b5f96b951732e250b40f67a57
|
|
16
|
+
metadataSource: scripts/generate-commands.ts
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# Gofer Start
|
|
21
|
+
|
|
22
|
+
## Token And Cost Policy
|
|
23
|
+
<!-- gofer:token-cost-policy:start -->
|
|
24
|
+
|
|
25
|
+
Before spawning agents, calling tools, or loading large files:
|
|
26
|
+
|
|
27
|
+
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.
|
|
28
|
+
2. Use the cheapest capable model first.
|
|
29
|
+
- Claude: Haiku for scouting/extraction; Sonnet for normal implementation, synthesis, validation, and security; Opus for high-risk arbitration or release-critical failures.
|
|
30
|
+
- 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.
|
|
31
|
+
- Gemini: Flash-Lite for cheap large-context scan/summarize; Flash for default research synthesis; Pro for large-context architecture or high-risk arbitration.
|
|
32
|
+
- 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.
|
|
33
|
+
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.
|
|
34
|
+
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.
|
|
35
|
+
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.
|
|
36
|
+
6. Escalate model tier only when a cheaper pass is low-confidence, contradictory, security-sensitive, or blocking release quality.
|
|
37
|
+
<!-- gofer:token-cost-policy:end -->
|
|
38
|
+
|
|
39
|
+
## Workspace Preflight
|
|
40
|
+
|
|
41
|
+
Before doing stage/helper work:
|
|
42
|
+
|
|
43
|
+
1. Resolve the repository root.
|
|
44
|
+
2. Check the core Gofer sentinels:
|
|
45
|
+
- `.specify/.gofer-version`
|
|
46
|
+
- `.specify/commands#0_gofer_start.md`
|
|
47
|
+
- `.specify/templates/spec-template.md`
|
|
48
|
+
- `.specify/templates/loop-contract-template.json`
|
|
49
|
+
- `.specify/scripts/bash/create-new-feature.sh`
|
|
50
|
+
- `.specify/scripts/node/parse-stage-command.mjs`
|
|
51
|
+
- `.specify/scripts/node/gofer-loop-audit.mjs`
|
|
52
|
+
- `.specify/scripts/hooks/post-tool-use.mjs`
|
|
53
|
+
- `.specify/scripts/powershell/install-optional-tools.ps1`
|
|
54
|
+
- `.specify/templates/gofer-model-policy.yaml`
|
|
55
|
+
- `.specify/memory/gofer-model-policy.yaml`
|
|
56
|
+
- `.specify/specs/`
|
|
57
|
+
- `.specify/memory/`
|
|
58
|
+
3. Check host-specific repo-owned files when relevant:
|
|
59
|
+
- Claude: `AGENTS.md`, `CLAUDE.md`, `.claude/settings.json`
|
|
60
|
+
- Codex: `AGENTS.md`
|
|
61
|
+
- Copilot: `.github/copilot-instructions.md`
|
|
62
|
+
- VS Code extension mirrors Claude/Copilot/Gemini resources itself and should still keep the core scaffold healthy
|
|
63
|
+
4. If the repo already has the workspace checker script, prefer running:
|
|
64
|
+
- `node .specify/scripts/node/gofer-workspace-check.mjs --host copilot --json`
|
|
65
|
+
5. If the workspace is missing or stale, ask exactly:
|
|
66
|
+
- **"This repo is missing or stale for Gofer. Initialize/update it now?"**
|
|
67
|
+
6. If the user says yes, run the Gofer workspace bootstrap helper and then resume this command from the top.
|
|
68
|
+
7. If the user says no, stop and explain that Gofer stage/helper work depends on the repo-owned scaffold.
|
|
69
|
+
|
|
70
|
+
## EAI Platform Session Preflight
|
|
71
|
+
|
|
72
|
+
Before any Gofer stage/helper command does pipeline work:
|
|
73
|
+
|
|
74
|
+
1. Treat durable delivery as EAI Platform delivery by default, with Azure second
|
|
75
|
+
and every other stack only by explicit exception.
|
|
76
|
+
2. Run `eai whoami` and confirm the EAI CLI is installed, the user is logged in,
|
|
77
|
+
and an active tenant is visible.
|
|
78
|
+
3. If `eai` is missing, `eai whoami` fails, the token is expired, or no active
|
|
79
|
+
tenant is available, stop and run `/gofer:eai-first-run` or ask the user to
|
|
80
|
+
approve login/setup before continuing.
|
|
81
|
+
4. For EAI app delivery, do not continue into research, specification, planning,
|
|
82
|
+
tasks, implementation, or validation until
|
|
83
|
+
`.specify/specs/{feature}/eai-preflight.md` records login, tenant, template,
|
|
84
|
+
app-readiness, and next-action evidence.
|
|
85
|
+
5. Do not write tokens, secrets, private tenant IDs, or local `.env` values into
|
|
86
|
+
Gofer artifacts; record only product-safe readiness status and evidence.
|
|
87
|
+
|
|
88
|
+
## EAI App Delivery Preflight
|
|
89
|
+
|
|
90
|
+
Run this after the Gofer workspace preflight and before application-delivery
|
|
91
|
+
discovery whenever the request is an app build, dashboard, portal, workflow,
|
|
92
|
+
form, chatbot, app, tenant-scoped business experience, or any
|
|
93
|
+
durable user-facing product. App delivery in EAI Gofer means EAI Platform
|
|
94
|
+
delivery by default. Do not run this for explicit non-app work. If the user asks
|
|
95
|
+
for a non-EAI app stack, pause and confirm that they are intentionally leaving
|
|
96
|
+
the EAI Gofer app-delivery path before continuing.
|
|
97
|
+
|
|
98
|
+
Use current public EAI documentation as the safe source of truth:
|
|
99
|
+
|
|
100
|
+
- EAI CLI docs: `https://eai-tools.github.io/eai/docs/overview`
|
|
101
|
+
- EAI API reference: `https://eai-tools.github.io/eai/docs/api-reference`
|
|
102
|
+
- EAI static registry: `https://eai-tools.github.io/eai/registry/`
|
|
103
|
+
- EAI scenario library: `https://eai-tools.github.io/eai/scenarios`
|
|
104
|
+
- EAI app template: `https://github.com/eai-tools/eai-app-template`
|
|
105
|
+
|
|
106
|
+
### EAI Platform And Azure App Stack Policy
|
|
107
|
+
|
|
108
|
+
For application delivery, Gofer MUST use this stack order:
|
|
109
|
+
|
|
110
|
+
1. **EAI Platform first, including the EAI app template**: EAI app template, EAI
|
|
111
|
+
CLI, PublicAPI, object types, workflows, block catalog, ResourceAPI/resource
|
|
112
|
+
schema, tenant/app enrollment, identity, provisioning, diagnostics, and
|
|
113
|
+
documented EAI platform services are one EAI Platform app substrate.
|
|
114
|
+
2. **Azure second**: Azure services that are already part of, documented for, or
|
|
115
|
+
compatible with the EAI Platform operating model, especially deployment,
|
|
116
|
+
identity, storage, observability, and integration services.
|
|
117
|
+
3. **Everything else only by explicit exception**: Firebase, Supabase, Vercel as
|
|
118
|
+
the primary runtime, AWS, GCP, bespoke backends, unmanaged databases, or
|
|
119
|
+
unrelated SaaS platforms must not be recommended as the primary app substrate.
|
|
120
|
+
They may appear only as integration targets, migration references, or
|
|
121
|
+
approved exceptions with rationale, owner, expiry, and validation evidence.
|
|
122
|
+
|
|
123
|
+
Application-specific logic, adapters, UI extensions, and tests belong inside the
|
|
124
|
+
EAI Platform/EAI app template scaffold and must obey package-profile,
|
|
125
|
+
public-readiness, tenant, and security constraints. They are implementation
|
|
126
|
+
inside the primary substrate, not a separate stack tier.
|
|
127
|
+
|
|
128
|
+
If a required capability is not accessible in EAI Platform or Azure, record it
|
|
129
|
+
in `{FEATURE_DIR}/service-fit-matrix.md` as `unavailable without new platform
|
|
130
|
+
work`, `operator_required`, or `upgrade_required`. Do not silently replace it
|
|
131
|
+
with an unrelated non-EAI stack.
|
|
132
|
+
|
|
133
|
+
### EAI Preflight Checks
|
|
134
|
+
|
|
135
|
+
1. **Classify the build path**
|
|
136
|
+
- Treat the work as EAI app delivery when the user asks to build an app,
|
|
137
|
+
dashboard, portal, workflow, form, chatbot, app,
|
|
138
|
+
tenant-scoped business experience, or durable user-facing product.
|
|
139
|
+
- If the user is only doing research, docs, audit, migration planning, or
|
|
140
|
+
non-EAI application work, record that EAI preflight is not applicable.
|
|
141
|
+
- If the user asks for a non-EAI app stack, ask whether they want to leave the
|
|
142
|
+
EAI Gofer app-delivery path. If yes, record the exception and stop EAI app
|
|
143
|
+
implementation guidance; if no, keep the EAI Platform/Azure stack policy.
|
|
144
|
+
2. **Run first-run setup when prerequisites are missing**
|
|
145
|
+
- If Git, Node.js, npm, `eai`, login, tenant access, the EAI app template, or
|
|
146
|
+
the Gofer scaffold is missing or stale, run `/gofer:eai-first-run` before
|
|
147
|
+
research, specification, planning, or implementation.
|
|
148
|
+
- `/gofer:eai-first-run` is the cross-platform setup contract for macOS,
|
|
149
|
+
Linux, Windows, GitHub Codespaces, Claude Code, Codex, Copilot, Gemini, and
|
|
150
|
+
VS Code. It checks first, asks only when action is needed, installs the EAI
|
|
151
|
+
CLI when approved, checks `eai update --check`, confirms login and tenant,
|
|
152
|
+
runs `eai init <project-name> --skip-prompts --company-tenant
|
|
153
|
+
<active-tenant-id>` when approved, verifies Gofer files, and then returns
|
|
154
|
+
here.
|
|
155
|
+
- If `#0_gofer_start` is unavailable in a new repo, the user should run
|
|
156
|
+
the plugin-level `/gofer:eai-first-run` command after installing or
|
|
157
|
+
updating the Gofer plugin.
|
|
158
|
+
3. **Install or update the EAI CLI when needed**
|
|
159
|
+
- Check `git --version`, `node --version`, `npm --version`, `npm config get
|
|
160
|
+
@eai-tools:registry`, and `eai --version`.
|
|
161
|
+
- If `eai` is missing and the user approves, install it:
|
|
162
|
+
```bash
|
|
163
|
+
npm config set @eai-tools:registry https://eai-tools.github.io/eai/registry/ --location=user
|
|
164
|
+
npm install -g @eai-tools/cli
|
|
165
|
+
eai --version
|
|
166
|
+
```
|
|
167
|
+
- On Windows, use the same npm commands in PowerShell and avoid shell
|
|
168
|
+
redirection. In GitHub Codespaces, prefer user-level npm and avoid `sudo`
|
|
169
|
+
unless the user explicitly approves. If install fails, stop EAI app
|
|
170
|
+
delivery and give the user the exact commands above plus the EAI
|
|
171
|
+
account/setup link. Continue only if the user explicitly chooses a non-EAI
|
|
172
|
+
path.
|
|
173
|
+
- If `eai` is already installed, run `eai update --check`. If the CLI is
|
|
174
|
+
behind, record `upgrade_required` and ask before running `eai update`.
|
|
175
|
+
4. **Discover CLI capabilities before assuming syntax**
|
|
176
|
+
- Run `eai --describe` and prefer advertised subcommands/options over stale
|
|
177
|
+
remembered syntax.
|
|
178
|
+
- If advertised, run `eai agent guide --format json` before planning EAI
|
|
179
|
+
platform work so the agent uses current CLI contracts and safe recovery
|
|
180
|
+
patterns.
|
|
181
|
+
- After any `eai` command error, run
|
|
182
|
+
`eai errors explain <code-or-reason> --format json` before proposing a
|
|
183
|
+
fix, and prefer the CLI's public-safe recovery commands over guessed
|
|
184
|
+
platform internals.
|
|
185
|
+
- If the CLI does not advertise `eai errors explain`, match the failure
|
|
186
|
+
against `.specify/references/platform/eai-error-catalog.yaml`, run the
|
|
187
|
+
listed read-only diagnostics before mutating fixes, and stop at the retry
|
|
188
|
+
or escalation condition instead of looping.
|
|
189
|
+
- For tenant member/admin changes, if `eai user invite` fails with
|
|
190
|
+
`EXTERNAL_SERVICE_ERROR`, a 5xx response, or
|
|
191
|
+
`user_invite_external_service_existing_member`, check for an existing
|
|
192
|
+
direct member with `eai user list --tenant <tenant-id> --search <email>
|
|
193
|
+
--format json`; use `eai user role set --tenant <tenant-id> --member-id
|
|
194
|
+
<member-id> --role tenant-admin --format json` only after read-only
|
|
195
|
+
evidence and user approval, verify the read-back, and tell the affected
|
|
196
|
+
app user to sign out and sign back in because Auth.js session or JWT role
|
|
197
|
+
data may be cached.
|
|
198
|
+
- Use JSON only where the CLI advertises it. `eai tenant list --format json`
|
|
199
|
+
is suitable for automation; `eai whoami` may be plain text on current
|
|
200
|
+
versions.
|
|
201
|
+
- Record whether the installed CLI advertises `eai app`, `eai resources
|
|
202
|
+
schema`, `eai workflow readiness`, `eai template check`, `eai gofer
|
|
203
|
+
refresh --check`, `eai provision entra`, `eai blocks`,
|
|
204
|
+
`eai agent guide`, and `eai errors explain`.
|
|
205
|
+
5. **Check account, login, and tenant readiness**
|
|
206
|
+
- Run `eai whoami` to confirm login, active tenant, profile, token status,
|
|
207
|
+
and PublicAPI context.
|
|
208
|
+
- If not logged in or the token is expired, run `eai login` and then
|
|
209
|
+
`eai tenant select`.
|
|
210
|
+
- Run `eai tenant list --format json` and require at least one usable tenant
|
|
211
|
+
membership for EAI app delivery. Prefer a `tenant-admin` membership because
|
|
212
|
+
app enrollment and provisioning are tenant-admin actions.
|
|
213
|
+
- If no tenant is available, tell the user they need an EAI Platform account
|
|
214
|
+
and tenant access before Gofer can build an EAI app. Do not fabricate
|
|
215
|
+
tenant IDs or continue into implementation.
|
|
216
|
+
6. **Check EAI template/project readiness**
|
|
217
|
+
- Detect existing template markers before scaffolding:
|
|
218
|
+
- `src/eai.config/object-types.ts`
|
|
219
|
+
- `src/eai.config/register.ts`
|
|
220
|
+
- `.env.example`
|
|
221
|
+
- `.npmrc`
|
|
222
|
+
- `package.json`
|
|
223
|
+
- Run `eai verify` only when the repo appears to be an EAI project. If
|
|
224
|
+
`eai verify` reports `E001` or "Not in an EAI project", treat the repo as
|
|
225
|
+
not initialized from the EAI app template.
|
|
226
|
+
- If the repo appears to be an EAI project and the commands are advertised,
|
|
227
|
+
run `eai template check --format json` and `eai gofer refresh --check
|
|
228
|
+
--format json` to identify EAI template or Gofer scaffold drift before
|
|
229
|
+
planning implementation.
|
|
230
|
+
- For a new or empty app workspace, ask:
|
|
231
|
+
**"This looks like an EAI app build, but this repo has not been initialized from the EAI app template. Initialize it with `eai init <app-name>` now?"**
|
|
232
|
+
- If the repo is non-empty or already contains source files, do not scaffold
|
|
233
|
+
over it silently. Ask whether to initialize a new sibling EAI app directory
|
|
234
|
+
with `eai init <app-name>`, or to stop and let the user prepare the repo.
|
|
235
|
+
7. **Check app enrollment capability before build planning**
|
|
236
|
+
- Once app name and tenant are confirmed, run `eai app list --format
|
|
237
|
+
json` to confirm the tenant's current app enrollments.
|
|
238
|
+
- Before creating anything remote, ask the user to confirm the app name,
|
|
239
|
+
app key, company tenant, and any child-tenant boundary.
|
|
240
|
+
- If confirmed, use `eai app create <name> --tenant-id <tenant-id>
|
|
241
|
+
--format json` or the currently advertised equivalent from `eai
|
|
242
|
+
--describe`.
|
|
243
|
+
- Record the selected app key with `eai app select <key> --format json`
|
|
244
|
+
when available.
|
|
245
|
+
- Do not claim platform readiness from app creation alone. Later stages must
|
|
246
|
+
keep real EAI app gates separate: `eai app provision <key> --tenant-id <tenant-id> --select --format json`,
|
|
247
|
+
`eai types validate`,
|
|
248
|
+
`eai types seed --tenant-key <key> --tenant-id <tenant-id> --format json`,
|
|
249
|
+
`eai types diff`, `eai resources schema --tenant-id <tenant-id> --format json`,
|
|
250
|
+
`eai resources storage doctor --tenant-id <tenant-id> --format json`,
|
|
251
|
+
`eai verify storage --tenant-id <tenant-id>`, workflow readiness, and
|
|
252
|
+
preview/runtime readiness.
|
|
253
|
+
- Provision storage, Entra app registration, environment sync, object types,
|
|
254
|
+
and deployment only in the later plan/tasks/implement stages after the
|
|
255
|
+
business scenario and UI approval gates are complete.
|
|
256
|
+
8. **Check template block and platform knowledge for research**
|
|
257
|
+
- Run or plan to run `eai blocks list --format json`, `eai blocks readiness
|
|
258
|
+
--package-profile <external|internal|hybrid> --format json`, and `eai
|
|
259
|
+
blocks describe <id> --format json` for candidate UI blocks.
|
|
260
|
+
- Run or plan to run `eai resources schema --format json` and
|
|
261
|
+
`eai workflow readiness --format json` so later stages can cite actual
|
|
262
|
+
platform resource fields, actions, events, and workflow availability
|
|
263
|
+
instead of guessing.
|
|
264
|
+
- For v4 passive ResourceAPI search requirements, run or plan to run
|
|
265
|
+
`eai resources storage doctor --tenant-id <tenant-id> --format json` and
|
|
266
|
+
treat fulltext, hybrid, and vector as separate readiness states. Prefer
|
|
267
|
+
`eai resources search "<query>" --fulltext` until doctor reports semantic
|
|
268
|
+
search modes ready. Do not apply this fallback to legacy v1/v3 or active
|
|
269
|
+
ResourceAPI behavior.
|
|
270
|
+
- Use the EAI scenario library to map the business problem to the common
|
|
271
|
+
four-step pattern: capture demand/context, prepare the decision, execute
|
|
272
|
+
and collaborate, then resolve/explain/improve.
|
|
273
|
+
- Keep private tenant IDs, tokens, secrets, and `.env.local` contents out of
|
|
274
|
+
Gofer artifacts. Record only product-safe readiness states and evidence.
|
|
275
|
+
- Treat `.specify/references/platform/eai-repo-contract.md` and
|
|
276
|
+
`.specify/references/platform/eai-error-catalog.yaml` as the repo-owned
|
|
277
|
+
fallback contract whenever live docs are unavailable or a command fails.
|
|
278
|
+
- If the user provides a browser or auth log with `AADSTS50011`,
|
|
279
|
+
`redirect_uri`, "reply URL specified in the request does not match", or
|
|
280
|
+
`/api/auth/callback/microsoft-entra-id`, record
|
|
281
|
+
`EAI_ENTRA_REDIRECT_URI_MISMATCH` in `eai-preflight.md` with a redacted
|
|
282
|
+
callback route pattern such as `https://<app-host>/api/auth/callback/...`.
|
|
283
|
+
Keep the exact callback URI and any debug output in the active terminal or
|
|
284
|
+
user-approved local notes only. Recover through EAI login, tenant
|
|
285
|
+
selection, and `eai provision entra --force --redirect-uri
|
|
286
|
+
<confirmed-callback-uri>` before suggesting manual Azure Portal edits. Use
|
|
287
|
+
`--debug` only when the user approves it, and redact private hostnames,
|
|
288
|
+
tenant IDs, client IDs, and tokens before writing artifacts.
|
|
289
|
+
|
|
290
|
+
### EAI Preflight Artifact
|
|
291
|
+
|
|
292
|
+
For EAI app delivery, create or update
|
|
293
|
+
`.specify/specs/{feature}/eai-preflight.md` with:
|
|
294
|
+
|
|
295
|
+
| Field | Required Content |
|
|
296
|
+
| ----- | ---------------- |
|
|
297
|
+
| CLI install | `eai` path, version, install/update action taken |
|
|
298
|
+
| CLI release status | `eai update --check` result and whether upgrade is required |
|
|
299
|
+
| CLI capability source | `eai --describe` timestamp and relevant commands found |
|
|
300
|
+
| Login status | Logged in / needs login / account required, without tokens or secrets |
|
|
301
|
+
| Tenant readiness | Active tenant status, role category, whether app enrollment is allowed |
|
|
302
|
+
| Template readiness | Already EAI template / needs `eai init` / non-EAI repo decision |
|
|
303
|
+
| Drift readiness | `eai template check` / `eai gofer refresh --check` result or `E001` explanation |
|
|
304
|
+
| App enrollment | Existing app, new app to create, or blocked pending user confirmation |
|
|
305
|
+
| Entra redirect readiness | Redacted callback route pattern, tenant/client alignment state, and `AADSTS50011` recovery status. Never write exact private URLs, tenant IDs, client IDs, tokens, or debug output to committed artifacts. |
|
|
306
|
+
| Block catalog readiness | Available block commands and package profile compatibility evidence |
|
|
307
|
+
| App stack policy | EAI Platform including app template first, Azure second, or approved exception |
|
|
308
|
+
| Next action | Continue discovery, initialize template, request account/tenant access, or stop |
|
|
309
|
+
|
|
310
|
+
You are the Gofer orchestrator. Your job is to understand the user's business
|
|
311
|
+
scenario and route them through the **unified Gofer pipeline**.
|
|
312
|
+
|
|
313
|
+
## The Unified Gofer Pipeline
|
|
314
|
+
|
|
315
|
+
```text
|
|
316
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
317
|
+
│ UNIFIED GOFER PIPELINE │
|
|
318
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
319
|
+
│ │
|
|
320
|
+
│ 0. #0_gofer_start → Gofer Start, routing, discovery │
|
|
321
|
+
│ Business scenario intake + optional problem validation │
|
|
322
|
+
│ ↓ AUTO │
|
|
323
|
+
│ 1. #1_gofer_research → research.md │
|
|
324
|
+
│ Deep codebase exploration + supporting review context │
|
|
325
|
+
│ ↓ AUTO │
|
|
326
|
+
│ 2. #2_gofer_specify → spec.md │
|
|
327
|
+
│ Feature specification informed by research │
|
|
328
|
+
│ ↓ AUTO │
|
|
329
|
+
│ 3. #3_gofer_plan → plan.md, data-model.md, contracts/ │
|
|
330
|
+
│ Technical architecture and design │
|
|
331
|
+
│ ↓ AUTO │
|
|
332
|
+
│ 4. #4_gofer_tasks → tasks.md, traceability.md, issues.md │
|
|
333
|
+
│ Dependency-ordered task breakdown │
|
|
334
|
+
│ ↓ AUTO │
|
|
335
|
+
│ 5. #5_gofer_implement → [source code] │
|
|
336
|
+
│ Execute tasks phase by phase │
|
|
337
|
+
│ ↓ AUTO │
|
|
338
|
+
│ 6. #6_gofer_validate → validation artifacts │
|
|
339
|
+
│ Validation, blast radius, and final engineering review │
|
|
340
|
+
│ │
|
|
341
|
+
│ All artifacts go to: .specify/specs/{feature}/ │
|
|
342
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
## Auxiliary Gofer Commands
|
|
346
|
+
|
|
347
|
+
| Command | Purpose |
|
|
348
|
+
| ----------------------------- | ------------------------------------------------------- |
|
|
349
|
+
| `#0a_problem_validation` | Optional deeper problem framing before research |
|
|
350
|
+
| `#7_gofer_save` | Save session checkpoint mid-implementation |
|
|
351
|
+
| `#8_gofer_branding` | Brand templates and stakeholder documents |
|
|
352
|
+
| `#9_gofer_tests` | Define acceptance test cases using DSL |
|
|
353
|
+
| `#10_gofer_cloud` | READ-ONLY cloud infrastructure analysis |
|
|
354
|
+
| `#7a_stakeholder_comms` | Optional post-validation communications package |
|
|
355
|
+
| `#gofer_hydrate` | Reverse-engineer spec from existing code |
|
|
356
|
+
| `#gofer_constitution` | Create/update project constitution |
|
|
357
|
+
| `/gofer:check-workspace` | Check whether the repo scaffold is healthy |
|
|
358
|
+
| `/gofer:bootstrap-workspace` | Create or update the repo-owned Gofer scaffold |
|
|
359
|
+
|
|
360
|
+
---
|
|
361
|
+
|
|
362
|
+
## Step 1: Quick Context Scan
|
|
363
|
+
|
|
364
|
+
Before asking questions, scan the workspace for existing state:
|
|
365
|
+
|
|
366
|
+
```bash
|
|
367
|
+
# Check for Gofer artifacts
|
|
368
|
+
ls -la .specify/specs/ 2>/dev/null
|
|
369
|
+
|
|
370
|
+
# Check for session checkpoints
|
|
371
|
+
find .specify/specs -name "session-checkpoint.md" -type f 2>/dev/null
|
|
372
|
+
|
|
373
|
+
# Check for constitution
|
|
374
|
+
ls -la .specify/memory/constitution.md 2>/dev/null
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### What to Look For
|
|
378
|
+
|
|
379
|
+
| Artifact | Location | Indicates |
|
|
380
|
+
| ----------------------- | --------------------------- | ---------------------------- |
|
|
381
|
+
| `spec.md` | `.specify/specs/{feature}/` | Feature specified |
|
|
382
|
+
| `research.md` | `.specify/specs/{feature}/` | Research complete |
|
|
383
|
+
| `proposal-review.md` | `.specify/specs/{feature}/` | Optional supporting review context |
|
|
384
|
+
| `plan.md` | `.specify/specs/{feature}/` | Planning complete |
|
|
385
|
+
| `tasks.md` | `.specify/specs/{feature}/` | Ready for implement |
|
|
386
|
+
| `goal-ledger.json` | `.specify/specs/{feature}/` | Active objective ledger and drift triggers |
|
|
387
|
+
| `loop-contract.json` | `.specify/specs/{feature}/` | Bounded check-repair loop objective, commands, and stop rules |
|
|
388
|
+
| `loop-ledger.jsonl` | `.specify/specs/{feature}/` | Implementation/validation iteration evidence |
|
|
389
|
+
| `loop-audit-report.md` | `.specify/specs/{feature}/` | Latest loop contract and ledger audit |
|
|
390
|
+
| `goal-rebaseline-report.md` | `.specify/specs/{feature}/` | Latest closed-loop audit result |
|
|
391
|
+
| `working-backwards-prfaq.md` | `.specify/specs/{feature}/` | Running product release PR/FAQ |
|
|
392
|
+
| `prfaq-history/` | `.specify/specs/{feature}/` | Immutable stage snapshots of the PR/FAQ |
|
|
393
|
+
| `business-owner-summary.md` | `.specify/specs/{feature}/` | Business owner scenario, process, and value summary |
|
|
394
|
+
| `cto-architecture-summary.md` | `.specify/specs/{feature}/` | CTO/EAI Platform architecture summary |
|
|
395
|
+
| `ciso-security-summary.md` | `.specify/specs/{feature}/` | CISO security posture summary |
|
|
396
|
+
| `stakeholder-review-index.md` | `.specify/specs/{feature}/` | Stakeholder review status and approval asks |
|
|
397
|
+
| `session-checkpoint.md` | `.specify/specs/{feature}/` | Work paused (resumable) |
|
|
398
|
+
| `validation-report.md` | `.specify/specs/{feature}/` | Feature validated |
|
|
399
|
+
| `constitution.md` | `.specify/memory/` | Project principles set |
|
|
400
|
+
|
|
401
|
+
Report what you found before proceeding.
|
|
402
|
+
|
|
403
|
+
---
|
|
404
|
+
|
|
405
|
+
## Step 2: Determine Scenario
|
|
406
|
+
|
|
407
|
+
**ALWAYS ask the user what they want to do** - even if artifacts exist. Existing
|
|
408
|
+
artifacts might be for OTHER features, not what the user wants to work on now.
|
|
409
|
+
|
|
410
|
+
**"What would you like to accomplish today?"**
|
|
411
|
+
|
|
412
|
+
Present these options using the AskUserQuestion tool:
|
|
413
|
+
|
|
414
|
+
| Option | Description |
|
|
415
|
+
| ----------------------- | -------------------------------------------------------- |
|
|
416
|
+
| **A. New Feature** | Build something new from scratch with clear requirements |
|
|
417
|
+
| **B. Modify Existing** | Change or extend existing functionality in the codebase |
|
|
418
|
+
| **C. Fix a Bug** | Diagnose and fix a specific issue |
|
|
419
|
+
| **D. Explore/Research** | Understand the codebase before making changes |
|
|
420
|
+
| **E. Continue Work** | Continue from where I left off |
|
|
421
|
+
| **F. Setup Project** | Initialize constitution and project guidelines |
|
|
422
|
+
|
|
423
|
+
### For Existing Codebases
|
|
424
|
+
|
|
425
|
+
If the context scan found existing artifacts, list them and ask:
|
|
426
|
+
|
|
427
|
+
**"I found these existing features/work items:"**
|
|
428
|
+
|
|
429
|
+
- List each spec in `.specify/specs/*/` with its name and status
|
|
430
|
+
- Note any session checkpoints (paused work)
|
|
431
|
+
|
|
432
|
+
Then ask: **"Do you want to continue one of these, or start something new?"**
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
## Step 2.5: Consultative Discovery (For New Features, Modifications, Bug Fixes)
|
|
437
|
+
|
|
438
|
+
When the user selects **A. New Feature**, **B. Modify Existing**, or **C. Fix a
|
|
439
|
+
Bug**, conduct a consultative discovery interview BEFORE routing to the
|
|
440
|
+
pipeline.
|
|
441
|
+
|
|
442
|
+
**First, offer the option to skip:**
|
|
443
|
+
|
|
444
|
+
| Option | Description |
|
|
445
|
+
| --------------------------- | ----------------------------------------------------------------------- |
|
|
446
|
+
| **Continue with Discovery** | Answer a few questions to ensure we build the right thing (Recommended) |
|
|
447
|
+
| **Skip Discovery** | I have clear requirements, go straight to implementation |
|
|
448
|
+
|
|
449
|
+
If user selects "Skip Discovery", proceed directly to Step 3.
|
|
450
|
+
|
|
451
|
+
### Discovery Question 1: Problem Statement
|
|
452
|
+
|
|
453
|
+
**"What problem are you trying to solve?"**
|
|
454
|
+
|
|
455
|
+
**Recommended:** Based on initial context, suggest the most likely problem type.
|
|
456
|
+
|
|
457
|
+
| Option | Description | Implications |
|
|
458
|
+
| ------ | --------------------------------------- | ------------------------------------- |
|
|
459
|
+
| A | Users can't find what they need quickly | Focus on search/navigation UX |
|
|
460
|
+
| B | Manual processes taking too much time | Focus on automation/efficiency |
|
|
461
|
+
| C | Data is siloed across systems | Focus on integration/consolidation |
|
|
462
|
+
| D | Quality/reliability issues | Focus on testing/monitoring |
|
|
463
|
+
| E | [Context-specific suggestion] | [Based on user's initial description] |
|
|
464
|
+
| Custom | Describe your specific problem | We'll tailor the approach |
|
|
465
|
+
|
|
466
|
+
You can reply with the option letter, accept the recommendation by saying "yes",
|
|
467
|
+
or provide your own answer.
|
|
468
|
+
|
|
469
|
+
**Store response** in discovery context.
|
|
470
|
+
|
|
471
|
+
### Discovery Question 2: Target Users
|
|
472
|
+
|
|
473
|
+
**"Who are the primary users of this feature?"**
|
|
474
|
+
|
|
475
|
+
**Recommended:** Suggest based on problem type selected.
|
|
476
|
+
|
|
477
|
+
| Option | Description | Implications |
|
|
478
|
+
| ------ | -------------------------- | --------------------------------- |
|
|
479
|
+
| A | End customers (external) | Focus on UX, onboarding, support |
|
|
480
|
+
| B | Internal team members | Focus on efficiency, integrations |
|
|
481
|
+
| C | Developers/technical users | Focus on APIs, documentation |
|
|
482
|
+
| D | Business stakeholders | Focus on reporting, dashboards |
|
|
483
|
+
| Custom | Describe your users | We'll create appropriate personas |
|
|
484
|
+
|
|
485
|
+
**Store response** in discovery context.
|
|
486
|
+
|
|
487
|
+
### Discovery Question 3: Value Proposition
|
|
488
|
+
|
|
489
|
+
**"What specific value should this deliver?"**
|
|
490
|
+
|
|
491
|
+
**Recommended:** Suggest based on problem and user type.
|
|
492
|
+
|
|
493
|
+
| Option | Description | Implications |
|
|
494
|
+
| ------ | ----------------------------------------- | ------------------------------------ |
|
|
495
|
+
| A | Time savings (reduce X by Y%) | Need baseline metrics, time tracking |
|
|
496
|
+
| B | Cost reduction (save $X/month) | Need cost analysis, ROI tracking |
|
|
497
|
+
| C | Quality improvement (reduce errors by Y%) | Need error tracking, quality metrics |
|
|
498
|
+
| D | User satisfaction (increase NPS by Y) | Need feedback collection, surveys |
|
|
499
|
+
| Custom | Define your value metric | We'll build appropriate tracking |
|
|
500
|
+
|
|
501
|
+
**Store response** in discovery context.
|
|
502
|
+
|
|
503
|
+
### Discovery Question 4: Success Metrics
|
|
504
|
+
|
|
505
|
+
**"How will you measure success?"**
|
|
506
|
+
|
|
507
|
+
Based on the value type selected, suggest relevant metrics:
|
|
508
|
+
|
|
509
|
+
| Value Type | Suggested Metrics |
|
|
510
|
+
| -------------- | ------------------------------------------------ |
|
|
511
|
+
| Time savings | Task completion time, manual steps eliminated |
|
|
512
|
+
| Cost reduction | Monthly costs before/after, resource utilization |
|
|
513
|
+
| Quality | Error rate, defect count, test coverage |
|
|
514
|
+
| Satisfaction | NPS score, support tickets, feature adoption |
|
|
515
|
+
|
|
516
|
+
Ask user to confirm or customize the metrics.
|
|
517
|
+
|
|
518
|
+
### Optional: Competitive Research
|
|
519
|
+
|
|
520
|
+
**"Would you like me to research how leading companies solve this problem?"**
|
|
521
|
+
|
|
522
|
+
| Option | Description |
|
|
523
|
+
| ------ | ------------------------------------------ |
|
|
524
|
+
| Yes | Research competitors and document insights |
|
|
525
|
+
| Skip | Continue without competitive analysis |
|
|
526
|
+
|
|
527
|
+
If user selects Yes, note for research phase. If skipped, mark "Competitive
|
|
528
|
+
Analysis: Skipped".
|
|
529
|
+
|
|
530
|
+
### Adaptive Depth
|
|
531
|
+
|
|
532
|
+
If user responds with uncertainty signals ("I'm not sure", "what would you
|
|
533
|
+
suggest?", "not certain"):
|
|
534
|
+
|
|
535
|
+
- Offer to explore deeper: **"I notice you might want more clarity on this.
|
|
536
|
+
Would you like me to ask a few more questions to help narrow down the
|
|
537
|
+
approach?"**
|
|
538
|
+
- If yes, ask context-appropriate follow-up questions
|
|
539
|
+
- If no, proceed with best recommendation
|
|
540
|
+
|
|
541
|
+
### Create Discovery Artifact
|
|
542
|
+
|
|
543
|
+
After completing discovery questions, create
|
|
544
|
+
`.specify/specs/{feature}/discovery.md`:
|
|
545
|
+
|
|
546
|
+
```markdown
|
|
547
|
+
---
|
|
548
|
+
feature: '[Feature Name]'
|
|
549
|
+
created: '[ISO timestamp]'
|
|
550
|
+
discoveredBy: Gofer + [User]
|
|
551
|
+
status: complete
|
|
552
|
+
---
|
|
553
|
+
|
|
554
|
+
# Business Discovery: [Feature Name]
|
|
555
|
+
|
|
556
|
+
## Problem Statement
|
|
557
|
+
|
|
558
|
+
**Pain Point**: [From Question 1] **Current State**: [If mentioned] **Impact**:
|
|
559
|
+
[If mentioned]
|
|
560
|
+
|
|
561
|
+
## Target Users
|
|
562
|
+
|
|
563
|
+
### Primary Users
|
|
564
|
+
|
|
565
|
+
- **Persona**: [From Question 2]
|
|
566
|
+
- **Technical Level**: [Inferred or asked]
|
|
567
|
+
- **Key Needs**: [Captured from context]
|
|
568
|
+
|
|
569
|
+
## Value Proposition
|
|
570
|
+
|
|
571
|
+
**Primary Value**: [From Question 3] **Quantified Goal**: [From Question 4]
|
|
572
|
+
|
|
573
|
+
## Success Metrics
|
|
574
|
+
|
|
575
|
+
| Metric | Target | Measurement |
|
|
576
|
+
| ---------- | -------- | -------------- |
|
|
577
|
+
| [Metric 1] | [Target] | [How measured] |
|
|
578
|
+
|
|
579
|
+
## Competitive Analysis
|
|
580
|
+
|
|
581
|
+
**Status**: [Researched / Skipped] [Insights if researched]
|
|
582
|
+
|
|
583
|
+
## Discovery Decisions
|
|
584
|
+
|
|
585
|
+
| Decision | Choice | Rationale |
|
|
586
|
+
| ------------- | -------- | --------- |
|
|
587
|
+
| Problem Focus | [Choice] | [Why] |
|
|
588
|
+
| User Target | [Choice] | [Why] |
|
|
589
|
+
| Value Metric | [Choice] | [Why] |
|
|
590
|
+
|
|
591
|
+
## AI-Readable Blocks Bridge
|
|
592
|
+
|
|
593
|
+
| Field | Decision |
|
|
594
|
+
| ----- | -------- |
|
|
595
|
+
| Profile Choice | External / Internal / Hybrid |
|
|
596
|
+
| Package Lane | {{public-package | internal-app | hybrid-adapter | app-local}} |
|
|
597
|
+
| Coupling Status | {{source-platform-coupled | source-platform-decoupled | hybrid-adapter}} |
|
|
598
|
+
| Public-Readiness Target | {{required | deferred | not-applicable}} |
|
|
599
|
+
| Block Porting Need | {{reuse | port | custom-block-exception}} |
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
### Store in Memory
|
|
603
|
+
|
|
604
|
+
Create Memory entries for key discovery findings:
|
|
605
|
+
|
|
606
|
+
```
|
|
607
|
+
Category: 'discovery'
|
|
608
|
+
Tags: ['#problem', '#feature-{id}']
|
|
609
|
+
Content: 'Problem: [pain point]. Impact: [who affected].'
|
|
610
|
+
|
|
611
|
+
Category: 'discovery'
|
|
612
|
+
Tags: ['#users', '#personas', '#feature-{id}']
|
|
613
|
+
Content: 'Primary users: [persona]. Technical level: [level]. Key needs: [needs].'
|
|
614
|
+
|
|
615
|
+
Category: 'discovery'
|
|
616
|
+
Tags: ['#value', '#metrics', '#feature-{id}']
|
|
617
|
+
Content: 'Primary value: [benefit]. Success metric: [metric] target [goal].'
|
|
618
|
+
```
|
|
619
|
+
|
|
620
|
+
### Edge Cases
|
|
621
|
+
|
|
622
|
+
- **Mid-flow abandonment**: If user cancels during discovery, save partial
|
|
623
|
+
discovery.md with `status: incomplete`
|
|
624
|
+
- **Re-running discovery**: If discovery.md already exists, ask: "Discovery
|
|
625
|
+
already exists for this feature. Would you like to merge new insights or
|
|
626
|
+
replace it?"
|
|
627
|
+
- **Web search failure**: If competitive research fails, continue without it and
|
|
628
|
+
note the failure
|
|
629
|
+
|
|
630
|
+
---
|
|
631
|
+
|
|
632
|
+
## Step 2.6: Application Classification and AI Process Default
|
|
633
|
+
|
|
634
|
+
Before journey mapping, classify the request as **application delivery** or
|
|
635
|
+
**non-application work**.
|
|
636
|
+
|
|
637
|
+
In EnterpriseAI mode, assume the request is application delivery unless the
|
|
638
|
+
user's intent is clearly non-app. Roughly 90% of Gofer business requests should
|
|
639
|
+
be treated this way: the user is trying to improve a customer journey or
|
|
640
|
+
business process by building an app, workflow, portal, dashboard, mobile
|
|
641
|
+
experience, form, assistant, or app.
|
|
642
|
+
|
|
643
|
+
For app delivery in any profile, apply the **EAI Platform And Azure App Stack
|
|
644
|
+
Policy**: EAI Platform is the primary app substrate, Azure is the preferred
|
|
645
|
+
cloud/infrastructure substrate, and unrelated non-EAI stacks are exceptions
|
|
646
|
+
only.
|
|
647
|
+
|
|
648
|
+
### Application Signals
|
|
649
|
+
|
|
650
|
+
Treat the request as application delivery when it includes any of these signals:
|
|
651
|
+
|
|
652
|
+
- Build an app, tool, dashboard, portal, workflow, form, chatbot, or app.
|
|
653
|
+
- Improve how a customer, employee, advisor, agent, or operator completes work.
|
|
654
|
+
- Replace a manual process with a guided digital process.
|
|
655
|
+
- Use EnterpriseAI data, object types, screens, APIs, or tenant context.
|
|
656
|
+
- Add generative AI to help users complete a business outcome.
|
|
657
|
+
|
|
658
|
+
### Non-Application Signals
|
|
659
|
+
|
|
660
|
+
Classify as non-app only when the user is asking for work such as:
|
|
661
|
+
|
|
662
|
+
- Strategy, research, market analysis, board papers, or written advice.
|
|
663
|
+
- Documentation, executive summaries, or slide decks without an app to build.
|
|
664
|
+
- Codebase exploration, cloud audit, engineering review, or migration planning.
|
|
665
|
+
- A one-off analysis task where no durable user workflow will be implemented.
|
|
666
|
+
|
|
667
|
+
If non-app, record this explicitly in `discovery.md`:
|
|
668
|
+
|
|
669
|
+
```markdown
|
|
670
|
+
## Application Classification
|
|
671
|
+
|
|
672
|
+
| Field | Decision |
|
|
673
|
+
| ----- | -------- |
|
|
674
|
+
| Classification | Non-application work |
|
|
675
|
+
| Reason | {{why-this-is-not-an-app-or-workflow}} |
|
|
676
|
+
| Four-step AI journey required | No |
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
Then continue through the pipeline without creating a four-step AI-augmented app
|
|
680
|
+
journey.
|
|
681
|
+
|
|
682
|
+
If app delivery is selected or inferred, continue to Step 2.7 and create the
|
|
683
|
+
AI-augmented journey.
|
|
684
|
+
|
|
685
|
+
### Shared Numbered Stage Contract
|
|
686
|
+
|
|
687
|
+
Gofer MUST keep the same numbered stages for both classifications. The
|
|
688
|
+
classification changes the behavior inside the shared stages; it does **not**
|
|
689
|
+
remove existing non-app functionality or fork Gofer into unrelated products.
|
|
690
|
+
|
|
691
|
+
| Mode | Stage Behavior |
|
|
692
|
+
| ---- | -------------- |
|
|
693
|
+
| Application delivery | Shared stages gain EAI Platform/Azure stack enforcement, a UI-first interview, an EAI App Template constrained preview loop, preview self-review, optional branding intake, an explicit UI approval gate, and a post-approval EnterpriseAI service-fit gate before plan/tasks are finalized |
|
|
694
|
+
| Non-app work | Shared stages preserve the current research, documentation, exploration, bug-fix, migration, audit, and other non-app workflows without app-only preview, branding, or service-fit requirements |
|
|
695
|
+
|
|
696
|
+
---
|
|
697
|
+
|
|
698
|
+
## Step 2.7: AI-Augmented Journey Confirmation (For Application Delivery)
|
|
699
|
+
|
|
700
|
+
When the request is classified as **application delivery**, confirm the
|
|
701
|
+
customer journey before routing to the rest of the pipeline. For application
|
|
702
|
+
delivery, the default target is a concise **four-step or fewer AI-augmented
|
|
703
|
+
process**. Even when the current business process has more than four steps,
|
|
704
|
+
Gofer should use generative AI to compress, combine, or simplify the process
|
|
705
|
+
into four business-goal-driven stages unless the user explicitly rejects that
|
|
706
|
+
structure.
|
|
707
|
+
|
|
708
|
+
Before journey mapping for EAI app delivery, complete the **EAI App Delivery
|
|
709
|
+
Preflight** above. If the EAI CLI, login, tenant, template, or app enrollment
|
|
710
|
+
readiness is blocked, pause the EAI build path and explain the smallest next
|
|
711
|
+
step. Do not proceed to plan/tasks/implementation for an EAI app until
|
|
712
|
+
`.specify/specs/{feature}/eai-preflight.md` records a ready or explicitly
|
|
713
|
+
deferred status.
|
|
714
|
+
|
|
715
|
+
### UI-First App-Delivery Default
|
|
716
|
+
|
|
717
|
+
For app delivery, the default early process is:
|
|
718
|
+
|
|
719
|
+
1. **Interview and visual brief** — understand the MVP outcome, must-have
|
|
720
|
+
screens, target users, workflow goals, and whether client branding or logos
|
|
721
|
+
must be applied.
|
|
722
|
+
2. **Constrained MVP preview** — generate the first preview from the EAI App Template
|
|
723
|
+
Template blocks already installed in the project by `eai`, rather than
|
|
724
|
+
from an unconstrained custom UI.
|
|
725
|
+
3. **Preview self-review and approval** — use screenshot or Playwright-style
|
|
726
|
+
local review before showing the preview, then iterate with the stakeholder
|
|
727
|
+
until the UI is explicitly approved.
|
|
728
|
+
4. **EnterpriseAI service-fit gate** — after UI approval, review which
|
|
729
|
+
platform services are accessible now, purchasable but unavailable now, or
|
|
730
|
+
unsupported, and lock that decision before plan/tasks are treated as
|
|
731
|
+
complete.
|
|
732
|
+
|
|
733
|
+
### AI-Readable Blocks Bridge Intake
|
|
734
|
+
|
|
735
|
+
For EnterpriseAI app delivery, the interview must also capture the packaging
|
|
736
|
+
and coupling path before research starts:
|
|
737
|
+
|
|
738
|
+
| Intake Field | Required Decision |
|
|
739
|
+
| ------------ | ----------------- |
|
|
740
|
+
| Profile choice | External, internal, or hybrid package profile |
|
|
741
|
+
| Package lane | Public reusable block package, internal app, hybrid adapter, or app-local implementation |
|
|
742
|
+
| Coupling status | source-platform-coupled, source-platform-decoupled, or hybrid adapter boundary |
|
|
743
|
+
| Public-readiness target | Whether the first delivery must be ready for external package consumers |
|
|
744
|
+
| Block porting need | Reuse existing block, port an EAI App Template block, or request a custom-block exception |
|
|
745
|
+
|
|
746
|
+
External and hybrid profile choices require explicit public-readiness,
|
|
747
|
+
block-porting, source-platform decoupling, Storybook, and theme-override evidence in the
|
|
748
|
+
later Gofer artifacts. Restricted-source choices still record why public readiness
|
|
749
|
+
is not required now.
|
|
750
|
+
|
|
751
|
+
**First, offer the option to skip:**
|
|
752
|
+
|
|
753
|
+
| Option | Description |
|
|
754
|
+
| ---------------------------------------- | --------------------------------------------------------------------------- |
|
|
755
|
+
| **Confirm AI Journey (Recommended)** | Review the four-step AI-augmented process for this app |
|
|
756
|
+
| **Classify as Non-App / Skip AI Journey** | Use only when this is strategy, research, documentation, audit, or analysis |
|
|
757
|
+
|
|
758
|
+
If the user selects "Classify as Non-App / Skip AI Journey", capture the
|
|
759
|
+
non-application rationale in discovery and proceed directly to Step 3. If the
|
|
760
|
+
request is still an app, do not silently skip journey mapping; create a draft
|
|
761
|
+
four-step journey with assumptions and ask the user to confirm or correct it.
|
|
762
|
+
|
|
763
|
+
### Journey Extraction
|
|
764
|
+
|
|
765
|
+
Based on the discovery answers, extract:
|
|
766
|
+
|
|
767
|
+
1. **Actors**: Who interacts with this feature?
|
|
768
|
+
- User types (e.g., "End User", "Admin")
|
|
769
|
+
- AI agents (if applicable)
|
|
770
|
+
- Systems (e.g., "Auth Service", "Database")
|
|
771
|
+
|
|
772
|
+
2. **Steps**: What is the main flow?
|
|
773
|
+
- Compress the flow into four steps or fewer
|
|
774
|
+
- Number each step (1, 2, 3, 4)
|
|
775
|
+
- Identify which actor performs each step
|
|
776
|
+
- State the business goal and completion outcome for each step
|
|
777
|
+
- Note which generative AI assistance improves that step
|
|
778
|
+
- For app delivery, default the steps to: brief -> preview -> approval ->
|
|
779
|
+
service fit unless the user clearly needs a different four-step shape
|
|
780
|
+
|
|
781
|
+
3. **Touchpoints**: Where do interactions happen?
|
|
782
|
+
- UI touchpoints (screens, buttons)
|
|
783
|
+
- API touchpoints
|
|
784
|
+
- Notifications
|
|
785
|
+
- Local preview touchpoints such as browser views, screenshots, or
|
|
786
|
+
Playwright/self-review outputs when the feature includes a UI
|
|
787
|
+
|
|
788
|
+
4. **AI augmentation**: How does generative AI help?
|
|
789
|
+
- Conversational help: chatbot, voice, accessibility, translations, or
|
|
790
|
+
guided explanation
|
|
791
|
+
- Contextual prefill: populate fields from screen context, known data,
|
|
792
|
+
user profile, customer record, document, or prior workflow state
|
|
793
|
+
- Step-goal assistance: understand the goal of the step, recommend next
|
|
794
|
+
actions, validate completeness, and drive the user to successful
|
|
795
|
+
completion
|
|
796
|
+
- Human control: show confidence, evidence, edit controls, escalation path,
|
|
797
|
+
and audit trail
|
|
798
|
+
- Preview critique: review the generated MVP before presentation and suggest
|
|
799
|
+
concrete fixes when the first pass is visually weak or off-brief
|
|
800
|
+
|
|
801
|
+
### Journey Confirmation Questions
|
|
802
|
+
|
|
803
|
+
Use AskUserQuestion to present the extracted journey:
|
|
804
|
+
|
|
805
|
+
**Question 1: Confirm Actors**
|
|
806
|
+
|
|
807
|
+
"Based on your description, I've identified these actors in the journey:"
|
|
808
|
+
|
|
809
|
+
| Option | Description |
|
|
810
|
+
| ------ | ---------------------------------- |
|
|
811
|
+
| A | **[Actor 1]** - [role description] |
|
|
812
|
+
| B | **[Actor 2]** - [role description] |
|
|
813
|
+
| C | **[System]** - [role description] |
|
|
814
|
+
| Custom | Add or modify actors |
|
|
815
|
+
|
|
816
|
+
**Question 2: Confirm Journey Steps**
|
|
817
|
+
|
|
818
|
+
"Here's the main flow I've identified:"
|
|
819
|
+
|
|
820
|
+
| Option | Description |
|
|
821
|
+
| ------ | --------------------------------------------------------------------------------------------------- |
|
|
822
|
+
| A | Step 1: [goal] → Step 2: [goal] → Step 3: [goal] → Step 4: [goal] (Confirm this AI-augmented flow) |
|
|
823
|
+
| B | I need to modify some steps |
|
|
824
|
+
| C | Show me all steps, AI assistance, and completion criteria in detail first |
|
|
825
|
+
|
|
826
|
+
**Question 2a: Confirm AI Assistance**
|
|
827
|
+
|
|
828
|
+
"For each step, how should generative AI help the user complete the goal?"
|
|
829
|
+
|
|
830
|
+
| Option | Description |
|
|
831
|
+
| ------ | ----------------------------------------------------------------------------------- |
|
|
832
|
+
| A | Chat/voice/accessibility/translations help the user understand and complete the step |
|
|
833
|
+
| B | Prefill or recommend data using screen context, user context, and EnterpriseAI data |
|
|
834
|
+
| C | Validate completion, explain missing information, and guide the user to success |
|
|
835
|
+
| D | Mix all of the above, with human review and audit trail controls |
|
|
836
|
+
| Custom | Describe the AI assistance for each step |
|
|
837
|
+
|
|
838
|
+
**Question 3: Identify Key Touchpoints**
|
|
839
|
+
|
|
840
|
+
"What are the main interaction points for this feature?"
|
|
841
|
+
|
|
842
|
+
| Option | Description |
|
|
843
|
+
| ------ | ---------------------------------------------- |
|
|
844
|
+
| A | UI-heavy: Multiple screens and forms |
|
|
845
|
+
| B | API-driven: Primarily backend/integration work |
|
|
846
|
+
| C | Mixed: Both UI and API touchpoints |
|
|
847
|
+
| Custom | Describe your touchpoints |
|
|
848
|
+
|
|
849
|
+
### Save Confirmed Journey
|
|
850
|
+
|
|
851
|
+
After confirmation, save to `.specify/specs/{feature}/journeys/base-journey.md`:
|
|
852
|
+
|
|
853
|
+
````markdown
|
|
854
|
+
---
|
|
855
|
+
id: {{feature-id}}-journey
|
|
856
|
+
name: {{journey-name}}
|
|
857
|
+
featureId: {{feature-id}}
|
|
858
|
+
status: confirmed
|
|
859
|
+
created: {{ISO-timestamp}}
|
|
860
|
+
modified: {{ISO-timestamp}}
|
|
861
|
+
applicationClassification: app
|
|
862
|
+
aiAugmentedJourney: true
|
|
863
|
+
maxSteps: 4
|
|
864
|
+
---
|
|
865
|
+
|
|
866
|
+
# AI-Augmented Customer Journey: {{feature-name}}
|
|
867
|
+
|
|
868
|
+
## Overview
|
|
869
|
+
|
|
870
|
+
{{discovery-problem-statement}}
|
|
871
|
+
|
|
872
|
+
## Actors
|
|
873
|
+
|
|
874
|
+
| ID | Name | Type | Role |
|
|
875
|
+
| ------ | ----------- | ------ | --------------------------- |
|
|
876
|
+
| user | End User | user | Primary user of the feature |
|
|
877
|
+
| system | Backend API | system | Handles business logic |
|
|
878
|
+
|
|
879
|
+
## Journey Steps
|
|
880
|
+
|
|
881
|
+
### Step 1: {{business-goal}}
|
|
882
|
+
|
|
883
|
+
**Actor**: {{actor-id}}
|
|
884
|
+
**User action**: {{action-description}}
|
|
885
|
+
**AI assistance**:
|
|
886
|
+
{{chatbot-or-voice-or-accessibility-or-translation-or-prefill-or-guidance}}
|
|
887
|
+
**Context used**: {{screen-context-user-data-enterpriseai-data-documents}}
|
|
888
|
+
**Completion criteria**: {{how-we-know-this-step-is-successful}}
|
|
889
|
+
**Controls**: {{human-review-confidence-evidence-audit-escalation}}
|
|
890
|
+
|
|
891
|
+
### Step 2: {{business-goal}}
|
|
892
|
+
|
|
893
|
+
...
|
|
894
|
+
|
|
895
|
+
### Step 4: {{business-goal}}
|
|
896
|
+
|
|
897
|
+
...
|
|
898
|
+
|
|
899
|
+
## Journey Diagram
|
|
900
|
+
|
|
901
|
+
```mermaid
|
|
902
|
+
sequenceDiagram
|
|
903
|
+
participant user as End User
|
|
904
|
+
participant system as Backend API
|
|
905
|
+
|
|
906
|
+
user->>system: Step 1 action
|
|
907
|
+
system-->>user: AI-guided response, prefill, or validation
|
|
908
|
+
user->>system: Step 2 action
|
|
909
|
+
```
|
|
910
|
+
|
|
911
|
+
## AI Augmentation Matrix
|
|
912
|
+
|
|
913
|
+
| Step | Business Goal | AI Assistance | Data / Context Used | Completion Signal |
|
|
914
|
+
| ---- | ------------- | ------------- | ------------------- | ----------------- |
|
|
915
|
+
| 1 | {{goal}} | {{assist}} | {{context}} | {{signal}} |
|
|
916
|
+
| 2 | {{goal}} | {{assist}} | {{context}} | {{signal}} |
|
|
917
|
+
| 3 | {{goal}} | {{assist}} | {{context}} | {{signal}} |
|
|
918
|
+
| 4 | {{goal}} | {{assist}} | {{context}} | {{signal}} |
|
|
919
|
+
|
|
920
|
+
## Touchpoints
|
|
921
|
+
|
|
922
|
+
| ID | Type | Description | Actors | Steps |
|
|
923
|
+
| ---------- | ---- | ----------------------- | ------ | ----- |
|
|
924
|
+
| login-form | ui | Login screen | user | 1 |
|
|
925
|
+
| auth-api | api | Authentication endpoint | system | 1, 2 |
|
|
926
|
+
|
|
927
|
+
## Confirmation
|
|
928
|
+
|
|
929
|
+
- [x] Actors confirmed
|
|
930
|
+
- [x] Steps confirmed
|
|
931
|
+
- [x] Touchpoints identified
|
|
932
|
+
|
|
933
|
+
````
|
|
934
|
+
|
|
935
|
+
### Store Journey in Memory
|
|
936
|
+
|
|
937
|
+
```
|
|
938
|
+
Category: 'journey' Tags: ['#journey', '#feature-{id}', '#confirmed'] Content:
|
|
939
|
+
'Journey for {feature}: {actor-count} actors, {step-count} steps. Main flow:
|
|
940
|
+
{step-summary}.'
|
|
941
|
+
```
|
|
942
|
+
|
|
943
|
+
---
|
|
944
|
+
|
|
945
|
+
## Step 3: Route to Gofer Command
|
|
946
|
+
|
|
947
|
+
Based on user selection and detected state:
|
|
948
|
+
|
|
949
|
+
### Route A/B/C: New Feature, Modify Existing, or Fix Bug
|
|
950
|
+
|
|
951
|
+
All three scenarios use the same pipeline - the difference is in the research
|
|
952
|
+
focus:
|
|
953
|
+
|
|
954
|
+
| Scenario | Research Focus |
|
|
955
|
+
| --------------- | ---------------------------------------------------------- |
|
|
956
|
+
| New Feature | Technology research + codebase patterns |
|
|
957
|
+
| Modify Existing | Understanding existing implementation + integration points |
|
|
958
|
+
| Fix Bug | Root cause analysis + affected code paths |
|
|
959
|
+
|
|
960
|
+
#### Determine Starting Point
|
|
961
|
+
|
|
962
|
+
**Closed-Loop Audit (Highest Priority when feature artifacts exist)**:
|
|
963
|
+
|
|
964
|
+
Before pipeline-state routing, run the closed-loop audit when the selected
|
|
965
|
+
feature directory already exists:
|
|
966
|
+
|
|
967
|
+
```bash
|
|
968
|
+
node .specify/scripts/node/gofer-closed-loop-audit.mjs --feature-dir {FEATURE_DIR} --json
|
|
969
|
+
```
|
|
970
|
+
|
|
971
|
+
If `{FEATURE_DIR}/loop-contract.json` is missing, initialize it before routing
|
|
972
|
+
past discovery:
|
|
973
|
+
|
|
974
|
+
```bash
|
|
975
|
+
node .specify/scripts/node/gofer-loop-audit.mjs --feature-dir {FEATURE_DIR} --stage 0_gofer_start --init --json
|
|
976
|
+
```
|
|
977
|
+
|
|
978
|
+
Do not ask the user about loop initialization unless the command fails or would
|
|
979
|
+
overwrite an existing contract. The loop contract is standard Gofer feature
|
|
980
|
+
scaffold, not an optional extra.
|
|
981
|
+
|
|
982
|
+
If the audit recommends a `recommendedStartStage`, resume from that stage even
|
|
983
|
+
when later artifacts exist. This is how Gofer behaves like a goal-seeking loop:
|
|
984
|
+
goal drift, expired assumptions, contract drift, UX scope changes, or
|
|
985
|
+
post-validation code/test movement reopen the smallest valid mini-loop instead
|
|
986
|
+
of pretending the pipeline is still complete.
|
|
987
|
+
|
|
988
|
+
**Pipeline State Check (Priority)**:
|
|
989
|
+
|
|
990
|
+
Before file-existence checks, read `pipeline-state.json` for authoritative
|
|
991
|
+
resume information:
|
|
992
|
+
|
|
993
|
+
```bash
|
|
994
|
+
.specify/scripts/bash/pipeline-state.sh read --json
|
|
995
|
+
````
|
|
996
|
+
|
|
997
|
+
If `pipeline-state.json` exists and `status` is `in_progress`, resume from
|
|
998
|
+
`currentStage`. This takes priority over file-existence heuristics because
|
|
999
|
+
pipeline-state.json is updated atomically by each stage on completion.
|
|
1000
|
+
|
|
1001
|
+
If the closed-loop audit recommends an earlier stage than `currentStage`, the
|
|
1002
|
+
audit wins. Pipeline state tracks progress; the audit tracks whether progress is
|
|
1003
|
+
still valid.
|
|
1004
|
+
|
|
1005
|
+
**Spec Artifact Guard (Mandatory)**:
|
|
1006
|
+
|
|
1007
|
+
Before routing to `#3_gofer_plan`, `#4_gofer_tasks`, `#5_gofer_implement`, or
|
|
1008
|
+
`#6_gofer_validate`, confirm that `.specify/specs/{feature}/spec.md` exists and
|
|
1009
|
+
is not the unfilled `spec-template.md` copy created by feature bootstrap. A
|
|
1010
|
+
missing, empty, or placeholder-filled spec always routes back to
|
|
1011
|
+
`#2_gofer_specify`, even when `pipeline-state.json`, `plan.md`, `tasks.md`, or
|
|
1012
|
+
validation artifacts imply later progress. Gofer must never plan, task,
|
|
1013
|
+
implement, or validate a feature from research or plan artifacts alone.
|
|
1014
|
+
|
|
1015
|
+
**Fallback — File-existence heuristics** (used when no pipeline-state.json
|
|
1016
|
+
exists):
|
|
1017
|
+
|
|
1018
|
+
| Has This | Missing This | Start At |
|
|
1019
|
+
| ----------------------------------------- | --------------------------- | -------------------- |
|
|
1020
|
+
| tasks.md (unchecked) | - | `#5_gofer_implement` |
|
|
1021
|
+
| plan.md | tasks.md | `#4_gofer_tasks` |
|
|
1022
|
+
| spec.md | plan.md | `#3_gofer_plan` |
|
|
1023
|
+
| research.md | spec.md | `#2_gofer_specify` |
|
|
1024
|
+
| Nothing | research.md | `#1_gofer_research` |
|
|
1025
|
+
| Nothing | Everything | `#1_gofer_research` |
|
|
1026
|
+
|
|
1027
|
+
#### For New Features
|
|
1028
|
+
|
|
1029
|
+
1. Ask: **"What would you like to call this feature?"** (use AskUserQuestion)
|
|
1030
|
+
2. Create the spec directory: `.specify/specs/{feature-name}/`
|
|
1031
|
+
3. Seed stakeholder review scaffolding from templates:
|
|
1032
|
+
- `{FEATURE_DIR}/working-backwards-prfaq.md` from
|
|
1033
|
+
`.specify/templates/working-backwards-prfaq-template.md`
|
|
1034
|
+
- `{FEATURE_DIR}/stakeholder-review-index.md` from
|
|
1035
|
+
`.specify/templates/stakeholder-review-index-template.md`
|
|
1036
|
+
- `{FEATURE_DIR}/prfaq-history/00-business-scenario.md` as the initial
|
|
1037
|
+
product release PR/FAQ snapshot
|
|
1038
|
+
- Draft persona files only when enough context exists; otherwise let stages
|
|
1039
|
+
1, 3, and 6 create the Business Owner, CTO, and CISO summaries with
|
|
1040
|
+
evidence.
|
|
1041
|
+
4. Invoke `#1_gofer_research` to start the pipeline
|
|
1042
|
+
|
|
1043
|
+
Output:
|
|
1044
|
+
|
|
1045
|
+
```
|
|
1046
|
+
ROUTING: GOFER PIPELINE
|
|
1047
|
+
FEATURE: {feature-name}
|
|
1048
|
+
STARTING: #1_gofer_research
|
|
1049
|
+
AUTO-CHAIN: research → specify → plan → tasks → implement → validate
|
|
1050
|
+
NOTE: research may also create optional supporting review artifacts
|
|
1051
|
+
NOTE: create/update the running product release PR/FAQ and stakeholder review index from the first stage
|
|
1052
|
+
REASON: [explanation]
|
|
1053
|
+
```
|
|
1054
|
+
|
|
1055
|
+
#### For Existing Features
|
|
1056
|
+
|
|
1057
|
+
If user chose to continue an existing feature:
|
|
1058
|
+
|
|
1059
|
+
1. Detect most advanced artifact
|
|
1060
|
+
2. Route to appropriate command
|
|
1061
|
+
3. Pipeline auto-chains from there
|
|
1062
|
+
|
|
1063
|
+
Output:
|
|
1064
|
+
|
|
1065
|
+
```
|
|
1066
|
+
ROUTING: GOFER PIPELINE
|
|
1067
|
+
FEATURE: {feature-name}
|
|
1068
|
+
STARTING: /[N]_gofer_[stage]
|
|
1069
|
+
REMAINING: [remaining stages]
|
|
1070
|
+
REASON: Continuing from existing artifacts
|
|
1071
|
+
```
|
|
1072
|
+
|
|
1073
|
+
### Route D: Explore/Research
|
|
1074
|
+
|
|
1075
|
+
Start with `#1_gofer_research` without auto-chaining:
|
|
1076
|
+
|
|
1077
|
+
```
|
|
1078
|
+
ROUTING: GOFER RESEARCH (STANDALONE)
|
|
1079
|
+
COMMAND: #1_gofer_research
|
|
1080
|
+
AUTO-CHAIN: disabled after research until the user asks to continue
|
|
1081
|
+
REASON: User wants to explore the codebase first
|
|
1082
|
+
```
|
|
1083
|
+
|
|
1084
|
+
### Route E: Continue Work
|
|
1085
|
+
|
|
1086
|
+
Check for session checkpoints:
|
|
1087
|
+
|
|
1088
|
+
```bash
|
|
1089
|
+
find .specify/specs -name "session-checkpoint.md" -type f 2>/dev/null
|
|
1090
|
+
```
|
|
1091
|
+
|
|
1092
|
+
If checkpoint found, read the most recent checkpoint and continue from the
|
|
1093
|
+
stage it names. Do not invoke a separate resume command.
|
|
1094
|
+
|
|
1095
|
+
If no checkpoint but unchecked tasks exist:
|
|
1096
|
+
|
|
1097
|
+
1. Find features with `- [ ]` in tasks.md
|
|
1098
|
+
2. Present options to user
|
|
1099
|
+
3. Resume with `#5_gofer_implement`
|
|
1100
|
+
|
|
1101
|
+
Output:
|
|
1102
|
+
|
|
1103
|
+
```
|
|
1104
|
+
ROUTING: GOFER CONTINUE
|
|
1105
|
+
FEATURE: {feature-name}
|
|
1106
|
+
COMMAND: #5_gofer_implement or #6_gofer_validate
|
|
1107
|
+
CHECKPOINT: {path to checkpoint}
|
|
1108
|
+
REASON: Resuming from saved session
|
|
1109
|
+
```
|
|
1110
|
+
|
|
1111
|
+
### Route F: Setup Project
|
|
1112
|
+
|
|
1113
|
+
For new projects or establishing guidelines:
|
|
1114
|
+
|
|
1115
|
+
```
|
|
1116
|
+
ROUTING: GOFER CONSTITUTION
|
|
1117
|
+
COMMAND: #gofer_constitution
|
|
1118
|
+
REASON: User wants to establish project principles
|
|
1119
|
+
```
|
|
1120
|
+
|
|
1121
|
+
---
|
|
1122
|
+
|
|
1123
|
+
## Step 4: Invoke the Routed Command
|
|
1124
|
+
|
|
1125
|
+
After determining the route:
|
|
1126
|
+
|
|
1127
|
+
1. Output the routing decision clearly
|
|
1128
|
+
2. Invoke the target command using the next command
|
|
1129
|
+
3. Let that command take over the workflow
|
|
1130
|
+
|
|
1131
|
+
### Auto-Chaining Behavior
|
|
1132
|
+
|
|
1133
|
+
The unified Gofer pipeline automatically chains commands:
|
|
1134
|
+
|
|
1135
|
+
```text
|
|
1136
|
+
#1_gofer_research completes → auto-invokes #2_gofer_specify unless user pauses
|
|
1137
|
+
#2_gofer_specify completes → auto-invokes #3_gofer_plan
|
|
1138
|
+
#3_gofer_plan completes → auto-invokes #4_gofer_tasks
|
|
1139
|
+
#4_gofer_tasks completes → auto-invokes #5_gofer_implement
|
|
1140
|
+
#5_gofer_implement completes→ auto-invokes #6_gofer_validate
|
|
1141
|
+
#6_gofer_validate completes → pipeline complete
|
|
1142
|
+
```
|
|
1143
|
+
|
|
1144
|
+
**The user only needs to run `#0_gofer_start` once** - the orchestrator
|
|
1145
|
+
handles everything else automatically.
|
|
1146
|
+
|
|
1147
|
+
---
|
|
1148
|
+
|
|
1149
|
+
## Step 5: Handle Interruptions
|
|
1150
|
+
|
|
1151
|
+
If the user needs to pause:
|
|
1152
|
+
|
|
1153
|
+
1. Invoke `#7_gofer_save` to create checkpoint
|
|
1154
|
+
2. Document current state
|
|
1155
|
+
3. User can start a fresh session, read the checkpoint, and continue from the
|
|
1156
|
+
named stage
|
|
1157
|
+
|
|
1158
|
+
If context window is filling up:
|
|
1159
|
+
|
|
1160
|
+
1. Save progress with `#7_gofer_save`
|
|
1161
|
+
2. Recommend user start new conversation
|
|
1162
|
+
3. User opens the checkpoint and continues from the appropriate stage
|
|
1163
|
+
|
|
1164
|
+
---
|
|
1165
|
+
|
|
1166
|
+
## Important Notes
|
|
1167
|
+
|
|
1168
|
+
- Keep the interview SHORT - max 2-3 questions
|
|
1169
|
+
- **ALWAYS ask what the user wants to do** - don't assume existing artifacts are
|
|
1170
|
+
relevant
|
|
1171
|
+
- Show existing features and let user choose to continue OR start new
|
|
1172
|
+
- Technology architecture decisions must be asked **one-by-one** with a
|
|
1173
|
+
discussion loop so users can ask clarifying questions before finalizing each
|
|
1174
|
+
answer
|
|
1175
|
+
- Document the routing decision for debugging
|
|
1176
|
+
- If user seems confused, default to research first
|
|
1177
|
+
|
|
1178
|
+
---
|
|
1179
|
+
|
|
1180
|
+
## Quick Reference: Core Pipeline And Helpers
|
|
1181
|
+
|
|
1182
|
+
### Core Pipeline
|
|
1183
|
+
|
|
1184
|
+
| Stage | Command | Main output | Description |
|
|
1185
|
+
| ----- | --------------------- | ---------------------------------- | ----------------------------------------- |
|
|
1186
|
+
| 0 | `#0_gofer_start`| Full pipeline kickoff | Business scenario intake and routing |
|
|
1187
|
+
| 1 | `#1_gofer_research` | research.md | Research and supporting review prep |
|
|
1188
|
+
| 2 | `#2_gofer_specify` | spec.md | Feature specification |
|
|
1189
|
+
| 3 | `#3_gofer_plan` | plan.md, data-model.md, contracts/ | Technical architecture and contracts |
|
|
1190
|
+
| 4 | `#4_gofer_tasks` | tasks.md, traceability.md, issues.md | Dependency-ordered task breakdown |
|
|
1191
|
+
| 5 | `#5_gofer_implement` | Code, docs, loop-ledger.jsonl | Execute bounded check-repair loops |
|
|
1192
|
+
| 6 | `#6_gofer_validate` | Validation artifacts, loop-audit-report.md | Terminal quality gate, including review |
|
|
1193
|
+
|
|
1194
|
+
Every stage also updates the running product release PR/FAQ:
|
|
1195
|
+
`working-backwards-prfaq.md`, writes an immutable snapshot in
|
|
1196
|
+
`prfaq-history/`, and refreshes `stakeholder-review-index.md` so the user sees
|
|
1197
|
+
which Business Owner, CTO/Architecture, CISO/Risk, or Delivery review is needed.
|
|
1198
|
+
|
|
1199
|
+
### Helper Commands
|
|
1200
|
+
|
|
1201
|
+
| Command | Purpose |
|
|
1202
|
+
| ----------------------------- | ------------------------------------------------ |
|
|
1203
|
+
| `#0a_problem_validation` | Optional deeper problem framing before research |
|
|
1204
|
+
| `#7_gofer_save` | Save session checkpoint |
|
|
1205
|
+
| `#7a_stakeholder_comms` | Post-validation communications |
|
|
1206
|
+
| `#8_gofer_branding` | Brand templates and stakeholder documents |
|
|
1207
|
+
| `#9_gofer_tests` | Define test cases (DSL approach) |
|
|
1208
|
+
| `#10_gofer_cloud` | Cloud infrastructure analysis (READ-ONLY) |
|
|
1209
|
+
| `#gofer_hydrate` | Reverse-engineer spec from code |
|
|
1210
|
+
| `#gofer_constitution` | Project principles and standards |
|
|
1211
|
+
| `/gofer:check-workspace` | Check whether the repo scaffold is healthy |
|
|
1212
|
+
| `/gofer:bootstrap-workspace` | Create or update the repo-owned scaffold |
|
|
1213
|
+
|
|
1214
|
+
---
|
|
1215
|
+
|
|
1216
|
+
## EnterpriseAI Profile Extensions
|
|
1217
|
+
|
|
1218
|
+
The standard Gofer workflow is the public default. EnterpriseAI guidance is a
|
|
1219
|
+
legacy compatibility profile and must be used only when `workflowProfile` is
|
|
1220
|
+
explicitly set to `enterpriseai` or the user asks for that migration path. The
|
|
1221
|
+
sections below add EnterpriseAI guardrails on top of the standard orchestrator;
|
|
1222
|
+
standard-profile outputs remain unchanged.
|
|
1223
|
+
|
|
1224
|
+
### EnterpriseAI-First Discovery Framing (MANDATORY)
|
|
1225
|
+
|
|
1226
|
+
When the workflow profile is explicitly `enterpriseai`:
|
|
1227
|
+
|
|
1228
|
+
- Frame every discovery option as an EnterpriseAI platform delivery outcome.
|
|
1229
|
+
- Do **not** present non-EAI platforms as primary recommendations.
|
|
1230
|
+
- Non-EAI platforms must never be presented as primary recommendations during
|
|
1231
|
+
discovery. They may only appear as optional reference material in the research
|
|
1232
|
+
stage, clearly labelled as non-primary.
|
|
1233
|
+
- All recommended scenarios must map to an EnterpriseAI app
|
|
1234
|
+
(business analysis → EAI services → deployment target).
|
|
1235
|
+
- Maintain a running domain model using the user's vocabulary. Ask adaptive
|
|
1236
|
+
follow-up questions that clarify actors, object types, workflows, tenant
|
|
1237
|
+
boundaries, decision owners, and measurable value.
|
|
1238
|
+
- Before recommending a new object type, API, workflow, module, or spec concept,
|
|
1239
|
+
require a reuse-before-create scan: reuse existing, extend existing, or create
|
|
1240
|
+
new with rationale.
|
|
1241
|
+
|
|
1242
|
+
### EnterpriseAI Contract and Context Guardrails (MANDATORY)
|
|
1243
|
+
|
|
1244
|
+
Every EnterpriseAI discovery must preserve enough information for downstream
|
|
1245
|
+
stages to create these artifacts without re-interviewing the user:
|
|
1246
|
+
|
|
1247
|
+
| Artifact | Required Content |
|
|
1248
|
+
| -------- | ---------------- |
|
|
1249
|
+
| `journeys/base-journey.md` | Application classification, four-step-or-fewer AI-augmented customer journey, step goals, AI assistance, context used, controls, completion criteria |
|
|
1250
|
+
| `ui-preview-brief.md` | App-delivery-only preview brief: target screens, EAI App Template component constraints, branding inputs, preview validation expectations |
|
|
1251
|
+
| `ui-review-log.md` | App-delivery-only iteration log: preview evidence, requested changes, accepted changes, unresolved issues |
|
|
1252
|
+
| `ui-approval.md` | App-delivery-only approval gate: approved preview, approved branding, approved component exceptions, approver and timestamp |
|
|
1253
|
+
| `service-fit-matrix.md` | App-delivery-only service selection evidence: desired platform capability, evidence source, accessible now vs purchasable vs unavailable, selected direction |
|
|
1254
|
+
| `eai-preflight.md` | App-delivery-only EAI readiness evidence: CLI install/version, login status, tenant role, template initialization state, app enrollment readiness, block catalog readiness, and next action |
|
|
1255
|
+
| `context-bundle.md` | Compact feature context, selected scenario, app/non-app decision, AI-augmented journey summary, EnterpriseAI object types, tenant assumptions, API surfaces, deployment assumptions, validation criteria |
|
|
1256
|
+
| `contract-pack.md` | Actors, object types, workflows/journeys, four-step AI assistance contract, permissions, tenant boundaries, APIs/events, runtime assumptions, acceptance tests |
|
|
1257
|
+
| `reuse-scan.md` | Existing specs, platform references, object types, APIs, workflows, modules, and the reuse/extend/create decision |
|
|
1258
|
+
| `audit-history.md` | Stable finding IDs, recurring-finding history, accepted exceptions, owner, expiry, and review cadence |
|
|
1259
|
+
| `working-backwards-prfaq.md` | Product release PR/FAQ: headline, customer problem, launch description, external FAQ, internal FAQ, evidence links, and review asks |
|
|
1260
|
+
| `prfaq-history/` | Stage-by-stage immutable PR/FAQ snapshots: `00-business-scenario.md` through `06-validate.md` |
|
|
1261
|
+
| `business-owner-summary.md` | Business scenario, process change, business case, metrics, assumptions, and Business Owner review ask |
|
|
1262
|
+
| `cto-architecture-summary.md` | EAI Platform/Azure architecture, auth, tenancy, data, contracts, diagrams, and CTO review ask |
|
|
1263
|
+
| `ciso-security-summary.md` | Security posture, identity/tenant controls, secrets/data handling, residual risk, validation evidence, and CISO review ask |
|
|
1264
|
+
| `stakeholder-review-index.md` | One-page index of review-ready artifacts, current status, reviewer, and approve/revise/defer response contract |
|
|
1265
|
+
|
|
1266
|
+
Use these artifacts as decision evidence for executive, architecture, CISO,
|
|
1267
|
+
data, delivery, CIO, CFO, COO, and risk/compliance stakeholders.
|
|
1268
|
+
|
|
1269
|
+
For application delivery, downstream stages must preserve the four-step
|
|
1270
|
+
AI-augmented journey as the default scope spine. If a later stage expands beyond
|
|
1271
|
+
four user-facing steps, it must explain why the extra complexity is necessary
|
|
1272
|
+
and whether generative AI could combine or automate the additional steps.
|
|
1273
|
+
Non-app work keeps the same numbered stages without requiring the app-delivery
|
|
1274
|
+
preview, branding, approval, or service-fit artifacts.
|
|
1275
|
+
|
|
1276
|
+
### Novice Walkthrough Guardrail (MANDATORY)
|
|
1277
|
+
|
|
1278
|
+
Assume the user is a first-time student or business learner with no prior
|
|
1279
|
+
platform experience.
|
|
1280
|
+
|
|
1281
|
+
- Do not require external documentation to complete discovery.
|
|
1282
|
+
- Provide recommended options and plain-language implications for every
|
|
1283
|
+
question. Each recommendation must explain, in one sentence, what choosing it
|
|
1284
|
+
means for the next stage.
|
|
1285
|
+
- Pipeline auto-chains from there: once discovery inputs are confirmed, the
|
|
1286
|
+
orchestrator progresses through research → specify → plan → tasks → implement
|
|
1287
|
+
→ validate without requiring the user to invoke each stage by hand.
|
|
1288
|
+
|
|
1289
|
+
---
|
|
1290
|
+
|
|
1291
|
+
## Observability
|
|
1292
|
+
|
|
1293
|
+
Log orchestrator routing:
|
|
1294
|
+
|
|
1295
|
+
```bash
|
|
1296
|
+
.specify/scripts/bash/log-stage.sh 0_orchestrator --route [command] --feature [name]
|
|
1297
|
+
```
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
## Pipeline Continuation
|
|
1301
|
+
|
|
1302
|
+
This completes the 0_gofer_start stage. To continue the Gofer pipeline:
|
|
1303
|
+
|
|
1304
|
+
**Next Command:** `#1_gofer_research`
|
|
1305
|
+
|
|
1306
|
+
The next stage will read the artifacts from this stage and continue the workflow automatically.
|
|
1307
|
+
|
|
1308
|
+
**Note:** Copilot Chat supports context preservation. Your conversation history will be maintained as you progress through pipeline stages.
|