Loading...
Loading...
Complete catalog of 130+ Effect-TS patterns from EffectPatterns repository. Use when looking for specific implementation patterns, best practices, or real-world examples. Complements other skills with concrete, curated patterns.
npx skill4agent add mepuka/effect-ontology effect-patterns-hub.claude/skills/effect-patterns-hub/patterns/docs/effect-patterns/constructor-succeed-some-right.mdxconstructor-sync-async.mdxconstructor-try-trypromise.mdxconstructor-from-nullable-option-either.mdxcreate-pre-resolved-effect.mdxcombinator-map.mdxcombinator-flatmap.mdxcombinator-sequencing.mdxcombinator-zip.mdxcombinator-filter.mdxcombinator-conditional.mdxcombinator-foreach-all.mdxwrite-sequential-code-with-gen.mdxuse-gen-for-business-logic.mdxuse-pipe-for-composition.mdxconditionally-branching-workflows.mdxcontrol-flow-with-combinators.mdxcontrol-repetition-with-schedule.mdxdefine-tagged-errors.mdxpattern-catchtag.mdxhandle-errors-with-catch.mdxretry-based-on-specific-errors.mdxhandle-flaky-operations-with-retry-timeout.mdxmapping-errors-to-fit-your-domain.mdxhandle-unexpected-errors-with-cause.mdxhandle-api-errors.mdxrun-effects-in-parallel-with-all.mdxrun-background-tasks-with-fork.mdxprocess-collection-in-parallel-with-foreach.mdxrace-concurrent-effects.mdxunderstand-fibers-as-lightweight-threads.mdxdecouple-fibers-with-queue-pubsub.mdxpoll-for-status-until-task-completes.mdximplement-graceful-shutdown.mdxmodel-dependencies-as-services.mdxunderstand-layers-for-dependency-injection.mdxscoped-service-layer.mdxorganize-layers-into-composable-modules.mdxcompose-scoped-layers.mdxprovide-config-layer.mdxadd-caching-by-wrapping-a-layer.mdxsafely-bracket-resource-usage.mdxmanage-resource-lifecycles-with-scope.mdxmanual-scope-management.mdxcreate-managed-runtime-for-scoped-resources.mdxprocess-streaming-data-with-stream.mdxstream-from-iterable.mdxstream-from-file.mdxstream-from-paginated-api.mdxstream-process-concurrently.mdxstream-process-in-batches.mdxstream-collect-results.mdxstream-run-for-effects.mdxstream-manage-resources.mdxstream-retry-on-failure.mdxdefine-contracts-with-schema.mdxparse-with-schema-decode.mdxtransform-data-with-schema.mdxvalidate-request-body.mdxbrand-model-domain-type.mdxbrand-validate-parse.mdxdefine-config-schema.mdxdata-option.mdxmodel-optional-values-with-option.mdxdata-either.mdxaccumulate-multiple-errors-with-either.mdxdata-chunk.mdxuse-chunk-for-high-performance-collections.mdxdata-array.mdxdata-hashset.mdxdata-duration.mdxrepresenting-time-spans-with-duration.mdxdata-datetime.mdxbeyond-the-date-type.mdxdata-bigdecimal.mdxdata-cause.mdxdata-exit.mdxdata-ref.mdxmanage-shared-state-with-ref.mdxdata-redacted.mdxdata-case.mdxdata-class.mdxdata-struct.mdxdata-tuple.mdxpattern-match.mdxpattern-matcheffect.mdxpattern-matchtag.mdxpattern-option-either-checks.mdxbuild-a-basic-http-server.mdxlaunch-http-server.mdxhandle-get-request.mdxmake-http-client-request.mdxcreate-a-testable-http-client-service.mdxsend-json-response.mdxextract-path-parameters.mdxprovide-dependencies-to-routes.mdxmocking-dependencies-in-tests.mdxuse-default-layer-for-tests.mdxwrite-tests-that-adapt-to-application-code.mdxleverage-structured-logging.mdxobservability-structured-logging.mdxtrace-operations-with-spans.mdxobservability-tracing-spans.mdxadd-custom-metrics.mdxobservability-custom-metrics.mdxobservability-opentelemetry.mdxobservability-effect-fn.mdxexecute-with-runpromise.mdxexecute-with-runsync.mdxexecute-long-running-apps-with-runfork.mdxcreate-reusable-runtime-from-layers.mdxaccess-config-in-context.mdxdefine-config-schema.mdxprovide-config-layer.mdxaccessing-current-time-with-clock.mdxrepresenting-time-spans-with-duration.mdxbeyond-the-date-type.mdxcontrol-repetition-with-schedule.mdxsetup-new-project.mdxsupercharge-your-editor-with-the-effect-lsp.mdxteach-your-ai-agents-effect-with-the-mcp-server.mdxcomparing-data-by-value-with-structural-equality.mdxunderstand-effect-channels.mdxeffects-are-lazy.mdxdistinguish-not-found-from-errors.mdxsolve-promise-problems-with-effect.mdxavoid-long-andthen-chains.mdxGrep# Find patterns about error handling
grep -l "error" patterns/*.mdx
# Find patterns about concurrency
grep -l "concurrent\|parallel\|fiber" patterns/*.mdx
# Find patterns about HTTP
grep -l "http\|server\|client" patterns/*.mdx
# Find patterns about testing
grep -l "test\|mock" patterns/*.mdxtitleidskillLeveluseCasesummarytagsrelatedgrep -l "constructor" patterns/*.mdxconstructor-*.mdxgrep -l "error\|catch\|retry" patterns/*.mdxhandle-*.mdxpattern-catchtag.mdxgrep -l "concurrent\|parallel\|all\|fork" patterns/*.mdxrun-effects-in-parallel-with-all.mdxgrep -l "service\|layer\|dependency" patterns/*.mdxmodel-dependencies-as-services.mdxunderstand-layers-for-dependency-injection.mdxgrep -l "schema\|validate\|parse" patterns/*.mdxdefine-contracts-with-schema.mdxparse-with-schema-decode.mdxeffect-foundationsorganize-layers-into-composable-modules.mdxmodel-dependencies-as-services.mdxscoped-service-layer.mdxhandle-get-request.mdxvalidate-request-body.mdxretry-based-on-specific-errors.mdxrun-effects-in-parallel-with-all.mdxmocking-dependencies-in-tests.mdxuse-default-layer-for-tests.mdxwrite-tests-that-adapt-to-application-code.mdxReadrelated@effect-engineer@effect-architectprocess-collection-in-parallel-with-foreach.mdxconstructor-try-trypromise.mdxsolve-promise-problems-with-effect.mdxavoid-long-andthen-chains.mdxuse-gen-for-business-logic.mdxmodel-dependencies-as-services.mdxsafely-bracket-resource-usage.mdx---
title: Human-readable title
id: kebab-case-id
skillLevel: beginner | intermediate | advanced
useCase: primary-use-case
summary: Brief description
tags:
- keyword1
- keyword2
related:
- related-pattern-id-1
- related-pattern-id-2
author: Author name
---
# Title
## Guideline
What to do
## Rationale
Why do it this way
## Good Example
✅ Recommended approach
## Bad Example
❌ What to avoid
## Related Patterns
Links to related patternscd /tmp
git clone --depth=1 https://github.com/PaulJPhilp/EffectPatterns.git
cp -r EffectPatterns/content/published/* /Users/pooks/Dev/crate/.claude/skills/effect-patterns-hub/patterns/
cp -r EffectPatterns/content/published/* /Users/pooks/Dev/crate/docs/effect-patterns/