cloudflare-workers-performance SKILL.md skillA
cloudflare-workers-performance from secondsky/claude-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add secondsky/claude-skills/cloudflare-workers-performance@git:20260402.75421faPins git:20260402.75421fa in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- secondsky/claude-skills
- Path
plugins/cloudflare-workers/skills/cloudflare-workers-performance/SKILL.md- Versions recorded
- 3
- Latest version
- git:20260402.75421fa, committed Apr 2, 2026
- First version recorded
- Dec 29, 2025
- Size
- 6,240 bytes
- Repository stars
- 247
- License
- MIT
Cloudflare Workers performance optimization with CPU, memory, caching, bundle size. Use for slow workers, high latency, cold starts, or encountering CPU limits, memory issues, timeout errors.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Cloudflare Workers Performance Optimization
Techniques for maximizing Worker performance and minimizing latency.
## Quick Wins
```typescript
// 1. Avoid unnecessary cloning
// ❌ Bad: Clones entire request
const body = await request.clone().json();
// ✅ Good: Parse directly when not re-using body
const body = await request.json();
// 2. Use streaming instead of buffering
// ❌ Bad: Buffers entire response
const text = await response.text();
return new Response(transform(text));
// ✅ Good: Stream transformation
return new Response(response.body.pipeThrough(new TransformStream({
transform(chunk, controller) {
controller.enqueue(process(chunk));
}
})));
// 3. Cache expensive operations
const cache = caches.default;
const cached = await cache.match(request);
if (cached) return cached;
```
## Critical Rules
1. **Stay under CPU limits** - 10ms (free), 30ms (paid), 50ms (unbound)
2. **Minimize cold starts** - Keep bundles < 1MB, avoid dynamic imports
3. **Use Cache API** - Cache responses at the edge
4. **Stream large payloads** - Don't buffer entire responses
5. **Batch operations** - Combine multiple KV/D1 calls
## Top 10 Performance Errors
| Error | Symptom | Fix |
…Read the whole file at its exact version.
How to install
mdr add secondsky/claude-skills/cloudflare-workers-performance@sha256:4d5886c3c9f57b03The line at the top of this page pins the label git:20260402.75421fa, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_tuwfjwehrjjygdou)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Dec 29, 2025 and Apr 2, 2026, about one every 47 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260402.75421fa latest | 2026-04-02 | 75421fa | 6,240 B | A | view · diff |
| git:20260402.89c5e89 | 2026-04-02 | 89c5e89 | 6,227 B | A | view · diff |
| git:20251229.0b5b897 | 2025-12-29 | 0b5b897 | 6,216 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6240 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
secondsky/claude-skills · 247 stars · license MIT · pushed 2026-10-31 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_tuwfjwehrjjygdou GET https://markdownregistry.com/api/v1/resolve?ref=secondsky/claude-skills/cloudflare-workers-performance GET https://markdownregistry.com/api/v1/blob/4d5886c3c9f57b030499b061466be65fd6719644b9ff8405cd25be354422e2a9
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.