You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: implement task with skills (/implement, /verify-quality, /record-decision).
Story Statement
As a developer implementing a task with AI assistance I want to invoke /implement which composes /verify-quality and /record-decision as atomic skills, with how-to-10 thinned to an orchestrator So that the implementation workflow is structured, consistent, and executable — the AI follows the same quality gates and decision recording process every time
Given a developer with a user story containing multiple tasks When/implement is invoked in Claude Code Then the skill iterates through tasks one at a time, following for each task a structured 5-phase process: context setup → branch creation → TDD implementation → quality validation → commit, reading adoption files for project-specific decisions
Given/implement starts on a user story When the skill begins Then it asks the developer to choose the commit strategy: commit per task (one commit per completed task, single PR at story end) or commit per story (all tasks in one commit, single PR at story end). The choice is applied consistently for the entire story.
Given all tasks of a user story are completed and committed When/implement reaches the final phase Then it creates a PR for the story branch following the PR template (collaboration/templates/pr-template.md), linking the user story issue, with a summary of all completed tasks
Given/implement creates a commit (either per task or per story) When the commit is being authored Then the commit message follows the commit template (collaboration/templates/commit-template.md)
Given/implement is invoked and some tasks/steps are already completed (e.g. branch already exists, some tasks already committed) When the skill evaluates each task and step Then it detects the current state, skips already-completed tasks and steps, and resumes from the first missing action (idempotent execution)
Given/implement reaches quality validation on a task When the task implementation is complete Then/verify-quality is composed automatically, checking quality gates defined in quality-assurance/quality-standards/ and adoption
Given an implementation introduces an architectural decision not covered by existing ADRs When the developer confirms an ADR is needed Then/record-decision is invoked as architectural — it produces an ADR file in adoption/tech/adr/YYYY-MM-DD-<topic>.md following the ADR template AND updates the relevant adoption files to reflect the current state of facts
Given an implementation introduces a non-architectural decision (e.g. library choice, convention adoption) When the developer confirms a decision record is needed Then/record-decision is invoked as non-architectural — it produces an ADL entry in adoption/decision-log/YYYY-MM-DD-<topic>.md AND updates the relevant adoption files
Given an implementation introduces a new dependency (library, framework, tool) not listed in the tech stack adoption When/implement detects the new dependency (or the developer flags it) Then/implement composes /assess-stack (from #104) to validate the dependency, check compatibility with current stack, and add it to adoption/tech/tech-stack.md with version. If /assess-stack is not installed, /implement warns the developer to manually verify the dependency against the tech stack and update adoption accordingly.
Given/implement reaches quality validation on a task When/verify-adoption (from #105) is installed Then/implement composes /verify-adoption with appropriate $scope to check code against adoption files before commit. Non-conformities are reported to the developer for resolution (tech-stack → /assess-stack, architectural → /record-decision). If /verify-adoption is not installed, /implement skips adoption compliance checking with a warning.
Given how-to-10 is thinned When a non-skill assistant reads how-to-10 Then the file remains a readable standalone document with phase flow, HALT conditions, and WHY context — just without operational procedures
Given/verify-quality is invoked independently (not via /implement) When called with a file or PR reference Then it validates quality gates as a standalone atomic skill, checking only gates not already passing
Given/record-decision is invoked and a decision file for the same topic already exists (ADR or ADL) When the skill evaluates the current state Then it detects the existing file and offers to update it instead of creating a duplicate, and updates the corresponding adoption files accordingly
Given/record-decision completes (either new or update) When the adoption files are updated Then the adoption files reflect the current state of facts for all technical aspects touched by the decision — adoption is the single source of truth for "what we use now", ADR/ADL is the record of "why we decided"
Business Rules
Idempotent execution (cross-cutting, applies to ALL skills): every step in a skill MUST check current state before acting, and only execute missing actions. Re-invoking a skill on a partially completed workflow resumes from where it left off — never re-does already completed work. This is a fundamental design principle for all skills in this epic.
Task iteration: /implement processes tasks sequentially, one at a time. Each task goes through the full 5-phase cycle before moving to the next. The developer can stop between tasks and re-invoke later (idempotency ensures correct resume).
Commit strategy: decided once per story at the start of /implement. Two options:
Commit per task: each completed task is committed separately on the story branch. Produces granular git history. Single PR at story end.
Commit per story: all tasks are implemented on the story branch, committed together at the end. Single commit, single PR.
Default suggestion: commit per task (more granular, easier to review and revert).
Single PR per story: regardless of commit strategy, /implement creates exactly one PR per user story, at the end when all tasks are done.
PR template: /implement MUST follow the PR template (collaboration/templates/pr-template.md) when creating the PR. The template defines the PR body structure — /implement fills it with the story summary, completed tasks, and relevant context.
Commit template: /implement MUST follow the commit template (collaboration/templates/commit-template.md) when creating commits. This applies to both per-task commits and per-story commits.
Conditional decision recording: /record-decision writes to ONE of two destinations based on the decision type — ADR and ADL are mutually exclusive:
Both use the same file naming pattern (YYYY-MM-DD-<topic>.md) for sortability. One file per decision entry.
Adoption update is always required regardless of decision type.
Date-based file naming: both ADR and ADL files use YYYY-MM-DD-<topic>.md naming. One file per decision, sortable by date. Uniform pattern across both directories.
/verify-quality references quality-assurance/quality-standards/ for universal standards AND reads adoption/tech/way-of-working.md for project-specific quality gate commands (e.g., pnpm quality-gate). Adoption = "what command we run"; quality-standards = "what we check".
/record-decision follows standalone ADR template (collaboration/templates/adr-template.md) for architectural decisions and standalone ADL template (collaboration/templates/adl-template.md) for non-architectural decisions
Adoption binding: /implement reads adoption/tech/tech-stack.md, adoption/tech/architecture.md for project context; /record-decision writes to these same files when decisions change
ADL format and documentation: ADL format, purpose, and usage are documented in #105
Edge Cases and Error Handling
Missing adoption files: /implement warns and proceeds with guideline defaults; /record-decision creates the adoption file if it doesn't exist
Quality gate failure: /verify-quality reports failures, /implement HALTs until resolved
Decision file conflict: /record-decision detects existing file for same topic+date, offers to update or create with incremented suffix
Adoption file out of sync with ADR/ADL: /record-decision detects inconsistencies between decision records and adoption state, and proposes reconciliation
Partial completion: re-invoking /implement on a partially completed story resumes from the last incomplete task/step — already-committed tasks are detected and skipped
Branch already exists: /implement detects existing branch, switches to it instead of failing on create
Single task story: commit strategy question is skipped — one task, one commit, one PR
PR already exists: /implement detects existing PR for the story branch, updates it instead of creating a duplicate
PR template not found: /implement HALTs with error indicating the PR template path is missing
Commit template not found: /implement HALTs with error indicating the commit template path is missing
New dependency with /assess-stack not installed: /implement warns developer to manually verify the dependency against the tech stack adoption file. Implementation continues — the warning is informational, not a HALT.
New dependency with /assess-stack installed: /assess-stack validates compatibility, adds to tech-stack.md with version, writes decision record. If /assess-stack rejects the dependency (incompatible), /implement HALTs and asks developer to resolve.
Adoption check with /verify-adoption not installed: /implement warns developer to manually verify adoption compliance. Implementation continues — the warning is informational, not a HALT.
Adoption check with /verify-adoption installed: /verify-adoption checks code against adoption files per scope. Non-conformities reported to developer; /assess-stack resolves tech-stack issues (if installed), /record-decision resolves architectural gaps.
Definition of Done Checklist
Development Completion
dataset/.skills/process/implement/SKILL.md created with valid frontmatter, idempotent steps, task iteration, commit strategy choice, PR creation following pr-template.md, commit messages following commit-template.md, optional /assess-stack composition, optional /verify-adoption composition
dataset/.skills/capability/verify-quality/SKILL.md created with valid frontmatter, idempotent checks, reads quality gate command from adoption/tech/way-of-working.md
dataset/.skills/capability/record-decision/SKILL.md created with valid frontmatter, idempotent checks, conditional write (ADR|ADL + adoption), date-based file naming, references standalone templates
dataset/.pair/knowledge/guidelines/collaboration/templates/adr-template.md created — standalone ADR template
dataset/.pair/knowledge/guidelines/collaboration/templates/adl-template.md created — standalone ADL template
dataset/.pair/adoption/tech/way-of-working.md updated with Quality Gates section (project-specific quality gate command)
how-to-10 thinned to ~160-180 lines (orchestration only)
Thinned how-to-10 readable as standalone document
Skills reference correct guideline and adoption paths
Every skill step follows check→skip→act→verify pattern (idempotency)
/record-decision writes decision file (ADR or ADL) + adoption files on every decision
/implement gracefully handles /assess-stack presence or absence (optional composition)
/implement gracefully handles /verify-adoption presence or absence (optional composition)
Code reviewed and merged
Quality Assurance
/implement invocable in Claude Code — iterates tasks one at a time, follows 5-phase process per task
/implement asks commit strategy at start and applies it consistently
/implement creates PR at story completion following collaboration/templates/pr-template.md, linking user story issue
Invoke /record-decision with architectural decision → verify ADR file in adoption/tech/adr/YYYY-MM-DD-<topic>.md + adoption update
Invoke /record-decision with non-architectural decision → verify ADL file in adoption/decision-log/YYYY-MM-DD-<topic>.md + adoption update
Invoke /record-decision on existing topic → verify update instead of duplicate
Read thinned how-to-10 as standalone → verify comprehensibility
Notes
Open questions resolved:
How-to-10 phase structure: phases stay in how-to as workflow map, operational steps move to skill
/verify-quality: references quality-assurance directly (quality standards are universal, not project-specific)
Idempotency: all skill steps are idempotent — check current state, skip completed actions, execute only what's missing. This is a cross-cutting design principle established in this story and applied to all skills in the epic.
/record-decision conditional write: ADR and ADL are mutually exclusive. Architectural → ADR + adoption. Non-architectural → ADL + adoption. Both use YYYY-MM-DD-<topic>.md naming (one file per decision, sortable by date). Adoption is the single source of truth for current technical state.
Task iteration: /implement processes tasks one at a time, sequentially. Developer can stop and resume between tasks.
Commit strategy: developer chooses once per story — commit per task (default, granular) or commit per story (single commit). Single PR per story regardless.
PR template: /implement follows collaboration/templates/pr-template.md when creating PRs.
Commit template: /implement follows collaboration/templates/commit-template.md when creating commits.
ADL documentation: ADL format, purpose, and usage documented in #105.
/assess-stack composition: /implement composes /assess-stack (#104) when a new dependency is detected during implementation. Optional composition — graceful degradation if /assess-stack is not installed. Enables incremental adoption.
/verify-adoption composition: /implement composes /verify-adoption (#105) before commit to check code against adoption files. Optional composition — graceful degradation if /verify-adoption is not installed. Non-conformities detected by /verify-adoption are resolved via /assess-stack (tech-stack) or /record-decision (architectural). Enables incremental adoption.
Highest-value story after infrastructure. Pattern-setting for all subsequent how-to thinning, idempotency convention, and conditional decision recording pattern.
Extract operational content from how-to-10 (~457 lines → ~160-180 lines). Write 3 SKILL.md files with YAML frontmatter referencing guidelines and adoption files. Each skill's steps are designed as idempotent checkpoints — check state first, act only if needed. This is the pattern-setting story for all subsequent how-to thinning.
Key Flows
/implement Task Iteration:
Read user story → extract task list
Ask commit strategy (per task or per story) — skip if single task
Create/switch to story branch (idempotent)
For each task (sequential): context → TDD → optional /assess-stack → optional /verify-adoption → /verify-quality → commit
Final commit (if commit-per-story) → create/update PR following pr-template.md
/record-decision Conditional Write:
Determine decision type: architectural or non-architectural
Check if decision file already exists → update or create
Architectural → ADR in adoption/tech/adr/YYYY-MM-DD-<topic>.md + adoption update
Non-architectural → ADL in adoption/decision-log/YYYY-MM-DD-<topic>.md + adoption update
Verify consistency: decision record ↔ adoption state
Technical Risks
Risk
Impact
Probability
Mitigation Strategy
How-to thinning breaks standalone readability
Medium
Medium
Review thinned how-to as standalone doc before merging
Skill composition not clear to AI
Medium
Low
Explicit composition instructions in /implement frontmatter
Idempotency checks miss edge cases
Medium
Medium
Test re-invocation at each step boundary; document check patterns
Summary: Create /verify-quality atomic capability skill that checks quality gates from quality-assurance/quality-standards/.
Type: Documentation
Description: Atomic capability skill. Checks quality gates from quality-assurance/quality-standards/ (universal standards) AND reads project-specific quality gate command from adoption/tech/way-of-working.md (e.g., pnpm quality-gate). Each gate follows check→skip→act→verify pattern. Invocable independently or composed by /implement and /review. Gates not already passing are checked; passing gates are skipped (idempotent). Adoption = "what command we run"; quality-standards = "what we check".
Acceptance Criteria:
Primary deliverable: SKILL.md with valid YAML frontmatter per agentskills.io spec
Quality standard: All quality gates covered; idempotent (skips passing gates)
Integration requirement: Independently invocable AND composable by /implement and /review
Verification method: Manual Claude Code validation — invoke independently and as composition
Write quality gate checking logic with check→skip→act→verify pattern
Write independent invocation instructions
Write composition interface (how /implement and /review compose this skill)
Update adoption/tech/way-of-working.md to add Quality Gates section declaring the project-specific command
Testing Strategy:
Unit Tests: N/A (markdown skill)
Manual Testing: Invoke independently in Claude Code; verify gate skip logic; verify adoption reading
Notes: First capability skill — sets the pattern for all subsequent atomic skills. Quality gate command is adoption-driven (project-specific), quality standards are universal.
Notes: Pattern-setting skill for the entire epic. Establishes idempotency convention, how-to thinning approach, and TDD discipline rules for all subsequent stories.
Resolution
Delivered by PR #107 (merged). Board: Done.
feat: implement task with skills (/implement, /verify-quality, /record-decision).
Story Statement
As a developer implementing a task with AI assistance
I want to invoke
/implementwhich composes/verify-qualityand/record-decisionas atomic skills, withhow-to-10thinned to an orchestratorSo that the implementation workflow is structured, consistent, and executable — the AI follows the same quality gates and decision recording process every time
Where:
dataset/.skills/process/implement/,dataset/.skills/capability/verify-quality/,dataset/.skills/capability/record-decision/,.pair/knowledge/how-to/10-how-to-implement-a-task.mdEpic Context
Parent Epic: Agent Skills in Knowledge Base #97
Status: Refined
Priority: P0 (Must-Have)
Acceptance Criteria
Functional Requirements
Given a developer with a user story containing multiple tasks
When
/implementis invoked in Claude CodeThen the skill iterates through tasks one at a time, following for each task a structured 5-phase process: context setup → branch creation → TDD implementation → quality validation → commit, reading adoption files for project-specific decisions
Given
/implementstarts on a user storyWhen the skill begins
Then it asks the developer to choose the commit strategy: commit per task (one commit per completed task, single PR at story end) or commit per story (all tasks in one commit, single PR at story end). The choice is applied consistently for the entire story.
Given all tasks of a user story are completed and committed
When
/implementreaches the final phaseThen it creates a PR for the story branch following the PR template (
collaboration/templates/pr-template.md), linking the user story issue, with a summary of all completed tasksGiven
/implementcreates a commit (either per task or per story)When the commit is being authored
Then the commit message follows the commit template (
collaboration/templates/commit-template.md)Given
/implementis invoked and some tasks/steps are already completed (e.g. branch already exists, some tasks already committed)When the skill evaluates each task and step
Then it detects the current state, skips already-completed tasks and steps, and resumes from the first missing action (idempotent execution)
Given
/implementreaches quality validation on a taskWhen the task implementation is complete
Then
/verify-qualityis composed automatically, checking quality gates defined inquality-assurance/quality-standards/and adoptionGiven an implementation introduces an architectural decision not covered by existing ADRs
When the developer confirms an ADR is needed
Then
/record-decisionis invoked as architectural — it produces an ADR file inadoption/tech/adr/YYYY-MM-DD-<topic>.mdfollowing the ADR template AND updates the relevant adoption files to reflect the current state of factsGiven an implementation introduces a non-architectural decision (e.g. library choice, convention adoption)
When the developer confirms a decision record is needed
Then
/record-decisionis invoked as non-architectural — it produces an ADL entry inadoption/decision-log/YYYY-MM-DD-<topic>.mdAND updates the relevant adoption filesGiven an implementation introduces a new dependency (library, framework, tool) not listed in the tech stack adoption
When
/implementdetects the new dependency (or the developer flags it)Then
/implementcomposes/assess-stack(from #104) to validate the dependency, check compatibility with current stack, and add it toadoption/tech/tech-stack.mdwith version. If /assess-stack is not installed, /implement warns the developer to manually verify the dependency against the tech stack and update adoption accordingly.Given
/implementreaches quality validation on a taskWhen
/verify-adoption(from #105) is installedThen
/implementcomposes/verify-adoptionwith appropriate$scopeto check code against adoption files before commit. Non-conformities are reported to the developer for resolution (tech-stack → /assess-stack, architectural → /record-decision). If /verify-adoption is not installed, /implement skips adoption compliance checking with a warning.Given how-to-10 is thinned
When a non-skill assistant reads how-to-10
Then the file remains a readable standalone document with phase flow, HALT conditions, and WHY context — just without operational procedures
Given
/verify-qualityis invoked independently (not via /implement)When called with a file or PR reference
Then it validates quality gates as a standalone atomic skill, checking only gates not already passing
Given
/record-decisionis invoked and a decision file for the same topic already exists (ADR or ADL)When the skill evaluates the current state
Then it detects the existing file and offers to update it instead of creating a duplicate, and updates the corresponding adoption files accordingly
Given
/record-decisioncompletes (either new or update)When the adoption files are updated
Then the adoption files reflect the current state of facts for all technical aspects touched by the decision — adoption is the single source of truth for "what we use now", ADR/ADL is the record of "why we decided"
Business Rules
collaboration/templates/pr-template.md) when creating the PR. The template defines the PR body structure — /implement fills it with the story summary, completed tasks, and relevant context.collaboration/templates/commit-template.md) when creating commits. This applies to both per-task commits and per-story commits.adoption/tech/adr/YYYY-MM-DD-<topic>.md) + adoption file(s) updateadoption/decision-log/YYYY-MM-DD-<topic>.md) + adoption file(s) updateYYYY-MM-DD-<topic>.md) for sortability. One file per decision entry.YYYY-MM-DD-<topic>.mdnaming. One file per decision, sortable by date. Uniform pattern across both directories.adoption/tech/tech-stack.md, it composes/assess-stack(from #104) to validate and register the dependency with version. /assess-stack is an optional composition — if not installed, /implement warns the developer and continues. This enables incremental adoption (Implement task with skills (/implement, /verify-quality, /record-decision) #99 before Assessment skills (8 assess-* with resolution cascade) #104)./verify-adoption(from #105) before commit to check code against adoption files. /verify-adoption detects non-conformities; /implement resolves via/assess-stack(tech-stack) or/record-decision(architectural). /verify-adoption is an optional composition — if not installed, /implement skips adoption checking with a warning. This enables incremental adoption (Implement task with skills (/implement, /verify-quality, /record-decision) #99 before Remaining capability skills + /verify-adoption + /next update + prompt deprecation #105).quality-assurance/quality-standards/for universal standards AND readsadoption/tech/way-of-working.mdfor project-specific quality gate commands (e.g.,pnpm quality-gate). Adoption = "what command we run"; quality-standards = "what we check".collaboration/templates/adr-template.md) for architectural decisions and standalone ADL template (collaboration/templates/adl-template.md) for non-architectural decisionsadoption/tech/tech-stack.md,adoption/tech/architecture.mdfor project context; /record-decision writes to these same files when decisions changeEdge Cases and Error Handling
Definition of Done Checklist
Development Completion
dataset/.skills/process/implement/SKILL.mdcreated with valid frontmatter, idempotent steps, task iteration, commit strategy choice, PR creation followingpr-template.md, commit messages followingcommit-template.md, optional /assess-stack composition, optional /verify-adoption compositiondataset/.skills/capability/verify-quality/SKILL.mdcreated with valid frontmatter, idempotent checks, reads quality gate command fromadoption/tech/way-of-working.mddataset/.skills/capability/record-decision/SKILL.mdcreated with valid frontmatter, idempotent checks, conditional write (ADR|ADL + adoption), date-based file naming, references standalone templatesdataset/.pair/knowledge/guidelines/collaboration/templates/adr-template.mdcreated — standalone ADR templatedataset/.pair/knowledge/guidelines/collaboration/templates/adl-template.mdcreated — standalone ADL templatedataset/.pair/adoption/tech/way-of-working.mdupdated with Quality Gates section (project-specific quality gate command)how-to-10thinned to ~160-180 lines (orchestration only)Quality Assurance
/implementinvocable in Claude Code — iterates tasks one at a time, follows 5-phase process per task/implementasks commit strategy at start and applies it consistently/implementcreates PR at story completion followingcollaboration/templates/pr-template.md, linking user story issue/implementcommit messages followcollaboration/templates/commit-template.md/implementre-invoked on partial progress — resumes from correct task/step, skips completed work/implementwith new dependency + /assess-stack installed → validates and registers dependency/implementwith new dependency + /assess-stack not installed → warns developer, continues/implementwith /verify-adoption installed → checks adoption compliance before commit, reports non-conformities/implementwith /verify-adoption not installed → warns developer, continues/verify-qualityinvocable independently — validates quality gates, skips passing gates/record-decisioninvocable independently — architectural decision produces ADR + updates adoption/record-decisioninvocable independently — non-architectural decision produces ADL + updates adoption/record-decisionon existing topic — detects existing file, updates instead of duplicating, updates adoptionYYYY-MM-DD-<topic>.mdnaming, one file per decisionStory Sizing and Sprint Readiness
Refined Story Points
Final Story Points: L(5)
Confidence Level: High
Sizing Justification: 3 SKILL.md files + how-to thinning + idempotency pattern design + task iteration with commit strategy + PR creation with
pr-template.md+ commit messages withcommit-template.md+ /record-decision conditional write (ADR|ADL + adoption) with date-based naming + optional /assess-stack composition + optional /verify-adoption composition. Content is well-defined (how-to-10 analysis shows 65% orchestration / 35% operational split). This is the pattern-setting story — establishes idempotency convention and how-to thinning approach for all subsequent stories.Sprint Fit Assessment
Sprint Fit: Yes — single sprint
Development Estimate: 3 days (SKILL.md writing with idempotent steps + how-to thinning)
Testing Estimate: 1 day (Claude Code invocation + re-invocation tests + standalone readability review)
Dependencies and Coordination
Story Dependencies
Prerequisite Stories: #98 (skill infrastructure must exist)
Dependent Stories: #100 (reuses /verify-quality and /record-decision)
Optional Composition: #104 (/assess-stack — composed if installed, graceful degradation if not), #105 (/verify-adoption — composed for adoption compliance if installed, graceful degradation if not)
Validation and Testing Strategy
Acceptance Testing
/implementon a multi-task story → verify task-by-task iterationcollaboration/templates/commit-template.mdcollaboration/templates/pr-template.md, linked to user story issue/implementafter partial completion (e.g. 2 of 4 tasks done) → verify it resumes from task 3/implementon a single-task story → verify commit strategy is skipped/implementwith new dependency + /assess-stack installed → verify /assess-stack composition validates and registers/implementwith new dependency + /assess-stack not installed → verify warning, continues without HALT/implementwith /verify-adoption installed → verify adoption compliance check before commit, non-conformities reported/implementwith /verify-adoption not installed → verify warning, continues without HALT/verify-qualityindependently → verify quality gate validation, only checks failing gates/record-decisionwith architectural decision → verify ADR file inadoption/tech/adr/YYYY-MM-DD-<topic>.md+ adoption update/record-decisionwith non-architectural decision → verify ADL file inadoption/decision-log/YYYY-MM-DD-<topic>.md+ adoption update/record-decisionon existing topic → verify update instead of duplicateNotes
Open questions resolved:
YYYY-MM-DD-<topic>.mdnaming (one file per decision, sortable by date). Adoption is the single source of truth for current technical state.collaboration/templates/pr-template.mdwhen creating PRs.collaboration/templates/commit-template.mdwhen creating commits.Highest-value story after infrastructure. Pattern-setting for all subsequent how-to thinning, idempotency convention, and conditional decision recording pattern.
Design reference:
docs/design/skills-in-knowledge-base.mdsections 1, 3, 4Technical Analysis
Strategy
Extract operational content from how-to-10 (~457 lines → ~160-180 lines). Write 3 SKILL.md files with YAML frontmatter referencing guidelines and adoption files. Each skill's steps are designed as idempotent checkpoints — check state first, act only if needed. This is the pattern-setting story for all subsequent how-to thinning.
Key Flows
/implement Task Iteration:
pr-template.md/record-decision Conditional Write:
adoption/tech/adr/YYYY-MM-DD-<topic>.md+ adoption updateadoption/decision-log/YYYY-MM-DD-<topic>.md+ adoption updateTechnical Risks
Task Breakdown
Dependency Graph
AC Coverage
T-1: Create /verify-quality SKILL.md (capability skill)
Priority: P0 | Estimated Hours: 3h | Bounded Context: Knowledge Base Management
Summary: Create
/verify-qualityatomic capability skill that checks quality gates fromquality-assurance/quality-standards/.Type: Documentation
Description: Atomic capability skill. Checks quality gates from
quality-assurance/quality-standards/(universal standards) AND reads project-specific quality gate command fromadoption/tech/way-of-working.md(e.g.,pnpm quality-gate). Each gate follows check→skip→act→verify pattern. Invocable independently or composed by /implement and /review. Gates not already passing are checked; passing gates are skipped (idempotent). Adoption = "what command we run"; quality-standards = "what we check".Acceptance Criteria:
Technical Requirements:
Implementation Approach:
dataset/.skills/capability/dataset/.skills/capability/verify-quality/SKILL.md— new capability skilldataset/.pair/adoption/tech/way-of-working.md— add Quality Gates section with project-specific commandquality-assurance/quality-standards/andadoption/tech/way-of-working.mdDependencies:
Implementation Steps:
dataset/.skills/capability/verify-quality/adoption/tech/way-of-working.mdto add Quality Gates section declaring the project-specific commandTesting Strategy:
Notes: First capability skill — sets the pattern for all subsequent atomic skills. Quality gate command is adoption-driven (project-specific), quality standards are universal.
T-2: Create /record-decision SKILL.md (capability skill)
Priority: P0 | Estimated Hours: 4h | Bounded Context: Knowledge Base Management
Summary: Create
/record-decisionatomic capability skill with conditional write (ADR or ADL) + adoption update.Type: Documentation
Description: Conditional write skill: architectural → ADR (
adoption/tech/adr/YYYY-MM-DD-<topic>.md) + adoption update; non-architectural → ADL (adoption/decision-log/YYYY-MM-DD-<topic>.md) + adoption update. Mutually exclusive — never both. Existing decision detection (same topic+date → offer update instead of duplicate). Date-based naming (YYYY-MM-DD-<topic>.md). Adoption files always updated regardless of decision type — adoption is single source of truth for "what we use now", ADR/ADL is "why we decided". References standalone ADR template (collaboration/templates/adr-template.md) and standalone ADL template (collaboration/templates/adl-template.md).Acceptance Criteria:
Technical Requirements:
Implementation Approach:
dataset/.skills/capability/dataset/.skills/capability/record-decision/SKILL.md— new capability skilldataset/.pair/knowledge/guidelines/collaboration/templates/adr-template.md— new standalone ADR templatedataset/.pair/knowledge/guidelines/collaboration/templates/adl-template.md— new standalone ADL templatecollaboration/templates/, date-based namingDependencies:
Implementation Steps:
adr-template.mdincollaboration/templates/adl-template.mdincollaboration/templates/dataset/.skills/capability/record-decision/adr-template.mdadl-template.mdTesting Strategy:
Notes: ADR and ADL are mutually exclusive. Adoption is always updated. Date-based naming:
YYYY-MM-DD-<topic>.md.T-3: Create /implement SKILL.md (process skill)
Priority: P0 | Estimated Hours: 6h | Bounded Context: Knowledge Base Management
Summary: Create
/implementprocess skill — pattern-setting for the entire epic, with TDD discipline rules.Type: Documentation
Description: Task iteration (sequential), commit strategy (per-task/per-story), 5-phase TDD cycle, PR creation following
pr-template.md, commits followingcommit-template.md. Composes /verify-quality + /record-decision (required). Optional: /assess-stack (#104) + /verify-adoption (#105) with graceful degradation. Every step follows check→skip→act→verify pattern.TDD Discipline Rules (must be explicitly encoded in the skill):
InMemoryFileSystemService)Acceptance Criteria:
Technical Requirements:
Implementation Approach:
dataset/.skills/process/dataset/.skills/process/implement/SKILL.md— new process skillDependencies:
Implementation Steps:
dataset/.skills/process/implement/Testing Strategy:
Notes: Pattern-setting skill for the entire epic. Establishes idempotency convention, how-to thinning approach, and TDD discipline rules for all subsequent stories.
T-4: Thin how-to-10 from ~456 to ~160-180 lines
Priority: P0 | Estimated Hours: 4h | Bounded Context: Knowledge Base Management
Summary: Remove operational content from how-to-10, keeping orchestration structure as standalone document.
Type: Documentation
Description: Keep: overview, session state, core principles, phase flow (workflow map), HALT conditions, TDD session types, approval gates, references. Remove (now in skills): git branch creation, commit templates, task validation checklists, implementation steps, task iteration logic, commit strategy, PR creation, quality gates, decision recording. The thinned how-to must remain readable as a standalone document for non-skill assistants.
Acceptance Criteria:
Technical Requirements:
Implementation Approach:
.pair/knowledge/how-to/.pair/knowledge/how-to/10-how-to-implement-a-task.md— thin from ~456 to ~160-180 linesDependencies:
Implementation Steps:
Testing Strategy:
Notes: Pattern-setting for all how-to thinning. The thinned file must stand alone.
T-5: Validate skills and thinned how-to-10 in Claude Code
Priority: P0 | Estimated Hours: 2h | Bounded Context: Knowledge Base Management
Summary: End-to-end validation of all skills and thinned how-to-10 in Claude Code.
Type: Testing
Description: Validate: /implement on multi-task story (task iteration, commit strategy, PR); re-invoke partial (resumes correctly); /verify-quality independently (checks only failing gates); /record-decision architectural + non-architectural; thinned how-to-10 standalone readability. Test optional compositions: /implement with /assess-stack not installed (warns, continues), /implement with /verify-adoption not installed (warns, continues).
Acceptance Criteria:
Technical Requirements:
Implementation Approach:
Dependencies:
Implementation Steps:
Testing Strategy:
Notes: Final validation before story completion.
Refinement Date: 2026-02-08
Review and Approval: Approved (2026-02-09)