Applies Google TypeScript style guide rules for writing clean, consistent, type-safe code. Covers module organization, type safety, class design, function patterns, and naming conventions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pproenca-dot-skills-1:ts-googleThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
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.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Module Organization | CRITICAL | module- |
| 2 | Type Safety | CRITICAL | types- |
| 3 | Class Design | HIGH | class- |
| 4 | Function Patterns | HIGH | func- |
| 5 | Control Flow | MEDIUM-HIGH | control- |
| 6 | Error Handling | MEDIUM | error- |
| 7 | Naming & Style | MEDIUM | naming- |
| 8 | Literals & Coercion | LOW-MEDIUM | literal- |
module-named-exports - Use named exports over default exportsmodule-no-mutable-exports - Avoid mutable exportsmodule-es6-modules - Use ES6 modules exclusivelymodule-no-namespaces - Avoid TypeScript namespacesmodule-import-paths - Use relative paths for project importsmodule-import-type - Use import type for type-only importsmodule-export-api-surface - Minimize exported API surfacetypes-no-any - Never use the any typetypes-prefer-interfaces - Prefer interfaces over type aliases for objectstypes-explicit-structural - Explicitly annotate structural typestypes-nullable-patterns - Handle nullable types correctlytypes-array-syntax - Use consistent array type syntaxtypes-no-wrapper-types - Never use wrapper object typestypes-prefer-map-set - Prefer Map and Set over index signaturestypes-no-empty-object - Avoid empty object typeclass-parameter-properties - Use parameter properties for constructor assignmentclass-readonly-properties - Mark properties readonly when never reassignedclass-no-private-fields - Use TypeScript private over private fieldsclass-no-static-containers - Avoid container classes with only static membersclass-constructor-parens - Always use parentheses in constructor callsclass-no-prototype-manipulation - Never manipulate prototypes directlyfunc-declarations-over-expressions - Prefer function declarations over expressionsfunc-arrow-concise-bodies - Use concise arrow function bodies appropriatelyfunc-avoid-this-rebinding - Avoid rebinding thisfunc-rest-parameters - Use rest parameters over argumentsfunc-generator-syntax - Use correct generator function syntaxfunc-default-parameters - Use default parameters sparinglycontrol-always-use-braces - Always use braces for control structurescontrol-triple-equals - Always use triple equalscontrol-for-of-iteration - Prefer for-of over for-in for arrayscontrol-switch-default - Always include default case in switchcontrol-no-assignment-in-condition - Avoid assignment in conditional expressionserror-throw-errors - Always throw Error instanceserror-catch-unknown - Type catch clause variables as unknownerror-empty-catch-comments - Document empty catch blockserror-avoid-assertions - Avoid type and non-null assertionsnaming-identifier-styles - Use correct identifier naming stylesnaming-descriptive-names - Use descriptive namesnaming-no-decorative-underscores - Avoid decorative underscoresnaming-no-interface-prefix - No I prefix for interfacesnaming-constants - Use CONSTANT_CASE for true constantsliteral-single-quotes - Use single quotes for stringsliteral-number-formats - Use correct number literal formatsliteral-explicit-coercion - Use explicit type coercionliteral-array-constructor - Avoid Array constructorRead individual reference files for detailed explanations and code examples:
| File | Description |
|---|---|
| AGENTS.md | Complete compiled guide with all rules |
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |
npx claudepluginhub pproenca/dot-skillsEnforces Google's official JavaScript style guide rules for writing, reviewing, or refactoring JS code. Covers modules, naming, JSDoc, and formatting.
Enforces TypeScript type safety with strict mode, no `any`, and discriminated unions. Use when writing or reviewing TypeScript code.
Enforces Google style guides (TypeScript, Python, Go, Java, C++, Shell, HTML/CSS) and language best practices for consistent, readable code. Activates when writing code to apply naming, formatting, and import conventions.