Battle-skills context
Generate context summary for a PRD. Use when user wants to create context, summarize PRD for onboarding, create a cheat sheet, or says 'context PRD-XXX', 'summarize PRD', 'context for PRD'.
install
source · Clone the upstream repo
git clone https://github.com/QuocTang/battle-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/QuocTang/battle-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/context" ~/.claude/skills/quoctang-battle-skills-context && rm -rf "$T"
manifest:
skills/context/SKILL.mdsource content
Generate Context Summary for PRD
Create a concise, scannable context document that gives anyone (new dev, AI agent, reviewer) a quick understanding of a PRD without reading the full document.
Input
- PRD ID: $ARGUMENTS
- If no argument provided, read
and ask the user which PRD to summarize.docs/02_prd/__00_index.md
Process
Step 1: Load Sources
- Read
to find the PRD file by IDdocs/02_prd/__00_index.md - Read the full PRD document
- Read the implementation plan in
if it existsdocs/03_implement_plan/ - Read existing contexts in
to avoid duplicationdocs/04_context/
Step 2: Extract Key Information
From the PRD, distill:
- What is being built and why (1-2 sentences)
- Target users
- Core requirements (top 5-7 FRs only, not all)
- Key constraints and dependencies
- Current status and phase
From the implementation plan (if exists):
- Tech stack summary
- Key architectural decisions
- Critical file paths
Step 3: Write Context
Use the template in references/context-template.md.
The context document should be:
- Short — fits on one screen (under 80 lines)
- Scannable — use bullet points, tables, no paragraphs
- Self-contained — reader doesn't need to open the PRD to understand the basics
- Linkable — reference back to PRD and impl plan for full details
Step 4: Save File
- Save to
(e.g.docs/04_context/ctx-<xxx>-<module-name>.md
, where 001 matches the prd number)ctx-001-ghost-runner-api.md - If
doesn't exist → create itdocs/04_context/