architecture-survey
できること
このスキルは、エージェントにコードプロジェクトの構造を確認させ、変更が難しくなっている箇所を見つけます。何を修正するかを決める前に、コードの構成を定期的に点検したい人向けです。
使う場面
- ✓最近、コードが以前より変更しにくくなったと感じるとき。
- ✓小さな編集で、多くのファイルや無関係なテストに影響が及ぶとき。
- ✓プロジェクトの構造と弱点を定期的に確認したいとき。
スキルのリンク
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/architecture-survey/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“コードが変更しにくくなっています。プロジェクトの構造を調べて、最初に簡素化すべき部分を教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、プロジェクトの指針となる文書と、最近の変更履歴を読みます。モジュールを順にたどり、浅い部分や絡み合った部分を探し、根拠とともに優先順位のついた候補を報告します。リファクタリングはせず、ここで止まります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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.
よくある質問
見つかった問題をエージェントが修正しますか?
いいえ。候補を報告するだけで、何を変えるかは人が決めます。
調査を1つのフォルダに限定できますか?
はい。任意の引数で、ディレクトリや領域に調査を絞り込めます。
どのくらいの頻度で実行すべきですか?
定期的に、例えば一連のタスクが終わった後や、コードが変更しにくくなってきたと感じたときに実行します。
詳細
作者による元の説明
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.
人気
- GitHubのスター
- 41k
- ランキング
- #6991
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-doc-discipline
41kエージェントが、他のAIエージェントが独力で従える指示を書けるよう支援します。確認できるルールと、各ルールの理由を明示します。
ai-slop-cleaner
41kエージェントが、動くけれど肥大化して繰り返しの多いAI生成コードを整理できるよう支援します。動作を変えずに、余分なコードを取り除きます。
ask-navigator
41kエージェントが、あいまいなプロジェクトを明確な決定事項の一覧に変え、1つずつ検討して進む道筋を見えるようにします。
ask
41kエージェントが、Codex、Gemini、Claudeなどの別のAIツールに質問やタスクを送り、回答をファイルとして保存できるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。