typescript-writing-code

Enforce strict TypeScript configuration, type safety, ESM conventions, and Biome linting.

2|1|Updated Nov 13, 2025
One-click install
npx skills add https://github.com/MolcajeteAI/plugin --skill typescript-writing-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-writing-code
Source: https://github.com/MolcajeteAI/plugin/tree/main/molcajete/skills/typescript-writing-code
Command: npx skills add https://github.com/MolcajeteAI/plugin --skill typescript-writing-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures you write robust, maintainable, and type-safe TypeScript code by enforcing strict configurations, best practices, and verification steps.

Core Features & Use Cases

  • Strict Type Safety: Enforces zero any tolerance and strict null checks for compile-time bug detection.
  • Modern ESM Standards: Guides usage of ES Modules, named exports, and node: prefixes.
  • Biome Integration: Leverages Biome for linting and formatting, ensuring code consistency.
  • Mandatory Verification: Implements a 4-step post-change verification process (type-check, lint, format, test).
  • Use Case: When developing a new feature in a TypeScript project, use this Skill to ensure your code adheres to the project's strict typing rules, modern module conventions, and passes all automated checks before committing.

Quick Start

Follow the TypeScript writing code guidelines to ensure strict type safety and adherence to ESM module patterns.

Frequently Asked Questions about typescript-writing-code

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

FAQPage Schema
How do I enforce strict type safety in TypeScript without using any?

To enforce strict type safety in TypeScript, implement strict compiler configurations, zero `any` tolerance, and strict null checks for compile-time bug detection. Utilize type guards, discriminated unions, and branded types to guarantee type integrity.

What is the best way to configure ESM module conventions in a TypeScript project?

The best way to configure ESM module conventions in a TypeScript project is by enforcing ES Modules, utilizing named exports, and prefixing Node.js imports with `node:`. This ensures modern module patterns and compatibility.

How does Biome integration work for TypeScript linting and formatting?

Biome integration for TypeScript linting and formatting works by applying automated rules to enforce code consistency. It replaces traditional linters by providing fast, unified tooling to format code and catch violations.

What steps are required for TypeScript post-change verification before committing?

Required steps for TypeScript post-change verification include a mandatory 4-step process: type-checking, linting, formatting, and testing. This sequence ensures all code adheres to strict rules and passes automated checks before committing.

Can I use branded types and discriminated unions to handle complex TypeScript data structures?

Yes, you can use branded types and discriminated unions to handle complex TypeScript data structures. These patterns enable strict type narrowing, prevent invalid states at compile-time, and ensure robust error handling.

Why should I use strict null checks and zero any tolerance in TypeScript development?

You should use strict null checks and zero `any` tolerance in TypeScript development to achieve compile-time bug detection. This strict configuration prevents runtime errors by enforcing explicit type handling and robust error handling strategies.