Skip to content
Back to skills

Dev Refactor Plan

ASecurity

Use when the user asks for a behavior-preserving refactor plan before implementation. Do not trigger when the user already requested a clear, scoped refactor to be implemented directly.

  • 21 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
developmentgogitapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add BlueSkyXN/Codex-is-all-you-need --skill dev-refactor-plan --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dev Refactor Plan?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dev Refactor Plan
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/blueskyxn-dev-refactor-plan/badge)](https://www.skillsdirectory.com/skills/blueskyxn-dev-refactor-plan)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dev-refactor-plan
description: Use when the user asks for a behavior-preserving refactor plan before implementation. Do not trigger when the user already requested a clear, scoped refactor to be implemented directly.
metadata:
  version: "0.5"
  updated: "2026-07-26"
---

# Refactor plan workflow

Use this workflow when the task is to refactor code while preserving behavior.

## Steps

1. State the refactor goal.
   - What should improve?
   - What behavior must remain unchanged?

2. Map current structure.
   - Relevant files and modules
   - Entry points and call paths
   - Tests and validation commands
   - Dependency cycles and change fan-out
   - Shared mutable state and deployment coupling
   - Git co-change history when it can reveal candidate seams; treat it as
     supporting evidence, not an automatic reason to merge modules

3. Identify contracts.
   - Public APIs
   - CLI behavior
   - Database schema
   - External integrations
   - User-visible behavior
   - If the behavior contract or trade-off set is still contested, recommend
     `$codex-next:core-grilling` and stop. Wait for the user to invoke it
     explicitly; do not imitate or begin that workflow here.

4. Propose an incremental plan.
   - Step 1
   - Step 2
   - Step 3
   - Validation after each step

5. Define rollback and stop conditions.

## Output

Return:

1. Current structure
2. Behavior contracts
3. Proposed plan
4. Validation strategy
5. Risks and stop conditions

## Do not

- Do not edit files before the plan is clear.
- Do not combine unrelated refactors.
- Do not change public behavior unless explicitly requested.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.