본문으로 건너뛰기
Skillpedia
일반 코딩41k · #6991

architecture-survey

하는 일

이 스킬은 에이전트가 코드 프로젝트 구조를 살펴보고 변경이 어려워지는 곳을 찾게 합니다. 무엇을 고칠지 정하기 전에 코드 구조를 주기적으로 점검하려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓코드가 최근보다 바꾸기 어려워졌을 때.
  • ✓작은 수정이 계속 여러 파일이나 관련 없는 테스트를 건드릴 때.
  • ✓프로젝트 구조와 약한 부분을 정기적으로 검토하고 싶을 때.

스킬 링크

https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/architecture-survey/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/architecture-survey/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  1. 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.
  2. 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.
  3. 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. --check stays strictly mechanically checkable — high-confidence findings only.
자주 묻는 질문

에이전트가 발견한 문제를 고치나요?

아니요. 후보만 보고하며, 무엇을 바꿀지는 사람이 결정합니다.

조사 범위를 한 폴더로 제한할 수 있나요?

네. 선택 인자로 조사 범위를 디렉터리나 영역으로 좁힐 수 있습니다.

얼마나 자주 실행해야 하나요?

주기적으로, 예를 들어 여러 작업이 끝난 뒤나 코드가 바꾸기 어렵다고 느껴질 때마다 실행합니다.

상세 정보

작성자의 원본 설명

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.

repo: Yeachan-Heo/oh-my-claudecode

인기도

GitHub 스타
41k
순위
#6991
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬