forest6511/claude-code-cookbook/refactor
Claude Code and agent skill by forest6511/claude-code-cookbook
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Analyze and refactor code. Use for code improvement and technical debt reduction.
Install
npx vskill@latest install forest6511/claude-code-cookbook/refactorSKILL.md
The same SKILL.md was published earlier as forest6511/claude-code-cookbook/refactor.
Refactoring
Target
$ARGUMENTS
Step 1: Analysis
Read the target code and check for:
Code Smells
- Long functions: 30+ lines
- Deep nesting: 3+ levels
- Duplicate code: Repeated logic patterns
- Large classes/modules: Multiple responsibilities
- Long parameter lists: 4+ parameters
- Magic numbers/strings: Unexplained literals
Output
| Code Smell | File:Line | Severity | Technique | |
|---|---|---|---|---|
| ... | ... | HIGH/MED/LOW | Extract Method / ... |
Step 2: Plan
- Run existing tests (confirm they pass)
- Prioritize changes by severity
- Write concrete steps for each change
- Identify affected files
Step 3: Execute
Apply changes one at a time:
- Run tests after each change
- If tests fail, revert the last change
- Maintain a passing test suite at all times
Step 4: Report
| Change | File | Technique | Tests | |
|---|---|---|---|---|
| ... | ... | Extract Method | PASS |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingch08/recipe-42/.claude/skills/refactor/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/forest6511/claude-code-cookbook/refactor)