skills/graphify-architecture-review/SKILL.md
Run reusable Graphify-led architecture analysis for codebases using semantic graphs, optional subagent extraction, graph synthesis, source-search validation, graph-shape review, and follow-up refactor planning. Use when asked to analyze repo architecture, god nodes, surprising edges, topology, module boundaries, or graph-derived cleanup/refactor opportunities.
npx skillsauth add rarestg/rarestg-skills graphify-architecture-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to turn a codebase graph into source-validated architecture insights and concrete refactor plans.
Read references/SOP.md before running the workflow. It is the detailed
operating model for this skill.
graphify-out/ and .graphify_* are ignored unless the user wants
generated graph artifacts versioned.GRAPH_REPORT.md, graph.json, and graph.html.Use subagents or parallel investigators for extraction chunks, investigation, synthesis, and plan review when available. Give each one exact files or docs, one bounded question, and a required output shape.
Do not delegate final acceptance. Validate important conclusions locally against source.
Before judging god nodes, bridges, or topology, filter or discount generic labels such as:
.new().default().drop().clone().from().into()Prefer normalization over deletion. Qualify methods by receiver/type when
possible, remove unresolved generic nodes and incident inferred edges, preserve
domain-specific short methods, and treat main(), run(), .load(),
.open(), .save(), .build(), and .parse() as suspicious but not
automatically noisy.
Process GRAPH_REPORT.md in this order:
For each important finding, record graph evidence, source evidence, current
behavior, why the connection exists, verdict, and recommended action. Use
verdicts: good, neutral, bad, artifact, or watchpoint.
Use Graphify for discovery:
graphify explain "<node>" --graph graphify-out/graph.json
graphify path "<node-a>" "<node-b>" --graph graphify-out/graph.json
graphify query "<question>" --graph graphify-out/graph.json --budget 2000
graphify query "<question>" --dfs --graph graphify-out/graph.json --budget 2000
Use source search for proof. Rewrite graph output as observable source behavior and search the likely owner path before accepting a graph claim.
Create concise review docs using the repo's preferred docs location, or an ignored scratch folder until the user chooses a durable location:
index.mdoverview.mdgod-nodes.mdsurprising-connections.mdquestion-answers.mdgraph-shape-findings.mdKeep generated graph artifacts uncommitted unless explicitly requested.
Treat graph topology as triage, not proof. Do not trust visual position unless
coordinates are persisted. Filter contains edges and generic labels first.
Validate stragglers, bridge nodes, and community boundaries in source.
Classify topology findings as real boundary, watchpoint, fixture noise, file-node artifact, generic-label artifact, or not actionable.
Stop when graph findings are classified, high-value questions are source-validated, weak topology findings are downranked or promoted with evidence, strong opportunities are captured as plans, and no new validated opportunity outranks the current plan set.
tools
Break large code changes into small, stacked pull requests using vanilla git and the gh CLI. Auto-trigger when implementing a feature or change that spans multiple logical steps, touches several files, or will exceed ~200 changed lines. Also trigger on "stack PRs", "break this into smaller PRs", "stacked diffs", or "create a PR stack". Do NOT trigger for single-file fixes, small bug fixes, or changes under ~200 lines that are a single logical unit.
development
Export a PR's clean inline review comments, CodeRabbit outside-diff comments, and CodeRabbit nitpicks into local files, then triage review feedback through a stack-aware orchestrator workflow with durable reply drafts for follow-up PRs. Use when given a GitHub pull request URL and asked to work through review comments without relying on noisy raw API blobs.
development
Create, rewrite, or maintain a repository's AGENTS.md as a short dispatcher for coding agents. Use when asked to write an AGENTS.md from scratch, update stale agent instructions, shrink a bloated AGENTS.md, add repo guidance for AI/coding agents, or document where agents should find source-of-truth docs, invariants, validation commands, and workflow rules. Triggers on: "create AGENTS.md", "write an agents file", "update AGENTS.md", "maintain AGENTS.md", "fix our agent instructions", "make this repo easier for Codex/Claude/agents", "rewrite this bloated AGENTS.md".
testing
Run a meaningful coding ticket through a delegated delivery workflow: tighten the ticket, assign one ticket owner, delegate implementation, get an independent review, scan for high-value simplification, validate the result, and return a compact outcome packet. Use when the user wants structured agent execution with clear scope, ownership, and review rather than a single-pass implementation. Triggers on: "delegate this ticket", "use a sub-PM", "run this through worker and reviewer", "own this ticket end to end", "send this for independent review", or "close this ticket out with review". Skip trivial fixes and tasks that are still too vague to delegate.