HamzaAlayed

Refactor To Action — Code Quality skill for Claude Code

Code Quality community

Refactor a fat controller method (or Livewire action) into a single-responsibility Action class, with tests.

How to install Refactor To Action

Installs to ~/.claude/skills/hamzaalayed-laravel-claude-agents-refactor-to-action/SKILL.md

Terminal
mkdir -p ~/.claude/skills/hamzaalayed-laravel-claude-agents-refactor-to-action && curl -fsSL https://raw.githubusercontent.com/HamzaAlayed/laravel-claude-agents/HEAD/commands/refactor-to-action.md -o ~/.claude/skills/hamzaalayed-laravel-claude-agents-refactor-to-action/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Refactor To Action does


description: Refactor a fat controller method (or Livewire action) into a single-responsibility Action class, with tests. argument-hint: or [--adaptive] allowed-tools: Agent, Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion

Refactor to Action — `{{args}}`

**Delegation:** Spawn each specialist by its registered agent type as it appears in your available-agents list — prefixed when installed as a plugin (e.g. `laravel-team:backend

Alternatives in Code Quality

  • Refactor — We are about to refactor code 1.6k ★
  • Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
  • Repren — Power rename/refactor tool (now with Claude Code skill support 371 ★

Full documentation available on GitHub

View Source Repository