refactor
Use when splitting an oversized module or test suite, deduplicating implementations across packages or runtimes, deleting dead code or unused dependencies, removing completed compatibility layers, reducing scattered edits for one supported change, or restructuring a codebase while preserving its observable behavior. Use challenge for architecture-only advice without implementation. Use deliver-and-verify when the outcome adds features or changes product behavior.
Target: Software development & testing. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original English text
Topics in the source
- Refactor
Preserve the supported behavior while removing the named structural debt. Read health.md for deletion and duplication criteria and code.md for domain and I/O boundaries. 1. State the public contracts, workflows and affected test configurations that must keep working, and the structural problem to remove. 2. Split large modules along domain capabilities or test scenarios. Keep contracts, deterministic domain decisions and I/O adapters distinguishable within a capability. Keep scenario-specific setup near its tests and share focused fixtures where related scenarios use them. 3. Inventory the affected public entry points and consumers. Delete a superseded path after verifying that its consumers moved and supported behavior/data remain available. An accidentally unreachable capability is a regression to restore. 4. Use available language tooling when it adds coverage: knip and jscpd for JavaScript/TypeScript; cargo machete, cargo +nightly udeps, clippy and clone detection for Rust; appropriate static analysis for other languages. Tools supply candidates. Check public exports, generated/macro entry points, dynamic hooks and supported feature targets before deletion. 5. Consolidate copie
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- SylphxAI/skills
- Source file
- skills/refactor/SKILL.md
- Fixed revision
- e61c6f49e7bc2ac4f764590438fe01a689addefb
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: SylphxAI/skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-10T01:01:23.984Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.