jumpstart-mode 1.0.6 → 1.0.8
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/.cursorrules +3 -0
- package/.github/agents/jumpstart-analyst.agent.md +28 -7
- package/.github/agents/jumpstart-architect.agent.md +28 -7
- package/.github/agents/jumpstart-challenger.agent.md +37 -4
- package/.github/agents/jumpstart-developer.agent.md +19 -8
- package/.github/agents/jumpstart-facilitator.agent.md +75 -0
- package/.github/agents/jumpstart-pm.agent.md +13 -6
- package/.github/agents/jumpstart-scout.agent.md +50 -0
- package/.github/copilot-instructions.md +13 -5
- package/.github/instructions/specs.instructions.md +2 -0
- package/.github/prompts/jumpstart-review.prompt.md +2 -0
- package/.github/prompts/jumpstart-status.prompt.md +8 -1
- package/.jumpstart/agents/analyst.md +235 -28
- package/.jumpstart/agents/architect.md +163 -15
- package/.jumpstart/agents/challenger.md +91 -6
- package/.jumpstart/agents/developer.md +55 -2
- package/.jumpstart/agents/facilitator.md +227 -0
- package/.jumpstart/agents/pm.md +40 -5
- package/.jumpstart/agents/scout.md +358 -0
- package/.jumpstart/commands/commands.md +102 -26
- package/.jumpstart/config.yaml +46 -1
- package/.jumpstart/domain-complexity.csv +15 -0
- package/.jumpstart/roadmap.md +85 -0
- package/.jumpstart/templates/agents-md.md +93 -0
- package/.jumpstart/templates/architecture.md +48 -8
- package/.jumpstart/templates/challenger-brief.md +6 -4
- package/.jumpstart/templates/codebase-context.md +265 -0
- package/.jumpstart/templates/implementation-plan.md +9 -5
- package/.jumpstart/templates/insights.md +18 -18
- package/.jumpstart/templates/prd.md +7 -5
- package/.jumpstart/templates/product-brief.md +6 -4
- package/.jumpstart/templates/roadmap.md +79 -0
- package/AGENTS.md +31 -1
- package/CLAUDE.md +3 -0
- package/README.md +67 -8
- package/bin/cli.js +199 -3
- package/bin/context7-setup.js +405 -0
- package/package.json +1 -1
package/.jumpstart/config.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# ============================================================================
|
|
2
2
|
# Jump Start Framework Configuration
|
|
3
3
|
# ============================================================================
|
|
4
|
-
# This file controls the
|
|
4
|
+
# This file controls the behavior of the Jump Start agentic coding workflow.
|
|
5
5
|
# Edit values below to customise the framework for your project.
|
|
6
6
|
# ============================================================================
|
|
7
7
|
|
|
@@ -9,6 +9,28 @@ project:
|
|
|
9
9
|
name: "" # Your project name (populated by `jumpstart init`)
|
|
10
10
|
description: "" # One-line project description
|
|
11
11
|
created_at: "" # ISO date, auto-populated
|
|
12
|
+
approver: "" # Name of the human approver (captured during first phase gate)
|
|
13
|
+
type: null # greenfield | brownfield (null = not yet determined)
|
|
14
|
+
# greenfield: New project built from scratch
|
|
15
|
+
# brownfield: Existing codebase being extended or refactored
|
|
16
|
+
# Detected by CLI at install time, confirmed by Challenger at Phase 0
|
|
17
|
+
domain: null # auto | healthcare | fintech | govtech | edtech | aerospace
|
|
18
|
+
# automotive | scientific | legaltech | insuretech | energy
|
|
19
|
+
# process_control | building_automation | gaming | general
|
|
20
|
+
# null/auto: detected from Challenger Brief domain signals
|
|
21
|
+
# When set, enables domain-adaptive planning rigor
|
|
22
|
+
|
|
23
|
+
# ---------------------------------------------------------------------------
|
|
24
|
+
# Roadmap
|
|
25
|
+
# ---------------------------------------------------------------------------
|
|
26
|
+
# The roadmap defines non-negotiable principles governing all agent behavior.
|
|
27
|
+
# See .jumpstart/roadmap.md for the full document.
|
|
28
|
+
roadmap:
|
|
29
|
+
enabled: true # Enforce roadmap checks at agent activation
|
|
30
|
+
test_drive_mandate: false # true = strict TDD gate per Article III
|
|
31
|
+
# When true: Developer must write failing tests first,
|
|
32
|
+
# get human approval, then implement (Red-Green-Refactor)
|
|
33
|
+
# When false: Tests recommended but not gated
|
|
12
34
|
|
|
13
35
|
# ---------------------------------------------------------------------------
|
|
14
36
|
# Workflow Settings
|
|
@@ -17,6 +39,8 @@ workflow:
|
|
|
17
39
|
require_gate_approval: true # Require explicit human approval between phases
|
|
18
40
|
auto_commit_artifacts: false # Auto-commit spec files to git after generation
|
|
19
41
|
allow_phase_skip: false # If true, allows jumping to a later phase
|
|
42
|
+
auto_handoff: true # Automatically proceed to next phase after approval
|
|
43
|
+
archive_on_restart: true # Archive existing artifacts before regenerating (rename with date suffix)
|
|
20
44
|
current_phase: null # Tracks active phase (0-4), managed by framework
|
|
21
45
|
|
|
22
46
|
# ---------------------------------------------------------------------------
|
|
@@ -24,6 +48,18 @@ workflow:
|
|
|
24
48
|
# ---------------------------------------------------------------------------
|
|
25
49
|
agents:
|
|
26
50
|
|
|
51
|
+
scout:
|
|
52
|
+
persona_file: "agents/scout.md"
|
|
53
|
+
capture_insights: true # Capture observations and patterns discovered during codebase analysis
|
|
54
|
+
c4_levels: # Which C4 diagram levels to generate (list)
|
|
55
|
+
- context # context: System context -- external actors and systems
|
|
56
|
+
- container # container: Container-level -- apps, datastores, services
|
|
57
|
+
# - component # component: Component-level -- internal modules and their interactions
|
|
58
|
+
# - code # code: Code-level -- class/function relationships (very detailed)
|
|
59
|
+
max_file_scan_depth: 6 # How deep to walk the directory tree (0 = unlimited)
|
|
60
|
+
include_dependency_analysis: true # Parse package managers and map dependency graph
|
|
61
|
+
include_debt_assessment: true # Flag apparent technical debt, security concerns, outdated deps
|
|
62
|
+
|
|
27
63
|
challenger:
|
|
28
64
|
persona_file: "agents/challenger.md"
|
|
29
65
|
capture_insights: true # Capture decision rationale and alternatives considered
|
|
@@ -69,6 +105,7 @@ agents:
|
|
|
69
105
|
diagram_format: "mermaid" # mermaid | text | ascii
|
|
70
106
|
generate_api_contracts: true # Generate API contract specifications
|
|
71
107
|
generate_data_model: true # Generate entity/relationship definitions
|
|
108
|
+
generate_agents_md: true # Generate per-directory AGENTS.md files (greenfield only)
|
|
72
109
|
implementation_plan_style: "task" # task | story | ticket
|
|
73
110
|
# task: Granular developer tasks with file paths
|
|
74
111
|
# story: Story-level chunks mapped to PRD stories
|
|
@@ -83,6 +120,11 @@ agents:
|
|
|
83
120
|
commit_message_prefix: "jumpstart" # Prefix for commit messages
|
|
84
121
|
update_readme: true # Update README.md after implementation
|
|
85
122
|
lint_on_save: true # Run linter after writing files
|
|
123
|
+
agents_md_depth: "module" # Depth for per-directory AGENTS.md generation (greenfield only)
|
|
124
|
+
# all: Every directory with source code gets an AGENTS.md
|
|
125
|
+
# module: Major module directories only (e.g., src/api/, src/services/)
|
|
126
|
+
# top-level: Only top-level directories under src/
|
|
127
|
+
# 2, 3, etc: Numeric depth limit from source root
|
|
86
128
|
|
|
87
129
|
# ---------------------------------------------------------------------------
|
|
88
130
|
# Integration Settings
|
|
@@ -112,6 +154,9 @@ paths:
|
|
|
112
154
|
decisions_dir: "specs/decisions"
|
|
113
155
|
research_dir: "specs/research"
|
|
114
156
|
insights_dir: "specs/insights" # Stores insight files capturing decision rationale
|
|
157
|
+
codebase_context: "specs/codebase-context.md" # Scout agent output (brownfield projects)
|
|
158
|
+
roadmap: ".jumpstart/roadmap.md" # Project roadmap (non-negotiable principles)
|
|
159
|
+
domain_complexity: ".jumpstart/domain-complexity.csv" # Domain-adaptive planning rigor data
|
|
115
160
|
source_dir: "src"
|
|
116
161
|
tests_dir: "tests"
|
|
117
162
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
domain,signals,complexity,key_concerns,required_knowledge,special_sections
|
|
2
|
+
healthcare,"medical,diagnostic,clinical,FDA,patient,treatment,HIPAA,therapy,pharma,drug",high,"FDA approval;Clinical validation;HIPAA compliance;Patient safety;Medical device classification;Liability","Regulatory pathways;Clinical trial design;Medical standards;Data privacy;Integration requirements","clinical_requirements;regulatory_pathway;validation_methodology;safety_measures"
|
|
3
|
+
fintech,"payment,banking,trading,investment,crypto,wallet,transaction,KYC,AML,funds,fintech",high,"Regional compliance;Security standards;Audit requirements;Fraud prevention;Data protection","KYC/AML requirements;PCI DSS;Open banking;Regional laws (US/EU/APAC);Crypto regulations","compliance_matrix;security_architecture;audit_requirements;fraud_prevention"
|
|
4
|
+
govtech,"government,federal,civic,public sector,citizen,municipal,voting",high,"Procurement rules;Security clearance;Accessibility (508);FedRAMP;Privacy;Transparency","Government procurement;Security frameworks;Accessibility standards;Privacy laws;Open data requirements","procurement_compliance;security_clearance;accessibility_standards;transparency_requirements"
|
|
5
|
+
edtech,"education,learning,student,teacher,curriculum,assessment,K-12,university,LMS",medium,"Student privacy (COPPA/FERPA);Accessibility;Content moderation;Age verification;Curriculum standards","Educational privacy laws;Learning standards;Accessibility requirements;Content guidelines;Assessment validity","privacy_compliance;content_guidelines;accessibility_features;curriculum_alignment"
|
|
6
|
+
aerospace,"aircraft,spacecraft,aviation,drone,satellite,propulsion,flight,radar,navigation",high,"Safety certification;DO-178C compliance;Performance validation;Simulation accuracy;Export controls","Aviation standards;Safety analysis;Simulation validation;ITAR/export controls;Performance requirements","safety_certification;simulation_validation;performance_requirements;export_compliance"
|
|
7
|
+
automotive,"vehicle,car,autonomous,ADAS,automotive,driving,EV,charging",high,"Safety standards;ISO 26262;V2X communication;Real-time requirements;Certification","Automotive standards;Functional safety;V2X protocols;Real-time systems;Testing requirements","safety_standards;functional_safety;communication_protocols;certification_requirements"
|
|
8
|
+
scientific,"research,algorithm,simulation,modeling,computational,analysis,data science,ML,AI",medium,"Reproducibility;Validation methodology;Peer review;Performance;Accuracy;Computational resources","Scientific method;Statistical validity;Computational requirements;Domain expertise;Publication standards","validation_methodology;accuracy_metrics;reproducibility_plan;computational_requirements"
|
|
9
|
+
legaltech,"legal,law,contract,compliance,litigation,patent,attorney,court",high,"Legal ethics;Bar regulations;Data retention;Attorney-client privilege;Court system integration","Legal practice rules;Ethics requirements;Court filing systems;Document standards;Confidentiality","ethics_compliance;data_retention;confidentiality_measures;court_integration"
|
|
10
|
+
insuretech,"insurance,claims,underwriting,actuarial,policy,risk,premium",high,"Insurance regulations;Actuarial standards;Data privacy;Fraud detection;State compliance","Insurance regulations by state;Actuarial methods;Risk modeling;Claims processing;Regulatory reporting","regulatory_requirements;risk_modeling;fraud_detection;reporting_compliance"
|
|
11
|
+
energy,"energy,utility,grid,solar,wind,power,electricity,oil,gas",high,"Grid compliance;NERC standards;Environmental regulations;Safety requirements;Real-time operations","Energy regulations;Grid standards;Environmental compliance;Safety protocols;SCADA systems","grid_compliance;safety_protocols;environmental_compliance;operational_requirements"
|
|
12
|
+
process_control,"industrial automation,process control,PLC,SCADA,DCS,HMI,operational technology,OT,control system",high,"Functional safety;OT cybersecurity;Real-time control requirements;Legacy system integration;Process safety","Functional safety standards;OT security frameworks;Industrial protocols;Process control architecture;Plant reliability","functional_safety;ot_security;process_requirements;engineering_authority"
|
|
13
|
+
building_automation,"building automation,BAS,BMS,HVAC,smart building,lighting control,fire alarm,life safety",high,"Life safety codes;Building energy standards;Multi-trade coordination;Commissioning;Indoor environmental quality","Building automation protocols;HVAC controls;Fire protection design;Commissioning;Building codes","life_safety;energy_compliance;commissioning_requirements;engineering_authority"
|
|
14
|
+
gaming,"game,player,gameplay,level,character,multiplayer,quest",medium,"Performance optimization;Player engagement;Monetization ethics;Platform requirements;Accessibility","Game design patterns;Real-time networking;Graphics optimization;Platform SDKs;Analytics","performance_targets;engagement_metrics;platform_requirements;accessibility_features"
|
|
15
|
+
general,"",low,"Standard requirements;Basic security;User experience;Performance","General software practices","standard_requirements"
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Project Roadmap
|
|
2
|
+
|
|
3
|
+
> This document defines the non-negotiable principles that govern all AI agent behavior in this project. Roadmap principles supersede agent-specific protocols — no agent may violate a Core Principle, regardless of phase or task context.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Core Principles
|
|
8
|
+
|
|
9
|
+
### I. Sequential Phase Integrity
|
|
10
|
+
|
|
11
|
+
Phases are strictly sequential. No phase may begin until the previous phase's artifact is explicitly approved by the human operator. Agents must never skip, combine, or reorder phases. The workflow order is inviolable:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
[Scout] → Phase 0 → Phase 1 → Phase 2 → Phase 3 → Phase 4
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
An artifact is only "approved" when its Phase Gate Approval section has all checkboxes checked and "Approved by" is not "Pending".
|
|
18
|
+
|
|
19
|
+
### II. Template Compliance
|
|
20
|
+
|
|
21
|
+
All output artifacts must be generated using the markdown templates in `.jumpstart/templates/`. Agents must not invent new document formats, omit required template sections, or leave bracket placeholders (e.g., `[DATE]`, `[description]`) in final artifacts. Template structure ensures cross-phase consistency and machine-readability.
|
|
22
|
+
|
|
23
|
+
### III. Test-First Development
|
|
24
|
+
|
|
25
|
+
**Enforcement level:** Governed by `roadmap.test_drive_mandate` in `.jumpstart/config.yaml`.
|
|
26
|
+
|
|
27
|
+
When **enabled** (`test_drive_mandate: true`):
|
|
28
|
+
- The Developer agent MUST write the test suite for each task **before** writing any implementation code.
|
|
29
|
+
- Tests MUST be run to confirm they fail (Red phase).
|
|
30
|
+
- The failing test list MUST be presented to the human for approval.
|
|
31
|
+
- Only after human approval of the failing tests may the Developer write implementation code (Green phase).
|
|
32
|
+
- After tests pass, the Developer SHOULD refactor if needed (Refactor phase).
|
|
33
|
+
- **Violation of this principle is a hard stop.** The Developer must not write source code for a task until its tests exist and the human has confirmed them.
|
|
34
|
+
|
|
35
|
+
When **disabled** (`test_drive_mandate: false`):
|
|
36
|
+
- The Developer SHOULD write tests before or alongside implementation code, but is not required to obtain human approval of failing tests before proceeding.
|
|
37
|
+
- All other testing requirements (coverage, acceptance criteria mapping) remain in effect.
|
|
38
|
+
|
|
39
|
+
### IV. Upstream Traceability
|
|
40
|
+
|
|
41
|
+
Every downstream artifact must demonstrably trace to its upstream source:
|
|
42
|
+
- PRD user stories → Product Brief capabilities → Challenger Brief validation criteria
|
|
43
|
+
- Architecture decisions → PRD requirements → Product Brief scope
|
|
44
|
+
- Implementation tasks → Architecture components → PRD stories
|
|
45
|
+
|
|
46
|
+
No orphan requirements are permitted. If a requirement cannot be traced upstream, it must be flagged and justified or removed. Agents must not hallucinate requirements that contradict upstream documents.
|
|
47
|
+
|
|
48
|
+
### V. Human Gate Authority
|
|
49
|
+
|
|
50
|
+
No agent may mark a phase as complete or approve its own output. All phase transitions require explicit human approval via the Phase Gate Approval section. The human operator is the sole authority on artifact acceptance.
|
|
51
|
+
|
|
52
|
+
Agents must always ask: *"Does this meet your expectations?"* before considering their work complete. Self-approval is a roadmapal violation.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Additional Constraints
|
|
57
|
+
|
|
58
|
+
- **Stay in Lane:** Each agent operates strictly within its defined phase. The Challenger never suggests solutions. The Analyst never writes code. The Developer never changes architecture. Violations must be flagged, not silently accommodated.
|
|
59
|
+
- **Living Insights:** Every agent must maintain its phase's insights file. Reasoning, trade-offs, and discarded alternatives must be captured as they occur, not reconstructed after the fact.
|
|
60
|
+
- **Ambiguity Handling:** When an agent encounters ambiguous, vague, or underspecified input, it must seek clarification from the human rather than making assumptions. Vague adjectives ("fast", "secure", "robust") without measurable criteria must be flagged with `[NEEDS CLARIFICATION]` markers.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Development Workflow
|
|
65
|
+
|
|
66
|
+
- **Artifact Location:** All specification documents go in `specs/`. Architecture decisions go in `specs/decisions/`. Source code goes in `src/`. Tests go in `tests/`.
|
|
67
|
+
- **Configuration Authority:** `.jumpstart/config.yaml` is the single source of truth for framework settings. Agents must read it at the start of every phase.
|
|
68
|
+
- **Template Authority:** `.jumpstart/templates/` contains the canonical structure for all artifacts. Agents must use these templates without modification to their structure.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Governance
|
|
73
|
+
|
|
74
|
+
This Roadmap supersedes all other agent protocols and practices. In the event of a conflict between a Roadmap principle and an agent-specific instruction, the Roadmap prevails.
|
|
75
|
+
|
|
76
|
+
**Amendments require:**
|
|
77
|
+
1. A written proposal with rationale for the change
|
|
78
|
+
2. Explicit human approval
|
|
79
|
+
3. A migration plan for any affected artifacts or in-progress work
|
|
80
|
+
|
|
81
|
+
Roadmap violations must always be reported to the human, never silently ignored or worked around. An agent that detects a potential violation in its own planned actions must halt and report before proceeding.
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
**Version**: 1.0.0 | **Ratified**: 2026-02-08 | **Last Amended**: 2026-02-08
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# AGENTS.md Template
|
|
2
|
+
|
|
3
|
+
> **Purpose:** Template for per-directory `AGENTS.md` files generated during greenfield projects.
|
|
4
|
+
> **Created by:** The Architect (Phase 3) and The Developer (Phase 4)
|
|
5
|
+
> **Updated by:** The Developer after each milestone
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Template
|
|
10
|
+
|
|
11
|
+
The following template should be adapted for each directory. Not all sections apply to every directory — omit sections that are not relevant (e.g., a `utils/` directory may not have a "Public API" section).
|
|
12
|
+
|
|
13
|
+
```markdown
|
|
14
|
+
# [Directory Name]
|
|
15
|
+
|
|
16
|
+
## Module Purpose
|
|
17
|
+
|
|
18
|
+
[1-3 sentences describing what this directory/module does and its role in the overall system. Reference the Architecture Document component it belongs to.]
|
|
19
|
+
|
|
20
|
+
## Public API / Exports
|
|
21
|
+
|
|
22
|
+
[List the key interfaces, functions, classes, or types that this module exposes to other parts of the system. For internal-only modules, describe what is consumed by sibling or parent modules.]
|
|
23
|
+
|
|
24
|
+
| Export | Type | Description |
|
|
25
|
+
|--------|------|-------------|
|
|
26
|
+
| `[name]` | [function / class / interface / type / constant] | [What it does and when to use it] |
|
|
27
|
+
|
|
28
|
+
## Dependencies
|
|
29
|
+
|
|
30
|
+
### Internal
|
|
31
|
+
- `[module-path]` — [What is imported and why]
|
|
32
|
+
|
|
33
|
+
### External
|
|
34
|
+
- `[package-name]` — [What it provides to this module]
|
|
35
|
+
|
|
36
|
+
## Patterns and Conventions
|
|
37
|
+
|
|
38
|
+
- **File naming:** [Convention used in this directory, e.g., kebab-case, PascalCase]
|
|
39
|
+
- **Error handling:** [How errors are handled in this module]
|
|
40
|
+
- **Testing:** [Test file location and naming convention for this module]
|
|
41
|
+
- **[Other relevant pattern]:** [Description]
|
|
42
|
+
|
|
43
|
+
## AI Agent Guidelines
|
|
44
|
+
|
|
45
|
+
> Rules for AI coding agents working in this directory.
|
|
46
|
+
|
|
47
|
+
- [DO: Follow the established patterns visible in existing files]
|
|
48
|
+
- [DO: Write tests for new functionality following the test conventions above]
|
|
49
|
+
- [DO: Use the module's error handling pattern consistently]
|
|
50
|
+
- [DON'T: Import from peer modules except through their public API]
|
|
51
|
+
- [DON'T: Add new external dependencies without checking the Architecture Document]
|
|
52
|
+
- [DON'T: Modify the public API without updating this file and consumers]
|
|
53
|
+
|
|
54
|
+
## Key Files
|
|
55
|
+
|
|
56
|
+
| File | Purpose |
|
|
57
|
+
|------|---------|
|
|
58
|
+
| `[filename]` | [Brief description of what this file does] |
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Usage Guidelines
|
|
64
|
+
|
|
65
|
+
### When to Create
|
|
66
|
+
|
|
67
|
+
- **Architect (Phase 3):** Define which directories will receive `AGENTS.md` files in the architecture document's Project Structure section. Include initial `AGENTS.md` creation tasks in the implementation plan.
|
|
68
|
+
- **Developer (Phase 4):** Create `AGENTS.md` files during project scaffolding (Step 2) and update them after each milestone as module APIs and patterns solidify.
|
|
69
|
+
|
|
70
|
+
### Depth Configuration
|
|
71
|
+
|
|
72
|
+
The `agents.developer.agents_md_depth` config setting controls which directories get `AGENTS.md` files:
|
|
73
|
+
|
|
74
|
+
- **`all`**: Every directory containing source code gets an `AGENTS.md`
|
|
75
|
+
- **`module`**: Major module directories (e.g., `src/api/`, `src/services/`, `src/models/`) — directories that represent a distinct functional area
|
|
76
|
+
- **`top-level`**: Only top-level directories directly under the source root (e.g., `src/`)
|
|
77
|
+
- **`2`, `3`, etc.**: Numeric depth limit measured from the source root directory
|
|
78
|
+
|
|
79
|
+
### When to Update
|
|
80
|
+
|
|
81
|
+
Update an `AGENTS.md` file when:
|
|
82
|
+
- A new public export is added to or removed from the module
|
|
83
|
+
- The module's error handling or testing patterns change
|
|
84
|
+
- New AI-relevant guidelines are discovered during implementation
|
|
85
|
+
- Dependencies (internal or external) change significantly
|
|
86
|
+
- After each milestone verification (Developer Step 4)
|
|
87
|
+
|
|
88
|
+
### Quality Standards
|
|
89
|
+
|
|
90
|
+
- Keep `AGENTS.md` files concise and actionable — they are working documents, not documentation novels
|
|
91
|
+
- Focus on information that an AI coding agent would need to work effectively in this directory
|
|
92
|
+
- Ensure the "AI Agent Guidelines" section contains specific, actionable rules (not generic advice)
|
|
93
|
+
- Update the "Key Files" section to reflect the current state of the directory
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
> **Phase:** 3 -- Solutioning
|
|
4
4
|
> **Agent:** The Architect
|
|
5
|
-
> **Status:** Draft
|
|
5
|
+
> **Status:** Draft
|
|
6
6
|
> **Created:** [DATE]
|
|
7
|
-
> **
|
|
7
|
+
> **Approval date:** [DATE or "Pending"]
|
|
8
|
+
> **Approved by:** [Human's name or "Pending"]
|
|
8
9
|
> **Upstream References:**
|
|
9
|
-
> - [specs/challenger-brief.md](
|
|
10
|
-
> - [specs/product-brief.md](
|
|
11
|
-
> - [specs/prd.md](
|
|
10
|
+
> - [specs/challenger-brief.md](challenger-brief.md)
|
|
11
|
+
> - [specs/product-brief.md](product-brief.md)
|
|
12
|
+
> - [specs/prd.md](prd.md)
|
|
12
13
|
|
|
13
14
|
---
|
|
14
15
|
|
|
@@ -18,6 +19,29 @@
|
|
|
18
19
|
|
|
19
20
|
---
|
|
20
21
|
|
|
22
|
+
## Existing System Context (Brownfield Only)
|
|
23
|
+
|
|
24
|
+
> **Instruction:** Include this section only if `project.type` is `brownfield`. Remove it entirely for greenfield projects.
|
|
25
|
+
|
|
26
|
+
**Source:** [specs/codebase-context.md](codebase-context.md)
|
|
27
|
+
|
|
28
|
+
### Current Architecture Summary
|
|
29
|
+
|
|
30
|
+
[2-3 sentence summary of the existing system's architecture as documented by the Scout agent. Reference the C4 diagrams in the codebase context.]
|
|
31
|
+
|
|
32
|
+
### Constraints from Existing System
|
|
33
|
+
|
|
34
|
+
| Constraint | Rationale | Impact on New Design |
|
|
35
|
+
|------------|-----------|---------------------|
|
|
36
|
+
| [e.g., Must maintain PostgreSQL 14] | [Why this can't change] | [How this shapes the new architecture] |
|
|
37
|
+
| [e.g., Existing REST API contracts] | [External consumers depend on them] | [Must maintain backward compatibility] |
|
|
38
|
+
|
|
39
|
+
### Migration Strategy
|
|
40
|
+
|
|
41
|
+
[Brief description of how the new architecture will coexist with or transition from the existing system. Reference any relevant ADRs.]
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
21
45
|
## Technology Stack
|
|
22
46
|
|
|
23
47
|
| Layer | Choice | Version | Justification | Alternatives Considered |
|
|
@@ -245,8 +269,8 @@ Push to branch
|
|
|
245
269
|
|
|
246
270
|
| ADR | Title | Status | File |
|
|
247
271
|
|-----|-------|--------|------|
|
|
248
|
-
| ADR-001 | [Decision title] | Accepted | [specs/decisions/001-short-title.md](
|
|
249
|
-
| ADR-002 | [Decision title] | Accepted | [specs/decisions/002-short-title.md](
|
|
272
|
+
| ADR-001 | [Decision title] | Accepted | [specs/decisions/001-short-title.md](decisions/001-short-title.md) |
|
|
273
|
+
| ADR-002 | [Decision title] | Accepted | [specs/decisions/002-short-title.md](decisions/002-short-title.md) |
|
|
250
274
|
|
|
251
275
|
[List all ADRs. Full content lives in individual files in specs/decisions/.]
|
|
252
276
|
|
|
@@ -272,7 +296,7 @@ Push to branch
|
|
|
272
296
|
|
|
273
297
|
## Insights Reference
|
|
274
298
|
|
|
275
|
-
**Companion Document:** [specs/insights/architecture-insights.md](
|
|
299
|
+
**Companion Document:** [specs/insights/architecture-insights.md](insights/architecture-insights.md)
|
|
276
300
|
|
|
277
301
|
This artifact was informed by ongoing insights captured during Solutioning. Key insights that shaped this document:
|
|
278
302
|
|
|
@@ -284,6 +308,21 @@ See the insights document for complete decision rationale, alternatives consider
|
|
|
284
308
|
|
|
285
309
|
---
|
|
286
310
|
|
|
311
|
+
## Directory AGENTS.md Plan (Greenfield Only)
|
|
312
|
+
|
|
313
|
+
> **Instruction:** Include this section only if `project.type` is `greenfield`. Remove it entirely for brownfield projects. The Developer agent will create these files during scaffolding and maintain them during task execution. Use the template from `.jumpstart/templates/agents-md.md`.
|
|
314
|
+
|
|
315
|
+
| Directory | Purpose | Key Exports | Notes |
|
|
316
|
+
|-----------|---------|-------------|-------|
|
|
317
|
+
| `src/` | Application root | — | Top-level module documentation |
|
|
318
|
+
| [e.g., `src/api/`] | [API endpoint handlers] | [Routes, middleware] | |
|
|
319
|
+
| [e.g., `src/models/`] | [Data models and schemas] | [Entity types, validators] | |
|
|
320
|
+
| [e.g., `src/services/`] | [Business logic layer] | [Service functions] | |
|
|
321
|
+
|
|
322
|
+
[Add rows for each directory that should receive an AGENTS.md file. The depth is governed by `agents.developer.agents_md_depth` in config.yaml: `top-level` (src/ only), `module` (src/[module]/), or `deep` (all significant directories).]
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
287
326
|
## Phase Gate Approval
|
|
288
327
|
|
|
289
328
|
- [ ] Human has reviewed this Architecture Document
|
|
@@ -298,3 +337,4 @@ See the insights document for complete decision rationale, alternatives consider
|
|
|
298
337
|
|
|
299
338
|
**Approved by:** [Human's name or "Pending"]
|
|
300
339
|
**Approval date:** [Date or "Pending"]
|
|
340
|
+
**Status:** Draft
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
> **Phase:** 0 -- Problem / Challenge Discovery
|
|
4
4
|
> **Agent:** The Challenger
|
|
5
|
-
> **Status:** Draft
|
|
5
|
+
> **Status:** Draft
|
|
6
6
|
> **Created:** [DATE]
|
|
7
|
-
> **
|
|
7
|
+
> **Approval date:** [DATE or "Pending"]
|
|
8
|
+
> **Approved by:** [Human's name or "Pending"]
|
|
8
9
|
|
|
9
10
|
---
|
|
10
11
|
|
|
@@ -92,7 +93,7 @@ How will we know the problem has been solved?
|
|
|
92
93
|
|
|
93
94
|
| # | Criterion | Type | Measurable? |
|
|
94
95
|
|---|-----------|------|------------|
|
|
95
|
-
| 1 | [Outcome-based success criterion, solution-agnostic] |
|
|
96
|
+
| 1 | [Outcome-based success criterion, solution-agnostic] | Behavioral / Metric / Qualitative | Yes / Needs refinement |
|
|
96
97
|
| 2 | | | |
|
|
97
98
|
| 3 | | | |
|
|
98
99
|
|
|
@@ -118,7 +119,7 @@ How will we know the problem has been solved?
|
|
|
118
119
|
|
|
119
120
|
## Insights Reference
|
|
120
121
|
|
|
121
|
-
**Companion Document:** [specs/insights/challenger-brief-insights.md](
|
|
122
|
+
**Companion Document:** [specs/insights/challenger-brief-insights.md](insights/challenger-brief-insights.md)
|
|
122
123
|
|
|
123
124
|
This artifact was informed by ongoing insights captured during Problem Discovery. Key insights that shaped this document:
|
|
124
125
|
|
|
@@ -140,3 +141,4 @@ See the insights document for complete decision rationale, alternatives consider
|
|
|
140
141
|
|
|
141
142
|
**Approved by:** [Human's name or "Pending"]
|
|
142
143
|
**Approval date:** [Date or "Pending"]
|
|
144
|
+
**Status:** Draft
|