AGENT SKILL

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
所属仓库
Anselmoo/werkstoff
最近更新
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

  1. Extract only relationships relevant to the question. Do not dump the whole graph.
  2. Build indexed triples: numbered {index, subject, predicate, object}.
  3. 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.
  4. Choose a start_node and state why.
  5. 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