typescript-engineering

Enforce Google's TypeScript Style Guide for writing and reviewing .ts/.tsx code.

5|1|Updated Jul 30, 2010
One-click install
npx skills add https://github.com/gonzaloserrano/dotfiles --skill typescript-engineering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-engineering
Source: https://github.com/gonzaloserrano/dotfiles/tree/main/claude/skills/typescript-engineering
Command: npx skills add https://github.com/gonzaloserrano/dotfiles --skill typescript-engineering

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill codifies TypeScript engineering guidelines to standardize how TS is written, reviewed, and maintained, reducing bugs and onboarding time by aligning teams to a single set of practices inspired by Google's TypeScript Style Guide.

Core Features & Use Cases

  • Naming conventions, type usage, and code structure to improve readability and safety.
  • Guidance for classes, interfaces, functions, imports/exports, and error handling to reduce bugs.
  • Use Case: A new TypeScript project can quickly align on a consistent style, enabling faster code reviews and onboarding.

Quick Start

Review a TypeScript file and refactor it to follow the guidelines, focusing on naming, types, and imports.

Frequently Asked Questions about typescript-engineering

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

FAQPage Schema
What are the TypeScript naming conventions and type usage rules for production code?

TypeScript production code should follow strict naming conventions and type usage rules to improve readability and safety. This skill codifies guidelines for classes, interfaces, functions, imports, exports, and error handling to reduce bugs.

How do I refactor a TypeScript file to follow a consistent style guide?

To refactor a TypeScript file, review its naming, types, and imports, then apply standardized guidelines. This skill enforces production-quality practices by codifying Google's TypeScript Style Guide for writing, reviewing, and maintaining codebases.

Does this TypeScript style guide cover both .ts and .tsx files?

Yes, this TypeScript style guide covers both .ts and .tsx files. It enforces production-quality practices across project onboarding, refactoring, and code reviews by specifying type usage, class structure, import rules, and disallowed patterns.

What is the best way to enforce type safety and code structure in a new TypeScript project?

The best way to enforce type safety and code structure is aligning on a consistent style guide from the start. This skill provides guidelines for naming conventions, type usage, and error handling to standardize how TypeScript is written and reviewed.

Why should I use standardized TypeScript import and export rules in code reviews?

Standardized TypeScript import and export rules reduce bugs and onboarding time by aligning teams to a single set of practices. This skill codifies these rules alongside error handling and disallowed patterns to ensure consistency and safety during code reviews.

What TypeScript patterns are disallowed to ensure production-grade safety?

To ensure production-grade safety, this skill specifies disallowed TypeScript patterns alongside strict rules for type usage, class structure, and error handling. It codifies Google's TypeScript Style Guide to maintain consistency and reduce bugs.