js-google
БесплатноБез исполняемых скриптовНе проверенJavaScript style and best practices based on Google's official JavaScript Style Guide. This skill should be used when writing, reviewing, or refactoring…
от pproenca★ 231 звезда на GitHubОб этом скилле
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
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Module System & Imports | CRITICAL | module- |
| 2 | Language Features | CRITICAL | lang- |
| 3 | Type Safety & JSDoc | HIGH | type- |
| 4 | Naming Conventions | HIGH | naming- |
| 5 | Control Flow & Error Handling | MEDIUM-HIGH | control- |
| 6 | Functions & Parameters | MEDIUM | func- |
| 7 | Objects & Arrays | MEDIUM | data- |
| 8 | Formatting & Style | LOW | format- |
Quick Reference
1. Module System & Imports (CRITICAL)
module-avoid-circular-dependencies- Prevent loading failures from circular importsmodule-file-extension-in-imports- Include .js extension in import pathsmodule-named-exports-over-default- Prefer named exports for consistencymodule-no-duplicate-imports- Import from same file only oncemodule-no-import-aliasing- Keep original export namesmodule-source-file-structure- Follow standard file structure order
2. Language Features (CRITICAL)
lang-const-over-let-over-var- Use const by default, never varlang-es6-classes-over-prototypes- Use class syntax over prototype manipulationlang-explicit-semicolons- Always use explicit semicolonslang-no-eval- Never use eval or Function constructorlang-no-modify-builtins- Never modify built-in prototypeslang-no-non-standard-features- Use only standard ECMAScript featureslang-no-primitive-wrappers- Never use primitive wrapper objectslang-no-with-statement- Never use the with statement
3. Type Safety & JSDoc (HIGH)
type-cast-with-parentheses- Use parentheses for type caststype-enum-annotations- Annotate enums with static literal valuestype-explicit-nullability- Use explicit nullability modifierstype-jsdoc-required-for-exports- Require JSDoc for exported functionstype-template-parameters- Always specify template parameterstype-typedef-for-complex-types- Use typedef for complex object types
4. Naming Conventions (HIGH)
naming-constant-case-for-constants- Use CONSTANT_CASE for immutable valuesnaming-descriptive-over-brief- Prefer descriptive names over brevitynaming-file-naming-conventions- Use lowercase with dashes or underscoresnaming-lowercamelcase-for-methods- Use lowerCamelCase for methods and variablesnaming-no-dollar-prefix- Avoid dollar sign prefix in identifiersnaming-uppercamelcase-for-classes- Use UpperCamelCase for classes
5. Control Flow & Error Handling (MEDIUM-HIGH)
control-comment-empty-catch- Document empty catch blockscontrol-for-of-over-for-in- Prefer for-of over for-incontrol-strict-equality- Use strict equality except for null checkscontrol-switch-default-last- Always include default case in switchcontrol-throw-error-objects- Always throw Error objects
6. Functions & Parameters (MEDIUM)
- [
func-arrow-functions-for-nested](references/func-arrow-functions-for
Установить js-google в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл js-google?
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.
Как установить скилл js-google?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл js-google запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic