xiaohongshu
xiaohongshu
effect-patterns-hub
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.
Full skill instructions
Purpose: Provide quick access to 130+ curated Effect-TS patterns from the EffectPatterns repository. Use this skill to find specific implementation patterns, compare approaches, and reference best practices.
Local Patterns: .claude/skills/effect-patterns-hub/patterns/
Documentation: docs/effect-patterns/
Count: 130+ patterns in MDX format
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.mdx, model-optional-values-with-option.mdxdata-either.mdx, accumulate-multiple-errors-with-either.mdxdata-chunk.mdx, use-chunk-for-high-performance-collections.mdxdata-array.mdxdata-hashset.mdxdata-duration.mdx, representing-time-spans-with-duration.mdxdata-datetime.mdx, beyond-the-date-type.mdxdata-bigdecimal.mdxdata-cause.mdxdata-exit.mdxdata-ref.mdx, manage-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.mdx, observability-structured-logging.mdxtrace-operations-with-spans.mdx, observability-tracing-spans.mdxadd-custom-metrics.mdx, observability-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.mdxBeginner (Getting Started)
Intermediate (Building Applications)
Advanced (Production Systems)
Domain Modeling
API Development
Data Processing
Application Architecture
Testing
Observability
Use Grep to search patterns by keyword:
# 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/*.mdx
All patterns include metadata:
title: Human-readable nameid: Unique identifier (filename without extension)skillLevel: beginner, intermediate, advanceduseCase: domain-modeling, error-handling, concurrency, etc.summary: Brief descriptiontags: Keywords for searchingrelated: Links to related patterns"How do I create an Effect from..."
grep -l "constructor" patterns/*.mdxconstructor-*.mdx files"How do I handle errors when..."
grep -l "error\|catch\|retry" patterns/*.mdxhandle-*.mdx and pattern-catchtag.mdx"How do I run multiple things concurrently?"
grep -l "concurrent\|parallel\|all\|fork" patterns/*.mdxrun-effects-in-parallel-with-all.mdx"How do I work with services?"
grep -l "service\|layer\|dependency" patterns/*.mdxmodel-dependencies-as-services.mdx, understand-layers-for-dependency-injection.mdx"How do I validate data?"
grep -l "schema\|validate\|parse" patterns/*.mdxdefine-contracts-with-schema.mdx, parse-with-schema-decode.mdxWhen you need concrete examples for foundation concepts, check patterns:
effect-foundations teaches concepts → patterns show implementationWhen designing systems, reference architectural patterns:
organize-layers-into-composable-modules.mdxmodel-dependencies-as-services.mdxscoped-service-layer.mdxWhen implementing features, find relevant patterns:
handle-get-request.mdx, validate-request-body.mdxretry-based-on-specific-errors.mdxrun-effects-in-parallel-with-all.mdxWhen writing tests, reference testing patterns:
mocking-dependencies-in-tests.mdxuse-default-layer-for-tests.mdxwrite-tests-that-adapt-to-application-code.mdxRead tool on the pattern filerelated links in pattern frontmatter@effect-engineer or @effect-architectIf you find yourself:
process-collection-in-parallel-with-foreach.mdxconstructor-try-trypromise.mdx, solve-promise-problems-with-effect.mdxavoid-long-andthen-chains.mdx, use-gen-for-business-logic.mdxmodel-dependencies-as-services.mdxsafely-bracket-resource-usage.mdxEach pattern file follows this structure:
---
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 patterns
Patterns are synced from EffectPatterns repository.
To update patterns:
cd /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/
Use this skill as your go-to reference for "How do I... with Effect?"
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience