Zum Inhalt springen
Skillpedia
Allgemeines Programmieren8.1k · #12569

pre-modification-check

Was er macht

Diese Fähigkeit lässt deine KI das Risiko einer Datei einschätzen, bevor sie sie ändert. Sie ist für Entwickler in einem Repowise-indexierten Projekt gedacht, die geteilten oder fragilen Code nicht kaputt machen wollen.

Wann du ihn nutzt

  • ✓Wenn deine KI gerade ein gemeinsam genutztes Hilfsmodul oder ein Kernmodul bearbeiten will.
  • ✓Wenn eine Datei, die du nicht erwähnt hast, als Nebeneffekt geändert werden soll.
  • ✓Wenn du mehrere Dateien gemeinsam ändern oder löschen willst und vorher die Auswirkungen sehen möchtest.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/repowise-dev/repowise/blob/main/plugins/claude-code/skills/pre-modification/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Bevor du den Zahlungshelfer änderst, prüfe, was von ihm abhängt und ob er oft Fehler verursacht hat.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Die Fähigkeit führt eine Risikoprüfung der Datei aus. Sie meldet Korrekturhistorie, abhängige Dateien, Dateien, die gewöhnlich mit ihr zusammen geändert werden, ihren Verantwortlichen, Testlücken und Sicherheitssignale. Die KI liest diese Ergebnisse, bevor sie die Änderung vornimmt.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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.

Häufige Fragen

Was sagt mir die Prüfung?

Sie zeigt die Historie der Fehlerkorrekturen, wie viele Dateien davon abhängen, mitgeänderte Dateien, den Hauptverantwortlichen und ob Tests fehlen.

Kann sie mehrere Dateien auf einmal prüfen?

Ja. Laut der Fähigkeit werden alle Zieldateien in einer Prüfung zusammengefasst.

Verhindert sie eine Bearbeitung?

Sie informiert die Änderung, statt sie zu blockieren, damit die KI zusätzliche Sorgfalt planen oder verwandte Dateien aktualisieren kann.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
8.1k
Platz im Ranking
#12569
Lizenz
AGPL-3.0
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills