Agent skill

Effect Httpapi Workers Patterns

by Consensys in Consensys/c0

Build, refactor, or review Effect v4 HttpApi services on Cloudflare Workers.

LGPL-3.0Auto-check passedDevOps & Cloud

Install Effect Httpapi Workers Patterns

skills CLI
$ npx skills add Consensys/c0 --skill effect-httpapi-workers-patterns -a claude-code

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

GitHub CLI
$ gh skill install Consensys/c0 effect-httpapi-workers-patterns --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/Consensys/c0.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/effect-httpapi-workers-patterns .claude/skills/effect-httpapi-workers-patterns && 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
effect-httpapi-workers-patterns
GitHub stars
105
Token cost
~1.4k tokens
SKILL.md length
623 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
LGPL-3.0

At a glance

Build, refactor, or review Effect v4 HttpApi services on Cloudflare Workers.

  • Working with effect/unstable/httpapi
  • SKILL.md covers Contract And Route Structure, Effect Runtime And Services, Observability Principles and Cloudflare Workers OTEL, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Generated Effect clients

What it does

Effect Httpapi Workers Patterns is an agent skill from Consensys/c0. Build, refactor, or review Effect v4 HttpApi services on Cloudflare Workers. Use when working with effect/unstable/httpapi, HttpApiBuilder, generated Effect clients, typed API contracts, request context, tagged errors, Worker observability, Maple, OpenTelemetry, OTLP, or Cloudflare logs and traces.

Its SKILL.md is about 1.4k 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 DevOps & Cloud, covering Observability and API design. It works with OpenTelemetry, Cloudflare Workers and Cloudflare. The repository describes itself as: c0 is an open-source AI platform built for organizational work, tools, and context. A single deployment to Cloudflare to get started. The licence is LGPL-3.0.

When your agent uses it

  • Working with effect/unstable/httpapi
  • Generated Effect clients
  • Typed API contracts
  • Request context

Example prompts

  • “/effect-httpapi-workers-patterns”

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    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 bash).

    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

Effect Httpapi Workers Patterns loads about 1.4k tokens when it runs. Until then it costs about 83 tokens; SKILL.md has 623 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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 Consensys/c0 at commit e7a1810, republished under its LGPL-3.0 licence (© Consensys). 623 words, ~1,423 tokens.

Download SKILL.mdSave it as .claude/skills/effect-httpapi-workers-patterns/SKILL.md (or your agent's skills folder).
name
effect-httpapi-workers-patterns
description
Build, refactor, or review Effect v4 HttpApi services on Cloudflare Workers. Use when working with effect/unstable/httpapi, HttpApiBuilder, generated Effect clients, typed API contracts, request context, tagged errors, Worker observability, Maple, OpenTelemetry, OTLP, or Cloudflare logs and traces.

Effect HttpApi Workers Patterns

Use this skill when editing or reviewing an Effect HttpApi stack, generated Effect clients, or Cloudflare Worker observability. The patterns are intentionally portable; adapt file paths and config names to the repo.

Contract And Route Structure

  • Keep API contracts separate from server implementation.
    • Contract modules define HttpApi, HttpApiGroup, endpoints, schemas, tagged errors, and security declarations.
    • Server route modules only implement HttpApiBuilder.group(...) live layers.
  • Prefer named Schema.Class response/request types and Schema.TaggedErrorClass errors with httpApiStatus.
  • Avoid broad JsonRecord, AnyJson, and generic { error: string } contracts for real endpoints.
  • If a generated client requires unknown or extra services, fix the schema contract instead of casting at the call site.
  • Avoid as unknown as ... for Effect client calls. It usually means a helper lost a concrete type or the HttpApi contract is too loose.

Effect Runtime And Services

  • Provide platform/request context as Effect services, not globals or nullable references.
  • Keep raw Response / HttpServerResponse only for streaming, proxying, or other genuinely raw HTTP surfaces.
  • Wrap route effects with shared helpers such as observeRoute(group, endpoint, effect) instead of scattering logs and spans through handlers.
  • Use Effect.log*, Effect.annotateLogs, Effect.withLogSpan, Effect.withSpan, and Effect.annotateCurrentSpan as the default instrumentation vocabulary.

Observability Principles

  • Make Effect instrumentation the application source of truth: route code should call Effect logs/spans, not framework-specific loggers directly.
  • Emit one structured request summary for every request: start/end/error, status, duration, route branch, stream/raw response signal, and sanitized context.
  • Request metadata should include requestId, requestIdSrc, method, path, status, duration, stage/environment, service/worker name, route branch, cf-ray, traceparent, and tracestate when present.
  • Always record where the request ID came from:
    • x-request-id
    • cf-ray
    • generated fallback
  • Redact authorization, cookie, set-cookie, x-api-key, cf-access-jwt-assertion, API tokens, bearer tokens, and provider secrets before logging.

Cloudflare Workers OTEL

  • Enable Worker observability.logs and observability.traces explicitly in Worker config.
  • Prefer Cloudflare native tracing for platform spans: Worker handlers, fetch, service bindings, Durable Objects, KV, D1, R2, Queues, and other bindings.
  • Configure sampling and persistence intentionally:
    • Dev/previews can usually use head_sampling_rate: 1.
    • Production should use metadata/configurable rates.
    • Keep invocation logs enabled until application logs are proven complete.
  • Use Cloudflare Observability destinations for platform OTEL export when possible.
  • If also exporting Effect app spans/logs via effect/unstable/observability/Otlp, pass a base OTLP URL. Do not pass a URL that already ends in /v1/traces, /v1/logs, or /v1/metrics because Effect appends those paths.
  • Keep OTLP headers and tokens in secrets/env vars; never in source or non-secret metadata.
Show full SKILL.md (229 more words)Show less

Maple With Effect

  • Use @maple-dev/effect-sdk/cloudflare for Worker-local Effect logs and traces.
  • Provide the Maple telemetry layer to the same runtime that runs route handlers; do not run route telemetry in a separate runtime.
  • Flush Maple telemetry at the Worker request boundary with ctx.waitUntil(telemetry.flush(env)) after the response path has scheduled its Effect logs/spans.
  • In local dev, use OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318 and run maple start before the app dev command.
  • Avoid duplicate exports: route code should use Effect logs/spans, the Worker should provide one Maple layer, and Cloudflare Worker Observability should remain the platform collection path for deployed stages.

Cloudflare Workers General

  • Request logs should include: requestId, requestIdSrc, method, path, status, duration, stage, worker name, route branch, cf-ray, and trace headers when present.
  • Redact authorization, cookie, set-cookie, x-api-key, cf-access-jwt-assertion, and similar sensitive headers before logging.
  • Do not store request-scoped observability state in module-level mutable variables.
  • Use ctx.waitUntil for post-response telemetry/drain work.

TypeScript Hygiene

  • Preserve concrete exported helper types for generated clients and cross-package APIs.
  • Fix weak source types at the contract boundary rather than widening downstream consumers.
  • Use type casts only when wrapping a known library typing limitation, and keep the cast local to the integration boundary.
  • Re-run dependent app typechecks after changing API contracts or generated client types.

Validation

After touching Effect contracts, clients, runtime, or Worker observability, run the repo's required validation. Common commands:

bash
nub run typecheck
nub run lint
nub run format

Also run focused tests when applicable. Example:

bash
nub exec vitest run tests/integration/api-observability.test.ts tests/integration/effect-api-contract.test.ts tests/integration/repos-discovery-alignment.test.ts

© Consensys, LGPL-3.0. 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/effect-httpapi-workers-patterns of Consensys/c0.

Open the folder on GitHubat commit e7a1810

Compare with similar skills

Effect Httpapi Workers Patterns 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.

Effect Httpapi Workers Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Effect Httpapi Workers Patterns this skillConsensys/c0105—~1.4kAutomated safety check: PassLGPL-3.0
Observability Triageevery-app/open-seo23k—~1.7kAutomated safety check: PassMIT
Workers Best Practiceshodgef/apiker1276 repos~1.8kAutomated safety check: PassMIT
Cloudflare Workers Otel Utelsmizchi/skills356—~1.4kAutomated safety check: NotesNone
Opentelemetrymizchi/skills356—~1.3kAutomated safety check: PassNone
Cloudflarehodgef/apiker1277 repos~2.2kAutomated safety check: PassMIT

Similar skills

  • Observability Triage

    every-app/open-seo

    Triage OpenSEO production errors in Cloudflare Workers Observability — verified query recipes, counting gotchas, and a known-noise filter list applied automatically.

    23k GitHub stars~1.7k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Reviews and authors Cloudflare Workers code against production best practices.

    127 GitHub starsUsed in 6 repos~1.8k tokens
    DevOps & CloudAuto-check passed
  • Cloudflare Worker telemetry at the fetch boundary — OTLP traces / metrics / logs + utels error tracking + D1 Proxy that emits slow-query warnings.

    356 GitHub stars~1.4k tokensUpdated 5 days ago
    DevOps & CloudAuto-check: notes
  • Opentelemetry

    mizchi/skills

    Platform-agnostic OpenTelemetry reference — signal selection (traces/metrics/logs), span design, context propagation (W3C TraceContext), sampling strategies, and OTLP exporter config.

    356 GitHub stars~1.3k tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed
  • Cloudflare

    hodgef/apiker

    Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF…

    127 GitHub starsUsed in 7 repos~2.2k tokens
    DevOps & CloudAuto-check passed
  • Nextjs On Cloudflare

    cloudflare/skills

    Official

    Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext.

    3k GitHub starsUsed in 2 repos~678 tokens
    DevOps & CloudAuto-check passed

More from Consensys/c0

All 11 skills in this repo
  • Debug deployed Cloudflare Workers using the cfobservability MCP, Wrangler, D1/R2 state, repo evidence, and safe live reproduction.

    105 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check: notes
  • Deslop Typescript

    Consensys/c0

    Run a final de-slopping pass on nearly finished JavaScript or TypeScript work before commit or PR.

    105 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • A skill your agent uses when adding, changing, or reviewing Workflow Nodes in the c0 agent repo, including shared node catalog metadata, Workflow Node options and ports, runtime node Adapters…

    105 GitHub stars~943 tokensUpdated 1 mo ago
    Auto-check passed
  • Guidance for safely changing the c0 Workflow runtime ABI, manifest ABI, runtime kernels, manifest migrations, workflow artifact compatibility, and audit/backfill tooling.

    105 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Agent Eval Loop

    Consensys/c0

    Run and improve the c0 agent evaluation loop using the local and remote Cloudflare MCP harness, versioned history notes, and current Cloudflare product updates.

    105 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Alchemy Env Types

    Consensys/c0

    Derive Cloudflare worker env types from Alchemy resource Env types instead of hand-writing env shapes.

    105 GitHub stars~707 tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Effect Httpapi Workers Patterns

What does Effect Httpapi Workers Patterns do?

Build, refactor, or review Effect v4 HttpApi services on Cloudflare Workers. Effect Httpapi Workers Patterns is an agent skill from Consensys/c0. Build, refactor, or review Effect v4 HttpApi services on Cloudflare Workers.

When should I use Effect Httpapi Workers Patterns?

Effect Httpapi Workers Patterns fits situations like: working with effect/unstable/httpapi; generated Effect clients; typed API contracts; request context.

How do I install Effect Httpapi Workers Patterns in Claude Code?

Run `npx skills add Consensys/c0 --skill effect-httpapi-workers-patterns -a claude-code`. Or copy the skill folder (.agents/skills/effect-httpapi-workers-patterns in Consensys/c0) into .claude/skills/effect-httpapi-workers-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Effect Httpapi Workers Patterns in Codex?

Run `npx skills add Consensys/c0 --skill effect-httpapi-workers-patterns -a codex`. Or copy the skill folder (.agents/skills/effect-httpapi-workers-patterns in Consensys/c0) into .agents/skills/effect-httpapi-workers-patterns in your project. Codex loads it when a task matches its description.

Can I use Effect Httpapi Workers Patterns 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 Consensys/c0 --skill effect-httpapi-workers-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/effect-httpapi-workers-patterns, .gemini/skills/effect-httpapi-workers-patterns, .github/skills/effect-httpapi-workers-patterns and .opencode/skills/effect-httpapi-workers-patterns in your project.

What does Effect Httpapi Workers Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Effect Httpapi Workers Patterns is instructions for the agent only.

Does Effect Httpapi Workers Patterns 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 Effect Httpapi Workers Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Effect Httpapi Workers Patterns use?

Effect Httpapi Workers Patterns is published under the LGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Effect Httpapi Workers Patterns use?

About 1.4k tokens (SKILL.md is roughly 5.7k 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 Effect Httpapi Workers Patterns?

Skills that share tags, products or a category with Effect Httpapi Workers Patterns: Observability Triage (every-app/open-seo, 23k stars), Workers Best Practices (hodgef/apiker, 127 stars), Cloudflare Workers Otel Utels (mizchi/skills, 356 stars) and Opentelemetry (mizchi/skills, 356 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Effect Httpapi Workers Patterns?

Consensys (a GitHub organization) maintains it in Consensys/c0, which has 105 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on August 18, 2026.

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