SKILL_TEMPLATE
[1-2 sentence description of what this skill does]. Triggers on [specific phrases/contexts that should activate this skill]. Outputs [what the skill produces].
Execute implementation within EPICs following test-first development, continuous SoT updates, and code traceability during PRD v0.7 Build Execution. Triggers on requests to start building, implement an epic, begin coding, or when user asks "start building", "implement epic",
$ npx -y skills add mattgierhart/PRD-driven-context-engineering --skill prd-v07-implementation-loop --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/prd-v07-implementation-loopContext preview
The summary Claude sees to decide when to auto-load this skill.
Execute implementation within EPICs following test-first development, continuous SoT updates, and code traceability during PRD v0.7 Build Execution. Triggers on requests to start building, implement an epic, begin coding, or when user asks "start building", "implement epic",
name: prd-v07-implementation-loop description: Execute implementation within EPICs following test-first development, continuous SoT updates, and code traceability during PRD v0.7 Build Execution. Triggers on requests to start building, implement an epic, begin coding, or when user asks "start building", "implement epic", "coding", "development", "build execution", "implementation", "write code". Consumes EPIC- (context), TEST- (acceptance criteria). Updates existing IDs and creates code. Outputs working code with @implements traceability tags. context: fork allowed-tools: - Read - Write - Edit - Glob - Grep - Bash
Position in workflow: v0.7 Test Planning → **v0.7 Implementation Loop** → v0.8 Release
This skill requires prior work from v0.7 Epic Scoping and v0.7 Test Planning:
This skill assumes EPIC- and TEST- entries are complete, with all upstream IDs fully specified.
This skill updates/creates:
All implementation outputs are **code and live SoT**, not confidence-based. They are:
Example code with traceability (from EPIC-01):
// @implements API-001 (POST /users)
// @see BR-001 (email uniqueness), BR-002 (password requirements), DBT-010 (users table)
export async function createUser(req: Request, res: Response) {
// @implements BR-002 (password validation)
const passwordResult = validatePassword(req.body.password);
if (!passwordResult.valid) {
return res.status(400).json({
error: { code: 'INVALID_PASSWORD', message: passwordResult.errors[0] }
});
}
// @implements BR-001 (email uniqueness check)
const existingUser = await db.users.findByEmail(req.body.email);
if (existingUser) {
return res.status(409).json({
error: { code: 'EMAIL_EXISTS', message: 'User already exists' }
});
}
// @implements DBT-010 (users table creation)
const user = await db.users.create({
email: req.body.email,
passwordHash: await hashPassword(req.body.password),
createdAt: new Date(),
});
return res.status(201).json({ data: { id: user.id, email: user.email } });
}Example Session State update (EPIC-01 mid-session):
## 1. Session State (The "Brain Dump") - **Last Action**: Completed API-001–003 implementation; all tests passing. Password reset flow complete. - **Stopping Point**: src/api/auth/reset.ts:85 — need to add rate limiting per BR-005 - **Next Steps**: 1. Add rate limiter middleware to password reset endpoint (BR-005) 2. Update TEST-012 to verify rate limiting (5 attempts per hour) 3. Run full test suite for EPIC-01 4. Move to API-005 (verify email endpoint) - **Blockers**: None - **Context**: Decided to implement rate limiting in middleware rather than at function level for reuse across endpoints. Using `express-rate-limit`. - **Decisions Made**: POST /reset-password should return 429 with retry-after header when limit exceeded (API-001 error response spec). Using Redis for distributed rate limit tracking. ### Resume Instructions > 1. Load EPIC-01 context (done in previous session) > 2. Create new branch session if needed > 3. Begin with Step 3 above (add rate limiter middleware) > 4. When complete, run: `npm run test -- tests/api/auth.test.ts` > 5. Update this Session State with new stopping point
Each pass leaves a trace: step 5 tags code with `@implements`, and those tags are exactly what the **Development Graph** harvests — so this loop literally produces the pulse the **HeartBeat** visualizer shows (built → 🟢, unbuilt → 🔴, drifted → 🔴). Rerun `readiness.py run` after a Context Window to watch `implementation_coverage` move.
┌─────────────────────────────────────────────────────────────┐ │ 1. LOAD CONTEXT │ │ Read EPIC, referenced IDs, Session State │ │ → Can
PRD-Led Context Engineering — Memory as Infrastructure. An ontology layer for product teams building products that solve real problems — with AI agents that remember. Gated PRD, typed IDs, markdown knowledge graph, Claude Code skills & hooks.
Repo: mattgierhart/PRD-driven-context-engineering
[1-2 sentence description of what this skill does]. Triggers on [specific phrases/contexts that should activate this skill]. Outputs [what the skill produces].
Validates gate criteria before PRD lifecycle advancement by delegating to the readiness scoring pipeline (scripts/readiness.py). Returns a graduated PASS /…
Extracts durable insights from temp/ files to SoT during EPIC Phase E. Triggers at EPIC completion or explicit `/ghm-harvest` invocation. Outputs new SoT…
Validates and registers new SoT IDs with cross-reference integrity. Triggers when creating BR-XXX, UJ-XXX, API-XXX, or CFD-XXX entries. Outputs formatted SoT…
Install the PRD-Driven Context Engineering methodology into a fresh OR existing repository — the subscription-native alternative to forking the whole repo.…
Creates new Source of Truth (SoT) files when existing templates don't fit your needs. Triggers on requests to create a new SoT file, add a new artifact type,…