🎯

busirocket-refactor-workflow

🎯Skill

from busirocket/agents-skills

VibeIndex|
What it does

Enforces strict TypeScript/React refactoring workflow with quality gates, file splitting rules, and mandatory post-refactor checks.

πŸ“¦

Part of

busirocket/agents-skills(15 items)

busirocket-refactor-workflow

Installation

Quick InstallInstall with npx
npx skills add BusiRocket/agents-skills
Quick InstallInstall with npx
npx add-skill BusiRocket/agents-skills
Quick InstallInstall with npx
npx skills add
πŸ“– Extracted from docs: busirocket/agents-skills
23Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Overview

# Refactor Workflow

Strict, step-by-step refactoring guidance for maintaining code quality.

When to Use

Use this skill when:

  • Refactoring files with multiple exports (use @file workflow)
  • Splitting components/hooks/utils into smaller files
  • Moving inline types to types/
  • Enforcing post-refactor quality checks

Non-Negotiables (MUST)

  • After any refactor: run the project's standard checks (e.g. yarn check:all)

as a mandatory quality gate.

  • If a file has multiple responsibilities, split immediately.
  • If a hook/component contains helpers, extract them.
  • If a file declares types inline, move them to types/.
  • Never use index/barrel files; import from concrete modules only.

@file Refactor Workflow

When referencing @file for a one-shot refactor:

  • Exactly one exported symbol per file.
  • No inline interface/type declarations in non-type files.
  • No helper functions inside components/hooks.

Rules

@file Refactor Workflow

  • refactor-file-workflow - @file refactor workflow (strict constraints)
  • refactor-mandatory-checks - Mandatory checks after refactor

Refactoring TypeScript/React

  • refactor-goals - Goals for refactoring (many small files, one export per

file)

  • refactor-decision-rules - Decision rules for when to split files
  • refactor-never-index-files - Never use index files
  • refactor-post-refactor-checks - Post-refactor checks (MANDATORY)

Post-Refactor Checks

  • refactor-golden-path - Golden path for post-refactor checks
  • refactor-file-size-guidelines - File size targets and max lines
  • refactor-if-something-fails - What to do if checks fail
  • refactor-when-to-split - Fast heuristics for when to split files

Related Skills

  • busirocket-core-conventions - File structure and boundaries
  • busirocket-typescript-standards - TypeScript standards to enforce
  • busirocket-react - Component/hook patterns

How to Use

Read individual rule files for detailed explanations and code examples:

```

rules/refactor-file-workflow.md

rules/refactor-decision-rules.md

rules/refactor-post-refactor-checks.md

```

Each rule file contains:

  • Brief explanation of why it matters
  • Code examples (correct and incorrect patterns)
  • Additional context and best practices

More from this repository10

🎯
busirocket-tailwindcss-v4🎯Skill

busirocket-tailwindcss-v4 skill from busirocket/agents-skills

🎯
busirocket-rust🎯Skill

Enforces strict Rust coding standards, ensuring maintainable codebases with modular, clean, and separated concerns.

🎯
busirocket-tauri🎯Skill

Enforces Tauri desktop app standards by guiding command creation, invoke handler configuration, and Rust project layout.

🎯
busirocket-typescript-standards🎯Skill

Enforces strict TypeScript standards for maintainable codebases, focusing on one-thing-per-file, type conventions, and Next.js export exceptions.

🎯
busirocket-supabase🎯Skill

Enforces strict Supabase access boundaries by centralizing database interactions in a dedicated service layer, preventing direct external calls.

🎯
busirocket-react🎯Skill

Applies React best practices with Zustand state management, enforcing component structure, hook extraction, and efficient state handling across React applications.

🎯
busirocket-nextjs🎯Skill

Generates standardized, thin Next.js route handlers with input validation, proper HTTP status codes, and consistent JSON response patterns.

🎯
busirocket-rust-tauri-standards🎯Skill

busirocket-rust-tauri-standards skill from busirocket/agents-skills

🎯
busirocket-react-components-and-hooks🎯Skill

busirocket-react-components-and-hooks skill from busirocket/agents-skills

🎯
busirocket-supabase-boundaries🎯Skill

busirocket-supabase-boundaries skill from busirocket/agents-skills