Agent skill
refactor
Identify code smells and execute safe refactorings
Install this agent skill to your Project
npx add-skill https://github.com/hivellm/rulebook/tree/main/.claude/skills/refactor
SKILL.md
Analyze and refactor the specified code.
Target: $ARGUMENTS (file path, module, or area to refactor)
Steps:
- Read the target code and understand its purpose
- Identify code smells (long functions, duplication, high complexity)
- Propose specific refactorings with rationale
- Implement refactorings one at a time, verifying tests pass after each
- Report what was changed and why
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
DAG Workflow
Maintain a clean dependency graph (DAG) to prevent circular dependencies and ensure maintainable architecture.
Documentation Rules
All documentation in English. Root README concise, detailed docs in `/docs`.
Quality Enforcement
These rules are NON-NEGOTIABLE and MUST be followed without exception.
Rulebook Task Management
Spec-driven task management for features and breaking changes with OpenSpec-compatible format
Agent Automation
Mandatory workflow that AI agents MUST execute after EVERY implementation.
C
Execute these commands after EVERY implementation (see AGENT_AUTOMATION module for full workflow).
Didn't find tool you were looking for?