Skip to content
Back to skills

References

ASecurity

Work with Effect v4 TypeScript code in this repo

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 13, 2026
testingtypescripttestinggitapidatabase

Works with

  • api

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 13, 2026

npx -y skills add joeblackwaslike/agent-skills --skill references --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of References?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for References
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/joeblackwaslike-references-d8c31d70/badge)](https://www.skillsdirectory.com/skills/joeblackwaslike-references-d8c31d70)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: effect
description: Work with Effect v4 TypeScript code in this repo
source: "https://raw.githubusercontent.com/anomalyco/opencode/dev/.opencode/skills/effect/SKILL.md"
fetched_at: "2026-10-12T11:48:23.877Z"
sha256: "02ea7104fa70f67a00161610e1ce62e43bfaa7f8ec5e2af489a46ae617399cf7"
---

# Effect

This codebase uses Effect for typed, composable TypeScript services, schemas, and workflows.

## Source Of Truth

Use the current Effect v4 source, not memory or older Effect v2/v3 examples.

1. If `.opencode/references/effect` is missing, clone `https://github.com/Effect-TS/effect` there. Do this in the project, not in the skill folder.
2. Search `.opencode/references/effect` for exact APIs, examples, tests, and naming patterns before answering or implementing Effect-specific code.
3. Also inspect existing repo code for local house style before introducing new patterns.
4. Prefer answers and implementations backed by specific source files or nearby repo examples.

## Guidelines

- Prefer current Effect v4 APIs and project-local patterns over old blog posts, examples, or package-memory guesses.
- Use `Effect.gen(function* () { ... })` for multi-step workflows.
- Use `Effect.fn("Name")` or `Effect.fnUntraced(...)` for named effects when adding reusable service methods or important workflows.
- Prefer Effect `Schema` for API and domain data shapes. Use branded schemas for IDs and `Schema.TaggedErrorClass` for typed domain errors when modeling new error surfaces.
- Keep HTTP handlers thin: decode input, read request context, call services, and map transport errors. Put business rules in services.
- In Effect service code, prefer Effect-aware platform abstractions and dependencies over ad hoc promises where the surrounding code already does so.
- Keep layer composition explicit. Avoid broad hidden provisioning that makes missing dependencies hard to see.
- In tests, prefer the repo's existing Effect test helpers and live tests for filesystem, git, child process, locks, or timing behavior.
- Do not introduce `any`, non-null assertions, unchecked casts, or older Effect APIs just to satisfy types.
- Do not answer from memory. Verify against `.opencode/references/effect` or nearby code first.

## Testing Patterns

- Use `testEffect(...)` from `packages/core/test/lib/effect.ts` for tests that exercise Effect services, layers, runtime context, scoped resources, or platform integrations.
- Use `it.live(...)` for filesystem, git repositories, HTTP servers, sockets, child processes, locks, real time, and other live platform behavior.
- Run tests from package directories such as `packages/core`; never run package tests from the repo root.
- Prefer explicit test layers over ad hoc managed runtimes. Keep dependency provisioning visible in the test file.
- Use scoped fixtures and finalizers for resources that must be cleaned up, including temporary directories, flags, databases, fibers, servers, and global state.

Files in this skill

  • AGENTS.md12.8 KB
  • CHANGELOG.md11.1 KB
  • CONTEXT.md31.5 KB
  • CONTRIBUTING.md4.6 KB
  • README.md4.7 KB
  • SECURITY.md2.8 KB
  • STATS.md18.1 KB
  • V2_HTTP_API_AUDIT.md24.4 KB
  • agent-css.md4.4 KB
  • agent-duplicate-pr.md1.1 KB
  • agent-triage.md1.6 KB
  • ai-AGENTS.md1.6 KB
  • anti-slop-UPSTREAM.md1.2 KB
  • app-AGENTS.md7.3 KB
  • app-V1_API_MIGRATION.md10.7 KB
  • app-create-effect-simplification-spec.md18.7 KB
  • cli-AGENTS.md418 B
  • codemode-AGENTS.md770 B
  • codemode-codemode.md13.1 KB
  • codemode-interpreter-support.md54.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.