1---2name: docs-ai-prd-23description: Write PRDs, specs, and project context optimized for coding assistants (Claude Code, Cursor, Copilot, Custom GPTs). Includes CLAUDE.md generation, session planning, and templates for creating documentation that tools can execute effectively.4---56# PRDs & Project Context78Create product requirements and project context that humans and coding assistants can execute effectively.910**Two capabilities:**111. **PRDs & Specs** - Requirements, specs, stories, acceptance criteria122. **Project Context** - Architecture, conventions, tribal knowledge (CLAUDE.md)1314**Modern Best Practices (Jan 2026)**: Context engineering (right info, right format, right time), decision-first docs, testable requirements with acceptance criteria, metrics with formula + timeframe + data source, cross-tool portability.1516## Workflow (Use This Order)17181. Pick the deliverable (PRD, AI PRD, tech spec, story map, CLAUDE.md).192. Gather inputs (problem evidence, users, constraints, dependencies, risks).203. Fill the template (write decisions first; keep requirements testable).214. Validate with checklists (requirements, edge cases, security/compliance as needed).225. Hand off with next actions (implementation plan, owners, open questions).2324## Quick Reference2526### PRDs & Specs2728| Task | Template |29|------|----------|30| PRD creation | [assets/prd/prd-template.md](assets/prd/prd-template.md) |31| Tech spec | [assets/spec/tech-spec-template.md](assets/spec/tech-spec-template.md) |32| Planning checklist | [assets/planning/planning-checklist.md](assets/planning/planning-checklist.md) |33| Story mapping | [assets/stories/story-mapping-template.md](assets/stories/story-mapping-template.md) |34| Gherkin/BDD | [assets/stories/gherkin-example-template.md](assets/stories/gherkin-example-template.md) |35| AI PRD | [assets/prd/ai-prd-template.md](assets/prd/ai-prd-template.md) |3637### Project Context (CLAUDE.md)3839| Context Type | Template | Priority |40|--------------|----------|----------|41| **Architecture** | [assets/architecture-context.md](assets/architecture-context.md) | Critical |42| **Conventions** | [assets/conventions-context.md](assets/conventions-context.md) | High |43| **Key Files** | [assets/key-files-context.md](assets/key-files-context.md) | Critical |44| **Minimal Start** | [assets/minimal-claudemd.md](assets/minimal-claudemd.md) | 5-min |45| **Cross-Tool** | [assets/cross-tool-context.md](assets/cross-tool-context.md) | Multi-tool |4647---4849## Decision Tree5051```text52User needs:53 ├─► AI-Assisted Coding?54 │ ├─ Non-trivial (>3 files)? → Planning checklist + agentic session55 │ └─ Simple (<3 files)? → Direct implementation56 │57 ├─► Project Onboarding?58 │ ├─ New to codebase? → Generate CLAUDE.md59 │ └─ Quick context? → Minimal CLAUDE.md60 │61 └─► Traditional PRD?62 ├─ Product requirements? → PRD template63 ├─ AI feature? → AI PRD template64 └─ Acceptance criteria? → Gherkin/BDD65```6667---6869## Cross-Tool Context Files7071| Tool | Location | Notes |72|------|----------|-------|73| Claude Code | `CLAUDE.md`, `.claude/` | Auto-loaded |74| Cursor | `.cursor/rules/` | Project rules |75| Copilot | `.github/copilot-instructions.md` | Workspace context |76| Generic | `AGENTS.md` | Tool-agnostic |7778---7980## CLAUDE.md / AGENTS.md Guidance8182- Start minimal: [assets/minimal-claudemd.md](assets/minimal-claudemd.md)83- Add only what’s needed: [assets/architecture-context.md](assets/architecture-context.md), [assets/conventions-context.md](assets/conventions-context.md), [assets/key-files-context.md](assets/key-files-context.md), [assets/dependencies-context.md](assets/dependencies-context.md), [assets/tribal-knowledge-context.md](assets/tribal-knowledge-context.md)84- Keep it executable: commands must run; include no secrets; prefer file paths over pasted code8586---8788## Do / Avoid8990### Do9192- Start with executive summary (decision, users, scope, success)93- Define acceptance criteria in testable language94- Keep requirements unambiguous (must/should/may)95- Link to supporting docs instead of pasting9697### Avoid9899- Vague requirements ("fast", "easy") without definitions100- Mixing draft notes and final requirements101- Metrics without measurement plan102- Docs with no owner or review cadence103- Dual-state wording that mixes live behavior, target behavior, and migration behavior in one statement104105---106107## LLM Ambiguity Gate (Required for planning docs)108109- Label every behavior as exactly one of: `Live now`, `Target`, or `Transition` (with owner + end condition).110- Label every metric as either `Reference signal` or `Release blocker`.111- Define one canonical feature-gating contract per feature; all other docs must link to it instead of restating variants.112- Keep assumptions/open questions separate from final decisions.113- If conflicts exist across docs, mark one canonical source and add follow-up tasks to resolve mirrors.114115---116117## Context Extraction118119Use:120- [references/architecture-extraction.md](references/architecture-extraction.md) for components/data flows121- [references/convention-mining.md](references/convention-mining.md) for naming/patterns122- [references/tribal-knowledge-recovery.md](references/tribal-knowledge-recovery.md) for git-history “why”123- [references/docs-audit-commands.md](references/docs-audit-commands.md) for audit commands and tool fallbacks124125---126127## Quality Checklist128129### PRD Quality130- [ ] Clear problem statement131- [ ] Measurable success criteria132- [ ] Unambiguous acceptance criteria133- [ ] Edge cases documented134- [ ] AI can execute without clarification135- [ ] Every behavior is labeled `Live now`, `Target`, or `Transition`136- [ ] Metrics are labeled `Reference signal` or `Release blocker`137- [ ] Each feature-gating rule has one canonical source (no conflicting duplicates)138139### CLAUDE.md Quality140- [ ] Architecture reflects actual structure141- [ ] Key files exist at listed locations142- [ ] Conventions match actual patterns143- [ ] Commands actually work144- [ ] No sensitive information145146---147148## Resources149150| Resource | Purpose |151|----------|---------|152| [references/agentic-coding-best-practices.md](references/agentic-coding-best-practices.md) | AI coding patterns |153| [references/requirements-checklists.md](references/requirements-checklists.md) | PRD validation |154| [references/traditional-prd-writing.md](references/traditional-prd-writing.md) | Classic PRD format |155| [references/architecture-extraction.md](references/architecture-extraction.md) | Mining architecture |156| [references/convention-mining.md](references/convention-mining.md) | Extracting conventions |157| [references/tribal-knowledge-recovery.md](references/tribal-knowledge-recovery.md) | Git history analysis |158| [references/docs-audit-commands.md](references/docs-audit-commands.md) | Audit shell commands |159| [references/stakeholder-alignment.md](references/stakeholder-alignment.md) | Stakeholder buy-in, RACI, conflict resolution |160| [references/acceptance-criteria-patterns.md](references/acceptance-criteria-patterns.md) | Testable ACs, BDD, edge case coverage |161| [references/prd-review-facilitation.md](references/prd-review-facilitation.md) | Running PRD reviews, feedback categorization |162| [data/sources.json](data/sources.json) | Curated external sources |163164## Templates165166| Category | Templates |167|----------|-----------|168| PRDs | prd-template, ai-prd-template, tech-spec-template |169| Planning | planning-checklist, agentic-session-template |170| Stories | story-mapping-template, gherkin-example-template |171| Context | architecture, conventions, key-files, minimal-claudemd |172| Stack-specific | nodejs-context, python-context, react-context, go-context |173174## Related Skills175176| Skill | Purpose |177|-------|---------|178| [docs-codebase](../docs-codebase/SKILL.md) | README, API docs, ADRs |179| [qa-docs-coverage](../qa-docs-coverage/SKILL.md) | Documentation gaps |180| [product-management](../product-management/SKILL.md) | Product strategy |181| [software-architecture-design](../software-architecture-design/SKILL.md) | System design |