[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FEKJBC8CABX83YQWTZYYX0":3,"skill-same:01M6FEKJBC8CABX83YQWTZYYX0":47},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M6FEKJBC8CABX83YQWTZYYX0","ts-google",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fts-google\u002FSKILL.md",[],[18,19],"google","ts google","2026-11-10 10:12:30",false,"# Google TypeScript Best Practices\n\nComprehensive 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.\n\n## When to Apply\n\nReference these guidelines when:\n- Writing new TypeScript code\n- Organizing modules and imports\n- Designing type annotations and interfaces\n- Creating classes and functions\n- Reviewing code for style consistency\n- Refactoring existing TypeScript code\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | Module Organization | CRITICAL | `module-` |\n| 2 | Type Safety | CRITICAL | `types-` |\n| 3 | Class Design | HIGH | `class-` |\n| 4 | Function Patterns | HIGH | `func-` |\n| 5 | Control Flow | MEDIUM-HIGH | `control-` |\n| 6 | Error Handling | MEDIUM | `error-` |\n| 7 | Naming & Style | MEDIUM | `naming-` |\n| 8 | Literals & Coercion | LOW-MEDIUM | `literal-` |\n\n## Quick Reference\n\n### 1. Module Organization (CRITICAL)\n\n- [`module-named-exports`](references\u002Fmodule-named-exports.md) - Use named exports over default exports\n- [`module-no-mutable-exports`](references\u002Fmodule-no-mutable-exports.md) - Avoid mutable exports\n- [`module-es6-modules`](references\u002Fmodule-es6-modules.md) - Use ES6 modules exclusively\n- [`module-no-namespaces`](references\u002Fmodule-no-namespaces.md) - Avoid TypeScript namespaces\n- [`module-import-paths`](references\u002Fmodule-import-paths.md) - Use relative paths for project imports\n- [`module-import-type`](references\u002Fmodule-import-type.md) - Use import type for type-only imports\n- [`module-export-api-surface`](references\u002Fmodule-export-api-surface.md) - Minimize exported API surface\n\n### 2. Type Safety (CRITICAL)\n\n- [`types-no-any`](references\u002Ftypes-no-any.md) - Never use the any type\n- [`types-prefer-interfaces`](references\u002Ftypes-prefer-interfaces.md) - Prefer interfaces over type aliases for objects\n- [`types-explicit-structural`](references\u002Ftypes-explicit-structural.md) - Explicitly annotate structural types\n- [`types-nullable-patterns`](references\u002Ftypes-nullable-patterns.md) - Handle nullable types correctly\n- [`types-array-syntax`](references\u002Ftypes-array-syntax.md) - Use consistent array type syntax\n- [`types-no-wrapper-types`](references\u002Ftypes-no-wrapper-types.md) - Never use wrapper object types\n- [`types-prefer-map-set`](references\u002Ftypes-prefer-map-set.md) - Prefer Map and Set over index signatures\n- [`types-no-empty-object`](references\u002Ftypes-no-empty-object.md) - Avoid empty object type\n\n### 3. Class Design (HIGH)\n\n- [`class-parameter-properties`](references\u002Fclass-parameter-properties.md) - Use parameter properties for constructor assignment\n- [`class-readonly-properties`](references\u002Fclass-readonly-properties.md) - Mark properties readonly when never reassigned\n- [`class-no-private-fields`](references\u002Fclass-no-private-fields.md) - Use TypeScript private over private fields\n- [`class-no-static-containers`](references\u002Fclass-no-static-containers.md) - Avoid container classes with only static members\n- [`class-constructor-parens`](references\u002Fclass-constructor-parens.md) - Always use parentheses in constructor calls\n- [`class-no-prototype-manipulation`](references\u002Fclass-no-prototype-manipulation.md) - Never manipulate prototypes directly\n\n### 4. Function Patterns (HIGH)\n\n- [`func-declarations-over-expressions`](references\u002Ffunc-declarations-over-expressions.md) - Prefer function declarations over expressions\n- [`func-arrow-concise-bodies`](references\u002Ffunc-arrow-concise-bodies.md) - Use concise arrow function bodies appropriately\n- [`func-avoid-this-rebinding`](references\u002Ffunc-avoid-this-rebinding.md) - Avoid rebinding this\n- [`func-rest-parameters`](references\u002Ffunc-rest-parameters.md) - Use rest parameters over arguments\n- [`func-generator-syntax`](references\u002Ffunc-generator-syntax.md) - Use correct generator function syntax\n- [`func-default-parameters`](references\u002Ffunc-default-parameters.md) - Use default parameters sparingly\n\n### 5. Control Flow (MEDIUM-HIGH)\n\n- [`control-always-use-braces`](references\u002Fcontrol-always-use-braces.md) - Always use braces for control structures\n- [`control-triple-equals`](references\u002Fcontrol-triple-equals.md) - Always use triple equals\n- [`control-for-of-iteration`](references\u002Fcontrol-for-of-iteration.md) - Prefer for-of over for-in for arrays\n- [`control-switch-default`](references\u002Fcontrol-switch-default.md) - Always include default case in switch\n- [`control-no-assignment-in-condition`](references\u002Fcontrol-no-assignment-in-condition.md) - Avoid assignment in conditional expressions\n\n### 6. Error Handling (MEDIUM)\n\n- [`error-throw-errors`](references\u002Ferror-throw-errors.md) - Always throw Error instances\n- [`error-catch-unknown`](references\u002Ferror-catch-unknown.md) - Type catch clause variables as unknown\n- [`error-empty-catch-comments`](references\u002Ferror-empty-catch-comments.md) - Document empty catch blocks\n- [`error-avoid-assertions`](references\u002Ferror-avoid-assertions.md) - Avoid type and non-null assertions\n\n### 7. Naming & Style (MEDIUM)\n\n- [`naming-identifier-styles`](references\u002Fnaming-identifier-styles.md) - Use correct identifier naming styles\n- [`naming-descriptive-names`](references\u002Fnaming-descriptive-names.md) - Use descriptive names\n- [`naming-no-decorative-underscores`](references\u002Fnaming-no-decorative-underscores.md) - Avoid decorative underscores\n- [`naming-no-interface-prefix`](references\u002Fnaming-no-interface-prefix.md) - No I prefix for interfaces\n- [`naming-constants`](references\u002Fnaming-constants.md) - Use CONSTANT_CASE for true constants\n\n### 8. Literals & Coercion (LOW-MEDIUM)\n\n- [`literal-single-quotes`](references\u002Fliteral-single-quotes.md) - Use single quotes for strings\n- [`literal-number-formats`](references\u002Fliteral-number-formats.md) - Use correct number literal formats\n- [`literal-explicit-coercion`](references\u002Fliteral-explicit-coercion.md) - Use explicit type coercion\n- [`literal-array-constructor`](references\u002Fliteral-array-constructor.md) - Avoid Array constructor\n\n## How to Use\n\nRead individual reference files for detailed explanations and code examples:\n\n- [Section definitions](references\u002F_sections.md) - Category structure and impact levels\n- [Rule template](assets\u002Ftemplates\u002F_template.md) - Template for adding new rules\n\n## Reference Files\n\n| File | Description |\n|------|-------------|\n| [AGENTS.md](AGENTS.md) | Complete compiled guide with all rules |\n| [references\u002F_sections.md](references\u002F_sections.md) | Category definitions and ordering |\n| [assets\u002Ftemplates\u002F_template.md](assets\u002Ftemplates\u002F_template.md) | Template for new rules |\n| [metadata.json](metadata.json) | Version and reference information |\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fpproenca\u002Fdot-skills\u002Fts-google",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill ts-google",{"tool":39,"command":40},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill ts-google",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill ts-google","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fts-google\u002FSKILL.md",true,[],[48,57,66,75,81,87],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":20},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[54,55,56],"model","model hierarchy","model hierarchy skill",{"skillNo":58,"name":59,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":20},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[63,64,65],"MCP","zoom","zoom mcp",{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":20},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[72,73,74,64],"sdk","zoom apps sdk","apps",{"skillNo":76,"name":77,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":20},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[77],{"skillNo":82,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":20},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[83],{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":20},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[89]]