Code style

SkillDev tools

Gives your agent the Carbon project's code formatting rules and style guides to follow when writing or editing code.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Code style skill

About this capability

Instructions for code formatting and style guidelines in the Carbon toolchain.

What this skill tells your AI

The instructions your AI receives, as published by carbon-language/carbon-lang in .agents/skills/code_style/SKILL.md and read by ahel’s review.

License

Formatting

  • Bazel: Use pre-commit run buildifier --files <file.bzl> to format Bazel files.
  • C++: Use pre-commit run clang-format --files <file.cpp> to format C++ files.
  • Carbon: The toolchain's format command doesn't work well right now. Instead, try to format Carbon code based on other Carbon files and the C++ style.
  • Markdown: Use pre-commit run prettier --files <file.md> to format markdown files.
  • Python: Use pre-commit run black --files <file.py> to format Python files.

Style Guides

Signals

GitHub stars
34k
Forks
2k
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
code-style-carbon-language
Source
github.com/carbon-language/carbon-lang