Skillshub ts-google

Google TypeScript Best Practices

install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/ts-google" ~/.claude/skills/comeonoliver-skillshub-ts-google && rm -rf "$T"
manifest: skills/pproenca/dot-skills/ts-google/SKILL.md
source content

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 OrganizationCRITICAL
module-
2Type SafetyCRITICAL
types-
3Class DesignHIGH
class-
4Function PatternsHIGH
func-
5Control FlowMEDIUM-HIGH
control-
6Error HandlingMEDIUM
error-
7Naming & StyleMEDIUM
naming-
8Literals & CoercionLOW-MEDIUM
literal-

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