@abarcenas/ai-workflow-template 1.47.0 → 1.48.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/.agents/config/README.md +2 -2
- package/.agents/instructions/agent.instructions.md +16 -16
- package/.agents/instructions/context7.instructions.md +40 -0
- package/.agents/instructions/memory-bank.instructions.md +3 -3
- package/.opencode/agents/{architect.agent.md → architect.md} +5 -6
- package/.opencode/agents/{coder.agent.md → coder.md} +4 -8
- package/.opencode/agents/{deployer.agent.md → deployer.md} +4 -9
- package/.opencode/agents/{designer.agent.md → designer.md} +5 -6
- package/.opencode/agents/{e2e-tester.agent.md → e2e-tester.md} +4 -7
- package/.opencode/agents/{implementer.agent.md → implementer.md} +4 -8
- package/.opencode/agents/orchestrator/{feature-pipeline.agent.md → feature-pipeline.md} +16 -19
- package/.opencode/agents/orchestrator/{orchestrator.agent.md → orchestrator.md} +26 -34
- package/.opencode/agents/orchestrator/{tdd-orchestrator.agent.md → tdd-orchestrator.md} +26 -29
- package/.opencode/agents/{plan.agent.md → planner.md} +4 -9
- package/.opencode/agents/{researcher.agent.md → researcher.md} +5 -9
- package/.opencode/agents/{reviewer.agent.md → reviewer.md} +5 -8
- package/.opencode/agents/{scope.agent.md → scope.md} +5 -9
- package/.opencode/agents/{tracker.agent.md → tracker.md} +5 -9
- package/.opencode/agents/{unit-tester.agent.md → unit-tester.md} +4 -8
- package/AGENTS.md +6 -6
- package/README.md +12 -12
- package/opencode.mcp.example.json +12 -12
- package/package.json +1 -1
package/.agents/config/README.md
CHANGED
|
@@ -27,10 +27,10 @@ the second calls `grilling` and `domain-modeling` together.
|
|
|
27
27
|
|
|
28
28
|
## Scope agent
|
|
29
29
|
|
|
30
|
-
`.opencode/agents/scope.
|
|
30
|
+
`.opencode/agents/scope.md` is the front door for underspecified feature requests. It
|
|
31
31
|
runs grilling in rounds against a draft file, emits the current frontier as numbered questions,
|
|
32
32
|
and finishes by writing a spike document at `docs/spike-<feature>.md` — the input
|
|
33
|
-
`researcher.
|
|
33
|
+
`researcher.md` already expects.
|
|
34
34
|
|
|
35
35
|
It never builds or runs code. When a question needs a prototype it emits
|
|
36
36
|
`prototype needed: <question>`, and the orchestrator delegates the work to `coder` (logic) or
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Guidelines for creating custom agent files for opencode"
|
|
3
|
-
applyTo: "
|
|
3
|
+
applyTo: "**/agents/**/*.md"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Custom Agent File Guidelines
|
|
@@ -11,7 +11,7 @@ Instructions for creating effective and maintainable custom agent files that pro
|
|
|
11
11
|
|
|
12
12
|
- Target audience: Developers creating custom agents for opencode
|
|
13
13
|
- File format: Markdown with YAML frontmatter
|
|
14
|
-
- File naming convention: lowercase with hyphens (e.g., `test-specialist.
|
|
14
|
+
- File naming convention: lowercase with hyphens (e.g., `test-specialist.md`)
|
|
15
15
|
- Location: `.opencode/agents/` directory (repository-level)
|
|
16
16
|
- Purpose: Define specialized agents with tailored expertise, tools, and instructions for specific tasks
|
|
17
17
|
- Official documentation: [opencode.ai](https://opencode.ai)
|
|
@@ -39,7 +39,7 @@ tools: ["Read", "Edit", "Grep"]
|
|
|
39
39
|
#### **name** (OPTIONAL)
|
|
40
40
|
|
|
41
41
|
- Display name for the agent
|
|
42
|
-
- If omitted, defaults to filename (without `.md`
|
|
42
|
+
- If omitted, defaults to filename (without `.md`)
|
|
43
43
|
- Use title case and be descriptive
|
|
44
44
|
- Example: `'Testing Specialist'`
|
|
45
45
|
|
|
@@ -123,7 +123,7 @@ The recommended approach is **prompt-based orchestration**:
|
|
|
123
123
|
|
|
124
124
|
- The orchestrator defines a step-by-step workflow in natural language.
|
|
125
125
|
- Each step is delegated to a specialized agent.
|
|
126
|
-
- The orchestrator passes only the essential context (e.g., base path, identifiers) and requires each sub-agent to read its own `.
|
|
126
|
+
- The orchestrator passes only the essential context (e.g., base path, identifiers) and requires each sub-agent to read its own `.md` spec for tools/constraints.
|
|
127
127
|
|
|
128
128
|
### How It Works
|
|
129
129
|
|
|
@@ -136,7 +136,7 @@ tools: ["Read", "Edit", "Grep", "Task"]
|
|
|
136
136
|
2. For each step, invoke a sub-agent by providing:
|
|
137
137
|
|
|
138
138
|
- **Agent name** (the identifier users select/invoke)
|
|
139
|
-
- **Agent spec path** (the `.
|
|
139
|
+
- **Agent spec path** (the `.md` file to read and follow)
|
|
140
140
|
- **Minimal shared context** (e.g., base path, project name, log file)
|
|
141
141
|
|
|
142
142
|
### Prompt Pattern (Recommended)
|
|
@@ -147,7 +147,7 @@ Use a consistent "wrapper prompt" for every step so sub-agents behave predictabl
|
|
|
147
147
|
This phase must be performed as the agent "<AGENT_NAME>" defined in "<AGENT_SPEC_PATH>".
|
|
148
148
|
|
|
149
149
|
IMPORTANT:
|
|
150
|
-
- Read and apply the entire
|
|
150
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
151
151
|
- Work on "<WORK_UNIT_NAME>" with base path: "<BASE_PATH>".
|
|
152
152
|
- Perform the necessary reads/writes under this base path.
|
|
153
153
|
- Return a clear summary (actions taken + files produced/modified + issues).
|
|
@@ -191,7 +191,7 @@ Structure each step invocation with:
|
|
|
191
191
|
```text
|
|
192
192
|
Step 1: Transform raw input data
|
|
193
193
|
Agent: data-processor
|
|
194
|
-
Spec: .opencode/agents/data-processor.
|
|
194
|
+
Spec: .opencode/agents/data-processor.md
|
|
195
195
|
Context: projectName, basePath
|
|
196
196
|
Input: basePath/raw/
|
|
197
197
|
Output: basePath/processed/
|
|
@@ -199,7 +199,7 @@ Expected: write basePath/processed/summary.md
|
|
|
199
199
|
|
|
200
200
|
Step 2: Analyze processed data (depends on Step 1 output)
|
|
201
201
|
Agent: data-analyst
|
|
202
|
-
Spec: .opencode/agents/data-analyst.
|
|
202
|
+
Spec: .opencode/agents/data-analyst.md
|
|
203
203
|
Context: projectName, basePath
|
|
204
204
|
Input: basePath/processed/
|
|
205
205
|
Output: basePath/analysis/
|
|
@@ -363,10 +363,10 @@ When invoking a sub-agent, pass all context through descriptive instructions in
|
|
|
363
363
|
Example (prompt template):
|
|
364
364
|
|
|
365
365
|
```text
|
|
366
|
-
This phase must be performed as the agent "documentation-writer" defined in ".opencode/agents/documentation-writer.
|
|
366
|
+
This phase must be performed as the agent "documentation-writer" defined in ".opencode/agents/documentation-writer.md".
|
|
367
367
|
|
|
368
368
|
IMPORTANT:
|
|
369
|
-
- Read and apply the entire
|
|
369
|
+
- Read and apply the entire agent spec file.
|
|
370
370
|
- Project: [project name]
|
|
371
371
|
- Base path: [base path]
|
|
372
372
|
- Input: [input path]
|
|
@@ -389,24 +389,24 @@ Example of a simple orchestrator that validates code through multiple specialize
|
|
|
389
389
|
- Repository name, PR number
|
|
390
390
|
- Base path
|
|
391
391
|
|
|
392
|
-
2. Invoke specialized agents sequentially (each agent reads its own `.
|
|
392
|
+
2. Invoke specialized agents sequentially (each agent reads its own `.md` spec):
|
|
393
393
|
|
|
394
394
|
```text
|
|
395
395
|
Step 1: Security Review
|
|
396
396
|
Agent: security-reviewer
|
|
397
|
-
Spec: .opencode/agents/security-reviewer.
|
|
397
|
+
Spec: .opencode/agents/security-reviewer.md
|
|
398
398
|
Context: repository name, PR number, base path
|
|
399
399
|
Output: security-review.md
|
|
400
400
|
|
|
401
401
|
Step 2: Test Coverage
|
|
402
402
|
Agent: test-coverage
|
|
403
|
-
Spec: .opencode/agents/test-coverage.
|
|
403
|
+
Spec: .opencode/agents/test-coverage.md
|
|
404
404
|
Context: repository name, PR number, base path
|
|
405
405
|
Output: coverage-report.md
|
|
406
406
|
|
|
407
407
|
Step 3: Aggregate
|
|
408
408
|
Agent: review-aggregator
|
|
409
|
-
Spec: .opencode/agents/review-aggregator.
|
|
409
|
+
Spec: .opencode/agents/review-aggregator.md
|
|
410
410
|
Context: repository name, PR number, base path
|
|
411
411
|
Output: final-review.md
|
|
412
412
|
```
|
|
@@ -462,7 +462,7 @@ Use consistent variable naming conventions:
|
|
|
462
462
|
|
|
463
463
|
### Naming Conventions
|
|
464
464
|
|
|
465
|
-
- Use lowercase with hyphens: `test-specialist.
|
|
465
|
+
- Use lowercase with hyphens: `test-specialist.md`
|
|
466
466
|
- Name should reflect agent purpose
|
|
467
467
|
- Filename becomes default agent name (if `name` not specified)
|
|
468
468
|
- Allowed characters: `.`, `-`, `_`, `a-z`, `A-Z`, `0-9`
|
|
@@ -493,7 +493,7 @@ Use consistent variable naming conventions:
|
|
|
493
493
|
- [ ] Filename follows lowercase-with-hyphens convention
|
|
494
494
|
- [ ] File placed in correct directory (`.opencode/agents/`)
|
|
495
495
|
- [ ] Filename uses only allowed characters
|
|
496
|
-
- [ ] File extension is `.
|
|
496
|
+
- [ ] File extension is `.md`
|
|
497
497
|
|
|
498
498
|
### Quality Assurance
|
|
499
499
|
|
|
@@ -107,3 +107,43 @@ If Context7 cannot find a reliable source:
|
|
|
107
107
|
|
|
108
108
|
- Never request or echo API keys. If configuration requires a key, instruct storing it in environment variables.
|
|
109
109
|
- Treat retrieved docs as **helpful but not infallible**; for security-sensitive code, prefer official vendor docs and add an explicit verification step.
|
|
110
|
+
|
|
111
|
+
## Configuration & troubleshooting (opencode)
|
|
112
|
+
|
|
113
|
+
opencode substitutes only two forms inside config files:
|
|
114
|
+
|
|
115
|
+
- `{env:VARIABLE_NAME}` — an **unset variable becomes an empty string**, which fails silently
|
|
116
|
+
- `{file:path/to/file}` — file contents; `~` is supported
|
|
117
|
+
|
|
118
|
+
It does **not** understand shell-style `$VARIABLE`. Writing `"CONTEXT7_API_KEY": "$CONTEXT7_TOKEN"` sends the literal text `$CONTEXT7_TOKEN` as the header value. The server accepts it at `initialize` and only rejects it at the first tool call, so the MCP reports as *connected* while every tool fails with an invalid-key error.
|
|
119
|
+
|
|
120
|
+
A valid remote entry:
|
|
121
|
+
|
|
122
|
+
```json
|
|
123
|
+
"context7": {
|
|
124
|
+
"type": "remote",
|
|
125
|
+
"url": "https://mcp.context7.com/mcp",
|
|
126
|
+
"headers": { "CONTEXT7_API_KEY": "{env:CONTEXT7_TOKEN}" },
|
|
127
|
+
"enabled": true
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Local servers differ in shape
|
|
132
|
+
|
|
133
|
+
`McpLocalConfig` requires `command` to be an **array** and the env object to be named `environment`. There is no `args` key and no `env` key — using either makes opencode log `skipped malformed recognized value` and the server never appears in the tool list at all.
|
|
134
|
+
|
|
135
|
+
```json
|
|
136
|
+
"github": {
|
|
137
|
+
"type": "local",
|
|
138
|
+
"command": ["npx", "-y", "@modelcontextprotocol/server-github"],
|
|
139
|
+
"environment": { "GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_PERSONAL_ACCESS_TOKEN}" },
|
|
140
|
+
"enabled": true
|
|
141
|
+
}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Diagnosing a dead server
|
|
145
|
+
|
|
146
|
+
1. Test the credential directly before touching config — `curl` the endpoint, or run the CLI that owns the token. This separates "bad key" from "key never arrived".
|
|
147
|
+
2. Read `~/.local/share/opencode/log/opencode.log` and look for `mcp connected server=<name>` versus `skipped malformed`.
|
|
148
|
+
3. Prefer `{file:~/.config/opencode/secrets/<name>}` when opencode may not be launched from an interactive shell: variables exported in `~/.zshrc` are visible only to interactive zsh sessions, so GUI-launched sessions see nothing.
|
|
149
|
+
4. A private-repo 404 (GitHub) or a 422 from search usually means the MCP is running **anonymous**, not that the resource is missing.
|
|
@@ -136,10 +136,10 @@ All `memory-bank/**/*.md` files must have YAML frontmatter for search indexing.
|
|
|
136
136
|
|
|
137
137
|
Scope comes before planning. Underspecified work enters through the `scope` agent; planning starts only once the request is narrowed.
|
|
138
138
|
|
|
139
|
-
1. **Scope first** — for an underspecified request, the front door is the `scope` agent (`.opencode/agents/scope.
|
|
140
|
-
2. **Hand the spike to research** — that spike document is the input `researcher.
|
|
139
|
+
1. **Scope first** — for an underspecified request, the front door is the `scope` agent (`.opencode/agents/scope.md`). It runs grilling rounds against a single draft file, then writes a terminal spike document at `docs/spike-<feature>.md`.
|
|
140
|
+
2. **Hand the spike to research** — that spike document is the input `researcher.md` expects; pass its path as the required spike argument.
|
|
141
141
|
3. **Continue the pipeline** — after research (or directly, when no research is needed), the work continues to `implementer`, `architect`, or `coder`, following the recommended next step recorded in the spike.
|
|
142
|
-
4. **Deep planning is optional** — `
|
|
142
|
+
4. **Deep planning is optional** — `planner.md` remains available as an optional deep-planning mode for work that is already scoped. It is demoted in the default flow, not removed or deprecated.
|
|
143
143
|
|
|
144
144
|
When scope runs, record the spike document in the memory bank (a task entry in `tasks/` and/or `activeContext.md`) before implementation planning begins, so the settled and deferred decisions survive a session reset.
|
|
145
145
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "System architecture and design specialist. Designs component architecture, data flow, module boundaries, and technical strategy. Produces architecture decision records and design documents."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: all
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: deny }
|
|
6
|
+
- { action: edit, resource: "*.md", effect: allow }
|
|
7
|
+
- { action: shell, resource: "*", effect: deny }
|
|
9
8
|
---
|
|
10
9
|
|
|
11
10
|
# Architect - System Design
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Production code implementation specialist. Writes clean, maintainable, well-tested code following project conventions. Implements features, fixes bugs, and refactors existing code."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
edit: "allow"
|
|
8
|
-
execute: "allow"
|
|
9
|
-
"memory-bank/*": allow
|
|
10
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: all
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: allow }
|
|
6
|
+
- { action: shell, resource: "*", effect: allow }
|
|
11
7
|
---
|
|
12
8
|
|
|
13
9
|
# Coder - Implementation
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Deployment and release engineering specialist. Handles CI/CD configuration, deployment scripts, release management, infrastructure as code, and environment setup."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
edit: allow
|
|
8
|
-
execute: allow
|
|
9
|
-
"github/*": allow
|
|
10
|
-
"memory-bank/*": allow
|
|
11
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: all
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: allow }
|
|
6
|
+
- { action: shell, resource: "*", effect: allow }
|
|
12
7
|
---
|
|
13
8
|
|
|
14
9
|
# Deployer - Release Engineering
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "UI/UX design specialist. Handles component layout, visual styling, responsive design, design systems, and user experience considerations."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: all
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: deny }
|
|
6
|
+
- { action: edit, resource: "*.md", effect: allow }
|
|
7
|
+
- { action: shell, resource: "*", effect: deny }
|
|
9
8
|
---
|
|
10
9
|
|
|
11
10
|
# Designer - UI/UX
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Browser debugging and exploration specialist. Inspects pages, analyzes network, takes screenshots, and investigates UI behavior using Chrome DevTools. Read-only — no code or test creation."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"chrome-devtools/*": allow
|
|
8
|
-
"memory-bank/*": allow
|
|
9
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: all
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: deny }
|
|
6
|
+
- { action: shell, resource: "*", effect: deny }
|
|
10
7
|
---
|
|
11
8
|
|
|
12
9
|
# E2E Tester - Browser Automation
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Implementation planning specialist. Translates architecture and design documents into detailed, actionable implementation plans with task breakdowns, file-level specifications, and execution ordering."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
edit: allow
|
|
8
|
-
execute: allow
|
|
9
|
-
"memory-bank/*": allow
|
|
10
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: all
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: allow }
|
|
6
|
+
- { action: shell, resource: "*", effect: allow }
|
|
11
7
|
---
|
|
12
8
|
|
|
13
9
|
# Implementer - Implementation Planning
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Stripped-down feature pipeline orchestrator that runs implementer, designer, coder, and tracker sequentially. Bootstraps architecture context, supports step-by-step confirmation, logs progress, and persists lessons learned."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
todo: allow
|
|
9
|
-
"memory-bank/*": allow
|
|
10
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: primary
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: deny }
|
|
6
|
+
- { action: edit, resource: "*.md", effect: allow }
|
|
7
|
+
- { action: shell, resource: "*", effect: allow }
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# Feature Pipeline
|
|
@@ -26,10 +23,10 @@ You are a lightweight orchestration agent that runs a fixed sequential pipeline:
|
|
|
26
23
|
|
|
27
24
|
| Step | Role | Agent File | subagent_type | Purpose |
|
|
28
25
|
|---|---|---|---|---|---|
|
|
29
|
-
| 1 | implementer | `implementer.
|
|
30
|
-
| 2 | designer | `designer.
|
|
31
|
-
| 3 | coder | `coder.
|
|
32
|
-
| 4 | tracker | `tracker.
|
|
26
|
+
| 1 | implementer | `implementer.md` | `implementer` | Translate architecture/design into detailed implementation plans |
|
|
27
|
+
| 2 | designer | `designer.md` | `designer` | UI/UX design specs, component layout — no code |
|
|
28
|
+
| 3 | coder | `coder.md` | `coder` | Write production code, implement features |
|
|
29
|
+
| 4 | tracker | `tracker.md` | `tracker` | Document completed work to `docs/tracker-log.md` |
|
|
33
30
|
|
|
34
31
|
## Workflow
|
|
35
32
|
|
|
@@ -40,12 +37,12 @@ Delegate bootstrap checks to a sub-agent. Do NOT read or check any files yoursel
|
|
|
40
37
|
Invoke a sub-agent (use `subagent_type "implementer"`) to check and bootstrap the project:
|
|
41
38
|
|
|
42
39
|
```
|
|
43
|
-
This phase must be performed as the agent "Implementer - Implementation Planning" defined in ".opencode/agents/implementer.
|
|
40
|
+
This phase must be performed as the agent "Implementer - Implementation Planning" defined in ".opencode/agents/implementer.md".
|
|
44
41
|
|
|
45
42
|
BOOTSTRAP CONTEXT - Check and initialize project scaffolding:
|
|
46
43
|
|
|
47
44
|
IMPORTANT:
|
|
48
|
-
- Read and apply the entire
|
|
45
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
49
46
|
- Base path: "{basePath}".
|
|
50
47
|
- Check if `docs/.architecture-context.md` exists with real content.
|
|
51
48
|
- If missing or template-only, run the architecture-blueprint-generator skill by reading ".agents/skills/architecture-blueprint-generator/SKILL.md" and following its instructions to analyze the codebase and generate architecture context.
|
|
@@ -96,7 +93,7 @@ For each step:
|
|
|
96
93
|
This phase must be performed as the agent "{agent_name}" defined in ".opencode/agents/{agent_file}".
|
|
97
94
|
|
|
98
95
|
IMPORTANT:
|
|
99
|
-
- Read and apply the entire
|
|
96
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
100
97
|
- Work on "{work_unit}" with base path: "{basePath}".
|
|
101
98
|
- Perform the necessary reads/writes under this base path.
|
|
102
99
|
- Previous step context: {previous_step_summary}
|
|
@@ -129,10 +126,10 @@ When the pipeline reaches the "coder" step and the latest implementer plan has p
|
|
|
129
126
|
b. Log: `"Batch {letter}: launching {N} parallel coder tasks — {task_ids}"`
|
|
130
127
|
c. Launch **one Task tool invocation per task**, all concurrently, using `subagent_type "coder"`:
|
|
131
128
|
```
|
|
132
|
-
This phase must be performed as the agent "Coder - Implementation" defined in ".opencode/agents/coder.
|
|
129
|
+
This phase must be performed as the agent "Coder - Implementation" defined in ".opencode/agents/coder.md".
|
|
133
130
|
|
|
134
131
|
IMPORTANT:
|
|
135
|
-
- Read and apply the entire
|
|
132
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
136
133
|
- Work on "Implement task {TASK_ID}: {Description} from plan /plan/{filename}" with base path: "{basePath}".
|
|
137
134
|
- Perform the necessary reads/writes under this base path.
|
|
138
135
|
- Previous step context: {previous_step_summary}
|
|
@@ -199,12 +196,12 @@ After every pipeline (or at the user's request), delegate to a sub-agent to pers
|
|
|
199
196
|
Invoke the tracker (use `subagent_type "tracker"`) with the pipeline context:
|
|
200
197
|
|
|
201
198
|
```
|
|
202
|
-
This phase must be performed as the agent "Tracker - Documentation Recorder" defined in ".opencode/agents/tracker.
|
|
199
|
+
This phase must be performed as the agent "Tracker - Documentation Recorder" defined in ".opencode/agents/tracker.md".
|
|
203
200
|
|
|
204
201
|
PERSIST LESSONS - Record pipeline knowledge:
|
|
205
202
|
|
|
206
203
|
IMPORTANT:
|
|
207
|
-
- Read and apply the entire
|
|
204
|
+
- Read and apply the entire agent spec file.
|
|
208
205
|
- Base path: "{basePath}".
|
|
209
206
|
- Read the orchestrator log at "docs/.orchestrator-log.md" for the full pipeline record.
|
|
210
207
|
- Append a new "Session" entry to ".agents/instructions/learned-knowledge.instructions.md" with:
|
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Master orchestration agent that dynamically builds and executes multi-step development pipelines. Analyzes user requests, selects the right sub-agents, delegates work with context, and tracks progress through a shared log. Supports both auto-execute and step-by-step confirmation modes."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
web: allow
|
|
9
|
-
todo: allow
|
|
10
|
-
"ddg-search/*": allow
|
|
11
|
-
"context7/*": allow
|
|
12
|
-
"github/*": allow
|
|
13
|
-
"chrome-devtools/*": allow
|
|
14
|
-
"memory-bank/*": allow
|
|
15
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: primary
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: deny }
|
|
6
|
+
- { action: edit, resource: "*.md", effect: allow }
|
|
7
|
+
- { action: shell, resource: "*", effect: allow }
|
|
16
8
|
---
|
|
17
9
|
|
|
18
10
|
# Orchestrator - Multi-Agent Workflow
|
|
@@ -31,17 +23,17 @@ You are a master orchestration agent that coordinates specialized sub-agents to
|
|
|
31
23
|
|
|
32
24
|
| Role | Agent File | subagent_type | Typical Tools | When to Deploy |
|
|
33
25
|
|---|---|---|---|---|
|
|
34
|
-
| scope | `scope.
|
|
35
|
-
| researcher | `researcher.
|
|
36
|
-
| architect | `architect.
|
|
37
|
-
| implementer | `implementer.
|
|
38
|
-
| designer | `designer.
|
|
39
|
-
| coder | `coder.
|
|
40
|
-
| unit-tester | `unit-tester.
|
|
41
|
-
| e2e-tester | `e2e-tester.
|
|
42
|
-
| reviewer | `reviewer.
|
|
43
|
-
| deployer | `deployer.
|
|
44
|
-
| tracker | `tracker.
|
|
26
|
+
| scope | `scope.md` | `scope` | read, search, edit, skill, question (no `execute` — never builds or runs anything) | Underspecified request, vague or unmeasurable success criteria, unknown boundaries, or an explicit request to narrow scope; runs the scoping interview only — never designs or builds |
|
|
27
|
+
| researcher | `researcher.md` | `researcher` | read, search, web, ddg-search/*, context7/* (read-only — no edit, no execute) | Technical unknowns, library evaluation, spike investigation |
|
|
28
|
+
| architect | `architect.md` | `architect` | read, search (no edit — design docs only) | System design, component architecture, data flow planning |
|
|
29
|
+
| implementer | `implementer.md` | `implementer` | read, search, edit, execute | Translating plans into actionable implementation steps |
|
|
30
|
+
| designer | `designer.md` | `designer` | read, search (no edit — design specs only) | UI/UX design, component layout, styling specs |
|
|
31
|
+
| coder | `coder.md` | `coder` | read, search, edit, execute | Writing production code, implementing features |
|
|
32
|
+
| unit-tester | `unit-tester.md` | `unit-tester` | read, search, edit, execute (test files only — *.spec.ts, *.test.ts) | Unit tests, integration tests, test coverage |
|
|
33
|
+
| e2e-tester | `e2e-tester.md` | `e2e-tester` | read, search, chrome-devtools/* | Debugging, exploration, page inspection via Chrome DevTools |
|
|
34
|
+
| reviewer | `reviewer.md` | `reviewer` | read, search, github/* | Code review, security audit, quality gates |
|
|
35
|
+
| deployer | `deployer.md` | `deployer` | read, search, edit, execute, github/* | CI/CD configuration, deployment scripts, release management |
|
|
36
|
+
| tracker | `tracker.md` | `tracker` | read, search | Doc recording — runs after pipeline to log finished work to docs/tracker-log.md |
|
|
45
37
|
|
|
46
38
|
## Workflow
|
|
47
39
|
|
|
@@ -52,12 +44,12 @@ Delegate bootstrap checks to a sub-agent. Do NOT read or check any files yoursel
|
|
|
52
44
|
Invoke a sub-agent (use `subagent_type "implementer"`) to check and bootstrap the project:
|
|
53
45
|
|
|
54
46
|
```
|
|
55
|
-
This phase must be performed as the agent "Implementer - Implementation Planning" defined in ".opencode/agents/implementer.
|
|
47
|
+
This phase must be performed as the agent "Implementer - Implementation Planning" defined in ".opencode/agents/implementer.md".
|
|
56
48
|
|
|
57
49
|
BOOTSTRAP CONTEXT - Check and initialize project scaffolding:
|
|
58
50
|
|
|
59
51
|
IMPORTANT:
|
|
60
|
-
- Read and apply the entire
|
|
52
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
61
53
|
- Base path: "{basePath}".
|
|
62
54
|
- Check if `docs/.architecture-context.md` exists with real content.
|
|
63
55
|
- If missing or template-only, run the architecture-blueprint-generator skill by reading ".agents/skills/architecture-blueprint-generator/SKILL.md" and following its instructions to analyze the codebase and generate architecture context.
|
|
@@ -137,7 +129,7 @@ For every scope round, the orchestrator must:
|
|
|
137
129
|
One delegation is one round. Delegate the round with these inputs:
|
|
138
130
|
|
|
139
131
|
```text
|
|
140
|
-
Agent: "Scope - Feature Scoping" (.opencode/agents/scope.
|
|
132
|
+
Agent: "Scope - Feature Scoping" (.opencode/agents/scope.md)
|
|
141
133
|
work_unit: {feature}
|
|
142
134
|
basePath: {basePath}
|
|
143
135
|
draftPath: docs/spike-<feature>.draft.md
|
|
@@ -180,7 +172,7 @@ For each step in the pipeline:
|
|
|
180
172
|
This phase must be performed as the agent "{agent_name}" defined in ".opencode/agents/{agent_file}".
|
|
181
173
|
|
|
182
174
|
IMPORTANT:
|
|
183
|
-
- Read and apply the entire
|
|
175
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
184
176
|
- Work on "{work_unit}" with base path: "{basePath}".
|
|
185
177
|
- Perform the necessary reads/writes under this base path.
|
|
186
178
|
- Previous step context: {previous_step_summary}
|
|
@@ -211,10 +203,10 @@ When the pipeline reaches the "coder" step and the implementer's summary include
|
|
|
211
203
|
b. Log: `"Batch {letter}: launching {N} parallel coder tasks — {task_ids}"`
|
|
212
204
|
c. Launch **one Task tool invocation per task**, all concurrently, using `subagent_type "coder"`:
|
|
213
205
|
```
|
|
214
|
-
This phase must be performed as the agent "Coder - Implementation" defined in ".opencode/agents/coder.
|
|
206
|
+
This phase must be performed as the agent "Coder - Implementation" defined in ".opencode/agents/coder.md".
|
|
215
207
|
|
|
216
208
|
IMPORTANT:
|
|
217
|
-
- Read and apply the entire
|
|
209
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
218
210
|
- Work on "Implement task {TASK_ID}: {Description} from plan /plan/{filename}" with base path: "{basePath}".
|
|
219
211
|
- Perform the necessary reads/writes under this base path.
|
|
220
212
|
- Previous step context: {previous_step_summary}
|
|
@@ -239,10 +231,10 @@ After the pipeline finishes executing (all steps complete or a required step fai
|
|
|
239
231
|
1. Invoke the tracker using the Task tool with subagent_type "tracker":
|
|
240
232
|
|
|
241
233
|
```
|
|
242
|
-
This phase must be performed as the agent "Tracker - Documentation Recorder" defined in ".opencode/agents/tracker.
|
|
234
|
+
This phase must be performed as the agent "Tracker - Documentation Recorder" defined in ".opencode/agents/tracker.md".
|
|
243
235
|
|
|
244
236
|
IMPORTANT:
|
|
245
|
-
- Read and apply the entire
|
|
237
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
246
238
|
- Base path: "{basePath}".
|
|
247
239
|
- Read the orchestrator log at "docs/.orchestrator-log.md" for the full pipeline record.
|
|
248
240
|
- Read any artifact files referenced in the log.
|
|
@@ -300,12 +292,12 @@ After every pipeline (or at the user's request), delegate to a sub-agent to pers
|
|
|
300
292
|
Invoke the tracker (use `subagent_type "tracker"`) with the pipeline context:
|
|
301
293
|
|
|
302
294
|
```
|
|
303
|
-
This phase must be performed as the agent "Tracker - Documentation Recorder" defined in ".opencode/agents/tracker.
|
|
295
|
+
This phase must be performed as the agent "Tracker - Documentation Recorder" defined in ".opencode/agents/tracker.md".
|
|
304
296
|
|
|
305
297
|
PERSIST LESSONS - Record pipeline knowledge:
|
|
306
298
|
|
|
307
299
|
IMPORTANT:
|
|
308
|
-
- Read and apply the entire
|
|
300
|
+
- Read and apply the entire agent spec file.
|
|
309
301
|
- Base path: "{basePath}".
|
|
310
302
|
- Read the orchestrator log at "docs/.orchestrator-log.md" for the full pipeline record.
|
|
311
303
|
- Append a new "Session" entry to ".agents/instructions/learned-knowledge.instructions.md" with:
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Test-Driven Development orchestrator that enforces a RED-GREEN-REFACTOR pipeline. Writes tests first via unit-tester, then implements code via coder, verifies coverage ≥90%, and returns to test-writing if thresholds are not met. Tracks all test suites in memory-bank."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
todo: allow
|
|
9
|
-
"memory-bank/*": allow
|
|
10
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: primary
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: deny }
|
|
6
|
+
- { action: edit, resource: "*.md", effect: allow }
|
|
7
|
+
- { action: shell, resource: "*", effect: allow }
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# TDD Orchestrator - Test-Driven Development
|
|
@@ -28,11 +25,11 @@ You are a Test-Driven Development orchestration agent that enforces a strict RED
|
|
|
28
25
|
|
|
29
26
|
| Role | Agent File | subagent_type | Typical Tools | When to Deploy |
|
|
30
27
|
|---|---|---|---|---|---|
|
|
31
|
-
| implementer | `implementer.
|
|
32
|
-
| unit-tester | `unit-tester.
|
|
33
|
-
| coder | `coder.
|
|
34
|
-
| reviewer | `reviewer.
|
|
35
|
-
| tracker | `tracker.
|
|
28
|
+
| implementer | `implementer.md` | `implementer` | read, search, edit, execute | Translating requirements into implementation plans with test/code batch tables |
|
|
29
|
+
| unit-tester | `unit-tester.md` | `unit-tester` | read, search, edit (test files only), execute | RED phase: write failing tests. VERIFY phase: run tests + check coverage |
|
|
30
|
+
| coder | `coder.md` | `coder` | read, search, edit, execute | GREEN phase: write minimal production code to pass tests |
|
|
31
|
+
| reviewer | `reviewer.md` | `reviewer` | read, search, github/* | Code review, security audit, quality gates on both tests and implementation |
|
|
32
|
+
| tracker | `tracker.md` | `tracker` | read, search | Doc recording — runs after pipeline to log finished work |
|
|
36
33
|
|
|
37
34
|
## TDD Pipeline Overview
|
|
38
35
|
|
|
@@ -63,12 +60,12 @@ Delegate bootstrap checks to a sub-agent. Do NOT read or check any files yoursel
|
|
|
63
60
|
Invoke a sub-agent (use `subagent_type "implementer"`) to check and bootstrap the project:
|
|
64
61
|
|
|
65
62
|
```
|
|
66
|
-
This phase must be performed as the agent "Implementer - Implementation Planning" defined in ".opencode/agents/implementer.
|
|
63
|
+
This phase must be performed as the agent "Implementer - Implementation Planning" defined in ".opencode/agents/implementer.md".
|
|
67
64
|
|
|
68
65
|
BOOTSTRAP CONTEXT - Check and initialize project scaffolding:
|
|
69
66
|
|
|
70
67
|
IMPORTANT:
|
|
71
|
-
- Read and apply the entire
|
|
68
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
72
69
|
- Base path: "{basePath}".
|
|
73
70
|
- Check if `docs/.architecture-context.md` exists with real content.
|
|
74
71
|
- If missing or template-only, run the architecture-blueprint-generator skill by reading ".agents/skills/architecture-blueprint-generator/SKILL.md" and following its instructions to analyze the codebase and generate architecture context.
|
|
@@ -120,10 +117,10 @@ The implementer creates the plan document with **two separate batch tables** for
|
|
|
120
117
|
3. Invoke the sub-agent using the Task tool with `subagent_type "implementer"`:
|
|
121
118
|
|
|
122
119
|
```
|
|
123
|
-
This phase must be performed as the agent "Implementation Plan Generation" defined in ".opencode/agents/implementer.
|
|
120
|
+
This phase must be performed as the agent "Implementation Plan Generation" defined in ".opencode/agents/implementer.md".
|
|
124
121
|
|
|
125
122
|
IMPORTANT:
|
|
126
|
-
- Read and apply the entire
|
|
123
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
127
124
|
- Work on "{work_unit}" with base path: "{basePath}".
|
|
128
125
|
- Produce a plan file in /plan/ with TWO separate batch execution tables:
|
|
129
126
|
1. **Test Batch Summary** — tasks for writing tests (unit-tester work). Each test task must specify: the test file to create, the component/function under test, expected behaviors to cover, and dependencies on other test tasks.
|
|
@@ -153,10 +150,10 @@ IMPORTANT:
|
|
|
153
150
|
b. Log: `"Test Batch {letter}: launching {N} parallel unit-tester tasks — {task_ids}"`
|
|
154
151
|
c. Launch **one Task tool invocation per test task**, all concurrently, using `subagent_type "unit-tester"`:
|
|
155
152
|
```
|
|
156
|
-
This phase must be performed as the agent "Unit Tester - Test Coverage" defined in ".opencode/agents/unit-tester.
|
|
153
|
+
This phase must be performed as the agent "Unit Tester - Test Coverage" defined in ".opencode/agents/unit-tester.md".
|
|
157
154
|
|
|
158
155
|
IMPORTANT:
|
|
159
|
-
- Read and apply the entire
|
|
156
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
160
157
|
- TDD CONTEXT: This is the RED phase. You are writing tests that define expected behavior BEFORE any implementation code exists. These tests SHOULD fail when run — that is correct and expected in TDD.
|
|
161
158
|
- Knowledge retrieval: read `.agents/instructions/knowledge-retrieval.instructions.md` for the mandatory 3-layer protocol (memory-bank + learned-knowledge + knowledgebase_search with graceful failure). Report whether knowledgebase_search was executed or skipped in your final summary.
|
|
162
159
|
- Work on "Write tests for task {TASK_ID}: {Description} from plan /plan/{filename}" with base path: "{basePath}".
|
|
@@ -197,10 +194,10 @@ IMPORTANT:
|
|
|
197
194
|
b. Log: `"Impl Batch {letter}: launching {N} parallel coder tasks — {task_ids}"`
|
|
198
195
|
c. Launch **one Task tool invocation per implementation task**, all concurrently, using `subagent_type "coder"`:
|
|
199
196
|
```
|
|
200
|
-
This phase must be performed as the agent "Coder - Implementation" defined in ".opencode/agents/coder.
|
|
197
|
+
This phase must be performed as the agent "Coder - Implementation" defined in ".opencode/agents/coder.md".
|
|
201
198
|
|
|
202
199
|
IMPORTANT:
|
|
203
|
-
- Read and apply the entire
|
|
200
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
204
201
|
- TDD CONTEXT: This is the GREEN phase. Write the MINIMAL production code necessary to pass all existing tests. Do NOT add features beyond what the tests specify. The tests were written first and define the contract you must fulfill.
|
|
205
202
|
- Knowledge retrieval: read `.agents/instructions/knowledge-retrieval.instructions.md` for the mandatory 3-layer protocol (memory-bank + learned-knowledge + knowledgebase_search with graceful failure). Report whether knowledgebase_search was executed or skipped in your final summary.
|
|
206
203
|
- Work on "Implement task {TASK_ID}: {Description} from plan /plan/{filename}" with base path: "{basePath}".
|
|
@@ -236,10 +233,10 @@ IMPORTANT:
|
|
|
236
233
|
3. Invoke the sub-agent using the Task tool with `subagent_type "unit-tester"`:
|
|
237
234
|
|
|
238
235
|
```
|
|
239
|
-
This phase must be performed as the agent "Unit Tester - Test Coverage" defined in ".opencode/agents/unit-tester.
|
|
236
|
+
This phase must be performed as the agent "Unit Tester - Test Coverage" defined in ".opencode/agents/unit-tester.md".
|
|
240
237
|
|
|
241
238
|
IMPORTANT:
|
|
242
|
-
- Read and apply the entire
|
|
239
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
243
240
|
- TDD CONTEXT: This is the VERIFY phase. Run ALL test files in the project. Report:
|
|
244
241
|
- Total tests: {count}
|
|
245
242
|
- Passed: {count}
|
|
@@ -276,10 +273,10 @@ Review both test code and implementation code for quality, correctness, and adhe
|
|
|
276
273
|
3. Invoke the sub-agent using the Task tool with `subagent_type "reviewer"`:
|
|
277
274
|
|
|
278
275
|
```
|
|
279
|
-
This phase must be performed as the agent "Reviewer - Code Quality" defined in ".opencode/agents/reviewer.
|
|
276
|
+
This phase must be performed as the agent "Reviewer - Code Quality" defined in ".opencode/agents/reviewer.md".
|
|
280
277
|
|
|
281
278
|
IMPORTANT:
|
|
282
|
-
- Read and apply the entire
|
|
279
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
283
280
|
- TDD CONTEXT: Review BOTH the test files and the implementation files. Verify that:
|
|
284
281
|
- Tests are comprehensive and meaningful (not just mocks returning canned values).
|
|
285
282
|
- Implementation is minimal and does not contain untested code paths.
|
|
@@ -304,10 +301,10 @@ After the pipeline finishes executing, delegate to the tracker agent to document
|
|
|
304
301
|
1. Invoke the tracker using the Task tool with subagent_type "tracker":
|
|
305
302
|
|
|
306
303
|
```
|
|
307
|
-
This phase must be performed as the agent "Tracker - Documentation Recorder" defined in ".opencode/agents/tracker.
|
|
304
|
+
This phase must be performed as the agent "Tracker - Documentation Recorder" defined in ".opencode/agents/tracker.md".
|
|
308
305
|
|
|
309
306
|
IMPORTANT:
|
|
310
|
-
- Read and apply the entire
|
|
307
|
+
- Read and apply the entire agent spec file (tools, constraints, quality standards).
|
|
311
308
|
- Base path: "{basePath}".
|
|
312
309
|
- Read the orchestrator log at "docs/.orchestrator-log.md" for the full pipeline record.
|
|
313
310
|
- Read any artifact files referenced in the log.
|
|
@@ -338,12 +335,12 @@ After every pipeline (or at the user's request), delegate to a sub-agent to pers
|
|
|
338
335
|
Invoke the tracker (use `subagent_type "tracker"`) with the pipeline context:
|
|
339
336
|
|
|
340
337
|
```
|
|
341
|
-
This phase must be performed as the agent "Tracker - Documentation Recorder" defined in ".opencode/agents/tracker.
|
|
338
|
+
This phase must be performed as the agent "Tracker - Documentation Recorder" defined in ".opencode/agents/tracker.md".
|
|
342
339
|
|
|
343
340
|
PERSIST LESSONS - Record pipeline knowledge:
|
|
344
341
|
|
|
345
342
|
IMPORTANT:
|
|
346
|
-
- Read and apply the entire
|
|
343
|
+
- Read and apply the entire agent spec file.
|
|
347
344
|
- Base path: "{basePath}".
|
|
348
345
|
- Read the orchestrator log at "docs/.orchestrator-log.md" for the full pipeline record.
|
|
349
346
|
- Append a new "Session" entry to ".agents/instructions/learned-knowledge.instructions.md" with:
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Strategic planning and architecture assistant focused on thoughtful analysis before implementation. Helps developers understand codebases, clarify requirements, and develop comprehensive implementation strategies."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
edit: allow
|
|
8
|
-
skill: allow
|
|
9
|
-
question: allow
|
|
10
|
-
webfetch: allow
|
|
11
|
-
websearch: allow
|
|
3
|
+
mode: primary
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: allow }
|
|
6
|
+
- { action: shell, resource: "*", effect: allow }
|
|
12
7
|
---
|
|
13
8
|
|
|
14
9
|
# Plan Mode - Strategic Planning & Architecture Assistant
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Deep-dive research and investigation specialist. Handles technical unknowns, library evaluation, spike validation, and information gathering from documentation, codebases, and web sources."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"ddg-search/*": allow
|
|
9
|
-
"context7/*": allow
|
|
10
|
-
"memory-bank/*": allow
|
|
11
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: all
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: deny }
|
|
6
|
+
- { action: edit, resource: "*.md", effect: allow }
|
|
7
|
+
- { action: shell, resource: "*", effect: deny }
|
|
12
8
|
---
|
|
13
9
|
|
|
14
10
|
# Technical spike research mode
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Code review and quality assurance specialist. Reviews code for correctness, security vulnerabilities, performance issues, maintainability, and adherence to project standards."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"github/*": allow
|
|
9
|
-
"memory-bank/*": allow
|
|
10
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: all
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: deny }
|
|
6
|
+
- { action: edit, resource: "*.md", effect: allow }
|
|
7
|
+
- { action: shell, resource: "*", effect: deny }
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# Reviewer - Code Quality
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Feature scoping specialist. Narrows underspecified feature requests through rounds of numbered questions with recommended answers, then writes a spike document that researcher and implementer can consume."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
skill: allow
|
|
9
|
-
question: allow
|
|
10
|
-
"memory-bank/*": allow
|
|
11
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: all
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: deny }
|
|
6
|
+
- { action: edit, resource: "*.md", effect: allow }
|
|
7
|
+
- { action: shell, resource: "*", effect: deny }
|
|
12
8
|
---
|
|
13
9
|
|
|
14
10
|
# Scope - Feature Scoping
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Documentation recorder that reads completed agent outputs and appends structured documentation to docs/<feature>/<agent>.md. Runs once after a pipeline finishes to produce a human-readable record of what was accomplished."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
edit: allow
|
|
9
|
-
write: allow
|
|
10
|
-
"memory-bank/*": allow
|
|
11
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: all
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: deny }
|
|
6
|
+
- { action: edit, resource: "*.md", effect: allow }
|
|
7
|
+
- { action: shell, resource: "*", effect: deny }
|
|
12
8
|
---
|
|
13
9
|
|
|
14
10
|
# Tracker - Documentation Recorder
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Unit and integration testing specialist. Writes comprehensive tests, improves coverage, validates edge cases, and ensures code quality through automated testing."
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
edit: allow
|
|
8
|
-
execute: allow
|
|
9
|
-
"memory-bank/*": allow
|
|
10
|
-
"knowledgebase/*": allow
|
|
3
|
+
mode: all
|
|
4
|
+
permissions:
|
|
5
|
+
- { action: edit, resource: "*", effect: allow }
|
|
6
|
+
- { action: shell, resource: "*", effect: allow }
|
|
11
7
|
---
|
|
12
8
|
|
|
13
9
|
# Unit Tester - Test Coverage
|
package/AGENTS.md
CHANGED
|
@@ -16,7 +16,7 @@ Put project-specific agent rules in `AGENTS.project.md` at the repository root.
|
|
|
16
16
|
## Core Workflow
|
|
17
17
|
|
|
18
18
|
1. **Understand before acting** — Read relevant instructions from `.agents/instructions/` before working with specific technologies
|
|
19
|
-
2. **Plan before implementing** — Narrow underspecified work with the `scope` agent first, then use the `.opencode/agents/
|
|
19
|
+
2. **Plan before implementing** — Narrow underspecified work with the `scope` agent first, then use the `.opencode/agents/planner.md` (optional deep planning) or `.opencode/agents/implementer.md` patterns for structured work
|
|
20
20
|
3. **Track progress** — Update `memory-bank/activeContext.md` and `memory-bank/progress.md` after each task (see `.agents/instructions/task-implementation.instructions.md`)
|
|
21
21
|
4. **Maintain context** — Keep memory bank files updated (see `.agents/instructions/memory-bank.instructions.md`)
|
|
22
22
|
|
|
@@ -109,9 +109,9 @@ Five skills installed from `mattpocock/skills` (pinned at `v1.3.1`) drive scopin
|
|
|
109
109
|
|
|
110
110
|
### Scope agent
|
|
111
111
|
|
|
112
|
-
`.opencode/agents/scope.
|
|
112
|
+
`.opencode/agents/scope.md` is the front door for underspecified work. It runs `grilling` in rounds against a single draft file, emits each round's frontier as numbered questions with a recommended answer per question, and stops when the frontier is empty or the remaining unknowns are explicitly deferred.
|
|
113
113
|
|
|
114
|
-
It terminates by writing `docs/spike-<feature>.md` — the spike document `.opencode/agents/researcher.
|
|
114
|
+
It terminates by writing `docs/spike-<feature>.md` — the spike document `.opencode/agents/researcher.md` already expects as its input. From there the work continues to `researcher` (open questions need evidence), `implementer` (scope settled, planning remains), or `architect` (the shape of the system is the open problem).
|
|
115
115
|
|
|
116
116
|
The agent has no command-execution permission: it never builds, runs, or tests code. When a question can only be settled empirically it emits `prototype needed: <question>` with a branch, and that work is handed off to `coder` (logic) or `designer` (UI).
|
|
117
117
|
|
|
@@ -128,7 +128,7 @@ These agent workflows (from `.opencode/agents/`) define specialized modes of ope
|
|
|
128
128
|
|
|
129
129
|
Underspecified work does not start here. The default front door is the **`scope` agent** (see [`## Agent skills`](#agent-skills)): it narrows the request through grilling rounds and writes `docs/spike-<feature>.md`, which is handed to `researcher` when open questions need evidence, or to `implementer` when only planning remains.
|
|
130
130
|
|
|
131
|
-
`.opencode/agents/
|
|
131
|
+
`.opencode/agents/planner.md` remains available as an **optional deep-planning mode** for work that is already scoped but needs a step-by-step plan. It is not deleted and not deprecated — it is demoted in the default flow only. When you use it, follow this sequence:
|
|
132
132
|
|
|
133
133
|
1. **Understand the Goal** — Ask clarifying questions about requirements and goals
|
|
134
134
|
2. **Explore Context** — Examine relevant files, components, and systems that will be affected
|
|
@@ -180,7 +180,7 @@ Always ask user permission before: creating files, running commands, modifying t
|
|
|
180
180
|
|
|
181
181
|
Use this when you want a fixed, opinionated pipeline: **implementer → designer → coder → tracker**. It bootstraps architecture context, supports step-by-step confirmation, logs progress, and persists lessons learned.
|
|
182
182
|
|
|
183
|
-
The agent file is at `.opencode/agents/orchestrator/feature-pipeline.
|
|
183
|
+
The agent file is at `.opencode/agents/orchestrator/feature-pipeline.md`.
|
|
184
184
|
|
|
185
185
|
**When to use:** You want a predictable, four-step feature pipeline without dynamic agent selection. The orchestrator agent is more flexible; this is more opinionated.
|
|
186
186
|
|
|
@@ -201,7 +201,7 @@ implementer (PLAN) → unit-tester∥ (RED) → coder∥ (GREEN) → unit-tester
|
|
|
201
201
|
| 5 | REVIEW | reviewer | Audits tests + code for quality, security, patterns |
|
|
202
202
|
| 6 | DOCUMENT | tracker | Records results to `docs/tracker-log.md` |
|
|
203
203
|
|
|
204
|
-
The agent file is at `.opencode/agents/orchestrator/tdd-orchestrator.
|
|
204
|
+
The agent file is at `.opencode/agents/orchestrator/tdd-orchestrator.md`.
|
|
205
205
|
|
|
206
206
|
**When to use:** Any feature, bug fix, or refactor where tests should be written first. The orchestrator automatically selects this pipeline when testable code changes are requested.
|
|
207
207
|
|
package/README.md
CHANGED
|
@@ -120,18 +120,18 @@ AGENTS.project.md # Project-owned rules (recreated if deleted, never overwritt
|
|
|
120
120
|
|
|
121
121
|
| Agent | File | Role |
|
|
122
122
|
| --- | --- | --- |
|
|
123
|
-
| Orchestrator | `.opencode/agents/orchestrator/orchestrator.
|
|
124
|
-
| Scope | `.opencode/agents/scope.
|
|
125
|
-
| Researcher | `.opencode/agents/researcher.
|
|
126
|
-
| Architect | `.opencode/agents/architect.
|
|
127
|
-
| Implementer | `.opencode/agents/implementer.
|
|
128
|
-
| Designer | `.opencode/agents/designer.
|
|
129
|
-
| Coder | `.opencode/agents/coder.
|
|
130
|
-
| Unit Tester | `.opencode/agents/unit-tester.
|
|
131
|
-
| E2E Tester | `.opencode/agents/e2e-tester.
|
|
132
|
-
| Reviewer | `.opencode/agents/reviewer.
|
|
133
|
-
| Deployer | `.opencode/agents/deployer.
|
|
134
|
-
| Tracker | `.opencode/agents/tracker.
|
|
123
|
+
| Orchestrator | `.opencode/agents/orchestrator/orchestrator.md` | Master — analyzes requests, builds pipelines, delegates |
|
|
124
|
+
| Scope | `.opencode/agents/scope.md` | Conditional front door for underspecified requests — grilling rounds, then a spike doc |
|
|
125
|
+
| Researcher | `.opencode/agents/researcher.md` | Technical investigation, library evaluation |
|
|
126
|
+
| Architect | `.opencode/agents/architect.md` | System design, component architecture |
|
|
127
|
+
| Implementer | `.opencode/agents/implementer.md` | Translates designs into implementation plans |
|
|
128
|
+
| Designer | `.opencode/agents/designer.md` | UI/UX, styling, responsive design |
|
|
129
|
+
| Coder | `.opencode/agents/coder.md` | Production code implementation |
|
|
130
|
+
| Unit Tester | `.opencode/agents/unit-tester.md` | Unit and integration tests |
|
|
131
|
+
| E2E Tester | `.opencode/agents/e2e-tester.md` | Playwright browser tests |
|
|
132
|
+
| Reviewer | `.opencode/agents/reviewer.md` | Code review, security audit |
|
|
133
|
+
| Deployer | `.opencode/agents/deployer.md` | CI/CD, deployment scripts |
|
|
134
|
+
| Tracker | `.opencode/agents/tracker.md` | Documentation recorder |
|
|
135
135
|
|
|
136
136
|
### How to Use
|
|
137
137
|
|
|
@@ -19,10 +19,9 @@
|
|
|
19
19
|
},
|
|
20
20
|
"github": {
|
|
21
21
|
"type": "local",
|
|
22
|
-
"command": "npx",
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_PERSONAL_ACCESS_TOKEN"
|
|
22
|
+
"command": ["npx", "-y", "@modelcontextprotocol/server-github"],
|
|
23
|
+
"environment": {
|
|
24
|
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_PERSONAL_ACCESS_TOKEN}"
|
|
26
25
|
},
|
|
27
26
|
"enabled": true
|
|
28
27
|
},
|
|
@@ -30,19 +29,19 @@
|
|
|
30
29
|
"type": "remote",
|
|
31
30
|
"url": "https://mcp.context7.com/mcp",
|
|
32
31
|
"headers": {
|
|
33
|
-
"CONTEXT7_API_KEY": "
|
|
32
|
+
"CONTEXT7_API_KEY": "{env:CONTEXT7_TOKEN}"
|
|
34
33
|
},
|
|
35
34
|
"enabled": true
|
|
36
35
|
},
|
|
37
36
|
"playwright": {
|
|
38
37
|
"type": "local",
|
|
39
|
-
"command": "node",
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"VIEWPORT": "$VIEWPORT"
|
|
38
|
+
"command": ["node", "scripts/mcp/playwright-mcp-launcher.js"],
|
|
39
|
+
"environment": {
|
|
40
|
+
"HEADLESS": "{env:HEADLESS}",
|
|
41
|
+
"SLOW_MO": "{env:SLOW_MO}",
|
|
42
|
+
"VIEWPORT": "{env:VIEWPORT}"
|
|
45
43
|
},
|
|
44
|
+
"timeout": 120000,
|
|
46
45
|
"enabled": true
|
|
47
46
|
},
|
|
48
47
|
"example-server": {
|
|
@@ -67,6 +66,7 @@
|
|
|
67
66
|
"mcp-everything_*": "allow",
|
|
68
67
|
"angular-cli_*": "allow",
|
|
69
68
|
"playwright_*": "allow",
|
|
69
|
+
"context7_*": "allow",
|
|
70
70
|
"memory-bank_*": "allow"
|
|
71
71
|
}
|
|
72
|
-
}
|
|
72
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abarcenas/ai-workflow-template",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.48.0",
|
|
4
4
|
"description": "A comprehensive template repository for AI-assisted development workflows using GitHub Copilot. This template provides a structured approach to leveraging AI assistance through pre-configured skills, prompts, agents, and coding standards.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|