js-google

v2026.09.24

JavaScript style and best practices based on Google's official JavaScript Style Guide. This skill should be used when writing, reviewing, or refactoring JavaScript code to ensure consistent style and prevent common bugs. Triggers on tasks involving JavaScript, ES6, modules, JSDoc, naming conventions, or code formatting.

GitHub
安装命令
npx skhub add pproenca/js-google
Markdown
SKILL.md

Google JavaScript Best Practices

Comprehensive JavaScript style and best practices guide based on Google's official JavaScript Style Guide, designed for AI agents and LLMs. Contains 47 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new JavaScript or ES6+ code
  • Structuring modules and managing imports/exports
  • Adding JSDoc type annotations and documentation
  • Reviewing code for naming and style consistency
  • Refactoring existing JavaScript code

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Module System & ImportsCRITICALmodule-
2Language FeaturesCRITICALlang-
3Type Safety & JSDocHIGHtype-
4Naming ConventionsHIGHnaming-
5Control Flow & Error HandlingMEDIUM-HIGHcontrol-
6Functions & ParametersMEDIUMfunc-
7Objects & ArraysMEDIUMdata-
8Formatting & StyleLOWformat-

Quick Reference

1. Module System & Imports (CRITICAL)

2. Language Features (CRITICAL)

3. Type Safety & JSDoc (HIGH)

4. Naming Conventions (HIGH)

5. Control Flow & Error Handling (MEDIUM-HIGH)

6. Functions & Parameters (MEDIUM)

7. Objects & Arrays (MEDIUM)

8. Formatting & Style (LOW)

How to Use

Read individual reference files for detailed explanations and code examples:

Full Compiled Document

For a complete compiled guide with all rules, see AGENTS.md.

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
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

MIT

源路径

skills/.experimental/js-google

默认分支

master

最新提交

cf93c57

Tree SHA

afbb575