teak: Skill for Claude Code

.agents/skills/durable-objects/SKILL.md

durable-objects is a skill for Claude Code, Codex from praveenjuge/teak. It costs 22 tokens per session (1,355 once invoked), scanned A, a copy of durable-objects, MIT.

A guide for building and reviewing Cloudflare Durable Objects, which are stateful server-side components used to keep data and coordinate activity on Cloudflare's network.

In plain words
What is it for?
It helps create Durable Object classes, RPC methods, alarms, WebSocket handlers, bindings, migrations, tests, and sharding designs.
Why use it?
Durable Objects have specific APIs, configuration, permissions, and state-management patterns that can become outdated or be easy to misconfigure. It directs implementation and review to current Cloudflare documentation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is praveenjuge/teak's own configuration. It tells Claude Code and Codex how to work on teak itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything teak configures →

Reuse

Borrowing it

Nothing to install: this file belongs to praveenjuge/teak. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/praveenjuge/teak/main/.agents/skills/durable-objects/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/praveenjuge/teak

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for durable-objects

README.md
[![agentmods](https://agentmods.dev/badge/skills/praveenjuge/teak/durable-objects/github.svg)](https://agentmods.dev/skills/praveenjuge/teak/durable-objects)
Your own site
<a href="https://agentmods.dev/skills/praveenjuge/teak/durable-objects"><img src="https://agentmods.dev/badge/skills/praveenjuge/teak/durable-objects/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for durable-objects

Your own site · 80×15
<a href="https://agentmods.dev/skills/praveenjuge/teak/durable-objects"><img src="https://agentmods.dev/badge/skills/praveenjuge/teak/durable-objects.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,355 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.01355
Opus 5.5 $0.00009 $0.00542
Sonnet 5.5 $0.00004 $0.00271
Haiku 4.5 $0.00002 $0.00136

Measured 2d ago against content hash 2468c1795f43, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

durable-objects scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

async fetch(request: Request, env: Env): Promise<Response> {
Origin

This is a copy

86% identical to durable-objects — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/durable-objects/SKILL.md · 181 lines

How it starts

The opening of the file, as written. The whole thing — 181 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Durable Objects

Build stateful, coordinated applications on Cloudflare's edge using Durable Objects.

Retrieval Sources

Your knowledge of Durable Objects APIs and configuration may be outdated. Prefer retrieval over pre-training for any Durable Objects task.

Resource URL
Docs https://developers.cloudflare.com/durable-objects/index.md
API Reference https://developers.cloudflare.com/durable-objects/api/index.md
Best Practices https://developers.cloudflare.com/durable-objects/best-practices/index.md
Examples https://developers.cloudflare.com/durable-objects/examples/index.md
Roles and permissions https://developers.cloudflare.com/workers/authorization/durable-objects/index.md

Fetch the relevant doc page when implementing features.

When to Use

  • Creating new Durable Object classes for stateful coordination
  • Implementing RPC methods, alarms, or WebSocket handlers
  • Reviewing existing DO code for best practices
  • Configuring wrangler.jsonc/toml for DO bindings and migrations
  • Writing tests with Cloudflare’s Vitest integration
  • Designing sharding strategies and parent-child relationships

Reference Documentation

  • ./references/rules.md - Core rules, storage, concurrency, RPC, alarms
  • Testing reference - Current Vitest documentation, migration choices, and test selection
  • ./references/workers.md - Workers handlers, types, wrangler config, observability

Search: blockConcurrencyWhile, idFromName, getByName, setAlarm, sql.exec

Core Principles

Use Durable Objects For

Need Example
Coordination Chat rooms, multiplayer games, collaborative docs
Strong consistency Inventory, booking systems, turn-based games
Per-entity storage Multi-tenant SaaS, per-user data
Persistent connections WebSockets, real-time notifications
Scheduled work per entity Subscription renewals, game timeouts

Do NOT Use For

Read the full file on GitHub · 181 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 181 lines · 22 tokens per session scan A 2468c1795f43

Subscribe to this mod's changes

durable-objects is a skill published in the GitHub repository praveenjuge/teak (25 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 1,355 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 86% identical to durable-objects, differing in 1 line, and is treated as a copy.