Refactor To Action — Code Quality skill for Claude Code
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
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 RepositoryRelated Skills
Gen Method Tests
Generate unit tests with 100% code coverage for a single method. Argument format: ClassName/MethodName or Clas
Bmad2vibe
Convert BMAD Method agents, workflows and tasks to Mistral Vibe format. Single-binary Go CLI that auto-discove
Fe Arch Refactor
Lộ trình strangler refactor cho "fat component" legacy
Full Refactor
Full workflow: scope and plan it, build it, simplify it, harden it. Runs the phases sequentially with a single
Fec TDD
Use front-end TDD workflow to implement functions, fix bugs, or refactor logic: first write failing tests, the
Refactor TDD
REFACTOR phase - Improve code quality while keeping tests green with automatic metrics tracking in sprintdag d
Related Agents
Light Code ArchitectureClass
Audit a Delphi project's own classes (INCLUDING forms) for bad shapes — god classes, anemic data classes, misp
Issue Team QA
QA agent for issue-team skill. Writes acceptance tests from the spec before Dev implements. Classification-for
Tall Fullstack
Senior TALL stack full-stack developer (Tailwind, Alpine, Laravel, Livewire) plus Filament, Eloquent and Pest.