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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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_countover the trailing 6 months,last_fix_days_ago, abug_magnetflag for sustained recent fix pressure, andtop_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_profilewithbug_magnetset — 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.
댓글
- …
이 저장소의 다른 스킬
architectural-decisions
8.1k에이전트가 아키텍처를 바꾸기 전에 기록된 결정과 이력을 살펴, 코드가 왜 그렇게 만들어졌는지 찾도록 돕습니다.
change-review
8.1k에이전트가 풀 리퀘스트나 변경 묶음을 병합 전에 검토해, 위험도와 영향받는 파일, 함께 바꿔야 할 것을 보여 주도록 돕습니다.
code-health
8.1k에이전트가 파일별 코드 건강도를 점수 매기고 가장 위험한 파일을 찾아 다음에 리팩터링할 대상을 고르도록 돕습니다.
codebase-exploration
8.1k에이전트가 코드가 어떻게 동작하는지, 누가 무엇을 호출하는지, 무엇이 어디에 만들어졌는지 답하며 낯선 프로젝트를 빠르게 이해하도록 돕습니다.