MR
Mayur Rathi
@sickn33
⭐ 39.1k GitHub stars

fp-refactor

fp-refactor是一款code方向的AI技能,核心价值是Comprehensive guide for refactoring imperative TypeScript code to fp-ts functional patterns,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

Comprehensive guide for refactoring imperative TypeScript code to fp-ts functional patterns

Last verified on: 2026-05-30
mkdir -p ./skills/fp-refactor && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/fp-refactor/SKILL.md -o ./skills/fp-refactor/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

Comprehensive guide for refactoring imperative TypeScript code to fp-ts functional patterns

🎯 Best For

  • Tech leads planning refactors
  • Developers modernizing legacy code
  • UI designers
  • Product designers
  • Claude users

💡 Use Cases

  • Migrating from class components to hooks
  • Breaking apart monolithic functions
  • Generating component mockups
  • Creating design system tokens

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply fp-refactor to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does this handle breaking changes?

Refactoring skills identify breaking changes but always run your test suite after applying suggestions.

Does this work with Figma?

Some design skills integrate with Figma plugins. Check the Works With section for supported tools.

Is fp-refactor compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for fp-refactor?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install fp-refactor?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/fp-refactor/SKILL.md, ready to use.

⚠️ Common Mistakes to Avoid

Refactoring without tests

Never refactor critical paths without a comprehensive test suite to catch regressions.

Skipping usability testing

AI-generated designs should be validated with real users before development.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills