style-guide

Enforce Chromium coding style compliance across edits, patches, commits, and reviews using centralized styleguide.md.

24.5k|9.1k|Updated Feb 5, 2018
One-click install
npx skills add https://github.com/chromium/chromium --skill style-guide-chromium
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: style-guide
Source: https://github.com/chromium/chromium/tree/main/.github/skills/style-guide
Command: npx skills add https://github.com/chromium/chromium --skill style-guide-chromium

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers consistently apply Chromium project style guides, reducing style-related feedback and rework.

Core Features & Use Cases

  • Enforces language-appropriate style guidelines when writing, editing, or reviewing code.
  • Directs adherence to the centralized style guide and the styleguide.md reference for patches, commits, and reviews.
  • Use Case: A maintainer validates a new patch against Chromium style rules before submission.

Quick Start

Consult the central styleguide.md to identify applicable rules and ensure all code changes conform prior to submission.

Frequently Asked Questions about style-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce Chromium coding style across code changes?

You can enforce Chromium coding style by validating formatting and language-specific rules against the centralized styleguide.md reference during code review, patch creation, and commit message drafting.

What is the Chromium style guide reference used for patch validation?

The centralized styleguide.md serves as the authoritative reference to validate formatting and language-specific rules, ensuring code edits conform to Chromium project style guidelines before submission.

How do I check my code patch against Chromium style rules before submission?

To check a patch against Chromium style rules, consult the central styleguide.md to identify applicable language-specific formatting rules and ensure all code changes conform prior to submission.

Does the Chromium style guide apply to commit messages and code reviews?

Yes, the Chromium style guide applies to code review, patch creation, and commit messages across all languages used in the Chromium project.

What is the best way to reduce style-related feedback on Chromium code edits?

Consistently applying Chromium project style guides by validating edits against the styleguide.md reference reduces style-related feedback and rework during the development process.

Can I use this style guide for all languages used in the Chromium project?

Yes, the style guide enforces language-appropriate style guidelines across all languages used in Chromium, directing adherence to the centralized styleguide.md for patches and reviews.