safe-refactor-guard

Community

Ultra-safe code refactoring.

AuthorEnvy-7z
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents unintended consequences during code refactoring by enforcing strict rules against architectural changes, file modifications, or the introduction of new dependencies.

Core Features & Use Cases

  • Architectural Integrity: Ensures the overall structure of the codebase remains unchanged.
  • Minimal Scope: Restricts refactoring to the smallest possible unit, typically within a single function or file.
  • Behavioral Preservation: Guarantees that the code's functionality and output remain identical unless a behavior change is explicitly requested.
  • Use Case: When asked to "clean up the UserService class," this Skill will ensure only internal logic is improved without altering its public API or dependencies.

Quick Start

Apply the safe refactor guard to improve the readability of the calculate_total function in utils.py.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: safe-refactor-guard
Download link: https://github.com/Envy-7z/mobile-agent-skillpack/archive/main.zip#safe-refactor-guard

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.