
Coding Standards
- 18 installs
- 1.1k repo stars
- Updated August 4, 2026
- cloudflare/sandbox-sdk
coding-standards enforces Sandbox SDK TypeScript style and comment rules.
About
The coding-standards skill defines Cloudflare Sandbox SDK TypeScript conventions. Ban any unless truly unavoidable by finding or creating types in packages/shared, packages/sandbox clients, or sandbox-container paths. Uppercase acronyms inside camelCase identifiers such as SandboxRPCAPI and containerURL while respecting library casing like RpcTarget. Comments describe current behavior and design intent, avoiding historical bug references with phrases like to fix or to prevent. API design requires descriptive method names, input validation, and contextual errors from shared error classes. Never use any without exhausting proper types. Uppercase acronyms inside camelCase identifiers. Comments describe current design, not past bugs. Place shared types in packages/shared/src/types.ts. Validate SDK inputs and use shared error classes. Code meeting no-any, acronym, and comment conventions. User writes or reviews TypeScript in cloudflare sandbox-sdk repo. Contributors writing or reviewing Sandbox SDK TypeScript.
- Never use any without exhausting proper types.
- Uppercase acronyms inside camelCase identifiers.
- Comments describe current design, not past bugs.
- Place shared types in packages/shared/src/types.ts.
- Validate SDK inputs and use shared error classes.
Coding Standards by the numbers
- 18 all-time installs (skills.sh)
- Ranked #748 of 1,352 Code Review & Quality skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
coding-standards capabilities & compatibility
- Capabilities
- no any decision process · uppercase acronym table · comment smell test
- Works with
- cloudflare
- Use cases
- code review · refactoring
What coding-standards says it does
Write comments for future readers
npx skills add https://github.com/cloudflare/sandbox-sdk --skill coding-standardsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 18 |
|---|---|
| repo stars | ★ 1.1k |
| Last updated | August 4, 2026 |
| Repository | cloudflare/sandbox-sdk ↗ |
What are Cloudflare Sandbox SDK coding standards?
Enforce TypeScript no-any rule, uppercase acronyms, and forward-looking code comments in Sandbox SDK.
Who is it for?
Contributors writing or reviewing Sandbox SDK TypeScript.
Skip if: Skip for consumer apps outside this monorepo.
When should I use this skill?
User writes or reviews TypeScript in cloudflare sandbox-sdk repo.
What you get
Code meeting no-any, acronym, and comment conventions.
Files
Coding Standards
TypeScript: No any
Never use `any` unless absolutely necessary — and that should be a final resort.
Process when you reach for any:
1. Look for an existing type that fits. Most domains already have one. 2. If no suitable type exists, define a proper one in the right location:
- Shared types →
packages/shared/src/types.tsor relevant subdirectory - SDK-specific types →
packages/sandbox/src/clients/types.tsor the appropriate client file - Container-specific types → under
packages/sandbox-container/src/with appropriate naming
3. Use the new type everywhere it applies — don't leave one-off shapes scattered around.
This catches errors at compile time instead of runtime and keeps the codebase consistent.
Style: Uppercase Acronyms
When an acronym appears inside a camelCase or PascalCase identifier, keep it fully uppercase:
| ✅ Do | ❌ Don't |
|---|---|
SandboxRPCAPI | SandboxRpcApi |
containerURL | containerUrl |
parseHTTPHeader | parseHttpHeader |
getAPIKey | getApiKey |
Applies to all acronyms: API, URL, HTTP, RPC, SSE, SSH, DNS, ID, etc.
Exception: library-provided names keep their original casing (e.g. capnweb's RpcTarget stays RpcTarget).
Code Comments
Write comments for future readers, not for the current conversation.
Comments should describe the current state of the code. A developer reading the code months later won't have context about bugs that were fixed, conversations that happened, or earlier implementations.
Don't reference historical context
// ❌ Bad: references a bug the reader knows nothing about
// Uses character tracking to avoid the bug where indexOf('') returns wrong position
// ❌ Bad: implies something was wrong before
// Start the server with proper WebSocket typing
// ❌ Bad: "prevent" implies there was a problem to prevent
// Assign synchronously to prevent race conditionsDo describe current behavior and design intent
// ✅ Good: describes what the code does now
// Returns parsed events and any remaining unparsed content
// ✅ Good: explains design rationale without historical context
// Assigned synchronously so concurrent callers share the same connection attempt
// ✅ Good: explains a non-obvious implementation choice
// Uses IIFE to ensure promise exists before any await pointsSmell test
If your comment contains "to avoid", "to fix", "to prevent", "instead of", or "properly" — reconsider whether you're describing current behavior or quietly referencing something that no longer exists. Rewrite to describe what the code does now and why this design was chosen.
API Design
When adding or modifying SDK methods:
- Use clear, descriptive names that indicate what the method does
- Validate inputs before passing to container APIs
- Provide helpful error messages with context (use the custom error classes in
packages/shared/src/errors/)
Related skills
FAQ
What does coding-standards do?
coding-standards enforces Sandbox SDK TypeScript style and comment rules.
When should I use coding-standards?
User writes or reviews TypeScript in cloudflare sandbox-sdk repo.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.