pre-modification-check

Assess code edit impact in Repowise-indexed repositories via get_risk.

5.0k|548|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/repowise-dev/repowise --skill pre-modification-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-modification-check
Source: https://github.com/repowise-dev/repowise/tree/main/plugins/claude-code/skills/pre-modification
Command: npx skills add https://github.com/repowise-dev/repowise --skill pre-modification-check

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Assist engineers in understanding the risk and scope of code changes in a Repowise-indexed repository, preventing breakages and guiding PR reviews by surfacing hotspots, dependents, ownership, and bus-factor insights.

Core Features & Use Cases

  • Risk assessment using get_risk(targets=["path/to/file.py"]) to surface hotspot status, dependents, co-change partners, ownership, and bus-factor.
  • Context discovery with get_context(targets=["path/to/file.py"]) to map usage, decisions, and rationale behind the code.
  • Safe-edit guidance for batch edits and failure handling to maintain architectural decisions and minimize risk.

Quick Start

Run get_risk(targets=["path/to/file.py"]) to understand impact before editing.

Frequently Asked Questions about pre-modification-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I assess the impact of code edits before modifying a file?

To assess code edit impact, retrieve risk scores, hotspot status, dependents, co-change partners, and ownership details for target files. This surfaces potential breakage risks and guides informed modifications before any code is actually changed.

What is codebase bus-factor and how does it affect modification risk?

Codebase bus-factor measures ownership concentration risk within a repository. Low bus-factor indicates high risk because modifications depend on limited knowledge holders, increasing the chance of architectural violations when those files are edited.

How do I check which files depend on a module before refactoring?

To check dependent files before refactoring, request risk assessment for the target path to surface all dependents and co-change partners. This maps the blast radius of your multi-file refactor across the entire codebase.

Can I evaluate risk for multi-file refactors or only single-file edits?

You can evaluate risk for both single-file edits and multi-file refactors across codebases. The assessment surfaces hotspots, dependents, and ownership for all targeted paths to guide PR reviews and change scoping.

What's the best way to find the context and rationale behind existing code?

To find code context and rationale, use context discovery functions on target file paths to map usage patterns, past decisions, and architectural reasoning. This ensures safe edits that maintain existing architectural decisions.

Do I need a Repowise-indexed repository to analyze code modification risk?

Yes, you need a Repowise-indexed repository to analyze code modification risk. The risk scoring and context discovery rely on indexed data to surface hotspots, dependents, ownership, and bus-factor insights for your codebase.