What problem does it solve?
This Skill provides comprehensive guidance on writing robust, type-safe TypeScript code specifically for the Deno 2.x runtime and the Triggerfish AI platform, ensuring adherence to best practices and project standards.
Core Features & Use Cases
- Deno 2.x Best Practices: Covers dependency management (
deno.json), built-in tooling (deno fmt, deno lint, deno test), and permission handling.
- Strict TypeScript: Enforces strict mode, prohibits
any, and promotes the use of unknown with type guards.
- Result Pattern: Details the use of
Result<T, E> for error handling instead of exceptions.
- Type Safety: Explains branded types for ID safety and advocates for
interface over type for object shapes.
- Immutability: Guides on using factory functions over classes and ensuring all data structures are immutable.
- Module Organization: Outlines the project's module structure, including barrel exports via
mod.ts and JSDoc comments.
- Use Case: When developing new TypeScript features for Triggerfish or reviewing existing code, consult this Skill to ensure all code adheres to the project's strict quality and safety standards.
Quick Start
Review the TypeScript code in src/core/utils/formatting.ts to ensure it follows the project's immutability and strictness guidelines.