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/refactor

SKILL.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 SmellFile:LineSeverityTechnique
......HIGH/MED/LOWExtract Method / ...

Step 2: Plan

  1. Run existing tests (confirm they pass)
  2. Prioritize changes by severity
  3. Write concrete steps for each change
  4. 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

ChangeFileTechniqueTests
......Extract MethodPASS

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/forest6511/claude-code-cookbook/refactor/badge)](https://verified-skill.com/skills/forest6511/claude-code-cookbook/refactor)

Something wrong with this skill or its page? Tell us.