Skip to content
Back to skills

Cc Refactor

ASecurity

(Conductor) Refactor a file or module for clarity and simplicity Use when the user asks for /cc-refactor or cc-refactor.

  • 22 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 25, 2026
ai-agentsgobashrefactoring

Works with

  • claude code

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add yeisonrestrepo/code-conductor --skill cc-refactor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cc Refactor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cc Refactor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yeisonrestrepo-cc-refactor/badge)](https://www.skillsdirectory.com/skills/yeisonrestrepo-cc-refactor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cc-refactor
description: "(Conductor) Refactor a file or module for clarity and simplicity Use when the user asks for /cc-refactor or cc-refactor."
---

> code-conductor: this command was written for Claude Code. Where it names a Claude Code tool (Read, Grep, Glob, Edit, Write, Bash, Skill, Agent), use your closest equivalent. `$ARGUMENTS` and an `ARGUMENTS:` line mean the text the user gave with the command.


## Phase 0 — Skill activation

Invoke both skills before doing anything else:

```
Skill({ skill: "code-simplifier", args: "$ARGUMENTS" })
Skill({ skill: "subagent-driven-development", args: "$ARGUMENTS" })
```

`code-simplifier` defines the refactoring rules to apply. `subagent-driven-development` governs how to delegate each step to sub-agents — one per change, keeping the main context clean.

---

Diagnose the target file or module:

**Complexity issues found:**
- Functions over 30 lines: [list with line numbers]
- Nesting over 3 levels: [list with line numbers]
- Classes with 5+ dependencies: [list]
- Layers that only delegate: [list]
- Misleading names: [list]

Generate a refactor plan: ordered list of changes, one per step.

For each step:
- What changes (exact file:line range)
- Why (complexity signal it resolves)
- Risk (what could break)

**Execute one change at a time.** After each:
1. Run the test suite
2. Report: tests passed / failed
3. Confirm before the next step

**Final report:**
- Before: [line count, complexity metrics]
- After: [line count, complexity metrics]
- Test status: [passed / N failed]

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.