/prd-v07-epic-scoping
Transform v0.6 specifications into context-window-sized work packages (EPICs) during PRD v0.7 Build Execution. Triggers on requests to create epics, scope work, break down implementation, or when user asks "create epics", "scope work", "break down work", "context window sizing",
$ npx -y skills add mattgierhart/PRD-driven-context-engineering --skill prd-v07-epic-scoping --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/prd-v07-epic-scoping
Context preview
The summary Claude sees to decide when to auto-load this skill.
Transform v0.6 specifications into context-window-sized work packages (EPICs) during PRD v0.7 Build Execution. Triggers on requests to create epics, scope work, break down implementation, or when user asks "create epics", "scope work", "break down work", "context window sizing",
SKILL.md
prd-v07-epic-scoping.SKILL.mdname: prd-v07-epic-scoping
description: Transform v0.6 specifications into context-window-sized work packages (EPICs) during PRD v0.7 Build Execution. Triggers on requests to create epics, scope work, break down implementation, or when user asks "create epics", "scope work", "break down work", "context window sizing", "what to build first?", "implementation planning", "epic breakdown". Consumes API-, DBT-, FEA-, ARC-. Outputs EPIC- entries with objectives, ID references, dependencies, and context windows. Feeds v0.7 Test Planning.
context: fork
allowed-tools:
- Read
- Write
- Edit
- Glob
- Grep
- Bash
Epic Scoping
Position in workflow: v0.6 Technical Specification → **v0.7 Epic Scoping** → v0.7 Test Planning
Consumes
This skill requires prior work from v0.6 Technical Specification:
- **API-\* endpoint contracts** (from v0.6 Technical Specification) — Endpoints define what must be built; API count signals complexity
- **DBT-\* data model specifications** (from v0.6 Technical Specification) — Data entities and relationships inform natural boundaries
- **ARC-\* architecture decisions** (from v0.6 Architecture Design) — System structure, module boundaries, and integration patterns define scoping boundaries
- **FEA-\* feature entries with MVP-SCOPE** (from v0.3 Features Value Planning) — MVP boundary determines EPIC scope; post-MVP features defer to backlog
- **Existing EPIC-\* entries** (if brownfield) — Inherited work packages constrain and sequence new EPICs
This skill assumes v0.6 Technical Specification is complete with API-/DBT- entries providing implementation contracts.
Produces
This skill creates/updates:
- **EPIC-\* entries** (context-window-sized work packages, status-based) — Scope of work that fits in AI agent working memory with explicit dependencies, pre-load context budget, session state tracking, and acceptance criteria
- **EPIC dependency graph** — Sequencing showing which EPICs must complete before others; identifies infrastructure/foundation EPICs, critical path EPICs, and optional/secondary EPICs
- **Context capsule specification** — Pre-load checklist (SoT files, key IDs, code references) and working room estimate ensuring EPIC doesn't exceed 100k context tokens
All EPIC- entries are **work package specifications**, not confidence-based. They are:
- **Sized for context windows** (3-5 APIs, 2-4 DBT tables, 1-2 UJs, <100k pre-load tokens)
- **Fully traceable** (every EPIC references API-, DBT-, BR-, UJ-, TEST- from upstream)
- **Sequenced explicitly** (dependencies form a DAG; no circular dependencies)
- **Deliverable-focused** (measurable completion with acceptance criteria)
Example EPIC- entry (Auth Infrastructure):
EPIC-01: User Authentication
State: Planned
Lifecycle: v0.7 Build Execution
Branch: epic/EPIC-01-auth
## 0. Context Capsule
### Resource Envelope
| Dimension | Target | Notes |
|-----------|--------|-------|
| Pre-load Context | ~40k tokens | Auth SoT + API-001–005 specs + DBT-010/011 schema |
| Working Room | ~160k tokens | Plenty of space for implementation |
| Session Goal | Checkpoint C1 | Database schema complete |
### Dependencies
| Type | Items | Status |
|------|-------|--------|
| Requires | None | First EPIC — foundation |
| External | Supabase project created | Ready |
| Enables | EPIC-02 (reports), EPIC-03 (data sources) | Blocked until auth completes |
### Pre-load Checklist
- [ ] SoT/SoT.BUSINESS_RULES.md — IDs: BR-001, BR-002 (auth rules)
- [ ] SoT/SoT.API_CONTRACTS.md — IDs: API-001–005 (auth endpoints)
- [ ] SoT/SoT.TECHNICAL_DECISIONS.md — IDs: TECH-003 (Clerk), ARC-003 (JWT strategy)
## 2. Objective & Scope
Goal: Enable users to authenticate with email/password, manage sessions, and maintain security.
Deliverables:
- [ ] User registration with email/password (API-001)
- [ ] Login/logout functionality (API-002, API-003)
- [ ] Session management with refresh tokens (API-004)
- [ ] Password reset flow (API-005)
- [ ] Users and sessions schema (DBT-010, DBT-011)
Out of Scope: Social auth (EPIC-02), team invites (EPIC-05), admin user management (EPIC-07)
## 3. Context & IDs
| Type | IDs |
|------|-----|
| Business Rules | BR-001 (email uniqueness), BR-002 (password requirements), BR-010 (auth workflow) |
| User Journeys | UJ-000 (onboarding), UJ-010 (login) |
| APIs | API-001 to API-005 |
| Data Models | DBT-010 (users), DBT-011 (sessions) |
| Architecture | ARC-003 (JWT strategy), TECH-003 (Clerk) |
| Features | FEA-010 (signup), FEA-011 (login) — both in MVP-SCOPE |
| Tests | TEST-001 to TEST-015 (auth test suite) |
## 4. Execution Plan (5 Phases)
[Phase structure from skill as is]
Related IDs: TECH-003, ARC-003, FEA-010/011, API-001–005, DBT-010/011, BR-001/002/010
Core Concept: Epic = Context Window
> An EPIC is not a "big user story." It is a **cognitive boundary**—a scope of work that fits in working memory (human or AI). The goal is to load exactly what's needed to complete a focused task without distraction.
**The question is not** "How long will this take?" but **"Can an agent complete this without needing more context than fits in a session?"**
Sizing Rules
| Size | Characteristics | Action | |------|-----------------|--------| | **Right-sized** | 3-5 API endpoints, 2-4 DBT tables, 1-2 UJ flows | Good fit ✓ | | **Too big** | >10 APIs, >5 tables, multiple unrelated features | Split by domain | | **Too small** | Single endpoint, no meaningful deliverable | Merge with related |
**Rule of thumb**: If you can't describe the EPIC's goal in one sentence, it's too big.
Context Budget Guidelines
EPICs are **context capsules** — work units sized for AI agent handoffs.
| Dimension | Target | Rationale | |-----------|--------|-----------| | **Pre-load context** | <100k tokens | SoT files + EPIC + code references | | **Working room** | >100k tokens | Space for tool outputs, debugging, iteration | | **Session goal** | 1 checkpoint | Clear "done" state per ses
Read more
name: prd-v07-epic-scoping description: Transform v0.6 specifications into context-window-sized work packages (EPICs) during PRD v0.7 Build Execution. Triggers on requests to create epics, scope work, break down implementation, or when user asks "create epics", "scope work", "break down work", "context window sizing", "what to build first?", "implementation planning", "epic breakdown". Consumes API-, DBT-, FEA-, ARC-. Outputs EPIC- entries with objectives, ID references, dependencies, and context windows. Feeds v0.7 Test Planning. context: fork allowed-tools: - Read - Write - Edit - Glob - Grep - Bash
Epic Scoping
Position in workflow: v0.6 Technical Specification → **v0.7 Epic Scoping** → v0.7 Test Planning
Consumes
This skill requires prior work from v0.6 Technical Specification:
- **API-\* endpoint contracts** (from v0.6 Technical Specification) — Endpoints define what must be built; API count signals complexity
- **DBT-\* data model specifications** (from v0.6 Technical Specification) — Data entities and relationships inform natural boundaries
- **ARC-\* architecture decisions** (from v0.6 Architecture Design) — System structure, module boundaries, and integration patterns define scoping boundaries
- **FEA-\* feature entries with MVP-SCOPE** (from v0.3 Features Value Planning) — MVP boundary determines EPIC scope; post-MVP features defer to backlog
- **Existing EPIC-\* entries** (if brownfield) — Inherited work packages constrain and sequence new EPICs
This skill assumes v0.6 Technical Specification is complete with API-/DBT- entries providing implementation contracts.
Produces
This skill creates/updates:
- **EPIC-\* entries** (context-window-sized work packages, status-based) — Scope of work that fits in AI agent working memory with explicit dependencies, pre-load context budget, session state tracking, and acceptance criteria
- **EPIC dependency graph** — Sequencing showing which EPICs must complete before others; identifies infrastructure/foundation EPICs, critical path EPICs, and optional/secondary EPICs
- **Context capsule specification** — Pre-load checklist (SoT files, key IDs, code references) and working room estimate ensuring EPIC doesn't exceed 100k context tokens
All EPIC- entries are **work package specifications**, not confidence-based. They are:
- **Sized for context windows** (3-5 APIs, 2-4 DBT tables, 1-2 UJs, <100k pre-load tokens)
- **Fully traceable** (every EPIC references API-, DBT-, BR-, UJ-, TEST- from upstream)
- **Sequenced explicitly** (dependencies form a DAG; no circular dependencies)
- **Deliverable-focused** (measurable completion with acceptance criteria)
Example EPIC- entry (Auth Infrastructure):
EPIC-01: User Authentication State: Planned Lifecycle: v0.7 Build Execution Branch: epic/EPIC-01-auth ## 0. Context Capsule ### Resource Envelope | Dimension | Target | Notes | |-----------|--------|-------| | Pre-load Context | ~40k tokens | Auth SoT + API-001–005 specs + DBT-010/011 schema | | Working Room | ~160k tokens | Plenty of space for implementation | | Session Goal | Checkpoint C1 | Database schema complete | ### Dependencies | Type | Items | Status | |------|-------|--------| | Requires | None | First EPIC — foundation | | External | Supabase project created | Ready | | Enables | EPIC-02 (reports), EPIC-03 (data sources) | Blocked until auth completes | ### Pre-load Checklist - [ ] SoT/SoT.BUSINESS_RULES.md — IDs: BR-001, BR-002 (auth rules) - [ ] SoT/SoT.API_CONTRACTS.md — IDs: API-001–005 (auth endpoints) - [ ] SoT/SoT.TECHNICAL_DECISIONS.md — IDs: TECH-003 (Clerk), ARC-003 (JWT strategy) ## 2. Objective & Scope Goal: Enable users to authenticate with email/password, manage sessions, and maintain security. Deliverables: - [ ] User registration with email/password (API-001) - [ ] Login/logout functionality (API-002, API-003) - [ ] Session management with refresh tokens (API-004) - [ ] Password reset flow (API-005) - [ ] Users and sessions schema (DBT-010, DBT-011) Out of Scope: Social auth (EPIC-02), team invites (EPIC-05), admin user management (EPIC-07) ## 3. Context & IDs | Type | IDs | |------|-----| | Business Rules | BR-001 (email uniqueness), BR-002 (password requirements), BR-010 (auth workflow) | | User Journeys | UJ-000 (onboarding), UJ-010 (login) | | APIs | API-001 to API-005 | | Data Models | DBT-010 (users), DBT-011 (sessions) | | Architecture | ARC-003 (JWT strategy), TECH-003 (Clerk) | | Features | FEA-010 (signup), FEA-011 (login) — both in MVP-SCOPE | | Tests | TEST-001 to TEST-015 (auth test suite) | ## 4. Execution Plan (5 Phases) [Phase structure from skill as is] Related IDs: TECH-003, ARC-003, FEA-010/011, API-001–005, DBT-010/011, BR-001/002/010
Core Concept: Epic = Context Window
> An EPIC is not a "big user story." It is a **cognitive boundary**—a scope of work that fits in working memory (human or AI). The goal is to load exactly what's needed to complete a focused task without distraction.
**The question is not** "How long will this take?" but **"Can an agent complete this without needing more context than fits in a session?"**
Sizing Rules
| Size | Characteristics | Action | |------|-----------------|--------| | **Right-sized** | 3-5 API endpoints, 2-4 DBT tables, 1-2 UJ flows | Good fit ✓ | | **Too big** | >10 APIs, >5 tables, multiple unrelated features | Split by domain | | **Too small** | Single endpoint, no meaningful deliverable | Merge with related |
**Rule of thumb**: If you can't describe the EPIC's goal in one sentence, it's too big.
Context Budget Guidelines
EPICs are **context capsules** — work units sized for AI agent handoffs.
| Dimension | Target | Rationale | |-----------|--------|-----------| | **Pre-load context** | <100k tokens | SoT files + EPIC + code references | | **Working room** | >100k tokens | Space for tool outputs, debugging, iteration | | **Session goal** | 1 checkpoint | Clear "done" state per ses
PRD-driven Context Engineering: A systematic approach to building AI-powered products using progressive documentation and context-aware development workflows
Repo: mattgierhart/PRD-driven-context-engineering
Other skills on prd-driven-context-engineering.
- /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].
Open skill - /ghm-gate-check
Validates gate criteria before PRD lifecycle advancement by delegating to the readiness scoring pipeline (scripts/readiness.py). Returns a graduated PASS / WARN / BLOCK verdict with top blockers and their causal chain. Triggers before advancing from v0.X to v0.Y or explicit
Open skill - /ghm-harvest
Extracts durable insights from temp/ files to SoT during EPIC Phase E. Triggers at EPIC completion or explicit `/ghm-harvest` invocation. Outputs new SoT entries and archive manifest.
Open skill - /ghm-id-register
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 entry with validated cross-references.
Open skill - /ghm-self-install
Install the PRD-Driven Context Engineering methodology into a fresh OR existing repository — the subscription-native alternative to forking the whole repo. Runs an interactive wizard that seeds the framework (.claude/ hooks, skills, agents, rules, scripts) without clobbering
Open skill - /ghm-sot-builder
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, or when user says "I need to track [X] but there's no SoT for it", "create SoT", "new source of truth". Outputs a
Open skill

