plan-refactor — plan-refactor ai agent skill plan-refactor, super-red, adtak, community, plan-refactor ai agent skill, ai agent skill, ide skills, agent automation, plan-refactor automation, plan-refactor workflow tool, AI agent skills, Claude Code

v1.0.0
GitHub

About this Skill

Ideal for Code Analysis Agents seeking to automate refactoring proposals and GitHub issue creation for improved codebase maintainability. Analyze the codebase for refactoring opportunities, create a plan, and file GitHub issues for each proposal.

# Core Topics

adtak adtak
[0]
[0]
Updated: 3/12/2026

Quality Score

Top 5%
41
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add adtak/super-red/plan-refactor
Supports 19+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

Agent Capability Analysis

The plan-refactor skill by adtak is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for plan-refactor ai agent skill, plan-refactor automation, plan-refactor workflow tool.

Ideal Agent Persona

Ideal for Code Analysis Agents seeking to automate refactoring proposals and GitHub issue creation for improved codebase maintainability.

Core Value

Empowers agents to analyze codebases for refactoring opportunities, presenting plans and creating GitHub issues for approved proposals, leveraging code analysis and GitHub API integration for streamlined development workflows.

Capabilities Granted for plan-refactor

Analyzing codebases for large files and duplication
Generating refactoring plans and proposals
Automating GitHub issue creation for approved refactoring proposals

! Prerequisites & Limits

  • Requires GitHub API access
  • Limited to codebases with accessible repositories
  • Focus on code organization and structure refactoring
Project
SKILL.md
2.4 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Plan Refactor

Analyze the codebase for refactoring opportunities, present a plan to the user, and create GitHub issues for each approved proposal.

Steps

  1. Analyze the codebase — Explore the codebase to identify refactoring opportunities. Focus on:

    • Large files — Files that mix multiple concerns and could benefit from extraction (hooks, utilities, constants)
    • Duplication — Repeated styles, logic, or patterns across files
    • Inconsistency — Style definitions, naming conventions, or patterns that differ from the rest of the codebase
    • Magic numbers — Hardcoded values that should be named constants
    • Dead code — Unused imports, variables, or exports

    Use the project's CLAUDE.md to understand conventions and architecture.

  2. Clarify unknowns — If the analysis reveals ambiguous areas or multiple valid approaches, ask the user before proceeding. Do not make assumptions on ambiguous points.

  3. Draft the plan — Write a refactoring plan listing each proposal. Use the template in plan-template.md for each proposal. Keep proposals independent — each should be implementable on its own.

  4. Present to the user — Show the full plan and ask for approval. The user may:

    • Approve all proposals
    • Remove or modify specific proposals
    • Ask for additional analysis

    Do NOT proceed to issue creation until the user explicitly approves.

  5. Create GitHub issues — For each approved proposal, create a separate GitHub issue using gh issue create --title "<title>" --body "<plan>". Use a HEREDOC for the body to preserve formatting. Title is Short, imperative, in English (e.g., "Extract game loop logic into a custom hook").

  6. Report results — After all issues are created, show the user a summary table with issue numbers, titles, and URLs.

Guidelines

  • Write all issue content in English (project convention).
  • Converse with the user in Japanese (project convention).
  • Keep proposals minimal and focused — one concern per issue.
  • Do not propose changes that add complexity without clear benefit.
  • Reference actual file paths discovered during exploration, not guessed paths.
  • For each file change, specify whether it is Create, Modify, or Delete.
  • Do not include full code in the plan — describe what changes are needed and why.
  • Code snippets are acceptable when they clarify intent (e.g., type definitions, key structures).

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is plan-refactor?

Ideal for Code Analysis Agents seeking to automate refactoring proposals and GitHub issue creation for improved codebase maintainability. Analyze the codebase for refactoring opportunities, create a plan, and file GitHub issues for each proposal.

How do I install plan-refactor?

Run the command: npx killer-skills add adtak/super-red/plan-refactor. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for plan-refactor?

Key use cases include: Analyzing codebases for large files and duplication, Generating refactoring plans and proposals, Automating GitHub issue creation for approved refactoring proposals.

Which IDEs are compatible with plan-refactor?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for plan-refactor?

Requires GitHub API access. Limited to codebases with accessible repositories. Focus on code organization and structure refactoring.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add adtak/super-red/plan-refactor. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use plan-refactor immediately in the current project.

Related Skills

Looking for an alternative to plan-refactor or another community skill for your workflow? Explore these related open-source skills.

View All

openclaw-release-maintainer

Logo of openclaw
openclaw

openclaw-release-maintainer is a specialized AI agent skill for automating release management workflows.

333.8k
0
Data

widget-generator

Logo of f
f

Generate customizable widget plugins for the prompts.chat feed system

149.6k
0
Design

flags

Logo of vercel
vercel

flags is a skill for managing feature flags in Next.js internals, enabling developers to efficiently configure and optimize their React applications.

138.4k
0
Browser

x-api

[ Featured ]
Logo of affaan-m
affaan-m

x-api is a skill that harnesses performance optimization for AI agents, enabling efficient interactions with Twitter and other platforms.

103.8k
0
Productivity