solidity-compiler
Skill by celo-org
Guides choosing and changing the Solidity compiler and EVM target for packages/protocol. Covers solc pins, evm_version, via-IR and known compiler bugs. Built for developers bumping or reviewing a compiler upgrade.
Install solidity-compiler
Built from the published package, never by AI.
git clone --depth 1 https://github.com/celo-org/celo-monorepo /tmp/celo-monorepo && mkdir -p ~/.claude/skills && cp -r /tmp/celo-monorepo/.agent/skills/solidity-compiler ~/.claude/skills/solidity-compilerRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/celo-org/celo-monorepo /tmp/celo-monorepo && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/celo-monorepo/.agent/skills/solidity-compiler ~/.gemini/antigravity-cli/skills/solidity-compilerAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill documents which Solidity compiler and EVM target the core contracts in packages/protocol use. The pinned setup is solc 0.8.36, EVM target shanghai, optimizer on with 200 runs, and via-IR off, all set in the default foundry.toml profile. It also lists two source-level rules that keep the pinned version's known compiler bugs unreachable: do not enable via-IR, and never delete a memory array element.
The skill gives steps for checking before a pin change. These include looking up known bugs per version, checking whether Blockscout can verify a version, testing whether the Foundry toolchain can install it, and comparing metadata-stripped runtime bytecode before and after a change. It is aimed at developers who bump solc, change evm_version or via_ir, add a Foundry profile, or review a compiler upgrade.
Written from the project's SKILL.md and checked against it.
What it can do
- Current compiler pinShows the pinned solc version, EVM target, optimizer settings and via-IR state from foundry.toml.
- Known bug rulesExplains the two source-level rules that keep the pinned version's known compiler bugs out of reach.
- Memory delete checkProvides a grep command to find delete statements on arrays and confirm they target storage.
- Known bug lookupPoints to the Solidity bug lists per version and the conditions under which each bug applies.
- Explorer verification checkQueries the Blockscout config to see whether a compiler version is available for verification.
- Toolchain install checkRuns a forge build with a specific compiler version to confirm the pinned toolchain can install it.
- Bytecode comparisonDescribes comparing metadata-stripped runtime code of every contract before and after a pin change.
What you need
- Foundry toolchain (forge)
- Python 3 for the verification config check
- curl and grep on the command line
- Network access to GitHub and the Blockscout API
Try asking
- Should we bump the solc pin in packages/protocol to a newer version?
- Check whether any delete statements in contracts/ target memory arrays.
- Is solc 0.8.37 available on Blockscout for verifying Celo contracts?
Good to know
- Describes the pin for packages/protocol only.
- Raising the EVM target or enabling via-IR changes bytecode of every contract, so the source treats these as release decisions.
- Blockscout is described as the binding verification check over Celoscan.
- Foundry 1.0.0 fails some compiler versions with a checksum mismatch, according to the source.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agent/skills/solidity-compiler/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to solidity-compiler
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
solidity-compiler: common questions
Why is the compiler pinned to 0.8.36 and not the newest version?
The source says Blockscout does not yet carry a newer compiler for Celo mainnet or Celo Sepolia. Shipping an unlisted version would leave contracts unverified on the explorer Celo links to.
Why is the EVM target shanghai if Celo supports newer opcodes?
The source says shanghai is a choice, not a tooling limit. Celo mainnet and Celo Sepolia run Prague today, and the release tooling works with any evm_version up to prague.
How do I compare contracts after changing the compiler version?
The source says to rebuild and compare the metadata-stripped runtime code of every contract before and after. An unstripped comparison reports false differences because the metadata hash changes.
How do I install solidity-compiler?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is solidity-compiler free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is solidity-compiler safe to use?
It scores 78 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to solidity-compiler?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
