agentleFS
AboudjemAboudjem/solidity-style-guide/CLAUDE.md

solidity-style-guide

CLAUDE.md32 starsChanged 8 months agoMITView on GitHub

Claude Code reads this file first. Everything here also applies to Cursor, Codex, Aider, and similar agents — see AGENTS.md for the canonical agent contract. You are working in a Solidity style guide documentation repo. The deliverable is README.md plus supporting docs and configs. There is no contract build step. Load the rules from README.md (or invoke the bundled skill in skill/SKILL.md) and review or rewrite the target .sol files to match. Report violations as a checklist before editing.

The file

We split this CLAUDE.md into the rules it gives an agent

10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep README.md as the single canonical source.

    line 15
  2. Distinctive:

    Update the table of contents when adding headings.

    line 17
  3. Very specific:

    Run npm run check before claiming completion.

    line 18
  4. Very specific:

    Use /oh-my-claudecode:ccg or the oh-my-claudecode:code-reviewer agent for a second opinion on substantive rule changes.

    line 19
  5. Distinctive:

    Don't collapse multiple rules into one.

    line 23
  6. Very specific:

    Don't remove the ✅ Yes / ❌ No pattern — the contrast is the pedagogy.

    line 24
  7. Distinctive:

    Don't add rules that conflict with the official Solidity style guide without citing a rationale.

    line 25
  8. Very specific:

    Don't introduce require("string") examples unless demonstrating the "avoid this" side.

    line 26
  9. Distinctive:

    Don't add Hardhat-only examples.

    line 27
  10. Very specific:

    Don't bump dependencies casually.

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

Claude Code reads this file first. Everything here also applies to Cursor, Codex, Aider, and similar agents — see AGENTS.md for the canonical agent contract.

TL;DR for Claude Code

You are working in a Solidity style guide documentation repo. The deliverable is README.md plus supporting docs and configs. There is no contract build step.

When the user says "apply this guide" in another repo

Load the rules from README.md (or invoke the bundled skill in skill/SKILL.md) and review or rewrite the target .sol files to match. Report violations as a checklist before editing.

When editing this repo

  1. Keep README.md as the single canonical source.
  2. Match existing formatting: H3 sections, #### Rule Name, ✅ Yes / ❌ No Solidity blocks, > [!NOTE|TIP|IMPORTANT|WARNING|CAUTION] callouts.
  3. Update the table of contents when adding headings.
  4. Run npm run check before claiming completion.
  5. Use /oh-my-claudecode:ccg or the oh-my-claudecode:code-reviewer agent for a second opinion on substantive rule changes.

Hard "never do this" list

  • Don't collapse multiple rules into one.
  • Don't remove the ✅ Yes / ❌ No pattern — the contrast is the pedagogy.
  • Don't add rules that conflict with the official Solidity style guide without citing a rationale.
  • Don't introduce require("string") examples unless demonstrating the "avoid this" side.
  • Don't add Hardhat-only examples. Foundry first.
  • Don't bump dependencies casually. package.json is tooling-only; each bump should be justified in the PR.

Preferred agents / skills

  • Review style edits: oh-my-claudecode:code-reviewer (opus)
  • Verify examples compile conceptually: oh-my-claudecode:verifier
  • Refactor README layout: oh-my-claudecode:designer + oh-my-claudecode:writer
  • SEO / GEO polish: /seo-geo-mastery:optimize
  • Humanize prose: /humanizer:humanizer
  • Final launch audit: /repo-polish

What "done" looks like

  • npm run check passes.
  • Banner renders in the rendered README on GitHub.
  • At least one ✅ Yes and one ❌ No Solidity block per #### rule.
  • skill/SKILL.md stays in sync with README.md rule titles.
  • Git working tree clean; commits atomic.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.