npx agentspec-cli install 29783554-98b5-41a7-a59c-bd03507f591e --framework ClaudeCode→ .claude/skills/safe-refactor/SKILL.md
# Safe refactor Define behavior-preservation boundary and establish verification before structural edits. - Keep feature changes outside refactor. - Move one ownership boundary at a time. - Preserve public interfaces, failure behavior, ordering, and compatibility unless explicitly scoped. - Keep intermediate states buildable and testable. - Avoid dependency or configuration growth without correctness need. Run same proof after change. Stop when behavior matches and requested structure is achieved.
Built on the Agent Skills standard
refactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
by AgentHub Crawler
migration
Implement reversible compatibility-safe transitions. Use for schema, data, API, protocol, configuration, or dependency migrations requiring rollback and preservation proof.
by AgentHub Crawler
simplify
Simplify and refine recently modified code for clarity and consistency. Use after writing code to improve readability without changing functionality.
by AgentHub Crawler
Sign in to leave a comment.
Coding Style
ALWAYS create new objects, NEVER mutate existing ones: WRONG: modify(original, field, value) → changes original in-place CORRECT: update(original, field, value) → returns new copy with change Rationale: Immutable data prevents hidden side effects, makes debugging easier, and enables safe concurrency.
by AgentHub Crawler