agentleFS
elizaOSelizaOS/eliza/.agents/skills/alchemy/SKILL.md

alchemy

Skill20k starsChanged 6 days agoMITView on GitHub

Configure, test locally in workerd, and deploy Vibestack applications to Cloudflare with Alchemy v2 (alchemy.run): read before writing or editing alchemy.run.ts, Cloudflare Worker/DO/Static Assets stacks, or deployment CI workflows.

10 other projects use a version of this, 1 of them edited; 1 of 1 edited versions we compared changed its rules.

How people change it

1 of 1 edited versions changed its rules.

Of the 1 edited version we compared: 1 made changes of their own.

We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Most recently taken up by

Who's talking about elizaOS/eliza

The biggest 5 of 91 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 91

Talked about on GitHub, YouTube, Bluesky, Hacker News and the web (91 times).

On GitHub · 50

45 more on GitHub

On YouTube · 24

19 more on YouTube

On Bluesky · 12

7 more on Bluesky

On the web · 2

Used with

Projects with it also use quicknode, neynar and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • BankrBotSkill

    quicknode

    Blockchain RPC and data access via Quicknode. Use when an agent needs to read onchain data (balances, token prices, transaction status, gas estimates, block data) across Base, Ethereum, Polygon, Solana, or Unichain. Supports both API key access and x402 wallet-based pay-per-request access with no account needed. Triggers on mentions of RPC, blockchain data, onchain queries, token balances, gas estimation, block number, transaction receipt, Quicknode, or x402.

    Also in 4 projects that use this

  • basezhSkill

    neynar

    Interact with Farcaster via Neynar API. Use when the user wants to read Farcaster feeds, look up users, post casts, search content, or interact with the Farcaster social protocol. Requires NEYNAR_API_KEY.

    Also in 4 projects that use this

  • BankrBotSkill

    aeon-autoresearch

    Evolve any installed skill by generating four variations along separate theses (better inputs / sharper output / more robust / rethink), scoring them on a weighted rubric, and applying the winner. Never downgrades a working skill — aborts cleanly if no variation improves the original. Use when an installed skill is producing low-signal output, hitting deprecated APIs, or feels stale. Triggers: "improve this skill", "evolve $skill", "auto-research my X", "regenerate variations".

    Also in 3 projects that use this

  • +9 more from BankrBot

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep pnpm check offline and fast: Never run live cloud deploys inside pnpm check or default pnpm test.

    line 14
  2. Very specific:

    Ignore local state directories: keep .alchemy/ and .wrangler/ out of Git, ESLint, Stylelint, and Turborepo task inputs.

    line 17
  3. Very specific:

    Durable Object migrations: always run pnpm deploy:plan -- --stage <stage> first when adopting Workers with existing or retired Durable …

    line 60

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Alchemy deployment, local runtime, and verification

Eliza on Vibestack uses Alchemy v2 (alchemy@2.0.0-beta.85 + @alchemy.run/cloudflare@2.0.0-beta.85 + @alchemy.run/test@2.0.0-beta.85), Effect 4 native, running directly on Node 26+.

Hard rules

  • Use Alchemy v2 only (alchemy + @alchemy.run/cloudflare at 2.0.0-beta.85). Never install legacy v1 (alchemy-async / 0.x) or obsolete placeholders (alchemy-effect, @alchemy.run/core, alchemy.run).
  • Never install @cloudflare/vite-plugin alongside Alchemy: Cloudflare.Website.Vite injects @alchemy.run/cloudflare-runtime/vite automatically and conflicts with @cloudflare/vite-plugin.
  • Keep pnpm check offline and fast. Never run live cloud deploys inside pnpm check or default pnpm test. Run offline workerd boot/integration verification in pnpm test:deploy (using @alchemy.run/test/Vitest with dev: true) and live post-deploy checks inside Alchemy.Action.
  • Always set ALCHEMY_FAST_DISTILLED=1 (or --fast-distilled) on Node 26 CLI invocations to lazy-load distilled cloud operations and cut startup time and heap usage.
  • Allow workerd build scripts in pnpm-workspace.yaml (allowBuilds: { workerd: true }).
  • Ignore local state directories: keep .alchemy/ and .wrangler/ out of Git, ESLint, Stylelint, and Turborepo task inputs.
  • Isolate deploy/ from package tsconfig.json and typescript-eslint projectService: files importing @alchemy.run/cloudflare pull @distilled.cloud/cloudflare declarations; typecheck them via a dedicated deploy/tsconfig.json and list **/deploy/** and **/alchemy.run.ts in untyped in eslint.config.js so lint:js never OOMs.
  • Never commit secrets or pass them through cached Turbo tasks. Put CLOUDFLARE_*, ALCHEMY_*, R2_STATE_*, and ELIZA_CLOUD_* only in passThroughEnv on cache: false deploy tasks.

Toolchain alignment

  • Alchemy 2.0.0-beta.85 requires effect: "^4.1.0" and Node >=26.
  • Eliza pins effect: 4.1.1, @effect/platform-node: 4.1.1, @effect/vitest: 4.1.1, and vibelang / vibelang-runtime / vibelang-vite at 0.0.13, matching alchemy@2.0.0-beta.85 with zero peer conflicts.
  • Pin exact alchemy, @alchemy.run/cloudflare, and @alchemy.run/test versions in pnpm-workspace.yaml under catalog:.

Eliza domain to Cloudflare mapping

LayerCloudflare primitive in Alchemy v2
@elizaos/cloud-worker API & hosted return pagesCloudflare.Worker (packages/cloud-worker/alchemy.run.ts) with bundle: false prebuilt Worker ESM (dist/worker/entry.mjs), compatibilityFlags: ["nodejs_compat"], crons: ["* * * * *"], and assets: { ...hashAssetDirectory(pagesDir), binding: "ASSETS", runWorkerFirst: true }
Retired v3 SQLite Durable ObjectsRe-exported as HTTP 410 RetiredDurableObject stubs from the prebuilt Worker entry with AdoptPolicy.adopt(true) and RemovalPolicy.retain() so live DO namespaces stay intact for rollback
Existing external Postgres poolcreateHyperdriveRef from vibestack/alchemy.ts (zero Account > Hyperdrive:Read API calls, resolved from ELIZA_CLOUD_V4_WRANGLER_CONFIG with explicit ELIZA_CLOUD_HYPERDRIVE_ID override and staging/production defaults, guarded by assertStageGuard), Cloudflare.Hyperdrive.lookup when resolving by name (ELIZA_CLOUD_HYPERDRIVE_NAME), plus dev origin support for local alchemy dev and DATABASE_URL fallback locally
Workers AI & Send Email bindingsCloudflare.Email.SendEmail (SIGN_IN_EMAIL, resolved from ELIZA_CLOUD_V4_WRANGLER_CONFIG and enabled by default on staging/production) and optional Cloudflare.Workers.AI() (AI)
Post-deploy verification gateAlchemy.Action calling verifyDeploymentEndpoints from vibestack/alchemy.ts against /api/health, /api/public/service, and /api/v1/auth/methods, returning a typed DeploymentReceipt

Helpers in vibestack/alchemy.ts

vibestack/alchemy.ts is a zero-dependency Node 26 module exported as the ./alchemy package subpath, providing four composable primitives:

  1. resolveStage & assertStageGuard:
    • Discriminated StageTarget (dev, test, preview, staging, production).
    • Scopes local dev/test stages by user and git worktree (dev_<user>_<worktree>, test_<user>_<worktree>) so parallel worktrees and agents never collide. Never hardcode a fixed dev.port.
    • assertStageGuard(target, { resourceIds, domains, productionIds, productionDomains }) fails statically before deploy if any non-production stage references a production resource ID or domain.
  2. hashAssetDirectory(dir):
    • Deterministically SHA-256 hashes a Turbo-built static asset directory and returns { directory, path, hash, fileCount, totalBytes } so Cloudflare.Worker skips re-hashing and re-uploading unchanged assets.
  3. verifyDeploymentEndpoints(baseUrl, endpoints, options):
    • Bounded exponential-retry HTTP verifier handling Cloudflare edge propagation (404/5xx cold-start windows), checking status codes, headers, body substrings, JSON predicates, and optional commit SHA headers/fields, returning a typed DeploymentReceipt.
  4. makeR2BucketObjects(config, adapter) & createR2BucketClient(config):
    • Zero-dep Node 26 R2 object client supporting both S3-compatible SigV4 (kind: "s3", matching R2_STATE_ACCESS_KEY_ID / R2_STATE_SECRET_ACCESS_KEY) and Cloudflare R2 REST API (kind: "api"). Plugs directly into alchemy/State/BucketState's makeBucketState when CI tokens lack Secrets Store Write.

State stores & safe adoption

  • Local dev & offline tests: Alchemy.localState() (stored in .alchemy/state/, gitignored).
  • R2 bucket state (CI default when configured): wrap makeR2BucketObjects in makeBucketState using R2_STATE_BUCKET, CLOUDFLARE_ACCOUNT_ID, R2_STATE_ACCESS_KEY_ID, and R2_STATE_SECRET_ACCESS_KEY (conditional-put __lease__.json locking).
  • Cloudflare managed state: Cloudflare.state() when ALCHEMY_STATE_STORE=cloudflare (requires Secrets Store Write permission).
  • Adopting existing Workers & preserving secrets:
    • Pass .pipe(Alchemy.AdoptPolicy.adopt(true)) and .pipe(Alchemy.RemovalPolicy.retain()) (and --adopt on CLI) when adopting eliza-cloud-api-staging and eliza-cloud-api-prod.
    • Worker secrets are preserved: Cloudflare.Worker does not wipe secrets set outside Alchemy (such as the 253 existing encrypted secrets on eliza-cloud-api-{staging,prod}); it only deletes secrets previously managed by Alchemy.
    • Durable Object migrations: always run pnpm deploy:plan -- --stage <stage> first when adopting Workers with existing or retired Durable Object classes to confirm zero unintended deleted_classes operations.

Local dev & verifiable testing (workerd)

  • Local runtime: pnpm dev:cf runs ALCHEMY_FAST_DISTILLED=1 alchemy --fast-distilled dev (real local workerd with hot reload — zero Cloudflare credentials required).
  • Offline workerd verification (pnpm test:deploy):
    • Uses @alchemy.run/test/Vitest (Test.make({ providers: Cloudflare.providers(), dev: true, stage })) in packages/cloud-worker/deploy/worker.test.ts with beforeAll(deploy(Stack)) and afterAll(destroy(Stack)).
    • Boots the real built @elizaos/cloud-worker bundle + ASSETS inside local workerd — catching global-scope runtime errors, Node compat regressions, and asset routing issues offline in PR CI before touching Cloudflare.
    • The same verifyDeploymentEndpoints probes run post-deploy inside Alchemy.Action against the live deployed URL.

Turborepo & zero-trust CI optimization

  • Single-build handoff: build @elizaos/cloud-worker once through Turborepo (leveraging the R2 vibestack-turbo-cache remote cache), then pass the prebuilt ESM bundle (bundle: false) and hashed dist/pages assets (hashAssetDirectory) into Alchemy so CI never double-builds.
  • Zero-trust publication boundary:
    • Untrusted PR verification jobs (.github/workflows/ci.yml) read shared caches and run offline pnpm test:deploy (workerd) with no Cloudflare deploy secrets.
    • Privileged deploy jobs (.github/workflows/deploy-cloud-worker.yml) run with concurrency: { cancel-in-progress: false } on staging and main, verify database identity and release migrations read-only before deploying, never restore untrusted PR caches, and fail atomically if post-deploy Alchemy.Action verification fails.
  • Credentials: Alchemy reads ~/.alchemy/profiles.json (alchemy profile edit --add Cloudflare) or CLOUDFLARE_API_TOKEN + CLOUDFLARE_ACCOUNT_ID (it does not read Wrangler's OAuth token).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.