Skip to content
Back to skills

Refactoring

ASecurity

Execute an agreed structural move while preserving behavior. Triggers on "refactor structure", "重构结构".

  • 3 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added September 4, 2026
ai-agentsrefactoring

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add int2t05/engineering-skills --skill refactoring --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Refactoring?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Refactoring
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/int2t05-refactoring/badge)](https://www.skillsdirectory.com/skills/int2t05-refactoring)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: refactoring
description: Execute an agreed structural move while preserving behavior. Triggers on "refactor structure", "重构结构".
---

# Refactoring

## When to use

- Execute an agreed structural move while preserving behavior.

**Not for:** codebase-design for choosing boundaries; simplify for local clarity.

## Steps

1. Define the move and behavior contract; establish tests or characterization evidence.

2. Plan incremental file, symbol, import and ownership changes; use automation for repetitive moves.

3. Move coherent units and run affected checks; separate features and use compatibility only for actual consumers.

4. Verify old references, exports, packaging, documents and runtime paths.

## Verify

- Contracts are preserved; moved symbols resolve and abandoned references are removed.

## References

- [engineering-principles.md](../../../references/engineering-principles.md) — shared decision boundaries, scope and verification.
- [references/refactoring-catalog.md](references/refactoring-catalog.md) — before→after examples + characterization-test guidance for each move (extract, move, split, merge, change-dependency)

Files in this skill

  • SKILL.md5.9 KB
  • agents/openai.yaml154 B
  • references/refactoring-catalog.md7.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.