Agent skill

Wrdn Effect Typed Errors

by UsefulSoftwareCo in UsefulSoftwareCo/executor

Fix lint findings that use untyped JavaScript error handling instead of Effect typed failures.

MITAuto-check: notesDevelopment

Install Wrdn Effect Typed Errors

skills CLI
$ npx skills add UsefulSoftwareCo/executor --skill wrdn-effect-typed-errors -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install UsefulSoftwareCo/executor wrdn-effect-typed-errors --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/wrdn-effect-typed-errors .claude/skills/wrdn-effect-typed-errors && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
wrdn-effect-typed-errors
GitHub stars
4.1k
Token cost
~3k tokens
SKILL.md length
1,191 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

Fix lint findings that use untyped JavaScript error handling instead of Effect typed failures.

  • Works in 7 steps: Identify the boundary. Is this Effect… → Find the existing domain errors. Check… → Decide whether a new error is needed.… → …
  • Lint flags new Error
  • SKILL.md covers Trace before changing, Preserve behavior first, Boundary exceptions and Repo Effect API compatibility, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Wrdn Effect Typed Errors is an agent skill from UsefulSoftwareCo/executor. Fix lint findings that use untyped JavaScript error handling instead of Effect typed failures. Use when lint flags new Error, throw, try/catch, Promise.catch, Promise.reject, instanceof Error, unknown error message/stringification, or redundant helpers that only construct tagged errors.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Linting and formatting. It works with JavaScript. The repository describes itself as: The missing integration layer for AI agents. Let them call any OpenAPI / MCP / GraphQL / custom js functions in secure environment. The licence is MIT.

When your agent uses it

  • Lint flags new Error
  • Instanceof Error
  • Unknown error message/stringification
  • Redundant helpers that only construct tagged errors

Example prompts

  • “/wrdn-effect-typed-errors”

Requirements

  • Pre-approved tools (allowed-tools): Read, Grep, Glob, Bash

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Identify the boundary. Is this Effect domain code, React UI code, a third-party callback, or plain test/tooling code?
  2. Find the existing domain errors. Check nearby errors.ts, Schema.TaggedError, Data.TaggedError, and API .addError(...) declarations before…
  3. Decide whether a new error is needed. Add a new tagged error only if callers have a distinct recovery path, HTTP status, UI affordance…
  4. Preserve failure semantics. If the old code failed, the new code should fail in the Effect error channel. Do not replace thrown failures…
  5. Preserve the typed channel. Do not convert typed failures into Error, thrown exceptions, String(error), or .message reads from unknown…
  6. Recognize real boundaries. Runtime workers, Vite/CLI tooling, callback APIs, and third-party interfaces may have to throw, catch, or…
  7. Do not hide construction behind trivial helpers. Inline new DomainError(...) unless the helper branches on input or maps an external error…

What it can do on your machine

Read from SKILL.md and the folder at commit 27dccb8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Grep
    • Glob
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Wrdn Effect Typed Errors loads about 3k tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 1,191 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
When it runs · the whole SKILL.md, loaded when a task matches
~3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Grep, Glob, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from UsefulSoftwareCo/executor at commit 27dccb8, republished under its MIT licence (© UsefulSoftwareCo). 1,191 words, ~3,041 tokens.

Download SKILL.mdSave it as .claude/skills/wrdn-effect-typed-errors/SKILL.md (or your agent's skills folder).
name
wrdn-effect-typed-errors
description
Fix lint findings that use untyped JavaScript error handling instead of Effect typed failures. Use when lint flags new Error, throw, try/catch, Promise.catch, Promise.reject, instanceof Error, unknown error message/stringification, or redundant helpers that only construct tagged errors.
allowed-tools
Read, Grep, Glob, Bash

You fix one family of patterns: untyped JavaScript error handling in Effect code.

The preferred boundary is typed Schema.TaggedError / Data.TaggedError values in the Effect error channel. Construct the tagged error directly at the failure site unless a helper performs real classification or normalization.

Trace before changing

  1. Identify the boundary. Is this Effect domain code, React UI code, a third-party callback, or plain test/tooling code?
  2. Find the existing domain errors. Check nearby errors.ts, Schema.TaggedError, Data.TaggedError, and API .addError(...) declarations before adding a new class.
  3. Decide whether a new error is needed. Add a new tagged error only if callers have a distinct recovery path, HTTP status, UI affordance, retry policy, or telemetry classification.
  4. Preserve failure semantics. If the old code failed, the new code should fail in the Effect error channel. Do not replace thrown failures with fallback values like false, null, undefined, [], or "unknown" unless the existing contract already treats that condition as non-fatal.
  5. Preserve the typed channel. Do not convert typed failures into Error, thrown exceptions, String(error), or .message reads from unknown values.
  6. Recognize real boundaries. Runtime workers, Vite/CLI tooling, callback APIs, and third-party interfaces may have to throw, catch, or reject at the boundary. Do not contort those files into fake Effect shapes. Keep the boundary idiom when it is contained and immediately wrapped into an Effect error channel, stable IPC envelope, or test/tooling result.
  7. Do not hide construction behind trivial helpers. Inline new DomainError(...) unless the helper branches on input or maps an external error format into a domain error.

Preserve behavior first

The lint rule is about where the failure lives, not whether the operation should still fail.

Bad fix: this removes the lint finding by silently changing invalid input into a non-match.

ts
case "in":
  if (!Array.isArray(value)) return false;
  return value.some((v) => cmp(lhs, v));

Good fix: keep the invalid input as a failure, but make it typed.

ts
case "in":
  if (!Array.isArray(value)) {
    return Effect.fail(
      new StorageError({ message: "Value must be an array", cause: clause }),
    );
  }
  return Effect.succeed(value.some((v) => cmp(lhs, v)));

When the containing helper was synchronous, make the helper return Effect.Effect<Success, DomainError> and thread that through callers. Do not collapse the error into a success value to avoid changing call sites.

Boundary exceptions

The lint rule is not a mandate to make every file Effect-shaped. It is acceptable to keep try/catch, throw, new Error, .catch, or String(error) at a true adapter boundary when all of these are true:

  • the surrounding API is inherently throwing, callback-based, Promise-based, process/IPC-based, or plain JS tooling
  • the untyped behavior is contained to the boundary function or module
  • control is immediately translated into a typed Effect failure, stable IPC payload, stable test assertion, or deliberately best-effort cleanup
  • the suppression is narrow and explains the boundary

Repo Effect API compatibility

Use the APIs that exist in this repo's pinned Effect runtime:

  • Use Effect.callback for callback adapters. Do not use Effect.async.
  • Use Effect.andThen or Effect.gen sequencing. Do not use Effect.zipRight.
  • Use Effect.timeoutOrElse or Effect.timeoutOption. Do not use Effect.timeoutFail.

These are not style preferences; the unavailable APIs fail at typecheck or runtime.

Good boundary suppression:

ts
// oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: JSON.parse feeds stable IPC failure envelope
try {
  const message = JSON.parse(line);
  handleHostMessage(message);
} catch (error) {
  writeIpcMessage({ type: "failed", error: formatBoundaryError(error) });
}

Bad boundary fix: do not replace natural boundary code with fake thenables, fake error objects, promise chains that emulate try/catch, or broad helper machinery solely to make lint pass.

ts
return makeRejectedThenable(makeErrorLike("Tool path missing"));

For Effect domain code, fix the code. For boundary code, either wrap once with Effect.try / Effect.tryPromise at the entry point or use a narrow suppression with a reason.

Fix shapes

Throw / new Error

Bad:

ts
throw new Error("Missing source");

Good in Effect.gen:

ts
return yield * new SourceNotFoundError({ sourceId });

Good in combinators:

ts
Effect.fail(new SourceNotFoundError({ sourceId }));

If a third-party interface requires throwing, keep the throw at the adapter edge only and convert back into a typed failure as soon as control returns to Effect. Prefer a narrow oxlint-disable-next-line with a boundary: reason over code contortions.

Effect.fail inside generators

Prefer yielding the error directly in generator code:

ts
return yield * new SourceNotFoundError({ sourceId });

Do not write:

ts
return yield * Effect.fail(new SourceNotFoundError({ sourceId }));

Use Effect.fail(...) in non-generator combinator code:

ts
Effect.flatMap(
  source,
  Option.match({
    onNone: () => Effect.fail(new SourceNotFoundError({ sourceId })),
    onSome: Effect.succeed,
  }),
);
Promise.catch / Promise.reject

Bad:

ts
await client.close().catch(() => {});
return Promise.reject(new Error("failed"));

Good:

ts
Effect.tryPromise({
  try: () => client.close(),
  catch: (cause) => new ClientCloseError({ cause }),
});

If the failure is intentionally ignored:

ts
Effect.ignore(
  Effect.tryPromise({
    try: () => client.close(),
    catch: (cause) => new ClientCloseError({ cause }),
  }),
);
Effect die / orDie escape hatches

Bad in domain code:

ts
program.pipe(Effect.orDie);
Effect.die(error);

Good:

ts
program.pipe(Effect.mapError((cause) => new DomainError({ message: "Operation failed", cause })));

Effect.die, Effect.dieMessage, Effect.orDie, and Effect.orDieWith turn typed failures into defects. Use them only at a true runtime boundary where the host cannot represent typed failures, and keep that usage behind a narrow lint suppression with a boundary: reason. Do not use orDie to avoid threading an error type through normal Effect code.

try/catch

Bad:

ts
try {
  return JSON.parse(text);
} catch (cause) {
  return new ParseError({ message: String(cause) });
}

Good for schema-backed input:

ts
Schema.decodeUnknownEffect(Schema.fromJsonString(InputSchema))(text).pipe(
  Effect.mapError(() => new ParseError({ message: "Failed to parse input" })),
);

Good for non-schema throwing APIs:

ts
Effect.try({
  try: () => new URL(value),
  catch: (cause) => new UrlParseError({ value, cause }),
});
Show full SKILL.md (497 more words)Show less
Unknown error message / instanceof Error

Bad:

ts
err instanceof Error ? err.message : String(err);

Also bad: destructuring message only hides the same unknown-state problem from a shallow property-access lint.

ts
const { message } = err;
return message;

Prefer one of:

ts
Effect.mapError((err) => new DomainError({ cause: err }));
ts
Effect.catchTag("KnownError", (err) => Effect.fail(new DomainError({ message: err.message })));

Only read .message from a typed error union when that field is explicitly part of the user-facing contract. Most boundary errors should instead use a stable product message and keep the original value in a separate cause, trace, log, or telemetry channel. Do not inspect unknown thrown values for domain behavior or customer copy.

If the lint rule overfires inside a branch that has already narrowed to a specific typed error, keep the direct typed read and use a narrow suppression with a reason. Do not rewrite to destructuring just to avoid the lint selector.

Bad: leaks internal provider/native details to users.

ts
Effect.tryPromise({
  try: () => client.call(),
  catch: (cause) =>
    new SourceError({
      message: cause instanceof Error ? cause.message : String(cause),
    }),
});

Good: user-facing message is stable; internal detail goes into cause only if the error type has an internal channel.

ts
Effect.tryPromise({
  try: () => client.call(),
  catch: (cause) =>
    new SourceError({
      message: "Failed to connect to source",
      cause,
    }),
});

If the error schema is serialized to customers and only has message, do not put internal details there. Prefer adding a non-serialized/internal cause field or logging/telemetry over suppressing the lint rule.

Manual tags and broad error laundering

Bad: manually probing _tag to recover from typed Effect failures.

ts
Effect.mapError((err) =>
  "_tag" in err && err._tag === "SecretOwnedByConnectionError"
    ? new SourceError({ message: "Failed to resolve secret" })
    : err,
);

Good: catch the one typed case you intentionally translate.

ts
effect.pipe(
  Effect.catchTag("SecretOwnedByConnectionError", () =>
    Effect.fail(new SourceError({ message: "Failed to resolve secret" })),
  ),
);

Do not wrap a typed error union into one local error only to satisfy a narrower helper signature. Widen the helper/cache/invocation error channel when callers can still use the original typed failure. Wrap only when the new error adds product meaning, such as turning a connection-owned secret into a source configuration problem.

For Effect data types, use public helpers instead of _tag checks:

ts
if (Option.isNone(parsed)) return null;
if (Exit.isFailure(exit)) return ...
Redundant error helpers

Bad:

ts
const connectionError = (message: string) =>
  new McpConnectionError({ transport: "remote", message });

return yield * connectionError("Endpoint URL is required");

Good:

ts
return (
  yield *
  new McpConnectionError({
    transport: "remote",
    message: "Endpoint URL is required",
  })
);

Helpers are allowed only when they do real work, such as:

  • choosing between different tagged errors
  • decoding/parsing an external error shape
  • preserving protocol-specific fields
  • normalizing third-party SDK failures into one domain error

New error or existing error?

Reuse an existing tagged error when only the message changes.

Create a new tagged error when a caller can reasonably branch differently:

  • different HTTP status
  • retry vs no retry
  • auth/sign-in affordance
  • not-found vs conflict vs validation
  • user-actionable vs internal failure
  • different telemetry grouping that should not depend on message text

Do not create one tagged error per sentence of prose.

What not to report

  • Test assertions that intentionally construct errors as fixture values.
  • Runtime adapter edges that must satisfy a third-party throwing API, IPC contract, process worker contract, or tooling contract, as long as the untyped behavior is contained and converted to typed Effect failure or a stable boundary envelope.
  • Real normalization helpers like toOAuth2Error(cause) that inspect protocol fields and preserve structured semantics.
  • React/effect-atom mutation handlers using try/catch; use wrdn-effect-promise-exit for that UI-specific boundary.

Output requirements

When reviewing, report:

  • File and line of the untyped error pattern.
  • Rule being violated.
  • Existing domain error to use, or the new tagged error that should exist.
  • Fix in the relevant shape: direct yield* new ErrorType(...), Effect.tryPromise, schema decode, or direct constructor inline.

When editing, keep the error type precise and avoid broad message parsing.

© UsefulSoftwareCo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/wrdn-effect-typed-errors of UsefulSoftwareCo/executor.

Open the folder on GitHubat commit 27dccb8

Compare with similar skills

Wrdn Effect Typed Errors next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Wrdn Effect Typed Errors compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Wrdn Effect Typed Errors this skillUsefulSoftwareCo/executor4.1k—~3kAutomated safety check: NotesMIT
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.2k—~2.2kAutomated safety check: PassMIT
Ultraciteagustinusnathaniel/nextarter-tailwind1252 repos~1.2kAutomated safety check: PassMIT
Find Similar Functionsmillionco/react-doctor15k—~1.2kAutomated safety check: PassCustom licence
Code Qualityredis/RedisInsight8.9k—~1.2kAutomated safety check: PassCustom licence
Port Ruleweb-infra-dev/rslint460—~1.7kAutomated safety check: PassMIT

Similar skills

  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.2k GitHub stars~2.2k tokensUpdated 27 days ago
    DevelopmentAuto-check passed
  • Ultracite

    agustinusnathaniel/nextarter-tailwind

    Ultracite is a zero-config linting and formatting preset for JavaScript/TypeScript projects.

    125 GitHub starsUsed in 2 repos~1.2k tokens
    DevelopmentAuto-check passed
  • Find Similar Functions

    millionco/react-doctor

    Use truffler to find similar or pre-existing JavaScript/TypeScript symbols before implementing new code, especially helpers, utilities, parsers, formatters, scanners, fuzzy matchers, and other…

    15k GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Code Quality

    redis/RedisInsight

    Official

    Code-quality standards for RedisInsight: TypeScript strictness, naming conventions (camelCase, PascalCase, UPPERSNAKECASE), linting rules, no any without reason, no !important in styles, and…

    8.9k GitHub stars~1.2k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Port Rule

    web-infra-dev/rslint

    Port a new ESLint core or plugin rule to rslint, including explicitly requested batches.

    460 GitHub stars~1.7k tokensUpdated today
    DevelopmentAuto-check passed
  • Migrate Oxlint

    Asvarox/allkaraoke

    Guide for migrating a project from ESLint to Oxlint. An agent skill from Asvarox/allkaraoke.

    261 GitHub starsUsed in 4 repos~2.5k tokens
    DevelopmentAuto-check passed

More from UsefulSoftwareCo/executor

All 21 skills in this repo
  • Effect Client Wrapper

    UsefulSoftwareCo/executor

    Pattern for wrapping third-party SDK clients (Stripe, Resend, AWS, etc.) with Effect.

    4.1k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • CLI Release

    UsefulSoftwareCo/executor

    Runbook for releasing the executor CLI package (stable and beta).

    4.1k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Effect Atom Optimistic Updates

    UsefulSoftwareCo/executor

    Pattern for implementing optimistic UI updates with effect-atom in this codebase.

    4.1k GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Effect HTTP Testing

    UsefulSoftwareCo/executor

    Testing Effect HttpApi services end-to-end. An agent skill from UsefulSoftwareCo/executor.

    4.1k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Emulate

    UsefulSoftwareCo/executor

    Use the @executor-js/emulate service emulators (GitHub, Google, Stripe, Resend, WorkOS, …) to test integrations for real — full OpenAPI specs, working OAuth flows, mintable credentials, and a…

    4.1k GitHub stars~2.2k tokensUpdated today
    Auto-check: notes
  • Prod Telemetry

    UsefulSoftwareCo/executor

    Query Executor's production telemetry — Axiom traces (executor-cloud dataset), prod Postgres via PlanetScale, PostHog product analytics — through the Executor MCP.

    4.1k GitHub stars~1.9k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Wrdn Effect Typed Errors

What does Wrdn Effect Typed Errors do?

Fix lint findings that use untyped JavaScript error handling instead of Effect typed failures. Wrdn Effect Typed Errors is an agent skill from UsefulSoftwareCo/executor. Fix lint findings that use untyped JavaScript error handling instead of Effect typed failures.

When should I use Wrdn Effect Typed Errors?

Wrdn Effect Typed Errors fits situations like: lint flags new Error; instanceof Error; unknown error message/stringification; redundant helpers that only construct tagged errors.

How do I install Wrdn Effect Typed Errors in Claude Code?

Run `npx skills add UsefulSoftwareCo/executor --skill wrdn-effect-typed-errors -a claude-code`. Or copy the skill folder (.agents/skills/wrdn-effect-typed-errors in UsefulSoftwareCo/executor) into .claude/skills/wrdn-effect-typed-errors in your project. Claude Code loads it when a task matches its description.

How do I install Wrdn Effect Typed Errors in Codex?

Run `npx skills add UsefulSoftwareCo/executor --skill wrdn-effect-typed-errors -a codex`. Or copy the skill folder (.agents/skills/wrdn-effect-typed-errors in UsefulSoftwareCo/executor) into .agents/skills/wrdn-effect-typed-errors in your project. Codex loads it when a task matches its description.

Can I use Wrdn Effect Typed Errors in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add UsefulSoftwareCo/executor --skill wrdn-effect-typed-errors -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wrdn-effect-typed-errors, .gemini/skills/wrdn-effect-typed-errors, .github/skills/wrdn-effect-typed-errors and .opencode/skills/wrdn-effect-typed-errors in your project.

What does Wrdn Effect Typed Errors need to run?

SKILL.md names no scripts, command-line tools or credentials: Wrdn Effect Typed Errors is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Grep, Glob, Bash.

Does Wrdn Effect Typed Errors access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Wrdn Effect Typed Errors safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Wrdn Effect Typed Errors use?

Wrdn Effect Typed Errors is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Wrdn Effect Typed Errors use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Wrdn Effect Typed Errors?

Skills that share tags, products or a category with Wrdn Effect Typed Errors: Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.2k stars), Ultracite (agustinusnathaniel/nextarter-tailwind, 125 stars), Find Similar Functions (millionco/react-doctor, 15k stars) and Code Quality (redis/RedisInsight, 8.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Wrdn Effect Typed Errors?

UsefulSoftwareCo (a GitHub organization) maintains it in UsefulSoftwareCo/executor, which has 4,085 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 7, 2026.

Source: UsefulSoftwareCo/executor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.