code-styleguide
Skill20 starsChanged 21 days agoApache-2.0View on GitHub
Google, Angular, and Android Kotlin style guides synced from upstream, covering Common Lisp, C++, C#, Go, Haskell, HTML/CSS, JavaScript, Java, JSON, Markdown, Objective-C, Python, R, Rust, Shell, TypeScript, Verilog, Vim script, XML Document Format, Angular, Kotlin. Use when writing, reviewing, refactoring, or formatting code that should follow one of these guides, or when the user asks about naming, formatting, comments, imports, or language-feature rules in these languages.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- modern-web-guidanceSkill
- research-writingSkill
- self-use-dpsk-subagentSkill
- self-use-haiku-subagentSkill
- self-use-luna-subagentSkill
- self-use-sonnet-subagentSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Read its index (the line range in the Index column).
- Distinctive: line 17
Read only the sections you need, starting at those lines.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code style guides
Each reference is one upstream guide converted to Markdown. Load only what the task needs:
- Pick the reference for the language or framework below.
- Read its index (the line range in the Index column). Each entry gives the line where a section starts.
- Read only the sections you need, starting at those lines.
Code fences tagged good show recommended code; fences tagged bad show code to avoid.
The project's own configuration, formatter, and surrounding code take precedence over these guides.
| Topic | Reference | Index | Lines |
| Common Lisp | Google Common Lisp Style Guide | 1-55 | 1215 |
| C++ | Google C++ Style Guide | 1-119 | 3658 |
| C# | C# at Google Style Guide | 1-37 | 493 |
| Go | Go Style | 1-10 | 120 |
| Go | Go Style Best Practices | 1-61 | 2862 |
| Go | Go Style Decisions | 1-77 | 2629 |
| Go | Go Style Guide | 1-18 | 273 |
| Haskell | Google's Haskell Style Guide | 1-41 | 702 |
| HTML/CSS | Google HTML/CSS Style Guide | 1-19 | 907 |
| JavaScript | Google JavaScript Style Guide | 1-70 | 3134 |
| Java | Google Java Style Guide | 1-41 | 931 |
| JSON | Google JSON Style Guide | 1-77 | 1316 |
| Markdown | Markdown style guide | 1-37 | 716 |
| Objective-C | Google Objective-C Style Guide | 1-77 | 1735 |
| Python | Google Python Style Guide | 1-48 | 2399 |
| R | Google's R Style Guide | 1-17 | 110 |
| Rust | Rust Style Guide | 1-85 | 1243 |
| Shell | Shell Style Guide | 1-51 | 1074 |
| TypeScript | TS/JS Style Guide | 1-64 | 3205 |
| Verilog | Google Verilog Style Guide | 1-126 | 4222 |
| Vim script | Google Vimscript Style Guide | 1-29 | 273 |
| XML Document Format | Google XML Document Format Style Guide | 1-23 | 233 |
| Angular | Angular coding style guide | 1-34 | 299 |
| Kotlin | Kotlin style guide | 1-16 | 888 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

