refactor-react — refactor-react install refactor-react, ai-dev-starter, community, refactor-react install, ide skills, refactor-react storybook integration, refactor-react typescript support, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Frontend Agents working with React and TypeScript, seeking efficient component refactoring and test updating capabilities. refactor-react is a technical skill that automates the refactoring process of React components, focusing on updating corresponding tests and Storybook stories.

Features

Updates corresponding `*.test.tsx` files after refactoring React components
Modifies `*.stories.tsx` files to reflect changes in component props and structure
Runs `pnpm run test:run` and `pnpm run typecheck` to ensure code integrity
Verifies Storybook stories for display issues after refactoring
Ensures test assertions and queries are updated to maintain test integrity

# Core Topics

hakushun hakushun
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The refactor-react skill by hakushun is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for refactor-react install, refactor-react storybook integration, refactor-react typescript support.

Ideal Agent Persona

Ideal for Frontend Agents working with React and TypeScript, seeking efficient component refactoring and test updating capabilities.

Core Value

Empowers agents to refactor React components while ensuring updated tests and Storybook stories, utilizing TypeScript and executing commands like `pnpm run test:run` and `pnpm run typecheck` for validation.

Capabilities Granted for refactor-react

Refactoring React components with updated props and structure
Updating corresponding `*.test.tsx` and `*.stories.tsx` files
Validating Storybook stories for display integrity after refactoring

! Prerequisites & Limits

  • Requires React and TypeScript setup
  • Storybook integration necessary for full functionality
  • Dependent on `pnpm` for test and typecheck execution
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

refactor-react

Install refactor-react, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

リファクタ時のテスト・Storybook

  • コンポーネントの props や構造を変えたら、対応する *.test.tsx*.stories.tsx を必ず更新する。
  • テストが落ちたら意図を保ちつつアサーションやクエリを修正する。テストを削除して済ませない。
  • Storybook のストーリーで props や decorators を変更した場合、表示が崩れていないか確認する。
  • リファクタ後に pnpm run test:runpnpm run typecheck を実行して通す。

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is refactor-react?

Ideal for Frontend Agents working with React and TypeScript, seeking efficient component refactoring and test updating capabilities. refactor-react is a technical skill that automates the refactoring process of React components, focusing on updating corresponding tests and Storybook stories.

How do I install refactor-react?

Run the command: npx killer-skills add hakushun/ai-dev-starter. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for refactor-react?

Key use cases include: Refactoring React components with updated props and structure, Updating corresponding `*.test.tsx` and `*.stories.tsx` files, Validating Storybook stories for display integrity after refactoring.

Which IDEs are compatible with refactor-react?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for refactor-react?

Requires React and TypeScript setup. Storybook integration necessary for full functionality. Dependent on `pnpm` for test and typecheck execution.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add hakushun/ai-dev-starter. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use refactor-react immediately in the current project.

Related Skills

Looking for an alternative to refactor-react or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI