Back to Skills

Global Coding Style

Coding style standards enforced by Prettier and ESLint. Use this skill when writing JavaScript, HTML, CSS, or JSON to ensure consistent formatting, naming conventions, and code quality. Apply when creating new files, refactoring code, or ensuring adherence to automated formatting rules.

2starsUpdated 3/25/2026

Security Assessment

Safe(100/100)
Security Score100/100

About Global Coding Style

Global Coding Style is a guidance skill for maintaining consistent code quality and formatting across common web development file types. It is intended to help authors produce code that aligns with established style standards enforced by Prettier and ESLint, reducing inconsistency, review friction, and avoidable formatting issues. The skill is especially relevant when writing or updating JavaScript, HTML, CSS, JSON, and Markdown files, where consistent structure, naming, and cleanliness improve readability and support automated checks such as pre-commit hooks.

Its core capabilities focus on applying standardized formatting, promoting meaningful and descriptive naming, and encouraging small, focused functions. It also emphasizes practical code quality habits such as removing dead code, unused imports, and commented-out blocks, while reinforcing the DRY principle to reduce duplication. In addition to guiding how code should look, the skill supports code that is more likely to pass lint-staged workflows by aligning authoring practices with automated formatting and linting expectations.

This skill is useful during new file creation, refactoring, and cleanup work where consistency matters across a codebase. It is most relevant for developers and contributors working in projects that rely on Prettier and ESLint-based standards, particularly those editing JavaScript and related front-end assets. Teams that want predictable formatting, cleaner diffs, and more maintainable code can use this skill as a reference point for everyday coding tasks and quality-focused revisions.

FAQ

When should I use the Global Coding Style skill?

Use it when writing or refactoring JavaScript, and when formatting HTML, CSS, JSON, or Markdown files to align with consistent style and linting expectations.

Which file types does this skill apply to?

The skill explicitly applies to .js files for JavaScript style guidance and to .html, .css, .js, .json, and .md files for Prettier formatting.

Does this skill define specific APIs or framework conventions?

No. Based on the provided content, it focuses on general coding style, formatting, naming, code cleanliness, and lint compatibility rather than framework-specific APIs or patterns.

What standards or tools does this skill rely on?

It is based on coding style standards enforced by Prettier and ESLint, and it also references an external coding style document for further details.

Are there any limitations or requirements?

Yes. The skill provides high-level guidance but depends on the referenced coding style document for full details. It is most useful in environments where Prettier, ESLint, and lint-staged pre-commit hooks are part of the development workflow.

Install Global Coding Style

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill