मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग48k · #4647

fp-refactor

यह क्या करती है

यह टूल TypeScript में लिखे गए कोड को पारंपरिक (imperative) तरीके से fp-ts लाइब्रेरी वाले functional programming स्टाइल में बदलने में मदद करता है। इस बदलाव के लिए यह एक पूरी गाइड देता है।

कब इस्तेमाल करें

  • ✓मौजूदा TypeScript कोड को fp-ts के functional patterns की ओर refactor करते समय।
  • ✓जब `try/catch`, null checks, callbacks या loops जैसे blocks को functional तरीकों में बदलना हो।
  • ✓जब आपको सिर्फ अलग-अलग उदाहरण नहीं, बल्कि migration का मार्गदर्शन और उसके tradeoffs भी चाहिए।

Skill का लिंक

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/fp-refactor/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/fp-refactor/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं अपने imperative TypeScript कोड को fp-ts के functional patterns इस्तेमाल करने के लिए कैसे refactor करूँ, जिसमें try/catch blocks और null checks को बदलना भी शामिल हो?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह टूल आपके TypeScript कोड का विश्लेषण करता है और fp-ts लाइब्रेरी के functional programming patterns लागू करता है। यह imperative structures की जगह functional तरीके अपनाने में आपकी मदद करता है, जैसे error handling के लिए `Either` और optional values के लिए `Option` का इस्तेमाल।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Refactoring Imperative Code to fp-ts

This skill provides comprehensive patterns and strategies for migrating existing imperative TypeScript code to fp-ts functional programming patterns.

Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

When to Use

  • You are refactoring an existing imperative TypeScript codebase toward fp-ts patterns.
  • The task involves converting try/catch, null checks, callbacks, DI, or loops into functional equivalents.
  • You need migration guidance and tradeoffs, not just isolated fp-ts examples.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
अक्सर पूछे जाने वाले सवाल

functional programming क्या है?

यह एक programming स्टाइल है, जिसमें computation को गणितीय functions के evaluation की तरह देखा जाता है और state व mutable data को बदलने से बचा जाता है।

fp-ts क्या है?

यह TypeScript के लिए एक लाइब्रेरी है, जो TypeScript में functional programming के फायदे लाती है। इसमें ऐसे types और functions होते हैं जिनसे कोड को ज़्यादा मज़बूत और स्पष्ट बनाया जा सके।

imperative कोड क्या है?

यह एक programming स्टाइल है, जिसमें बताया जाता है कि program अपनी state को कैसे बदले। इसमें commands के ज़रिए step by step state बदली जाती है।

जानकारी

लेखक का मूल विवरण

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

repo: sickn33/agentic-awesome-skills

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#4647
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

AI और एजेंटएजेंट

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

AI और एजेंटएजेंट

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills