opencode-agile-agent 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -12
- package/bin/cli.js +179 -25
- package/bin/validate-templates.js +17 -17
- package/package.json +1 -1
- package/templates/.opencode/ARCHITECTURE.md +90 -66
- package/templates/.opencode/README.md +107 -65
- package/templates/.opencode/agents/archiver.md +45 -0
- package/templates/.opencode/agents/backend-specialist.md +11 -23
- package/templates/.opencode/agents/context-gatherer.md +18 -29
- package/templates/.opencode/agents/debugger.md +12 -21
- package/templates/.opencode/agents/developer.md +22 -26
- package/templates/.opencode/agents/devops-engineer.md +10 -21
- package/templates/.opencode/agents/feature-lead.md +53 -34
- package/templates/.opencode/agents/frontend-specialist.md +12 -22
- package/templates/.opencode/agents/performance-optimizer.md +12 -21
- package/templates/.opencode/agents/pr-reviewer.md +17 -34
- package/templates/.opencode/agents/project-planner.md +9 -22
- package/templates/.opencode/agents/retrospective-writer.md +48 -0
- package/templates/.opencode/agents/security-auditor.md +9 -22
- package/templates/.opencode/agents/system-analyst.md +16 -25
- package/templates/.opencode/agents/test-engineer.md +14 -21
- package/templates/.opencode/bun.lock +18 -0
- package/templates/.opencode/commands/archive.md +15 -0
- package/templates/.opencode/commands/assign-models.md +39 -0
- package/templates/.opencode/commands/brainstorm.md +5 -2
- package/templates/.opencode/commands/{progress.md → check-progress.md} +2 -1
- package/templates/.opencode/commands/create.md +8 -3
- package/templates/.opencode/commands/plan.md +6 -1
- package/templates/.opencode/commands/review.md +9 -3
- package/templates/.opencode/commands/status.md +3 -0
- package/templates/.opencode/commands/test.md +8 -3
- package/templates/.opencode/config.template.json +116 -20
- package/templates/.opencode/package.json +6 -0
- package/templates/.opencode/plugins/session-artifacts.ts +611 -0
- package/templates/.opencode/skills/archive-writing/SKILL.md +36 -0
- package/templates/.opencode/skills/artifact-discipline/SKILL.md +30 -0
- package/templates/.opencode/skills/clarify-first/SKILL.md +34 -0
- package/templates/.opencode/skills/context-archive/SKILL.md +10 -26
- package/templates/.opencode/skills/context-gathering/SKILL.md +2 -0
- package/templates/.opencode/skills/intelligent-routing/SKILL.md +10 -2
- package/templates/.opencode/templates/brief.template.md +10 -5
- package/templates/.opencode/templates/notes.template.md +4 -4
- package/templates/.opencode/templates/review-summary.template.md +6 -0
- package/templates/.opencode/templates/session-summary.template.md +7 -0
- package/templates/.opencode/templates/spec.template.md +6 -6
- package/templates/.opencode/templates/status.template.yaml +12 -12
- package/templates/.opencode/templates/task.template.md +3 -11
- package/templates/opencode.json +12 -0
- package/templates/.opencode/agents/api-designer.md +0 -54
- package/templates/.opencode/agents/code-archaeologist.md +0 -54
- package/templates/.opencode/agents/database-architect.md +0 -54
- package/templates/.opencode/agents/documentation-writer.md +0 -52
- package/templates/.opencode/agents/explorer-agent.md +0 -61
- package/templates/.opencode/agents/feature-loop.md +0 -100
- package/templates/.opencode/agents/game-developer.md +0 -53
- package/templates/.opencode/agents/mobile-developer.md +0 -54
- package/templates/.opencode/agents/orchestrator.md +0 -60
- package/templates/.opencode/agents/penetration-tester.md +0 -53
- package/templates/.opencode/agents/product-manager.md +0 -55
- package/templates/.opencode/agents/qa-automation-engineer.md +0 -55
- package/templates/.opencode/agents/seo-specialist.md +0 -54
- package/templates/.opencode/archive/README.md +0 -24
- package/templates/.opencode/commands/debug.md +0 -10
- package/templates/.opencode/skills/parallel-agents/SKILL.md +0 -38
- package/templates/.opencode/skills/redteam-validation/SKILL.md +0 -33
|
@@ -1,14 +1,42 @@
|
|
|
1
|
-
# OpenCode Agent Kit
|
|
2
|
-
|
|
3
|
-
Spec-driven multi-agent system for OpenCode.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
1
|
+
# OpenCode Agent Kit
|
|
2
|
+
|
|
3
|
+
Spec-driven multi-agent system for OpenCode.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
7
|
## Included
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
9
|
+
- 15 agents
|
|
10
|
+
- 15 skills
|
|
11
|
+
- 11 commands
|
|
12
|
+
- 1 runtime plugin
|
|
13
|
+
|
|
14
|
+
## Plannotator (Optional)
|
|
15
|
+
|
|
16
|
+
- This kit can integrate with Plannotator for browser-based plan review.
|
|
17
|
+
- If your project has `opencode.json` with `"plugin": ["@plannotator/opencode@latest"]`, the `submit_plan` tool becomes available (by default for OpenCode's built-in `plan` agent).
|
|
18
|
+
- The template `opencode.json` included with this repo configures Plannotator in `plan-agent` mode and allows `feature-lead` to call `submit_plan` during `/plan`.
|
|
19
|
+
- Optional slash commands (installs globally):
|
|
20
|
+
- macOS/Linux/WSL: `curl -fsSL https://plannotator.ai/install.sh | bash`
|
|
21
|
+
- Windows PowerShell: `irm https://plannotator.ai/install.ps1 | iex`
|
|
22
|
+
|
|
23
|
+
## Runtime Spine
|
|
24
|
+
|
|
25
|
+
- `session-artifacts` keeps live feature state in `.opencode/artifacts/features/<feature-slug>/`.
|
|
26
|
+
- `.opencode/artifacts/` is local runtime state and should stay out of git.
|
|
27
|
+
- Agents should retrieve active state through artifact tools instead of carrying full bundle context.
|
|
28
|
+
- Archive writes a concise summary record to `.opencode/archive/<feature-slug>.md`, and finalization runs through the artifact plugin.
|
|
29
|
+
|
|
30
|
+
## Flow Shape
|
|
31
|
+
|
|
32
|
+
- The default spine is `/brainstorm -> /plan -> /create -> /test -> /review -> /archive`.
|
|
33
|
+
- The flow is not rigid. Commands can be reused mid-stream when the work needs them.
|
|
34
|
+
- Common examples:
|
|
35
|
+
- Use `/brainstorm` again during implementation when a requirement turns ambiguous.
|
|
36
|
+
- Use `/plan` again when scope changes materially.
|
|
37
|
+
- Use `/test` before `/create` is fully done when a risky slice needs early proof.
|
|
38
|
+
- Use `/review` on an intermediate slice before the full feature is complete.
|
|
39
|
+
- Use `/archive` to preserve one finished slice even if the larger feature continues.
|
|
12
40
|
|
|
13
41
|
## Skill Design
|
|
14
42
|
|
|
@@ -19,26 +47,31 @@ Spec-driven multi-agent system for OpenCode.
|
|
|
19
47
|
## Context Skills
|
|
20
48
|
|
|
21
49
|
- `context-gathering` maps the current project and active work.
|
|
22
|
-
- `context-archive` stores completed
|
|
50
|
+
- `context-archive` stores completed work summaries in `.opencode/archive/<feature-slug>.md`.
|
|
51
|
+
- `archive-writing` turns approved work into a compact archive note.
|
|
52
|
+
- `cross-model-regression` coordinates multi-agent regression sweeps across different reviewer models.
|
|
53
|
+
- `failure-learning` turns verified mistakes into reusable skills or rules when the lesson is worth keeping.
|
|
23
54
|
- `security-gate` decides when a change needs a security gate or redteam phase.
|
|
24
55
|
- `redteam-validation` simulates attacker behavior and proves exploitability.
|
|
25
|
-
- `orchestrator` is optional; default routing stays with `feature-lead` and the owning specialists.
|
|
26
56
|
|
|
27
57
|
## Commands
|
|
28
58
|
|
|
29
59
|
- Custom slash commands live in `.opencode/commands/`.
|
|
30
60
|
- Each command file uses Markdown frontmatter plus a prompt body, matching OpenCode's command format.
|
|
31
|
-
- The current command set is `
|
|
61
|
+
- The current command set is `archive`, `assign-models`, `brainstorm`, `check-progress`, `create`, `plan`, `reframe`, `review`, `rubber-duck`, `status`, and `test`.
|
|
32
62
|
|
|
33
63
|
## Primary Flow
|
|
34
64
|
|
|
35
65
|
1. @feature-lead receives the request.
|
|
36
|
-
2.
|
|
37
|
-
3. @
|
|
38
|
-
4. @
|
|
39
|
-
5. @
|
|
40
|
-
6. @
|
|
41
|
-
|
|
66
|
+
2. `session_artifact_current` restores the live feature state.
|
|
67
|
+
3. @context-gatherer maps the current project state.
|
|
68
|
+
4. @project-planner and @system-analyst create or refresh the compact bundle: brief.md, spec.md, task.md, notes.md, and status.yaml.
|
|
69
|
+
5. @developer implements the approved spec from a canonical handoff packet.
|
|
70
|
+
6. @test-engineer, @security-auditor, and @pr-reviewer close the loop.
|
|
71
|
+
7. When a failure exposed a reusable lesson, ask whether to promote it into a skill or rule.
|
|
72
|
+
8. If the session may compact before the final gate, @retrospective-writer captures a checkpoint.
|
|
73
|
+
9. @archiver writes the completed work summary through the artifact plugin.
|
|
74
|
+
|
|
42
75
|
## Context Bundle
|
|
43
76
|
|
|
44
77
|
- Templates live in `.opencode/templates/` for quick bundle creation.
|
|
@@ -49,72 +82,81 @@ Spec-driven multi-agent system for OpenCode.
|
|
|
49
82
|
- status.yaml: live execution state
|
|
50
83
|
|
|
51
84
|
- `status.yaml` is the live execution artifact; the markdown files stay as stable planning/reference context.
|
|
52
|
-
- `status.yaml.status` allowed values: `
|
|
85
|
+
- `status.yaml.status` allowed values: `brainstorm`, `planning`, `implementation`, `verification`, `review`, `done`, `blocked`.
|
|
53
86
|
|
|
54
87
|
## Archive
|
|
55
88
|
|
|
56
|
-
- Completed
|
|
89
|
+
- Completed work summaries live in `.opencode/archive/<feature-slug>.md`.
|
|
90
|
+
- Live artifacts in `.opencode/artifacts/` should not be committed.
|
|
57
91
|
- Keep the archive copy approved, compact, and read-only in practice.
|
|
58
92
|
- Archive only when `status.yaml` is `done`.
|
|
59
|
-
- Archive the
|
|
60
|
-
- Only the
|
|
61
|
-
|
|
93
|
+
- Archive the outcome, not the full live bundle.
|
|
94
|
+
- Only the archive flow should finalize the archive summary.
|
|
95
|
+
|
|
62
96
|
## Agent Groups
|
|
63
97
|
|
|
64
|
-
| Group
|
|
65
|
-
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
75
|
-
| Output | `documentation-writer`, `seo-specialist` |
|
|
76
|
-
| Maintenance | `code-archaeologist` |
|
|
77
|
-
|
|
98
|
+
| Group | Agents |
|
|
99
|
+
| ------------ | ----------------------------------------------------------------------------------------------------------------- |
|
|
100
|
+
| Archive | `archiver` |
|
|
101
|
+
| Context | `context-gatherer` |
|
|
102
|
+
| Primary | `feature-lead` |
|
|
103
|
+
| Coordination | `project-planner` |
|
|
104
|
+
| Spec | `system-analyst` |
|
|
105
|
+
| Build | `developer`, `frontend-specialist`, `backend-specialist`, `devops-engineer` |
|
|
106
|
+
| Quality | `test-engineer`, `security-auditor`, `performance-optimizer`, `debugger`, `pr-reviewer` |
|
|
107
|
+
| Learning | `retrospective-writer` |
|
|
108
|
+
|
|
78
109
|
## Command Catalog
|
|
79
110
|
|
|
80
|
-
| Command
|
|
81
|
-
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
|
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
|
|
111
|
+
| Command | Use When |
|
|
112
|
+
| -------------- | ---------------------------------------------------------------------------------------------- |
|
|
113
|
+
| archive | Save an approved work summary into `.opencode/archive/<feature-slug>.md` for future reference. |
|
|
114
|
+
| assign-models | Map available models to each agent, confirm the routing, and update the active OpenCode config. |
|
|
115
|
+
| brainstorm | Explore options and clarify requirements before planning, or reopen ambiguity mid-flow. |
|
|
116
|
+
| check-progress | Check current status, visible changes, remaining work, and the next best step. |
|
|
117
|
+
| create | Build new features, components, or project slices with a spec-driven flow. |
|
|
118
|
+
| plan | Create or refresh structured task breakdowns and spec artifacts. |
|
|
119
|
+
| reframe | Reset the framing when the output is off-target, unclear, or stuck repeating the same mistake. |
|
|
120
|
+
| review | Review code against the spec, standards, and quality gates at any meaningful checkpoint. |
|
|
121
|
+
| rubber-duck | Think out loud, challenge assumptions, and isolate the real problem before changing anything. |
|
|
122
|
+
| status | Check project health, docs, and operating readiness. |
|
|
123
|
+
| test | Run and generate tests for the codebase whenever proof is needed. |
|
|
124
|
+
|
|
93
125
|
## Skills
|
|
94
126
|
|
|
95
127
|
- context-gathering
|
|
96
128
|
- context-archive
|
|
129
|
+
- archive-writing
|
|
130
|
+
- cross-model-regression
|
|
131
|
+
- artifact-discipline
|
|
97
132
|
- clean-code
|
|
98
133
|
- brainstorming
|
|
134
|
+
- clarify-first
|
|
99
135
|
- plan-writing
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
136
|
+
- intelligent-routing
|
|
137
|
+
- frontend-design
|
|
138
|
+
- api-patterns
|
|
139
|
+
- session-closeout
|
|
104
140
|
- testing-patterns
|
|
105
141
|
- systematic-debugging
|
|
106
142
|
- code-philosophy
|
|
107
143
|
- security-gate
|
|
108
144
|
- redteam-validation
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
-
|
|
145
|
+
- failure-learning
|
|
146
|
+
|
|
147
|
+
## Repo Delta Guard
|
|
148
|
+
|
|
149
|
+
- `session_artifact_repo_delta` compares artifact-tracked files with actual git working tree changes.
|
|
150
|
+
- Use it in `status`, `review`, and `archive` to catch drift before summaries or approval claims go stale.
|
|
151
|
+
|
|
152
|
+
## Routing Examples
|
|
153
|
+
|
|
154
|
+
- Add JWT auth -> @feature-lead -> @system-analyst -> @backend-specialist + @security-auditor -> @test-engineer
|
|
155
|
+
- Fix a UI bug -> @feature-lead -> @frontend-specialist -> @test-engineer -> @pr-reviewer
|
|
114
156
|
- Ship a multi-domain feature -> @feature-lead -> @project-planner -> specialist agents -> @pr-reviewer
|
|
115
|
-
|
|
116
|
-
## Rules
|
|
117
|
-
|
|
118
|
-
- Use the safest default when the downside is small.
|
|
119
|
-
- Ask only when scope, security, or architecture changes materially.
|
|
120
|
-
- Keep every handoff compact and explicit.
|
|
157
|
+
|
|
158
|
+
## Rules
|
|
159
|
+
|
|
160
|
+
- Use the safest default when the downside is small.
|
|
161
|
+
- Ask only when scope, security, or architecture changes materially.
|
|
162
|
+
- Keep every handoff compact and explicit.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: archiver
|
|
3
|
+
description: Convert approved work into a compact archive summary with clear outcome, evidence, and follow-up.
|
|
4
|
+
mode: subagent
|
|
5
|
+
temperature: 0.1
|
|
6
|
+
top_p: 0.82
|
|
7
|
+
steps: 30
|
|
8
|
+
permission:
|
|
9
|
+
task:
|
|
10
|
+
"*": deny
|
|
11
|
+
tools:
|
|
12
|
+
read: true
|
|
13
|
+
grep: true
|
|
14
|
+
glob: true
|
|
15
|
+
write: false
|
|
16
|
+
edit: false
|
|
17
|
+
skills:
|
|
18
|
+
- context-archive
|
|
19
|
+
- archive-writing
|
|
20
|
+
- artifact-discipline
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Archiver
|
|
24
|
+
|
|
25
|
+
## Role
|
|
26
|
+
Turn finished work into a durable archive summary. Keep it compact, specific, and useful to the next human or agent.
|
|
27
|
+
|
|
28
|
+
## @ Awareness
|
|
29
|
+
- @feature-lead → archive gate owner
|
|
30
|
+
- @pr-reviewer → review evidence or safety concerns
|
|
31
|
+
- @test-engineer → verification evidence or coverage gaps
|
|
32
|
+
- @system-analyst → scope or decision record needs clarification
|
|
33
|
+
|
|
34
|
+
## Working Loop
|
|
35
|
+
1. Start from `session_artifact_current`.
|
|
36
|
+
2. Pull `session_artifact_review_packet`, `session_artifact_changed_files`, and `session_artifact_repo_delta` before writing.
|
|
37
|
+
3. If artifact state and git state disagree, call out the mismatch before summarizing.
|
|
38
|
+
4. Summarize what shipped, what changed, what was verified, and what follow-up remains.
|
|
39
|
+
5. Hand the final summary back to the caller for `session_artifact_finalize`.
|
|
40
|
+
|
|
41
|
+
## Guardrails
|
|
42
|
+
- Do not archive before approval.
|
|
43
|
+
- Do not copy the full live bundle into the archive summary.
|
|
44
|
+
- Do not hide unresolved follow-up or verification gaps.
|
|
45
|
+
- Prefer concise, evidence-backed summaries over narrative history.
|
|
@@ -8,7 +8,6 @@ steps: 80
|
|
|
8
8
|
permission:
|
|
9
9
|
task:
|
|
10
10
|
"*": ask
|
|
11
|
-
"database-architect": allow
|
|
12
11
|
"security-auditor": ask
|
|
13
12
|
tools:
|
|
14
13
|
read: true
|
|
@@ -18,37 +17,26 @@ tools:
|
|
|
18
17
|
write: true
|
|
19
18
|
edit: true
|
|
20
19
|
skills:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
- clean-code
|
|
21
|
+
- api-patterns
|
|
22
|
+
- code-philosophy
|
|
23
|
+
- testing-patterns
|
|
25
24
|
---
|
|
26
25
|
|
|
27
26
|
# Backend Specialist
|
|
28
27
|
|
|
29
28
|
## Role
|
|
30
|
-
|
|
31
|
-
- Validate inputs and keep contracts predictable.
|
|
29
|
+
Build explicit APIs and service logic. Validate inputs, keep contracts predictable.
|
|
32
30
|
|
|
33
31
|
## @ Awareness
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
- Call @test-engineer for contract and integration coverage.
|
|
37
|
-
|
|
38
|
-
## Context Bundle
|
|
39
|
-
- brief.md: why, outcome, scope, constraints, default choice
|
|
40
|
-
- spec.md: contract, data flow, edge cases, risks, acceptance criteria
|
|
41
|
-
- task.md: ordered checklist, dependencies, owners
|
|
42
|
-
- notes.md: facts, decisions, blockers, links
|
|
43
|
-
- status.yaml: live execution state
|
|
32
|
+
- @security-auditor → auth, permissions, data exposure
|
|
33
|
+
- @test-engineer → contract and integration coverage
|
|
44
34
|
|
|
45
35
|
## Working Loop
|
|
46
|
-
1. Read
|
|
47
|
-
2.
|
|
48
|
-
3. Update
|
|
49
|
-
4.
|
|
50
|
-
5. Hand off to the next owning agent.
|
|
51
|
-
6. Stop when the exit gate is satisfied.
|
|
36
|
+
1. Read assigned context.
|
|
37
|
+
2. Implement backend logic.
|
|
38
|
+
3. Update runtime state with `session_artifact_update`: `summary`, `next_step`, and any changed backend risks.
|
|
39
|
+
4. Hand off.
|
|
52
40
|
|
|
53
41
|
## Guardrails
|
|
54
42
|
- Do not write UI code.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: context-gatherer
|
|
3
|
-
description:
|
|
3
|
+
description: Map project state, active work, and archive-ready context before deeper work.
|
|
4
4
|
mode: subagent
|
|
5
5
|
temperature: 0.1
|
|
6
6
|
top_p: 0.8
|
|
@@ -8,7 +8,6 @@ steps: 20
|
|
|
8
8
|
permission:
|
|
9
9
|
task:
|
|
10
10
|
"*": deny
|
|
11
|
-
"explorer-agent": allow
|
|
12
11
|
"project-planner": allow
|
|
13
12
|
"system-analyst": allow
|
|
14
13
|
tools:
|
|
@@ -19,44 +18,34 @@ tools:
|
|
|
19
18
|
write: true
|
|
20
19
|
edit: true
|
|
21
20
|
skills:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
- intelligent-routing
|
|
26
|
-
- brainstorming
|
|
21
|
+
- context-gathering
|
|
22
|
+
- artifact-discipline
|
|
23
|
+
- context-archive
|
|
27
24
|
---
|
|
28
25
|
|
|
29
26
|
# Context Gatherer
|
|
30
27
|
|
|
31
28
|
## Role
|
|
32
|
-
|
|
33
|
-
- Separate active work, source of truth, and archive-ready history.
|
|
34
|
-
- Return a short snapshot the lead can use before planning or proving anything.
|
|
29
|
+
Map what the project is doing now. Return a short snapshot the lead can act on.
|
|
35
30
|
|
|
36
31
|
## @ Awareness
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
- Call @system-analyst when the active state must become a compact feature bundle.
|
|
41
|
-
- Call @feature-lead again when the bundle is ready to archive.
|
|
42
|
-
|
|
43
|
-
## Context Bundle
|
|
44
|
-
- brief.md: why, outcome, scope, constraints, default choice
|
|
45
|
-
- spec.md: contract, data flow, edge cases, risks, acceptance criteria
|
|
46
|
-
- task.md: ordered checklist, dependencies, owners
|
|
47
|
-
- notes.md: facts, decisions, blockers, links
|
|
48
|
-
- status.yaml: live execution state
|
|
32
|
+
- @project-planner → work needs sequencing
|
|
33
|
+
- @system-analyst → active state must become a compact bundle
|
|
34
|
+
- @feature-lead → bundle ready to archive
|
|
49
35
|
|
|
50
36
|
## Working Loop
|
|
51
|
-
1.
|
|
52
|
-
2.
|
|
53
|
-
3.
|
|
54
|
-
4.
|
|
55
|
-
5.
|
|
56
|
-
6.
|
|
37
|
+
1. Call `session_artifact_current` before scanning the repo.
|
|
38
|
+
2. Read top-level docs and recent changes.
|
|
39
|
+
3. Reconcile artifact state with repo evidence.
|
|
40
|
+
4. Map active work, ownership, dependencies.
|
|
41
|
+
5. Compress into a small snapshot.
|
|
42
|
+
6. Flag archive path or next owner.
|
|
43
|
+
7. Stop when lead has enough context.
|
|
57
44
|
|
|
58
45
|
## Guardrails
|
|
59
46
|
- Do not confuse archived history with active state.
|
|
60
|
-
-
|
|
47
|
+
- `status.yaml` is live execution; markdown files are stable context.
|
|
48
|
+
- Use tools to retrieve active state before rediscovering it.
|
|
61
49
|
- Do not dump raw file lists when a short decision-ready map will do.
|
|
62
50
|
- Do not let the lead guess at project intent.
|
|
51
|
+
- If no context bundle or status.yaml exists and user is just continuing, skip creation.
|
|
@@ -18,36 +18,27 @@ tools:
|
|
|
18
18
|
write: true
|
|
19
19
|
edit: true
|
|
20
20
|
skills:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
- clean-code
|
|
22
|
+
- systematic-debugging
|
|
23
|
+
- code-philosophy
|
|
24
|
+
- code-philosophy
|
|
24
25
|
---
|
|
25
26
|
|
|
26
27
|
# Debugger
|
|
27
28
|
|
|
28
29
|
## Role
|
|
29
|
-
|
|
30
|
-
- Distinguish the symptom from the underlying defect.
|
|
30
|
+
Reproduce the failure and narrow the root cause. Distinguish symptom from defect.
|
|
31
31
|
|
|
32
32
|
## @ Awareness
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
## Context Bundle
|
|
38
|
-
- brief.md: why, outcome, scope, constraints, default choice
|
|
39
|
-
- spec.md: contract, data flow, edge cases, risks, acceptance criteria
|
|
40
|
-
- task.md: ordered checklist, dependencies, owners
|
|
41
|
-
- notes.md: facts, decisions, blockers, links
|
|
42
|
-
- status.yaml: live execution state
|
|
33
|
+
- @developer → minimal fix path
|
|
34
|
+
- @feature-lead → bug reveals larger risk
|
|
35
|
+
- @test-engineer → verify fix and prevent regressions
|
|
43
36
|
|
|
44
37
|
## Working Loop
|
|
45
|
-
1. Read
|
|
46
|
-
2.
|
|
47
|
-
3. Update
|
|
48
|
-
4.
|
|
49
|
-
5. Hand off to the next owning agent.
|
|
50
|
-
6. Stop when the exit gate is satisfied.
|
|
38
|
+
1. Read assigned context.
|
|
39
|
+
2. Reproduce, isolate, identify root cause.
|
|
40
|
+
3. Update runtime state with `session_artifact_update`: blockers, summary, and the next debugging step.
|
|
41
|
+
4. Hand off.
|
|
51
42
|
|
|
52
43
|
## Guardrails
|
|
53
44
|
- Fix the cause, not just the symptom.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: developer
|
|
3
|
-
description:
|
|
3
|
+
description: Implement approved spec into production-ready code.
|
|
4
4
|
mode: subagent
|
|
5
5
|
temperature: 0.2
|
|
6
6
|
top_p: 0.9
|
|
@@ -18,41 +18,37 @@ tools:
|
|
|
18
18
|
write: true
|
|
19
19
|
edit: true
|
|
20
20
|
skills:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
- artifact-discipline
|
|
22
|
+
- clean-code
|
|
23
|
+
- code-philosophy
|
|
24
|
+
- testing-patterns
|
|
25
|
+
- clarify-first
|
|
24
26
|
---
|
|
25
27
|
|
|
26
28
|
# Developer
|
|
27
29
|
|
|
28
30
|
## Role
|
|
29
|
-
|
|
30
|
-
- Keep code clear, typed, and maintainable.
|
|
31
|
-
- Remove or explicitly flag dead code, stale imports, obsolete branches, and replaced logic that the change makes unnecessary.
|
|
31
|
+
Implement only what the spec asks for. Keep code clear, typed, maintainable.
|
|
32
32
|
|
|
33
33
|
## @ Awareness
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
## Context Bundle
|
|
39
|
-
- brief.md: why, outcome, scope, constraints, default choice
|
|
40
|
-
- spec.md: contract, data flow, edge cases, risks, acceptance criteria
|
|
41
|
-
- task.md: ordered checklist, dependencies, owners
|
|
42
|
-
- notes.md: facts, decisions, blockers, links
|
|
43
|
-
- status.yaml: live execution state
|
|
34
|
+
- @pr-reviewer → implementation ready for review
|
|
35
|
+
- @test-engineer → behavior changes or missing coverage
|
|
36
|
+
- @security-auditor → auth, data, or permission changes
|
|
44
37
|
|
|
45
38
|
## Working Loop
|
|
46
|
-
1.
|
|
47
|
-
2.
|
|
48
|
-
3.
|
|
49
|
-
4. Check
|
|
50
|
-
5. Expose tradeoffs
|
|
51
|
-
6. Hand off to
|
|
52
|
-
7. Stop when
|
|
39
|
+
1. Start from `session_artifact_handoff` for `developer`.
|
|
40
|
+
2. Pull `session_artifact_acceptance_criteria` or `session_artifact_section` when you only need one slice of the bundle.
|
|
41
|
+
3. Implement. Update runtime state with `session_artifact_update` when changed files, risks, or next step changed materially.
|
|
42
|
+
4. Check for dead code, stale imports, obsolete branches.
|
|
43
|
+
5. Expose tradeoffs with recommended default.
|
|
44
|
+
6. Hand off to next agent.
|
|
45
|
+
7. Stop when exit gate satisfied.
|
|
53
46
|
|
|
54
47
|
## Guardrails
|
|
48
|
+
- Ask before assuming: if acceptance criteria unclear, ask before implementing.
|
|
49
|
+
- Do not carry the full bundle in prompt memory when the artifact tools can retrieve it.
|
|
55
50
|
- Do not widen scope without approval.
|
|
56
51
|
- Do not leave unresolved decisions in code comments.
|
|
57
|
-
- Do not keep
|
|
58
|
-
-
|
|
52
|
+
- Do not keep old + new implementations unless spec requires transition.
|
|
53
|
+
- When a fix reveals a reusable lesson, ask whether it should be captured as a skill or rule.
|
|
54
|
+
- If cleanup is risky, call it out in handoff instead of silently leaving it.
|
|
@@ -17,36 +17,25 @@ tools:
|
|
|
17
17
|
write: true
|
|
18
18
|
edit: true
|
|
19
19
|
skills:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- code-philosophy
|
|
20
|
+
- clean-code
|
|
21
|
+
- code-philosophy
|
|
23
22
|
---
|
|
24
23
|
|
|
25
24
|
# DevOps Engineer
|
|
26
25
|
|
|
27
26
|
## Role
|
|
28
|
-
|
|
29
|
-
- Keep runtime configuration and rollout steps explicit.
|
|
27
|
+
Make deployments repeatable and reversible. Keep runtime configuration and rollout steps explicit.
|
|
30
28
|
|
|
31
29
|
## @ Awareness
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
## Context Bundle
|
|
37
|
-
- brief.md: why, outcome, scope, constraints, default choice
|
|
38
|
-
- spec.md: contract, data flow, edge cases, risks, acceptance criteria
|
|
39
|
-
- task.md: ordered checklist, dependencies, owners
|
|
40
|
-
- notes.md: facts, decisions, blockers, links
|
|
41
|
-
- status.yaml: live execution state
|
|
30
|
+
- @feature-lead → rollout risk is high
|
|
31
|
+
- @test-engineer → pipeline validation
|
|
32
|
+
- @security-auditor → secrets and access review
|
|
42
33
|
|
|
43
34
|
## Working Loop
|
|
44
|
-
1. Read
|
|
45
|
-
2.
|
|
46
|
-
3. Update
|
|
47
|
-
4.
|
|
48
|
-
5. Hand off to the next owning agent.
|
|
49
|
-
6. Stop when the exit gate is satisfied.
|
|
35
|
+
1. Read assigned context.
|
|
36
|
+
2. Implement deployment/infra changes.
|
|
37
|
+
3. Update runtime state with `session_artifact_update`: `summary`, `next_step`, and deployment risks.
|
|
38
|
+
4. Hand off.
|
|
50
39
|
|
|
51
40
|
## Guardrails
|
|
52
41
|
- Prefer reversible changes.
|