refactor-pass

Automate a targeted refactor pass on frontend code using git diff inputs.

1|1|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/bitsocialnet/bitsocial-web --skill refactor-pass
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor-pass
Source: https://github.com/bitsocialnet/bitsocial-web/tree/main/.cursor/skills/refactor-pass
Command: npx skills add https://github.com/bitsocialnet/bitsocial-web --skill refactor-pass

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduces codebase complexity by performing a focused refactor pass that removes dead code, simplifies convoluted logic, and eliminates unnecessary intermediate state after changes.

Core Features & Use Cases

  • Automatically identifies simplification opportunities using git diff and recent commits
  • Removes dead code and unreachable paths, straightens flow, and reduces parameter bloat
  • Applies refactors to frontend utilities and shared components with minimal risk, preserving behavior

Quick Start

Initiate a targeted refactor pass to simplify the codebase after recent changes.

Frequently Asked Questions about refactor-pass

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate frontend refactor cleanup after a git diff?

Automate frontend refactor cleanup by processing git diff outputs and staged commits to identify dead code and simplify logic. This pass reduces codebase complexity and eliminates unnecessary intermediate state after changes.

Can I remove dead code and simplify TypeScript utilities using recent commits?

Yes, you can remove dead code and simplify TypeScript utilities by analyzing recent commits. The process identifies unreachable paths, straightens flow, and reduces parameter bloat while preserving original behavior.

What is a targeted refactor pass for frontend shared hooks?

A targeted refactor pass for frontend shared hooks is a focused cleanup process that simplifies convoluted logic and eliminates dead code. It applies changes with minimal risk to preserve existing behavior across shared components.

Does this code simplification process run build and lint before completing?

Yes, the code simplification process enforces style by running build, lint, and typecheck operations before completing. This ensures the refactored frontend code maintains quality standards and passes all validation checks.

Do I need repository access to refactor code from review diffs?

Yes, you need repository access to refactor code from review diffs. The process requires access to the repository to analyze git diff outputs and apply targeted simplifications to the codebase.

When should I run a code simplification pass on my codebase?

Run a code simplification pass during post-change cleanup after modifying frontend code, utilities, or shared hooks. This targeted refactor reduces complexity by removing dead code and clarifying logic immediately after your changes.