Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Feature Refactor Proposal

ASecurity

Analyze codebase against new feature requirements, map affected modules and dependencies, identify architectural risks, and propose a structured refactoring and implementation plan before writing code. Use when starting a new feature, planning refactoring, analyzing codebase impact, or reviewing feature feasibility.

10 stars
0 votes
0 copies
0 views
Added 9/28/2026
ai-agentsgoreactrefactoringapidatabasefrontendbackend

Works with

cliapi

Security Analysis

A100/100

Scanned 9/28/2026

Install to Claude Code

$npx -y skills add fritzprix/libr-agent --skill feature-refactor-proposal --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Feature Refactor Proposal?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Feature Refactor Proposal
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fritzprix-feature-refactor-proposal/badge)](https://www.skillsdirectory.com/skills/fritzprix-feature-refactor-proposal)

More formats (shields.io, HTML) on the badges page.

Files
SKILL.md
---
name: feature-refactor-proposal
description: Analyze codebase against new feature requirements, map affected modules and dependencies, identify architectural risks, and propose a structured refactoring and implementation plan before writing code. Use when starting a new feature, planning refactoring, analyzing codebase impact, or reviewing feature feasibility.
---

# Feature Refactor Proposal

This skill provides a structured methodology for analyzing an existing codebase against new feature requirements, identifying technical debt and risks, and producing a clear refactoring and implementation proposal before writing code.

## When to Use

Use this skill when:

- Adding a complex new feature to an existing codebase
- Extending existing components or state management that could cause architectural regression
- Assessing feature feasibility and breaking changes before implementation
- Preparing an architecture proposal or technical design review for a feature request

## Workflow Decision Tree

```
User provides New Feature Requirements / Issue
  │
  ├── 1. Parse Requirements & Define Boundaries
  │     └─ Identify UI, state, API, and backend scope
  │
  ├── 2. Map Codebase Impact
  │     └─ Locate affected components, hooks, services, types
  │
  ├── 3. Evaluate Risks & Trade-offs
  │     └─ Consult [risk_checklist.md](references/risk_checklist.md)
  │
  ├── 4. Draft Refactoring & Implementation Plan
  │     └─ Use [proposal_template.md](references/proposal_template.md)
  │
  └── 5. Present Proposal & Verification Steps
        └─ Provide phased steps and validation commands
```

---

## Detailed Steps

### Step 1: Requirement Breakdown & Scope Mapping

1. Extract core requirements and non-goals from the user prompt or issue document.
2. Categorize requirements by impact layer:
   - **UI Layer**: Pages, components, modals, styles
   - **State Layer**: React state, context, custom hooks, global stores
   - **Service / API Layer**: Frontend API client, backend commands, Tauri IPC
   - **Data Layer**: Types, schemas, entities, database tables

### Step 2: Codebase Exploration & Dependency Tracing

1. Search for relevant existing files using `workspace__grepFiles` and `workspace__globFiles`.
2. Inspect target files with `workspace__readFile` to understand:
   - Current responsibilities and size of components
   - Existing data flow and state propagation
   - Shared dependencies and props interface
3. Map component dependencies to anticipate ripple effects when modifying signatures or state.

### Step 3: Risk Assessment & Architecture Trade-offs

1. Load and evaluate against [references/risk_checklist.md](references/risk_checklist.md):
   - **Type Safety**: Prop changes, boundary validation, schema changes
   - **State Complexity**: State duplication vs context extension vs hook extraction
   - **UI/UX Resilience**: Virtualized lists, scroll pinning, loading/error states
   - **Backward Compatibility**: Impact on other features using the same components
2. Compare architectural choices (e.g., Option A: Direct Extension vs Option B: Modular Refactoring).

### Step 4: Generate Proposal Report

1. Use the structure provided in [references/proposal_template.md](references/proposal_template.md).
2. Document:
   - Affected files and modification scope
   - Recommended refactoring approach with trade-off justification
   - Phased execution steps (Preparation/Refactor -> Feature Implementation -> Verification)
   - Specific verification criteria (`pnpm refactor:validate`, tests, manual checks)

---

## References

- **[proposal_template.md](references/proposal_template.md)**: Standard template for feature refactoring proposals.
- **[risk_checklist.md](references/risk_checklist.md)**: Architectural and quality risk review checklist.

Attribution

fritzprixfritzprix
View sourceMore from fritzprix →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

695601 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →