Software Engineering
Build a Repository Architecture Graph
A layered repository map that connects entry points, modules, data stores, external systems, and ownership so engineers can navigate change impact without pretending the graph is complete.
The process
Work it in this order.
- Set the repository revision, languages, graph purpose, intended level of detail, and the questions the graph must help answer.
- Inventory entry points, build and deployment files, packages, services, data stores, queues, external integrations, and generated or vendored areas.
- Trace imports, calls, events, configuration, and data flows using available source and repository evidence, recording exact paths and confidence.
- Arrange nodes and relationships into useful system, container, component, and code layers without collapsing distinct responsibilities into one box.
- Add owners, tests, documentation, runtime dependencies, and external-system labels, and mark inferred, stale, or unavailable relationships explicitly.
- Validate the graph against representative journeys, builds, and tests, then record drift, missing edges, and the next owner for each correction.
- Publish a versioned graph or diagram with legend, evidence links, update trigger, coverage limits, and unresolved risks rather than an unqualified complete map.
Bring this
Inputs the cat will ask for.
- repository and revision
- architecture question and scope
- available code and history access
- desired audience and update owner
Router + one playbook
Route first. Choose one.
Cat Paw loads one playbook per task rather than merging several. Start with this router; the remaining paths are workflow-specific candidates it can inspect.
- Router:
code-graph-pack skills/code-graph-pack/repository-architecture-graph/SKILL.md
Guardrails
The boundaries travel with the prompt.
- Verify the actual tools, accounts, permissions, and workspace before starting; never claim an unavailable tool, account, source, or capability.
- Use Latch/target-workspace for private code, artifacts, live probes, or non-public data; if that access is unavailable, stop at the boundary and report the blocker rather than substituting a guess.
- Pause for explicit approval before consequential external actions; return evidence and unresolved risks, assumptions, and any action still awaiting approval.
Done means
A checkable finish.
A versioned repository architecture graph links verified components and flows to source evidence, ownership, tests, confidence, coverage limits, and unresolved risks.
Sources
Where this process came from.
- github.com/Graphify-Labs/graphify/tree/4c735618f3d56fd622c2049771584621c31ba9ff/
- c4model.com/
- docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
Sources establish the workflow pattern. Reddit and community posts, where present, are treated as practitioner anecdotes rather than universal facts.