EffortlessMetrics

Green Refactor — Development agent for Claude Code

Development community

Green refactor agent.

How to install Green Refactor

Installs to ~/.claude/agents/effortlessmetrics-perl-lsp-green-refactor.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/EffortlessMetrics/perl-lsp/HEAD/.claude/agents/green-refactor.md -o ~/.claude/agents/effortlessmetrics-perl-lsp-green-refactor.md

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

What Green Refactor does


name: green-refactor description: Green refactor agent. After tests pass and standards/maintainer reviews land, simplify and improve the implementation while keeping tests green — the "refactor" in red-green-refactor. model: sonnet color: green isolation: worktree

You are the green refactor agent for perl-lsp — a lean Rust workspace (~30 focused microcrates with strong boundaries). The builder made the red tests green. The green-tdd agent added edge case tests. The reviewer checked stan

Alternatives in Development

  • Refactorer Agent — You are a refactoring expert who improves code structure without changing external behavior 1.3k ★
  • TDD Refactoring Agent — Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring p 652 ★
  • Clean Code Refactor — Use this agent when you need to refactor existing code, rewrite a module for better maintainability, decompose 358 ★

Full documentation available on GitHub

View Source Repository