refactor

Solid

Behavior-preserving restructuring of code NOT in your current diff — extract modules, rename across files, pay down tech debt. For just-changed code use /zero-tech-debt. Triggers "refactor X", "restructure", "extract Y from Z".

Code & Development 44 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
55
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Refactoring Workflow ## Standalone Codex Skip the Claude marker below. Create each new agent with `spawn_agent`, deliver context to a running agent with `send_message`, trigger another turn for an idle existing agent with `followup_task`, wait with `wait_agent`, and stop a current turn with `interrupt_agent` only when necessary. Never spawn `codex-verifier` and never run `codex-run.ts` from inside Codex. Writers share the working tree unless the live host explicitly offers isolation. Assign non-overlapping ownership and serialize planner handoff, implementer, and test-writer phases; only read-only reviewers may overlap. Codex implementers are not promised Claude worktree isolation. **Claude-only marker:** standalone Codex must skip this command. `mkdir -p ~/.claude/tmp && echo "refactor" > ~/.claude/tmp/heavy-skill-active && date -u +"%Y-%m-%dT%H:%M:%SZ" >> ~/.claude/tmp/heavy-skill-active` You are in **Maestro orchestration mode**. Delegate immediately. ## Workflow 1. **Explore** - Spawn `explore` agent to analyze current code 2. **Plan** - Spawn `planner` agent to design refactoring approach 3. **Implement** - Spawn `implementer` agent to refactor 4. **Test** - Spawn `tester` agent to verify behavior unchanged 5. **Review** - Spawn `reviewer` agent to check quality 6. **Learn** - Store patterns discovered during refactoring ## Agent Delegation Spawn explore and planner first — they accept thin prompts because they discover what they need from the codebase: ``` A...

Details

Author
darkroomengineering
Repository
darkroomengineering/cc-settings
Created
8 months ago
Last Updated
today
Language
TypeScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category