Produces docs/notes/skill-implementation-workflow.md with agreed conventions for all Chunk 3 skill issues (0017–0028). Key decisions: - Per-skill process: source discovery (sub-agent) → source review with licence/security check (sub-agent) → conflict check vs constitution + factory principles (sub-agent) → synthesis grill → co-write iteratively - Bootstrap: write-eval (hand-written) → write-skill (hand-written) → write-docs (first factory-authored, phase 2 of 0018) → everything else - Upstream review changed from per-chunk-start to per-skill - `when:` and `references:` frontmatter fields added to authoring standard - Sub-agent usage prescribed as named steps in the workflow - HITL: human reviewed and approved conventions Updates: PRD implementation decisions; issues 0016–0028 with specific acceptance criteria; docs/spec/overview.md; ROADMAP Chunk 3 housekeeping note (bootstrap order, cadence, acceptance criteria status); CONTEXT.md Source field (per-skill cadence, references: companion field); LESSONS.md with three patterns from the grill session. Post-grill additions (same session): Step 6 (session handoff) added to the workflow; handoff section appended to issue 0016; handoff checklist item added to Chunk 3 closure issue (0028). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3.6 KiB
3.6 KiB
0021 — Implement skills: implement-feature, tdd, refactor, diagnose
Type: HITL
Parent PRD: docs/prd/chunk-3-skills-library.md
What to build
The 4 implement phase skills. One is new; three are preserved Pocock placeholders upgraded to the authoring standard. All authored via write-skill (0018), evals via write-eval (0017). write-docs has been moved to issue 0018 phase 2.
Skills, origins, and trigger descriptions:
| Flat name | Origin | Trigger description |
|---|---|---|
implement-feature |
New | Implement a feature, build this, write the code for X |
tdd |
Preserved; frontmatter + standard added | TDD, test-driven, red-green-refactor |
refactor |
New | Refactor this code, improve structure, clean up |
diagnose |
Preserved; frontmatter + standard added | Diagnose this, what's wrong with X, debug this |
Key constraints per skill:
implement-feature: must start from a linked issue with an EARS spec (checksdocs/issues/in the file-based phase, Gitea MCP when configured); flags if none exists; no unrequested abstractions; updatesdocs/spec/as part of implementation if behaviour changes; callstddas its implementation methodologytdd: composable and separate fromimplement-featureso TDD can be used outside full feature implementation; red-green-refactor looprefactor: preserves all existing behaviour; documents what changed and whydiagnose: preserved behavior; add frontmatter, authoring standard sections, and dead-reference cleanup
Implementation notes
Follow the per-skill workflow defined in docs/notes/skill-implementation-workflow.md.
Known upstream sources to review for this category:
mattpocock/skills— originaltddanddiagnoseplaceholders; review at current HEAD; record SHAs insource:for any adopted contentbmad-method/bmad-method— BMAD developer role and implementation patterns; relevant forimplement-featureandrefactor
For new skills (implement-feature, refactor, write-docs): search for prior art in the above repos before writing from scratch.
Acceptance criteria
- All 4 SKILL.md files exist at
.agents/skills/<skill-name>/SKILL.md;metadata.category: implement; authoring standard met (write-docsis in issue 0018 phase 2) - Dead references removed from Pocock skills (
tdd,diagnose) implement-featurechecks for linked issue with EARS spec before proceeding; callstddby namesource:fields populated for adopted upstream content- Each skill has a co-located eval at
.agents/evals/implement/<skill-name>/eval.yamlviawrite-eval install.shdeploys all 4 to~/.agents/skills/- HITL: human runs behavioral test per skill
- HITL: human reviews each SKILL.md and eval before committing
- Per-skill process followed for all 4 skills: source discovery (sub-agent) → source review with licence/security check (sub-agent) → conflict check against constitution + factory principles (sub-agent) → synthesis grill → co-write iteratively
- Trigger description for each skill tested against explicit, implicit, and negative queries before body written
when:frontmatter field present in all SKILL.md filessource:andreferences:fields correctly populated or absent- eval.yaml for each skill contains all 5 required test types
- Body ≤500 lines for each skill
write-docsconfirmed removed from scope (implemented in issue 0018 phase 2)docs/spec/overview.mdupdated to reflect all 4 skills deployed
Blocked by
- 0016 (per-skill workflow)
- 0017 (
write-eval) - 0018 (
write-skill)