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

fp-ts-errors

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

यह tool सिखाता है कि programming errors को व्यवस्थित तरीके से कैसे संभालें। इसमें errors को ऐसी जानकारी माना जाता है जिसे computer समझ और track कर सके, न कि उन्हें नज़रअंदाज़ कर दिया जाए।

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

  • ✓जब आप चाहते हों कि आपका code errors को सुरक्षित और अनुमानित तरीके से संभाले।
  • ✓जब आप `try/catch` से बचना चाहते हों, जो code को उलझा हुआ बना सकता है।
  • ✓जब आप ऐसे सिस्टम बना रहे हों जिनमें साफ़ पहचानना ज़रूरी हो कि कौन-से प्रकार के errors आ सकते हैं।

Skill का लिंक

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

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

“मैं इस तकनीक का इस्तेमाल करके यह कैसे सुनिश्चित करूँ कि मेरा code errors को सुरक्षित तरीके से संभाले?”

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

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

जब कोई error आता है, तो program 'टूटने' के बजाय error को data के रूप में लौटाता है। इस तरह program को ठीक-ठीक पता रहता है कि समस्या क्या थी, और वह उसे नियंत्रित तरीके से संभाल सकता है।

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

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

Practical Error Handling with fp-ts

This skill teaches you how to handle errors without try/catch spaghetti. No academic jargon - just practical patterns for real problems.

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 This Skill

  • When you want type-safe error handling in TypeScript
  • When replacing try/catch with Either and TaskEither patterns
  • When building APIs or services that need explicit error types
  • When accumulating multiple validation errors

The core idea: Errors are just data. Instead of throwing them into the void and hoping someone catches them, return them as values that TypeScript can track.


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.
अक्सर पूछे जाने वाले सवाल

'Either' और 'TaskEither' क्या हैं?

ये code को व्यवस्थित करने के तरीके हैं, ताकि वह सफल result और error, दोनों को साफ़ और सुरक्षित तरीके से लौटा सके।

'try/catch' से क्यों बचें?

'try/catch' code को पढ़ने और समझने में कठिन बना सकता है, खासकर जब कई errors हों। यह तकनीक एक अधिक व्यवस्थित विकल्प देती है।

'Errors are data' का क्या मतलब है?

इसका मतलब है कि errors को ऐसी जानकारी माना जाता है जिसे program इस्तेमाल और track कर सके, न कि सिर्फ़ अचानक आने वाली रुकावट।

जानकारी

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

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

repo: sickn33/agentic-awesome-skills

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#4649
लाइसेंस
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