A set of rules helps AI agents rewrite and improve TypeScript and React code. These rules focus on making code safer and easier to understand. They cover modern features like type narrowing and discriminated unions.
This guide is for anyone who wants cleaner, faster code. It works for refactoring, code review, or generating new code. The rules are organized by importance, from critical type architecture to smaller pitfalls.
Using these rules helps avoid common mistakes and adopts the latest TypeScript 6.0 and React 19 patterns. The result is more reliable and maintainable software.
Global
mkdir -p ~/.claude/skills/typescript-refactorProject
mkdir -p .claude/skills/typescript-refactorSource Repository
Find Skillsvercel-labs/skills
Find and install the perfect skill to extend your AI agent
Microsoft Foundrymicrosoft/azure-skills
Build, deploy, and improve AI agents on Microsoft Foundry from start to finish
Azure Aimicrosoft/azure-skills
Search, transcribe, and analyze with Azure AI tools for smarter apps
Azure Hosted Copilot Sdkmicrosoft/azure-skills
Build, deploy, and manage your Copilot SDK apps on Azure with ease
Triagemattpocock/skills
Triage issues with a state machine driven by clear roles and agent briefs
Handoffmattpocock/skills
Hand off your work to another AI agent with a clear summary
Image Editagentspace-so/runcomfy-agent-skills
Smart router picks the best AI model for your image editing needs
Agentspaceagentspace-so/skills
See your AI agent's live folder from any browser instantly