Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

effect-and-errors

Skill by latitude-dev

Guides an AI assistant to write Effect TypeScript programs, typed domain errors and HTTP-aware error handling. Built for developers working in codebases that follow its Effect and error conventions.

  • Score 80
  • 4.8k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install effect-and-errors

Built from the published package, never by AI.

git clone --depth 1 https://github.com/latitude-dev/latitude-llm /tmp/latitude-llm && mkdir -p ~/.claude/skills && cp -r /tmp/latitude-llm/.agents/skills/effect-and-errors ~/.claude/skills/effect-and-errors

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install effect-and-errors in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant a set of rules for writing Effect TypeScript code and handling errors at HTTP boundaries. It tells the assistant to check the effect-solutions guides before writing Effect code, and to use Effect.gen for sequential composition, Effect.tryPromise for promise-based APIs, and Data.TaggedError for domain errors. It also explains why scope-bound services such as SqlClient should be resolved on each call rather than captured when a layer is built.

Every domain error must implement an HttpError interface with httpStatus and httpMessage, and routes are expected to let errors propagate to a central error handler. The skill also asks for use cases to be wrapped in Effect.withSpan and for runPromise call sites to include withTracing for OpenTelemetry. It is written for developers working in a TypeScript codebase that follows these conventions, such as the @domain/issues layout.

Written from the project's SKILL.md and checked against it.

What it can do

  • Consult Effect guidesDirects the assistant to run effect-solutions list and show before writing Effect code.
  • Compose Effect programsPrefers Effect.gen for sequential composition and Effect.tryPromise for promise-based APIs.
  • Define typed domain errorsUses Data.TaggedError for domain-specific error types instead of raw Error.
  • Map errors to HTTP responsesRequires domain errors to implement httpStatus and httpMessage from the HttpError interface.
  • Resolve scoped services per callExplains why scope-bound services like SqlClient must not be captured at layer build.
  • Instrument use casesRequires Effect.withSpan with span names such as scores.writeScore and annotated business IDs.
  • Add tracing at edgesRequires withTracing in the pipe chain of Effect.runPromise call sites.
  • Organize domain errorsDescribes colocating errors in src/errors.ts and exporting union types per flow.

What you need

  • effect-solutions CLI with its guides available through effect-solutions list
  • Local clone of the Effect v4 repository at ~/.local/share/effect-solutions/effect
  • @effect/opentelemetry and @repo/observability for tracing
  • @repo/utils for the HttpError interface

Try asking

  • Write an Effect.gen use case that returns a typed NotFoundError
  • Add a domain error with httpStatus 502 and a static httpMessage
  • Wrap my new use case with Effect.withSpan and annotate the project ID

Good to know

  • Rules are written for Effect v4 and this repository's conventions and file paths.
  • Effect.withSpan calls do nothing unless withTracing is used at runPromise call sites.
  • Some rules reference internal docs such as dev-docs/repositories.md that are not part of the skill.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/effect-and-errors/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md9 KB

Alternatives to effect-and-errors

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

effect-and-errors: common questions

Does this skill require the effect-solutions tool?

The skill tells the assistant to run effect-solutions list and show before writing Effect code, and to search the cloned Effect v4 repository for real implementations.

What is the HttpError interface?

It is an interface from @repo/utils with readonly _tag, httpStatus and httpMessage fields. Every domain error should implement it, even if it is not yet sent over HTTP.

Why should services not be captured at layer build?

Services bound to a request or job scope can be shared by concurrent callers with different scopes, so they may silently operate on the wrong context.

How do I install effect-and-errors?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is effect-and-errors free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is effect-and-errors safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to effect-and-errors?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

effect-and-errors Install

Add to stack

Loading.