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

pre-modification-check

하는 일

이 스킬은 AI가 파일을 바꾸기 전에 그 파일의 위험도를 평가하게 합니다. Repowise로 색인된 프로젝트에서 공유되거나 취약한 코드를 깨뜨리지 않으려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓AI가 공유 유틸리티나 핵심 모듈을 고치려 할 때.
  • ✓언급하지 않은 파일이 부수적으로 바뀌려 할 때.
  • ✓여러 파일을 함께 고치거나 지우려고 하며 영향을 먼저 알고 싶은 경우.

스킬 링크

https://github.com/repowise-dev/repowise/blob/main/plugins/claude-code/skills/pre-modification/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/repowise-dev/repowise/blob/main/plugins/claude-code/skills/pre-modification/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분.

작동 방식

이 스킬은 파일에 대해 위험 검사를 실행합니다. 수정 이력, 의존 파일, 보통 함께 바뀌는 파일, 담당자, 테스트 공백, 보안 신호를 보고합니다. AI는 편집 전에 이 결과를 읽습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Pre-Modification Check with Repowise

Before modifying files in a Repowise-indexed codebase, assess the impact.

Before editing a file

Call get_risk(targets=["path/to/file.py"]). Per file it returns hotspot_score, trend, risk_type, impact_surface (top 3), dependents_count, co_change_partners, primary_owner, test_gap, and security_signals. Read it for:

  • Bug-fix history (defect_profile) — present only on files with counted fixes: fix_count over the trailing 6 months, last_fix_days_ago, a bug_magnet flag for sustained recent fix pressure, and top_symbols (the per-symbol counts are approximate — read them as "mostly here"). A file that keeps getting fixed is the strongest single signal that the next edit breaks something; lead with it.
  • Hotspot status (hotspot_score, trend) — high-churn × complex? Extra care needed.
  • Dependents (dependents_count, impact_surface) — how wide is the blast radius?
  • Co-change partners — files that change together with this one (often without an import link); you may need to update them too.
  • Ownership / bus factor — who owns it, and whether a single author maintains it.
  • Test gap & security signals — flag untested or security-sensitive files before touching them.

When modifying multiple files

Batch all targets into one call: get_risk(targets=["file1.py", "file2.py", "module/"]).

When to warn the user

If get_risk shows:

  • A defect_profile with bug_magnet set — say so plainly: this file has been fixed repeatedly and recently
  • Hotspot score above 90th percentile — mention this is a frequently-changed, high-risk file
  • More than 10 dependents — list the top dependents; API changes here will break consumers
  • Bus factor of 1 — note that a single person maintains this code
  • Risk type is "bug-prone" or "high-coupling" — flag explicitly before making changes

Before refactoring or moving code

Call get_context(targets=["file.py"]) first to understand the full context: what uses this file, what decisions govern it, and why it's structured this way. This prevents accidentally violating architectural decisions.

For a heavy refactor, also call get_health(targets=["file.py"]) — the marker findings (complexity, deep nesting, low cohesion, duplication) tell you what to improve while you're in there, and give you a before/after score.

Error handling

If get_risk returns a tool error, the MCP server may not be running. Proceed with the modification but note that risk assessment was unavailable.

자주 묻는 질문

점검으로 무엇을 알 수 있나요?

버그 수정 이력, 의존하는 파일 수, 함께 바뀌는 파일, 주요 담당자, 테스트가 빠졌는지를 알 수 있습니다.

여러 파일을 한 번에 점검할 수 있나요?

네. 대상 파일을 한 번의 점검으로 모두 묶으라고 스킬이 설명합니다.

편집을 막나요?

막지 않고 알려 줍니다. 그래서 AI가 추가로 주의하거나 관련 파일을 함께 갱신할 계획을 세울 수 있습니다.

상세 정보

작성자의 원본 설명

Use before modifying, refactoring, or deleting files in a codebase that has Repowise indexed (indicated by a .repowise/ directory). Activates when Claude is about to edit code, especially shared utilities, core modules, or files the user didn't explicitly mention. Helps assess impact and avoid breaking things.

repo: repowise-dev/repowise

인기도

GitHub 스타
8.1k
순위
#12569
라이선스
AGPL-3.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬