Skip to content

Commit e22be9e

Browse files
committed
chore(agents): register feature-selection and refactor skills across all agent files
1 parent 7b3dfe5 commit e22be9e

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

.opencode/agents/product-owner.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ When a gap is reported (by software-engineer or reviewer):
5959
## Available Skills
6060

6161
- `session-workflow` — session start/end protocol
62+
- `feature-selection` — when TODO.md is idle: score and select next backlog feature using WSJF
6263
- `scope` — Step 1: 3-session discovery (Phase 1 + 2), stories (Phase 3), and criteria (Phase 4)

.opencode/agents/software-engineer.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Load `skill session-workflow` first — it reads TODO.md, orients you to the cur
3838
| Step | Action |
3939
|---|---|
4040
| **Step 2 — ARCH** | Load `skill implementation` — contains Step 2 architecture protocol |
41-
| **Step 3 — TDD LOOP** | Load `skill implementation` — contains Step 3 TDD Loop |
41+
| **Step 3 — TDD LOOP** | Load `skill implementation` — contains Step 3 TDD Loop; load `skill refactor` when entering REFACTOR phase or doing preparatory refactoring |
4242
| **Step 5 — after PO accepts** | Load `skill pr-management` and `skill git-release` as needed |
4343

4444
## Ownership Rules
@@ -57,7 +57,8 @@ If during implementation you discover behavior not covered by existing acceptanc
5757

5858
- `session-workflow` — session start/end protocol
5959
- `implementation` — Steps 2-3: architecture + TDD loop
60-
- `design-patterns` — on-demand when smell detected during refactor
60+
- `refactor` — REFACTOR phase and preparatory refactoring (load on-demand)
61+
- `design-patterns` — on-demand when smell detected during architecture or refactor
6162
- `pr-management` — Step 5: PRs with conventional commits
6263
- `git-release` — Step 5: calver versioning and themed release naming
6364
- `create-skill` — meta: create new skills when needed

.opencode/skills/create-skill/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Before writing any skill, research the domain to ground the skill in industry st
2727
- Vendor documentation (OpenAI, Anthropic, Google, Microsoft)
2828
- Industry standards (ISO, NIST, OMG)
2929
- Established methodologies (e.g., FDD, Scrum, Kanban for process skills)
30-
3. **Read existing research**: Check `docs/academic_research.md` for related entries
30+
3. **Read existing research**: Check `docs/scientific-research/` for related entries — each file covers a domain (testing, oop-design, architecture, ai-agents, etc.)
3131
4. **Synthesize conclusions**: Extract actionable conclusions — what works, why, and when to apply it
3232
5. **Embed as guidance**: Write the skill's steps, checklists, and decision rules based on those conclusions — not as academic citations but as direct guidance ("Use X because it produces Y outcome")
3333

@@ -133,6 +133,7 @@ Add the skill name to the agent's "Available Skills" section so the agent knows
133133
| Skill | Used By | Purpose |
134134
|---|---|---|
135135
| `session-workflow` | all agents | Session start/end protocol |
136+
| `feature-selection` | product-owner | Score and select next backlog feature (WSJF) |
136137
| `scope` | product-owner | Step 1: define acceptance criteria |
137138
| `implementation` | software-engineer | Steps 2-3: architecture + TDD loop |
138139
| `design-patterns` | software-engineer | Steps 2, 3: refactor when smell detected |

AGENTS.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Features flow through 5 steps with a WIP limit of 1 feature at a time. The files
1111

1212
```
1313
STEP 1: SCOPE (product-owner) → discovery + Gherkin stories + criteria
14-
STEP 2: ARCH (software-engineer) → read all backlog features, design module structure
14+
STEP 2: ARCH (software-engineer) → read all features + existing package files, write domain stubs (signatures only, no bodies); ADRs to docs/architecture/
1515
STEP 3: TDD LOOP (software-engineer) → RED → GREEN → REFACTOR, one @id at a time
1616
STEP 4: VERIFY (reviewer) → run all commands, review code
1717
STEP 5: ACCEPT (product-owner) → demo, validate, move folder to completed/
@@ -40,9 +40,11 @@ STEP 5: ACCEPT (product-owner) → demo, validate, move folder to compl
4040
| Skill | Used By | Step |
4141
|---|---|---|
4242
| `session-workflow` | all agents | every session |
43+
| `feature-selection` | product-owner | between features (idle state) |
4344
| `scope` | product-owner | 1 |
4445
| `implementation` | software-engineer | 2, 3 |
45-
| `design-patterns` | software-engineer | 2 (on-demand, if smell detected), 3 (refactor) |
46+
| `design-patterns` | software-engineer | 2, 3 (on-demand, when GoF pattern needed) |
47+
| `refactor` | software-engineer | 3 (REFACTOR phase + preparatory refactoring) |
4648
| `verify` | reviewer | 4 |
4749
| `code-quality` | software-engineer | pre-handoff (redirects to `verify`) |
4850
| `pr-management` | software-engineer | 5 |
@@ -87,6 +89,10 @@ docs/features/
8789
in-progress/<feature-name>.feature ← file moves here at Step 2
8890
completed/<feature-name>.feature ← file moves here at Step 5
8991
92+
docs/architecture/
93+
STEP2-ARCH.md ← Step 2 reference diagram (canonical)
94+
adr-NNN-<title>.md ← one per significant architectural decision
95+
9096
tests/
9197
features/<feature-name>/
9298
<rule-slug>_test.py ← one per Rule: block, software-engineer-written

0 commit comments

Comments
 (0)