AGENT SKILL

sac-pack

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

License 许可
MIT
最近更新
2026-09-20
Stars
★ 1
Forks
2

01 前言 Front Matter

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

03 SKILL.md 正文

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.

04 同仓库更多 Skills