Agent skill

Alchemy Env Types

by Consensys in Consensys/c0

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

LGPL-3.0Auto-check passed

Install Alchemy Env Types

skills CLI
$ npx skills add Consensys/c0 --skill alchemy-env-types -a claude-code

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

GitHub CLI
$ gh skill install Consensys/c0 alchemy-env-types --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/alchemy-env-types .claude/skills/alchemy-env-types && 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
alchemy-env-types
GitHub stars
105
Token cost
~707 tokens
SKILL.md length
255 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
LGPL-3.0

At a glance

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

  • Works in 4 steps: Export the worker resource type from infra → Derive an env alias from that resource… → In the app declaration file, extend… → …
  • Editing worker bindings
  • SKILL.md covers Pattern, Repo Notes, When Changing Bindings and Bad, plus 1 more section
  • Needs INTERNAL_CALLBACK_SECRET

What it does

Alchemy Env Types is an agent skill from Consensys/c0. Derive Cloudflare worker env types from Alchemy resource Env types instead of hand-writing env shapes. Use when editing worker bindings, adding or removing env vars in packages/infra, touching cloudflare-env.d.ts or env.d.ts files, importing from cloudflare:workers, or fixing env typing in API or web apps.

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

It works with 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

  • Editing worker bindings
  • Removing env vars in packages/infra
  • Touching cloudflare-env.d.ts
  • Importing from cloudflare:workers

Example prompts

  • “/alchemy-env-types”

Requirements

  • A credential in INTERNAL_CALLBACK_SECRET

Workflow steps

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

  1. Export the worker resource type from infra
  2. Derive an env alias from that resource in packages/infra/src/types/
  3. In the app declaration file, extend Cloudflare.Env from that alias
  4. If the app imports env from cloudflare:workers, make sure the module is declared and exports that merged env type

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 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 these keys or tokens, usually read from environment variables:

    • INTERNAL_CALLBACK_SECRET

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

Context cost

Alchemy Env Types loads about 707 tokens when it runs. Until then it costs about 81 tokens; SKILL.md has 255 words of instructions outside code blocks.

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

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). 255 words, ~707 tokens.

Download SKILL.mdSave it as .claude/skills/alchemy-env-types/SKILL.md (or your agent's skills folder).
name
alchemy-env-types
description
Derive Cloudflare worker env types from Alchemy resource Env types instead of hand-writing env shapes. Use when editing worker bindings, adding or removing env vars in packages/infra, touching cloudflare-env.d.ts or env.d.ts files, importing from cloudflare:workers, or fixing env typing in API or web apps.

Alchemy Env Types

Use Alchemy's generated worker Env type as the single source of truth for Cloudflare env bindings in this repo.

  • Do not hand-write env shapes like Record<string, string | undefined>.
  • Do not redeclare individual env vars in app typing files when the Alchemy resource type already contains them.
  • Do not locally cast env in app code if the declaration file can carry the correct type.

Pattern

  1. Export the worker resource type from infra:
ts
export type WebResource = Awaited<ReturnType<typeof createWeb>>
  1. Derive an env alias from that resource in packages/infra/src/types/:
ts
import type { WebResource } from "../web"

export type WebEnv = WebResource["Env"]
  1. In the app declaration file, extend Cloudflare.Env from that alias:
ts
declare namespace Cloudflare {
  type WebEnv = import("infra/types/web-env").WebEnv
  interface Env extends WebEnv {}
}
  1. If the app imports env from cloudflare:workers, make sure the module is declared and exports that merged env type:
ts
interface CloudflareEnv extends Cloudflare.Env {}

declare module "cloudflare:workers" {
  export const env: CloudflareEnv
}

Repo Notes

  • apps/api/env.d.ts is the reference API pattern.
  • apps/web/cloudflare-env.d.ts is the reference web pattern.
  • packages/infra/src/types/env.ts contains API env aliases.
  • packages/infra/src/types/web-env.ts contains the web env alias.
  • In this repo, the web app needs the declare module "cloudflare:workers" block so TypeScript can resolve that module. Keep that block minimal and sourced from Cloudflare.Env.

When Changing Bindings

When adding, removing, or renaming a binding in infra:

  1. Update the Alchemy resource definition in packages/infra/src/web.ts or the corresponding worker factory.
  2. Make sure the worker resource type is exported.
  3. Make sure the app declaration file extends the env alias derived from that worker resource.
  4. Remove any manual env var redefinitions or local casts that duplicate the generated type.

Bad

ts
const env = cloudflareEnv as {
  VITE_STAGE?: string
}
ts
declare module "cloudflare:workers" {
  export const env: {
    VITE_STAGE: string
    INTERNAL_CALLBACK_SECRET: string
  }
}

Good

ts
import { env } from "cloudflare:workers"

const stage = env.VITE_STAGE

Keep the declaration layer thin. The env var list should come from Alchemy, not be copied by hand into app code.

© 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/alchemy-env-types of Consensys/c0.

Open the folder on GitHubat commit e7a1810

Compare with similar skills

Alchemy Env Types 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.

Alchemy Env Types compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Alchemy Env Types this skillConsensys/c0105—~707Automated safety check: PassLGPL-3.0
Cloudflare Browser Renderingcloudflare/moltworker9.9k—~742Automated safety check: PassApache-2.0
Cloudflarehodgef/apiker1277 repos~2.2kAutomated safety check: PassMIT
Nextjs On Cloudflarecloudflare/skills3k2 repos~678Automated safety check: PassApache-2.0
Agents SDKcloudflare/skills3k2 repos~3kAutomated safety check: PassApache-2.0
Cloudflaredmmulroy/cloudflare-skill727—~1.6kAutomated safety check: PassMIT

Similar skills

  • Cloudflare Browser Rendering

    cloudflare/moltworker

    Official

    Drives headless Chrome through Cloudflare Browser Rendering over a CDP WebSocket to take screenshots, navigate and scrape pages, and record multi-page videos.

    9.9k GitHub stars~742 tokensUpdated 5 mo ago
    Productivity & AutomationAuto-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
  • Agents SDK

    cloudflare/skills

    Official

    Build, debug, or review Cloudflare Agents SDK applications using the agents package.

    3k GitHub starsUsed in 2 repos~3k tokens
    Agent WorkflowsAuto-check passed
  • Cloudflare

    dmmulroy/cloudflare-skill

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

    727 GitHub stars~1.6k tokensUpdated 8 mo ago
    DevOps & CloudAuto-check passed
  • Durable Objects

    cloudflare/skills

    Official

    Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.

    3k GitHub starsUsed in 2 repos~1.5k tokens
    Backend & APIsAuto-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
  • C0 Config

    Consensys/c0

    A skill your agent uses when changing c0 deployment configuration, runtime-editable global settings, auth providers, AI providers, MCP Context Forge, discovered registries, secret references, or…

    105 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check: notes

Questions about Alchemy Env Types

What does Alchemy Env Types do?

Derive Cloudflare worker env types from Alchemy resource Env types instead of hand-writing env shapes. Alchemy Env Types is an agent skill from Consensys/c0. Derive Cloudflare worker env types from Alchemy resource Env types instead of hand-writing env shapes.

When should I use Alchemy Env Types?

Alchemy Env Types fits situations like: editing worker bindings; removing env vars in packages/infra; touching cloudflare-env.d.ts; importing from cloudflare:workers.

How do I install Alchemy Env Types in Claude Code?

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

How do I install Alchemy Env Types in Codex?

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

Can I use Alchemy Env Types 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 alchemy-env-types -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/alchemy-env-types, .gemini/skills/alchemy-env-types, .github/skills/alchemy-env-types and .opencode/skills/alchemy-env-types in your project.

What does Alchemy Env Types need to run?

Going by SKILL.md and its folder, Alchemy Env Types needs credentials named INTERNAL_CALLBACK_SECRET. Our summary lists: A credential in INTERNAL_CALLBACK_SECRET.

Does Alchemy Env Types 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 Alchemy Env Types 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 Alchemy Env Types use?

Alchemy Env Types 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 Alchemy Env Types use?

About 707 tokens (SKILL.md is roughly 2.8k 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 Alchemy Env Types?

Skills that share tags, products or a category with Alchemy Env Types: Cloudflare Browser Rendering (cloudflare/moltworker, 9.9k stars), Cloudflare (hodgef/apiker, 127 stars), Nextjs On Cloudflare (cloudflare/skills, 3k stars) and Agents SDK (cloudflare/skills, 3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Alchemy Env Types?

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.