code-execution
Execute Python code locally with marketplace API access for 90%+ token savings on bulk operations. Activates when user requests…
Perform bulk code refactoring operations like renaming variables/functions across files, replacing patterns, and updating API calls. Use when users request renaming identifiers, replacing deprecated code patterns, updating method calls, or making consistent changes across
Claude Code
$ npx -y skills add mhattingpete/claude-skills-marketplace --skill code-refactor --agent claude-code
Codex
$ npx skills add mhattingpete/claude-skills-marketplace --skill code-refactor -a codex -y
Cursor
$ npx skills add mhattingpete/claude-skills-marketplace --skill code-refactor -a cursor -y
Gemini CLI
$ npx skills add mhattingpete/claude-skills-marketplace --skill code-refactor -a gemini-cli -y
GitHub Copilot
$ npx skills add mhattingpete/claude-skills-marketplace --skill code-refactor -a github-copilot -y
OpenCode
$ npx skills add mhattingpete/claude-skills-marketplace --skill code-refactor -a opencode -y
Windsurf
$ npx skills add mhattingpete/claude-skills-marketplace --skill code-refactor -a windsurf -y
name: code-refactor description: Perform bulk code refactoring operations like renaming variables/functions across files, replacing patterns, and updating API calls. Use when users request renaming identifiers, replacing deprecated code patterns, updating method calls, or making consistent changes across multiple locations.
Systematic code refactoring across files. **Auto-switches to execution mode** for 10+ files (90% token savings).
**Execution example (50 files):**
from api.code_transform import rename_identifier
result = rename_identifier('.', 'oldName', 'newName', '**/*.py')
# Returns: {'files_modified': 50, 'total_replacements': 247}
# ~500 tokens vs ~25,000 tokens traditionalGrep(pattern="getUserData", output_mode="files_with_matches") # Find files Grep(pattern="getUserData", output_mode="content", -n=true, -B=2, -A=2) # Verify with context
Edit( file_path="src/api.js", old_string="getUserData", new_string="fetchUserData", replace_all=true )
Grep(pattern="getUserData", output_mode="files_with_matches") # Should return none
1. Find: `Grep(pattern="getUserData", output_mode="files_with_matches")` 2. Count: "Found 15 occurrences in 5 files" 3. Replace in each file with `replace_all=true` 4. Verify: Re-run Grep 5. Suggest: Run tests
1. Find: `Grep(pattern="\\bvar\\s+\\w+", output_mode="content", -n=true)` 2. Analyze: Check if reassigned (let) or constant (const) 3. Replace: `Edit(old_string="var count = 0", new_string="let count = 0")` 4. Verify: `npm run lint`
1. Find: `Grep(pattern="/api/auth/login", output_mode="content", -n=true)` 2. Replace: `Edit(old_string="'/api/auth/login'", new_string="'/api/v2/authentication/login'", replace_all=true)` 3. Test: Recommend integration tests
**Planning:**
**Safe Process:** 1. Search → Find all 2. Analyze → Verify appropriate 3. Inform → Tell user scope 4. Execute → Make changes 5. Verify → Confirm applied 6. Test → Suggest running tests
**Edge Cases:**
**Edit with replace_all:**
**Grep patterns:**
A curated marketplace of Claude Code plugins for software engineering workflows.
Execute Python code locally with marketplace API access for 90%+ token savings on bulk operations. Activates when user requests…
Transfer code between files with line-based precision. Use when users request copying code from one location to another, moving…
Analyze files and get detailed metadata including size, line counts, modification times, and content statistics. Use when users…
Generate multiple diverse solutions in parallel and select the best. Use for architecture decisions, code generation with…
Break down feature requests into detailed, implementable plans with clear tasks. Use when user requests a new feature,…
Stage, commit, and push git changes with conventional commit messages. Use when user wants to commit and push changes, mentions…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.