Borrowing it
Nothing to install: this file belongs to joshsymonds/savecraft.gg. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/joshsymonds/savecraft.gg/main/.claude/skills/working-on-worker/SKILL.mdgit clone --depth 1 https://github.com/joshsymonds/savecraft.ggWrote 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.
[](https://agentmods.dev/skills/joshsymonds/savecraft.gg/working-on-worker)<a href="https://agentmods.dev/skills/joshsymonds/savecraft.gg/working-on-worker"><img src="https://agentmods.dev/badge/skills/joshsymonds/savecraft.gg/working-on-worker/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.
<a href="https://agentmods.dev/skills/joshsymonds/savecraft.gg/working-on-worker"><img src="https://agentmods.dev/badge/skills/joshsymonds/savecraft.gg/working-on-worker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00073 | $0.01141 |
| Opus 5 | $0.00036 | $0.00571 |
| Sonnet 5 | $0.00015 | $0.00228 |
| Haiku 4.5 | $0.00007 | $0.00114 |
Grade A, and why
working-on-worker scanned grade A with 0 findings 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 8d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Working on the Worker
Read docs/worker.md for the full architecture reference.
Verification
just test-worker # Vitest + Miniflare
TypeScript Rules
Type safety:
- Never use
any— useunknownif type is truly unknown. - Never use
@ts-ignoreor@ts-expect-error— fix the type issue properly. - Strict mode enabled. Avoid type assertions except after type guards.
- Never use
!non-null assertion without a preceding check.
State & data:
- Discriminated unions for state machines and message types. Never use boolean flags for multiple states.
- Exhaustive checking with
nevertype in switch defaults. - Use
readonlyfor properties unless mutation is needed. Never mutate parameters.
Null handling:
- Always handle null/undefined explicitly.
- Use optional chaining (
?.) and nullish coalescing (??).
Error handling:
- Custom error classes for different error types. Never throw strings — always
Errorobjects. - Never ignore Promise rejections.
eslint-enforced (CI will fail):
T[]notArray<T>— eslintarray-typerule.toSorted((a, b) => a.localeCompare(b))notsort()— eslint unicorn/sonarjs rules.- Max function complexity: 15. Split into helper functions to stay under.
Never do:
- Use
any,var,==,@ts-ignore, bare!assertions. - Mutate function parameters.
- Skip runtime validation for external data (API responses, user input).
MCP Handler
The MCP server is a hand-rolled JSON-RPC 2.0 handler. Do NOT use @modelcontextprotocol/sdk — it depends on ajv/express/hono which are CJS and incompatible with the workerd runtime.
- Handler:
src/mcp/handler.ts(protocol routing) - Tools:
src/mcp/tools.ts(pure tool functions) - The
agentsnpm package (v0.6.0) replaces the deprecated@cloudflare/agents.
See docs/mcp.md for the full tool contracts and OAuth architecture.
Test Infrastructure
Sharded parallelism: just test-worker runs 4 vitest shards in parallel (worker/scripts/test-sharded.mjs), each with its own Miniflare instance. This sidesteps Miniflare's isolatedStorage WAL bug while giving true file-level parallelism. npm test still works for single-shard runs.
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.
- 8d ago First seen · 92 lines · 73 tokens per session scan A 971c2dd60047
working-on-worker is a skill published in the GitHub repository joshsymonds/savecraft.gg (12 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 73 tokens to every session and 1,141 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
stripe-projects
Provision SaaS services + sync creds via Stripe Projects.
azure-eventhub-dotnet
Azure Event Hubs SDK for .NET. Use for high-throughput event streaming: sending events (EventHubProducerClient, EventHubBufferedProducerClient), receiving events (EventProcessorClient with checkpointing), partition management, and real-time data ingestion. Triggers: "Event Hubs", "event streaming"…
azure-mgmt-botservice-dotnet
Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".
django-storages-s3
Use when configuring Django to store static and media files on AWS S3 with django-storages. Invoke when working with the STORAGES setting, S3 buckets, presigned URLs, CloudFront, or boto3-backed file storage in settings.py. Configures the Django 4.2+ STORAGES dict, public/private custom backends, presigned GET/POST…
wikipedia
Search and read Wikipedia via x wkp — MediaWiki API, no API key, zero install; query, extract, suggest, and DDG route in one module. Load for wiki, wikipedia, encyclopedia lookup, article summary.
cve
Look up CVE records via x cve — cached, zero-API-key, daily xz TSV. Load for cve, vulnerability id, kev, epss, nvd, cvelist, or security advisory.