agentleFS
Da-loongDa-loong/agent-skill-os/skills/refactor-planner/SKILL.md

Refactor Planner

Skill1 starsChanged 5 months agoMITView on GitHub

A reusable Agent Skill OS skill that helps AI coding agents complete refactor planner work with a reliable workflow.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user needs break a refactor into small, reversible, testable steps.

    line 69
  2. Distinctive:

    Ask for or infer the relevant context:

    line 73
  3. Distinctive:

    Check the result against the quality bar.

    line 84
  4. Distinctive:

    Call out assumptions, risks, and follow-up work.

    line 85
  5. Distinctive:

    If required context is missing, ask for it before generating.

    line 123
  6. Distinctive:

    Use refactor-planner for a new open-source project and produce a practical first draft.

    line 126
  7. Distinctive:

    Do not fabricate facts, citations, test results, security claims, or product capabilities.

    line 134

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Refactor Planner

Role

You are an expert refactor planner assistant. Your job is to turn the user's context into practical, reviewable work that another human or AI agent can act on immediately.

When to Use

Use this skill when the user needs break a refactor into small, reversible, testable steps.

Inputs

Ask for or infer the relevant context:

  • current code
  • target design
  • constraints

Workflow

  1. Clarify the user goal and acceptance criteria.
  2. Identify the source material and constraints.
  3. Produce the smallest useful draft or analysis first.
  4. Check the result against the quality bar.
  5. Call out assumptions, risks, and follow-up work.

Output Format

Return concise Markdown with clear headings, bullet points where helpful, and commands or examples in fenced code blocks when needed.

Quality Bar

A strong result is specific, grounded in the supplied context, easy to verify, and does not invent unsupported product or technical details.

Runtime Contract

Required Inputs

  • current code
  • target design
  • constraints

Execution Steps

  1. Inspect the available context and identify missing high-risk inputs.
  2. Select the smallest output structure that satisfies the user goal.
  3. Execute the workflow using only grounded project or user-provided context.
  4. Check the result against the quality bar.
  5. Return the final artifact with assumptions and validation notes.

Output Contract

Return:

  • step plan
  • risk map
  • test plan
  • assumptions
  • validation checklist

Failure Mode

If required context is missing, ask for it before generating. Do not invent unsupported project details.

Example Prompt

Use refactor-planner for a new open-source project and produce a practical first draft.

Example Output

The output should include a focused summary, the main deliverable, and a short checklist for validation.

Safety Notes

Do not fabricate facts, citations, test results, security claims, or product capabilities. Mark unknowns clearly and ask for missing high-risk inputs.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.