Sac Pack

Build progressive disclosure context packs (default 2-hop) for precise LLM queries over architecture knowledge.

spillwavesolutions e9c811c 1.1 KB Updated

File contents

SAC Pack

Walks outbound links[] from the seed plus inbound/backlinks (files that point at it). Inbound uses ripgrep when rg is on PATH; otherwise a full scan. Same graph either way. --no-rg forces the scan.

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/sac_pack.py" services/order-service.md --repo . --hops 2
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/sac_pack.py" services/order-service.md --repo . --tiny
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/sac_pack.py" services/order-service.md --repo . --tiny --summary
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/sac_pack.py" services/order-service.md --repo . --mermaid
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/sac_pack.py" services/order-service.md --repo . --no-rg --json

--summary is compact card-friendly stdout (bodies off, no mermaid), fail-closed on the same token budget. For parent topology questions, spawn architecture-retriever (sac-retrieve) instead of running this in the parent.

spillwavesolutions/system-architecture-capture/tree/main/skills/sac-pack commit e9c811cf57

Frequently asked questions

npx skillmds@latest add spillwavesolutions/sac-pack