coding-standards
Installation
SKILL.md
Coding Standards
TypeScript: No any
Never use any unless absolutely necessary — and that should be a final resort.
Process when you reach for any:
- Look for an existing type that fits. Most domains already have one.
- 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
- Shared types →
- 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.