All skills
paulrberg avatar

/effect-ts

@5a97bbf
by Paul Bergpaulrberg/agent-skills94 stars
7

Use for nontrivial Effect 3 work including services/layers, typed errors, Schema/JSONSchema, Config, runtime/concurrency, @effect/vitest, @effect/ai, @effect/sql, Effect Atom, or @prb/effect-next.

Use this Skill: https://skilld.dev/gh/paulrberg/agent-skills/effect-ts

This session only. Nothing lands on disk.

referencessql.md

≈276 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Effect SQL

Use the installed @effect/sql package source for exact driver and helper signatures. Keep SQL at repository boundaries and return domain values rather than unchecked row shapes.

Decode Rows

Prefer SqlSchema.findOne, SqlSchema.findAll, or SqlSchema.single when their cardinality matches the query. A raw SQL type parameter describes a row but does not validate database output.

Use precise schemas for identifiers, literals, decimals, and encoded values. Keep absence as Option<A> when no row is normal; translate it to a tagged domain error when the service contract requires existence.

Preserve Repository and Transaction Boundaries

Repository services may expose domain errors while retaining driver and decode causes for diagnostics. Map expected SQL or decode failures with Effect.mapError; do not map defects through catchAllCause in ordinary repository code.

Use the client's transaction API for writes that must commit atomically. Include audit, outbox, or ledger writes in the same transaction only when the product invariant requires one commit boundary.

Source: SKILL.md on GitHub

No alerts7d5 checks · Risk SAFE
  • Gen Agent Trust Hub7d

    The skill provides comprehensive guidelines and best practices for developing with the Effect 3 library ecosystem. It focuses on correct usage of functional programming patterns, error handling, configuration management, and testing, while promoting security-aware practices like secret redaction and runtime schema validation.

  • Socket7d

    No alerts

  • Snyk7d

    Risk: LOW · No issues

  • Runlayer6mo

    7 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 5a97bbf. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
Other metadata
compatibility
Requires a project using current stable Effect 3 packages; verify exact APIs against the target's installed package source.

README badge

README badge for paulrberg/agent-skills/effect-ts