zirkel-map-relationships
Answers a question that turns on entity/dependency/causal structure by extracting indexed relationship triples and traversing them hop by hop, citing the triple index at every hop. Use when the answer requires following a chain through named entities and relationships: "how does A affect D through the chain", "trace the dependency path", "who reports to whom", "what causes what here", multi-hop "why" questions, or a zirkel-solve stage that needs graph traversal. Not for deriving a repository's real import/module graph from source — "map this repo's architecture", "show me the real module boundaries", "map stages and wires" belong to befund-stage-map, which parses imports per language and writes the stage graph other skills consume. Use this skill only to reason over a relationship graph whose entities are already established, in code or any other domain.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- zirkel-map-relationships
- description
- Answers a question that turns on entity/dependency/causal structure by extracting indexed relationship triples and traversing them hop by hop, citing the triple index at every hop. Use when the answer requires following a chain through named entities and relationships: "how does A affect D through the chain", "trace the dependency path", "who reports to whom", "what causes what here", multi-hop "why" questions, or a zirkel-solve stage that needs graph traversal. Not for deriving a repository's real import/module graph from source — "map this repo's architecture", "show me the real module boundaries", "map stages and wires" belong to befund-stage-map, which parses imports per language and writes the stage graph other skills consume. Use this skill only to reason over a relationship graph whose entities are already established, in code or any other domain.
03 SKILL.md 正文
zirkel-map-relationships
Extract the relevant triples, pick a start node, traverse, and validate with the guard. The guard enforces the triple ceiling and that every hop cites a real triple.
The guard is python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/zirkel.py", typed in full in each command below.
Process
- Extract only relationships relevant to the question. Do not dump the whole graph.
- Build indexed triples: numbered
{index, subject, predicate, object}. - The table MUST stay at roughly 50 triples or fewer. If the relevant graph is larger, pre-filter to the relevant subgraph — do not inject the full graph. The guard rejects more than 50.
- Choose a start_node and state why.
- Traverse: ordered
{hop, triple_index, predicate, to}. Every hop MUST cite the triple index it uses. Never state a relationship as true without pointing at its numbered triple.
Validate
echo '{"triples":[
{"index":1,"subject":"A","predicate":"depends_on","object":"B"},
{"index":2,"subject":"B","predicate":"calls","object":"C"}
],"traversal":[
{"hop":1,"triple_index":1,"predicate":"depends_on","to":"B"},
{"hop":2,"triple_index":2,"predicate":"calls","to":"C"}
]}' | python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/zirkel.py" map -
A non-zero exit means either the triple count exceeded the ceiling or a hop cited a triple index not in the table — fix it before answering.
Output
- the indexed triple table
- start_node + reason
- the traversal, each hop citing its triple index
- the final answer stated with the complete citation path
04 同仓库更多 Skills
toy-check
A skill that checks things in the repository and reports what it finds.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
zirkel-verify-assumptions
Checks exactly ONE named assumption against real evidence in at most 3 steps and reports one outcome: confidence raised (>=90), reading changed, or still unresolved. Use to resolve a single load-bearing uncertainty — typically a blocking entry surfaced by zirkel-clarify-scope: "verify this one assumption", "is it actually true that X", "check this before we rely on it". For multiple uncertainties, invoke once per uncertainty — the step budget is never shared.