mcpField
J
js-google

js-google

github.com/pproencaDevelopment218313 installsUpdated 11w ago
Repository

About js-google

A JavaScript style and best-practices skill for AI agents and LLMs, organizing guidance by priority across modules, language features, type annotations, and code style.

Key features

  1. 01Rules organized by priority
  2. 02Module and import/export conventions
  3. 03JavaScript language-feature guidance
  4. 04JSDoc type-safety guidance
  5. 05Naming and control-flow conventions
  6. 06Function, data, and formatting rules

Use cases

  1. 01Write new JavaScript or ES6+ code
  2. 02Review style and naming consistency
  3. 03Refactor existing JavaScript code
  4. 04Add JSDoc to exported functions

Install

Copy the command and run it in a terminal.

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

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

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
metadata.json
README.md
assets/templates/
_template.md
references/
_sections.md
control-comment-empty-catch.md
control-for-of-over-for-in.md
control-strict-equality.md
control-switch-default-last.md
control-throw-error-objects.md
data-array-literals-over-constructor.md
data-destructuring-for-multiple-values.md
data-no-mixing-quoted-unquoted-keys.md
data-object-literals-over-constructor.md
data-spread-over-concat-slice.md
data-trailing-commas.md
format-braces-required.md
format-column-limit.md
format-one-statement-per-line.md
format-single-quotes.md
format-two-space-indent.md
func-arrow-functions-for-nested.md
func-arrow-parentheses.md
func-default-parameters.md
func-rest-parameters-over-arguments.md
func-spread-over-apply.md
lang-const-over-let-over-var.md
lang-es6-classes-over-prototypes.md
lang-explicit-semicolons.md
lang-no-eval.md

Details

From the project README

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

Comments

Markdown supported