Code style
SkillDev toolsGives 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.
No other account needed.
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
- Licenses: All Carbon files outside of
third_party/should have a license following CONTRIBUTING license instructions.
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
formatcommand 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
- C++ style: Follow the Carbon C++ Project Style Guide.
- Markdown style: Follow the Google developer documentation style guide.
- Python style: Follow the PEP 8
style guide.
- Wrap code and comments to 80 columns.
- Run
pre-commit run flake8 --files <file.py>to check Python style.
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