mcpField
T
ts-google

ts-google

github.com/pproencaDevelopment218373 installsUpdated 11w ago
Repository

About ts-google

A TypeScript style guide for AI agents and LLMs, based on Google's internal standards. Its prioritized rules cover modules, types, classes, functions, control flow, and other coding conventions.

Key features

  1. 0145 rules across eight categories
  2. 02Module organization and type-safety guidance
  3. 03Class and function design practices
  4. 04Control flow, errors, and naming rules

Use cases

  1. 01Write new TypeScript code
  2. 02Organize modules and imports
  3. 03Review code for style consistency
  4. 04Refactor existing TypeScript

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill ts-google

After installing, type/ts-googlein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
metadata.json
assets/templates/
_template.md
references/
_sections.md
class-constructor-parens.md
class-no-private-fields.md
class-no-prototype-manipulation.md
class-no-static-containers.md
class-parameter-properties.md
class-readonly-properties.md
control-always-use-braces.md
control-for-of-iteration.md
control-no-assignment-in-condition.md
control-switch-default.md
control-triple-equals.md
error-avoid-assertions.md
error-catch-unknown.md
error-empty-catch-comments.md
error-throw-errors.md
func-arrow-concise-bodies.md
func-avoid-this-rebinding.md
func-declarations-over-expressions.md
func-default-parameters.md
func-generator-syntax.md
func-rest-parameters.md
literal-array-constructor.md
literal-explicit-coercion.md
literal-number-formats.md
literal-single-quotes.md
module-es6-modules.md

Details

From the project README

Google TypeScript Best Practices

Comprehensive TypeScript style guide based on Google's internal standards, designed for AI agents and LLMs. Contains 45 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new TypeScript code
  • Organizing modules and imports
  • Designing type annotations and interfaces
  • Creating classes and functions
  • Reviewing code for style consistency
  • Refactoring existing TypeScript code

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Module OrganizationCRITICALmodule-
2Type SafetyCRITICALtypes-
3Class DesignHIGHclass-
4Function PatternsHIGHfunc-
5Control FlowMEDIUM-HIGHcontrol-
6Error HandlingMEDIUMerror-
7Naming & StyleMEDIUMnaming-
8Literals & CoercionLOW-MEDIUMliteral-

Quick Reference

1. Module Organization (CRITICAL)
2. Type Safety (CRITICAL)
3. Class Design (HIGH)
4. Function Patterns (HIGH)
5. Control Flow (MEDIUM-HIGH)
6. Error Handling (MEDIUM)
7. Naming & Style (MEDIUM)
8. Literals & Coercion (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
AGENTS.mdComplete compiled guide with all rules
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Comments

Markdown supported