TypeScript Conventions

Enforce strict TypeScript configurations, code style, and testing standards.

8|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/zb-ss/opencode-workflows --skill typescript-conventions-zb-ss
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: TypeScript Conventions
Source: https://github.com/zb-ss/opencode-workflows/tree/main/skill/typescript-conventions
Command: npx skills add https://github.com/zb-ss/opencode-workflows --skill typescript-conventions-zb-ss

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill establishes and enforces a consistent, high-quality set of conventions for TypeScript projects, ensuring maintainability, readability, and robustness.

Core Features & Use Cases

  • Strict Configuration: Enforces strict mode and other critical tsconfig.json compiler options.
  • Code Style Guidelines: Defines standards for formatting, naming, and preferred syntax.
  • Type Safety: Promotes effective use of interfaces, types, generics, and utility types.
  • Error Handling: Guides implementation of custom error classes and result patterns.
  • Testing Standards: Outlines best practices for unit testing with Vitest.
  • Project Structure: Provides a recommended directory layout for scalable applications.
  • Use Case: Onboarding a new developer to a TypeScript project by providing them with a clear, actionable guide to the established coding standards.

Quick Start

Apply the TypeScript Conventions skill to a new project by configuring tsconfig.json with strict mode enabled and adopting the recommended naming and typing patterns.

Frequently Asked Questions about TypeScript Conventions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for enforcing strict TypeScript configurations in a new project?▼

Strict TypeScript configurations are enforced by enabling `strict` mode and critical compiler options in `tsconfig.json`, ensuring type safety and robustness across Node.js or Deno environments from the start.

How do I structure a scalable TypeScript project for maintainability?▼

To structure a scalable TypeScript project, apply recommended directory layouts and coding conventions that enforce consistent formatting, naming, and robust type definitions for long-term maintainability.

Does this TypeScript convention guide support runtime validation and unit testing?▼

Yes, these TypeScript conventions support runtime validation with Zod and unit testing with Vitest, guiding custom error classes, result patterns, and strict type definitions for comprehensive safety.

How do I handle async operations and error handling in TypeScript?▼

Handle async operations and error handling in TypeScript by implementing custom error classes and result patterns, guided by strict type definitions and function signatures to ensure robust application execution.

Can I use these TypeScript coding standards for onboarding new developers?▼

Yes, you can use these TypeScript coding standards for onboarding new developers by providing them with a clear, actionable guide to established project structure, type safety, and formatting rules.