# Pkc Context

> Build a progressive-disclosure context pack for a Feature (or any concept). Supports --tiny (1 hop / 8 nodes) for chat focus and mermaid graphs. Auto-run when starting work on a Feature.

- Skill: `spillwavesolutions/pkc-context` (Agent Skill)
- Install (CLI): `npx skillmds@latest add spillwavesolutions/pkc-context`
- Raw SKILL.md: https://api.skillmd.com/api/skills/spillwavesolutions/pkc-context/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: spillwavesolutions (https://skillmd.com/u/spillwavesolutions)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/spillwavesolutions/pkc-context

---


# PKC Context Pack

**Auto-inject rule:** When the user opens or starts work on a Feature path, the parent should spawn `knowledge-retriever` (`/pkc-retrieve`) rather than packing inline. This skill is the pack procedure the retriever (and post-capture verification) runs. Lead with DecisionRecords + originating Meetings/Experiments.

```bash
# Standard (2 hops, ~20 nodes)
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/pkc_pack.py" features/<slug>.md --repo . --hops 2

# Tiny / ADHD / chat (1 hop, 8 nodes)
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/pkc_pack.py" features/<slug>.md --tiny

# Mermaid only
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/pkc_pack.py" features/<slug>.md --mermaid

# Compact card for a retriever sub-agent (no mermaid / ranked bodies)
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/pkc_pack.py" features/<slug>.md --tiny --summary --json
```

Prefer okf-plugin pack when installed. Never invent edges.

**Token budget.** Default is 1/4 of `SECOND_BRAIN_WINDOW_TOKENS` (128000 → 32000).
Override with `--max-tokens` or `SECOND_BRAIN_PACK_MAX_TOKENS`. Over budget exits
1 and writes nothing. `--max-nodes` / `--tiny` clip the walk; they are not a
token budget. Bodies stay off unless that node is the pack root.


