architecture-survey
What it does
This skill has an agent look over a code project's structure to find where changes are getting harder. It is for people who want a periodic health check of their code layout before deciding what to fix.
When to use it
- βWhen your code feels harder to change than it was recently.
- βWhen a small edit keeps touching many files or unrelated tests.
- βWhen you want a regular review of the project's structure and its weak spots.
Skill link
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/architecture-survey/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βOur code is getting harder to change. Can you survey the project structure and tell me which parts should be simplified first?β
5 new skills a week. 1 minute to read.
How it works
The agent reads the project's guiding documents and the recent history of changes. It walks the code's modules, looks for shallow or tangled parts, and reports ranked candidates with evidence. It stops there and does not refactor anything.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
A surveyor charts the reef; the captain decides whether to dredge. The survey reads the water, reports what it found with evidence, and stops. It is the maintenance twin of the loft: where the loft answers one design question before building, the survey answers "where is this repo getting harder to change, and what would deepen it" after building.
When to survey
- Periodically β every few days of active building, or after a batch of tickets lands.
- Out of turn, when the repo starts feeling harder to change than it was last week: edits touching more files than they should, interfaces growing to satisfy one caller, tests that must be updated in lockstep for unrelated reasons.
Optional argument narrows the survey to a directory or area; with no argument, survey the whole repo.
The survey
- Read the repo's architecture principles (CLAUDE.md, ADRs) and the seeded seam vocabulary in
docs/standards/architecture.mdβ the definitions of seam and deep module. - Walk the module graph of the target area β and when no direction was given, weight the walk toward the yard's busy water: read a good stretch of the commit history first and let the areas that keep coming up pull the survey, because deepening pays off where future edits will land. A scattered history with no hot spot widens the net.
- Look for three finding classes:
- Shallow modules β wide interface, thin behavior; callers know more than the module hides.
- Hypothetical seams β a boundary crossed by exactly one adapter with no second caller; checkable by counting callers.
- Logic behind the wrong seam β behavior living on the far side of a boundary that does not own its data.
Apply the demolition test to every suspect: if the module were removed, would its complexity vanish (a pass-through wearing a uniform) or reappear across its callers (load-bearing)? Only load-bearing shallowness is a finding.
The report
Rank candidates by leverage against risk. Each candidate carries:
- Evidence β file:line for the interface, its callers, and the behavior.
- The deepening move β what to deepen, merge, or move, in one sentence.
- The risk note β what the move touches and what could break.
Every candidate states the yard's shared findings vocabulary β severity (how much friction the shallowness causes), confidence (a survey finding is heuristic-class and therefore low by construction; the mechanically checkable end of the scale belongs to the drydock --check audit), and actionable (whether the deepening move is specific enough to start from the report alone). End the report with the top recommendation: the one candidate to deepen first, and why β the captain reads one card, not the whole reef.
Logbook conflicts. A candidate that contradicts an existing ADR is nominated only when the friction is real: the card names the ADR and why the water has changed. Theoretical conflicts stay off the report β the logbook's rejections are not re-litigated by default.
The report may be rendered visually with the repo's diagram skill when the yard has one; the prose report stays the source of truth either way.
Handoff
The report is decision input, not work. Candidates feed the mission brief (launch Phase 1) or grilling material for the next effort. Survey proposes; the captain disposes.
Grill the top candidate on the spot. When the captain wants to act on the survey immediately rather than filing it, the report's top recommendation becomes the first question of a design-tree interview in the same session β launch Phase 1's frontier protocol, run right here: what would deepening this candidate involve, what does it cost, what does it unblock. The evidence is fresh and the captain is present; a finding worked now is a decided effort, not a report waiting to go stale. The survey still makes no edits β the interview decides, and delivery goes through launch's own gates.
A candidate the captain declines with a load-bearing reason is offered as an ADR β the same ADR test launch applies (hard to reverse, surprising without context, a real tradeoff) β so the next survey does not re-nominate the same reef. Declined without one, it simply sinks.
Non-goals
- No code edits. The survey never refactors, not even "while it's fresh."
- Not a gate. Nothing blocks on the report.
- Not merged into the drydock drift audit.
--checkstays strictly mechanically checkable β high-confidence findings only.
FAQ
Does the agent fix the problems it finds?
No. It only reports candidates, and a person decides what to change.
Can I limit the survey to one folder?
Yes. An optional argument narrows the survey to a directory or area.
How often should I run it?
Periodically, such as after a batch of tasks is finished, or whenever the code starts feeling harder to change.
Details
Original description by the author
Periodic architecture survey β walks the module graph and reports ranked deepening candidates (shallow modules, hypothetical seams, logic behind the wrong seam). Survey, not rescue: it finds candidates and hands them to the captain; it never refactors on its own.
Popularity
- GitHub stars
- 41k
- Ranking position
- #6991
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-doc-discipline
41kTeaches your agent to write instructions that other AI agents can follow on their own, with rules that can be checked and a clear reason behind each.
ai-slop-cleaner
41kHelps your agent tidy up AI-written code that works but is bloated or repetitive, removing extra code without changing what it does.
ask-navigator
41kHelps your agent turn a fuzzy project into a map of clear decision questions, then work through them one at a time until the path is clear.
ask
41kHelps your agent send a question or task to another AI tool, such as Codex, Gemini or Claude, and save the answer as a file.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.