effect-program-design
यह क्या करती है
यह AI एजेंट को Effect TypeScript ऐप्स बनाने का मार्गदर्शन देती है, जिनमें साफ़ सर्विस, टाइप्ड एरर और आसानी से टेस्ट होने वाली लेयर हों। यह उन डेवलपर्स के लिए है जो Effect लाइब्रेरी इस्तेमाल करते हैं और रखरखाव योग्य कोड चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप Effect ऐप में कोई सर्विस या लेयर बना या बदल रहे हैं।
- ✓जब आपको Effect प्रोग्राम में टाइप्ड एरर, कॉन्फ़िगरेशन या बैकग्राउंड वर्कर चाहिए।
- ✓जब आप ऐसे टेस्ट चाहते हैं जो असली सीमाओं पर नकली निर्भरताएँ लगा सकें।
Skill का लिंक
https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/effect-program-design/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Effect ऐप में एक ईमेल भेजने वाली सर्विस जोड़िए, जिसमें सही एरर हैंडलिंग और टेस्ट हों।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पहले आपके प्रोजेक्ट के नियम और इंस्टॉल किया Effect संस्करण जाँचता है, फिर लाइब्रेरी के पैटर्न का पालन करने वाला कोड लिखता है। हर हिस्से को आसानी से टेस्ट करने के लिए वह छोटे सर्विस इंटरफ़ेस इस्तेमाल करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Effect Program Design
Build production Effect v4 programs with small domain-shaped interfaces, typed success and error channels, declared dependencies, observable operation boundaries, and tests that substitute layers at real seams. This skill combines broad Effect mechanics with HumanLayer's deep-module, capture-before-narrow, and real-seam design standards.
Source rule
Check these before guessing:
- the nearest
CLAUDE.md/AGENTS.mdand project-local conventions; - the installed
effect,@effect/*, and related package versions and declarations; - the Effect v4 docs at https://effect-ts-effect-smol.mintlify.app/;
- the pinned/upstream source (
~/projects/effect-smol) when docs do not settle an API.
unstable-tagged modules (effect/http, effect/rpc, effect/process, ...) can change between beta/minor versions. Typecheck examples against the installed version. Local
project conventions take precedence unless the task explicitly changes them.
References
Read only the references relevant to the task; read all matching branches when work crosses concerns.
- Public module depth and domain-shaped APIs:
references/DEEP_MODULES.md. Read this any time you are modifying or creating services or layers - this is the core of our effect philosophy! - Service tags, live layers, file placement,
Effect.fn, or runtime composition:references/SERVICES_LAYERS.md. - Tagged errors, capture-before-narrow, spans, logs, or Sentry:
references/ERRORS_OBSERVABILITY.md. - Records, schemas, variants, optionality, brands, decoding, or construction:
references/SCHEMA_DATA_MODELING.md. - Config, env vars, providers, or secrets:
references/CONFIG_SECRETS.md. - HTTP/SDK/DB boundaries, Drizzle rows, JSONB, or transactions:
references/BOUNDARIES_PERSISTENCE.md. - Scopes, acquisition, concurrency, best-effort work, or workflow transitions:
references/RESOURCES_CONCURRENCY.md. - Retry, repeat, polling, pacing, backoff, or workers:
references/SCHEDULING_WORKERS.md. - Streams, queues, pubsub, pagination, backpressure, or long-lived consumers:
references/STREAMS.md. - Memoization, TTL caches, request dedupe, or batching:
references/CACHING_BATCHING.md. - Outgoing HTTP, provider adapters, status/decode handling, or HTTP retry:
references/HTTP_CLIENTS.md. - Effect tests, test services, clocks, synchronization, fakes, or real seams:
references/TESTING.md. - Platform-neutral services and the native-API boundary:
references/PLATFORM.md. - Node runtime, filesystem, path, crypto, child processes, sockets/WebSocket, Redis, or workers:
references/PLATFORM_NODE.md. - Effect Atom or React reactive Effect state:
references/EFFECT_ATOM.md. - TypeScript safety, Predicate refinements, Match dispatch, naming, collections, imports, and escape hatches:
references/TYPESCRIPT_CONTRACTS.md. - Local exemplars and foils:
references/REPOSITORY_EXAMPLES.md.
The creed
Deep modules. The interface is the cost and the hidden implementation is the benefit. Public operations use domain inputs and outputs; callers do not supply credentials, clients, rows, or other internals.
Everything stays in Effect. Keep expected failures in
E, dependencies inR, and resources in scopes. Do not pass services, layers, effects, or errors as ordinary values when composition expresses the relationship.Two-tier errors. Classify rich internal failures, capture them, then narrow to a small caller-actionable union. Prefer typed
catchTag/catchTags; never recover withinstanceof,Match, or manual_tagcomparisons. Respect the error channel! Errors stay in the error channel and are not passed as valuesObserve operations. Every public operation has a stable
Effect.fn("domain.operation"), an explicitEffect.withSpan, or both. Capture raw actionable/unexpected failures before narrowing or swallowing them.
Use Effect's logger to log info, errors, etc -yield* Effect.logError- do NOT pass in external loggers. Errors MUST also be captured to sentry as soon as they surface before they are re-mapped or transformed.someEffect.pipe( Effect.tapError(Effect.logError), Effect.tapError((e) => Effect.sync(() => Sentry.captureException(e))), )Test at real seams. Use
@effect/vitest, layers, deterministic test services, and real infrastructure where behavior depends on it. Assert both the result/error and externally v
अक्सर पूछे जाने वाले सवाल
क्या मुझे Effect पहले से जानना ज़रूरी है?
कुछ TypeScript की जानकारी मददगार है, पर स्किल Effect के पैटर्न में एजेंट का मार्गदर्शन करती है।
क्या यह मेरे इंस्टॉल किए Effect संस्करण से मेल खाएगी?
हाँ। यह इंस्टॉल किया संस्करण जाँचती है और उदाहरणों की टाइप-जाँच उसी के हिसाब से करती है, क्योंकि कुछ मॉड्यूल रिलीज़ों के बीच बदलते हैं।
Effect के कौन-से हिस्से कवर होते हैं?
इसमें सर्विस, स्कीमा, एरर, कॉन्फ़िगरेशन, कंकरेंसी, स्ट्रीम, कैशिंग और HTTP क्लाइंट शामिल हैं।
जानकारी
लेखक का मूल विवरण
Design, write, review, and test production Effect v4 programs: deep services and layers, schemas, tagged errors, observability, Config, persistence, resources, concurrency, schedules, workers, streams, caches, HTTP clients, Effect platform services (Node filesystem/path/crypto/process/socket), and Effect Atom integrations. Use for any Effect application or adapter work.
repo: humanlayer/humanlayer
लोकप्रियता
- GitHub स्टार
- 13k
- रैंकिंग में स्थान
- #11384
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
asd-ste100
13kउलझे हुए अंग्रेज़ी टेक्स्ट को छोटे, एक-अर्थ वाले वाक्यों में बदलना सिखाती है, जो लोगों और दूसरे सॉफ़्टवेयर दोनों के लिए पढ़ने में आसान हों।
better-github-skill
13kतैयार GitHub स्क्रिप्ट से pull request की स्थिति जाँचने, उसकी समीक्षा टिप्पणियाँ पढ़ने, और CI बिल्ड क्यों विफल हुआ यह पता करने में आपके एजेंट की मदद करती है।
calldiff
13kकोड समीक्षा में बदलाव का असर देखने के लिए, दो git संस्करणों के बीच कोड में फ़ंक्शन कॉल की श्रृंखलाओं की तुलना करने में मदद करती है।
chrome-devtools-cli
13kआपके एजेंट को टर्मिनल से Chrome चलाने देती है, ताकि वह पेज खोल सके, क्लिक कर सके, फ़ॉर्म भर सके और ब्राउज़र ऑटोमेशन व टेस्टिंग के लिए पेज का स्नैपशॉट ले सके।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।