SKILL_TEMPLATE
[1-2 sentence description of what this skill does]. Triggers on [specific phrases/contexts that should activate 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",
Claude Code
$ npx -y skills add mattgierhart/PRD-driven-context-engineering --skill prd-v07-implementation-loop --agent claude-code
Codex
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill prd-v07-implementation-loop -a codex -y
Cursor
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill prd-v07-implementation-loop -a cursor -y
Gemini CLI
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill prd-v07-implementation-loop -a gemini-cli -y
GitHub Copilot
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill prd-v07-implementation-loop -a github-copilot -y
OpenCode
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill prd-v07-implementation-loop -a opencode -y
Windsurf
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill prd-v07-implementation-loop -a windsurf -y
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.
[1-2 sentence description of what this skill does]. Triggers on [specific phrases/contexts that should activate this skill].…
Validates gate criteria before PRD lifecycle advancement by delegating to the readiness scoring pipeline (scripts/readiness.py).…
Extracts durable insights from temp/ files to SoT during EPIC Phase E. Triggers at EPIC completion or explicit `/ghm-harvest`…
Validates and registers new SoT IDs with cross-reference integrity. Triggers when creating BR-XXX, UJ-XXX, API-XXX, or CFD-XXX…
Install the PRD-Driven Context Engineering methodology into a fresh OR existing repository — the subscription-native alternative…
Creates new Source of Truth (SoT) files when existing templates don't fit your needs. Triggers on requests to create a new SoT…
How to work in a Codebase Wiki project (the `codebase-wiki` starter pack): an agent-authored, source-grounded wiki of the…
Simulates academic peer review, evaluating papers across Originality, Methodology, Results, and Writing to provide Major/Minor…