OpenSource03

Clean Code Refactor — Development agent for Claude Code

Development community

Use this agent when you need to refactor existing code, rewrite a module for better maintainability, decompose a large file into focused sub-modules, eliminate duplication, improve type safety, optimi.

How to install Clean Code Refactor

Installs to ~/.claude/agents/opensource03-harnss-clean-code-refactor.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/OpenSource03/harnss/HEAD/.claude/agents/clean-code-refactor.md -o ~/.claude/agents/opensource03-harnss-clean-code-refactor.md

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

What Clean Code Refactor does


name: "clean-code-refactor" description: "Use this agent when you need to refactor existing code, rewrite a module for better maintainability, decompose a large file into focused sub-modules, eliminate duplication, improve type safety, optimize performance, or generally elevate code quality. This agent goes beyond the minimum ask — it proactively identifies and fixes adjacent issues like loose types, poor separation of concerns, missing abstractions, and inefficient patterns.\\n\\nExamples:\

Alternatives in Development

  • Code Refactorer — Use this agent when you need to improve existing code structure, readability, or maintainability wit 2k ★
  • Better Auth Expert — Use this agent when:\n\n1. After Better Auth Implementation Changes: Any time authentication-related code is m 434 ★
  • Esm Enforcer — ES Modules enforcement — import/export only, no require/module.exports, no dirname/filename 286 ★

Full documentation available on GitHub

View Source Repository