본문으로 건너뛰기
Skillpedia
테스트48k · #6171

what-could-break

하는 일

이 도구는 코드를 바꿀 때 무엇이 깨질 수 있는지 찾는 데 도움을 줍니다. 수정한 부분뿐 아니라, 직접 관련되지 않은 시스템의 다른 부분이 그 변경으로 어떤 영향을 받을 수 있는지도 확인합니다.

사용하는 경우

  • ✓여러 코드 부분에 걸친 큰 변경을 앞두고 있을 때.
  • ✓여러 프로그램이 사용하는 파일을 편집할 때.
  • ✓작은 변경이라도 예상치 못한 문제를 일으키지 않게 하고 싶을 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/what-could-break/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/what-could-break/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에서 그대로 가져왔습니다.

What Could Break

Overview

Listing callers is not the job. Grep does that in a second. This skill finds the breakage grep will not show you, and produces one proof that the change is safe.

Run it before design, not only before merge. Whenever a task asserts something about existing code ("X already handles Y", "just make X public"), that assertion is a hypothesis, and the census of real consumers decides the design.

When to Use

  • Use before any multi-file edit, or an edit to a shared path: API payload, config, stored data, a client other apps read, a prompt or policy file
  • Use when the user asks "what could this break" or "blast radius of X"
  • Use for a small diff you do not trust
  • Use when a brief asserts something about existing code, before you design against that assertion

How It Works

Step 1: Do not trust your own writeup

A risk analysis that sounds right is worthless: it reads as convincing whether or not it is true. Find the one or two facts the whole change depends on, and get each one as far down this ladder as is cheap. Say where it stopped.

  1. You said so. Worth nothing on its own.
  2. You pointed at it. A real file:line, or the library's own source at the pinned version.
  3. You walked it. You traced the bad case step by step and it does not reach.
  4. You ran it. A script or test calls the real code and fails loud if you are wrong.
  5. You saw it live. Reproduced in the running app, service or device.

Rung 4 is usually one small script that imports the same module production runs and calls the exact function you are worried about, with the input you are worried about.

Step 2: Read the change

The diff, the symbols it adds, changes and deletes, and what it now does differently, including what the diff does not spell out. git log -S '<symbol>' and git log -L :<function>:<file> show why the old shape exists; a guard that looks pointless often has a commit explaining the incident it stopped.

Step 3: Find the one fact it is safe because of

Most risky-looking changes are safe because of one fact ("this only drops cache entries that are already expired", "no client reads this field"). If it holds, most risks clear at once. If you cannot find one, the change is not understood yet.

Step 4: Look where grep stops

Search for the literal value, the field name, the error text and the old behavior, not only the symbol you renamed. Then check each of these by hand:

  • The same rule living twice. A second config file, a fallback path that hardcodes the old default, a copy synced into another repo, a constant duplicated in a migration or test fixture, a feature flag default.
  • Prompts and agent files that restate the rule. System prompts, agent and skill files, AGENTS.md, CLAUDE.md, runbooks. An agent obeys the stale sentence, not your code.
  • Every other client. Web, iOS, Android, desktop, CLI, extensions, partner integrations. Mobile clients in users' hands stay on the old version for weeks: what does an old client do with the new shape, and a new client with the old server?
  • Wire formats. JSON field names and types, enum values, null versus missing, date formats, pagination shape, error codes, webhook payloads, queue schemas, GraphQL and protobuf contracts.
  • Stored state. Columns and their defaults, rows written under the old shape, cache entries, files on disk, append-only logs, session and cookie contents, search indexes. Old data outlives the deploy.
  • Environment and secrets. An env var renamed in code but not in the deploy config, CI, the image, or the second service that reads it.
  • Processes that restart separately. Web server, workers, cron jobs, serverless functions, the mobile app, a sidecar. During a rollout one runs new code while another runs old code against the same data. Can both coexist for an hour?
  • Timing and concurrency. Two writers on the same row or key, a retry that now fires twice, ordering that only held because one step was slow.
  • Library source at its pinned version. Read the dependency's code at the lockfile version, not your memory of its docs.
  • Generated and vendored code. Clients generated from a schema, vendored copies, committed build artifacts, bundles whose cache-busting key did not change.
  • Tests and fixtures that encode the old behavior. A test that passes because its fixture still has the old shape proves nothing about the new one.

…

자주 묻는 질문

그냥 ‘grep’을 쓰면 안 되나요?

‘grep’은 특정 텍스트를 검색합니다. 이 도구는 더 나아가 코드가 실제로 어떻게 작동하고 다른 부분과 어떻게 통신하는지까지 확인하는데, ‘grep’은 그럴 수 없습니다.

‘rung 4’는 무슨 뜻인가요?

테스트나 스크립트가 예상되는 입력으로 실제 코드를 실행하고, 문제가 있으면 실패하는 확신 수준입니다. 코드가 의도대로 작동한다는 것을 증명하는 방법입니다.

‘와이어 형식(wire formats)’이란 무엇인가요?

시스템의 여러 부분 사이에서 데이터가 교환되는 방식입니다. JSON이나 XML 같은 메시지 형식, 필드 이름, 데이터 종류, 오류를 전달하는 방법 등을 포함합니다.

상세 정보

작성자의 원본 설명

Find what a change breaks outside its own diff, then prove the one fact that makes it safe by running real code. Use before any multi-file edit or an edit to a shared path.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#6171
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬