Fizz Convert
pashov/skills
Convert English-language properties in PROPERTIES.md (produced by the Fizz skill) into Solidity assertions inside the existing fuzz harness, then flip their checkboxes.
Create production grade smart contracts. An agent skill from Cyfrin/solskill.
$ npx skills add Cyfrin/solskill --skill solidity -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Cyfrin/solskill solidity --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Cyfrin/solskill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/solidity .claude/skills/solidity && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "solidity" agent skill from https://github.com/Cyfrin/solskill/tree/main/skills/solidity into .claude/skills/solidity/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "solidity", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Cyfrin/solskill/tree/main/skills/solidityType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Cyfrin/solskill --skill solidity -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Cyfrin/solskill solidity --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Cyfrin/solskill.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/solidity .agents/skills/solidity && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "solidity" agent skill from https://github.com/Cyfrin/solskill/tree/main/skills/solidity into .agents/skills/solidity/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "solidity", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Cyfrin/solskill --skill solidity -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Cyfrin/solskill solidity --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Cyfrin/solskill.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/solidity .cursor/skills/solidity && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "solidity" agent skill from https://github.com/Cyfrin/solskill/tree/main/skills/solidity into .cursor/skills/solidity/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "solidity", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Cyfrin/solskill.git --path skills/solidity--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Cyfrin/solskill --skill solidity -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Cyfrin/solskill solidity --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Cyfrin/solskill.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/solidity .gemini/skills/solidity && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "solidity" agent skill from https://github.com/Cyfrin/solskill/tree/main/skills/solidity into .gemini/skills/solidity/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "solidity", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Cyfrin/solskill solidityInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Cyfrin/solskill --skill solidity -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Cyfrin/solskill.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/solidity .github/skills/solidity && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "solidity" agent skill from https://github.com/Cyfrin/solskill/tree/main/skills/solidity into .github/skills/solidity/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "solidity", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Cyfrin/solskill --skill solidity -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Cyfrin/solskill solidity --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Cyfrin/solskill.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/solidity .opencode/skills/solidity && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "solidity" agent skill from https://github.com/Cyfrin/solskill/tree/main/skills/solidity into .opencode/skills/solidity/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "solidity", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
solidityCreate production grade smart contracts. An agent skill from Cyfrin/solskill.
Solidity is an agent skill from Cyfrin/solskill. Create production grade smart contracts. Use this skill when the user asks to write smart contracts, specially if they are going to be deployed to production (to a mainnet, or used in a mainnet script).
Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering Smart contracts. It works with Solidity. The licence is AGPL-3.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit d17bda0. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are solidity).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comcyfrin.ionascent.xyzx.comsoliditylang.orghardhat.orgblog.trailofbits.commedium.comrekt.newsFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Solidity loads about 2.9k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 1,023 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Cyfrin/solskill at commit d17bda0, republished under its AGPL-3.0 licence (© Cyfrin). 1,023 words, ~2,945 tokens.
.claude/skills/solidity/SKILL.md (or your agent's skills folder).Instructions for how to write solidity code, from the Cyfrin security team.
..) paths// good
import {MyContract} from "contracts/MyContract.sol";
// bad
import "../MyContract.sol";revert over require, with custom errors that are prefix'd with the contract name and 2 underscores.error ContractName__MyError();
// Good
myBool = true;
if (myBool) {
revert ContractName__MyError();
}
// bad
require(myBool, "MyError");// good - using foundry's built in stateless fuzzer
function testMyTest(uint256 randomNumber) { }
// bad
function testMyTest() {
uint256 randomNumber = 0;
}Additionally, write invariant (stateful) fuzz tests for core protocol properties. Use invariant-driven development: identify O(1) properties that must always hold and encode them directly into core functions (FREI-PI pattern). Use a multi-fuzzing setup like Chimera to run the same invariant suite across Foundry, Echidna, and Medusa — different fuzzers find different bugs.
constructor
receive function (if exists)
fallback function (if exists)
user-facing state-changing functions
(external or public, not view or pure)
user-facing read-only functions
(external or public, view or pure)
internal state-changing functions
(internal or private, not view or pure)
internal read-only functions
(internal or private, view or pure) /*//////////////////////////////////////////////////////////////
INTERNAL STATE-CHANGING FUNCTIONS
//////////////////////////////////////////////////////////////*/Pragma statements
Import statements
Events
Errors
Interfaces
Libraries
ContractsLayout of contract:
Type declarations
State variables
Events
Errors
Modifiers
Functions.tree fileExample:
├── when the id references a null stream
│ └── it should revert
└── when the id does not reference a null stream
├── given assets have been fully withdrawn
│ └── it should return DEPLETED
└── given assets have not been fully withdrawn
├── given the stream has been canceled
│ └── it should return CANCELED
└── given the stream has not been canceled
├── given the start time is in the future
│ └── it should return PENDING
└── given the start time is not in the future
├── given the refundable amount is zero
│ └── it should return SETTLED
└── given the refundable amount is not zero
└── it should return STREAMINGExample:
function test_RevertWhen_Null() external {
uint256 nullStreamId = 1729;
vm.expectRevert(abi.encodeWithSelector(Errors.SablierV2Lockup_Null.selector, nullStreamId));
lockup.statusOf(nullStreamId);
}
modifier whenNotNull() {
defaultStreamId = createDefaultStream();
_;
}
function test_StatusOf()
external
whenNotNull
givenAssetsNotFullyWithdrawn
givenStreamNotCanceled
givenStartTimeNotInFuture
givenRefundableAmountNotZero
{
LockupLinear.Status actualStatus = lockup.statusOf(defaultStreamId);
LockupLinear.Status expectedStatus = LockupLinear.Status.STREAMING;
assertEq(actualStatus, expectedStatus);
}Prefer strict pragma versions for contracts, and floating pragma versions for tests, libraries, abstract contracts, interfaces, and scripts. Use 0.8.34 or later as the minimum version — versions 0.8.28 through 0.8.33 have a high-severity transient storage bug where the IR pipeline (--via-ir) can emit sstore instead of tstore (and vice versa) when clearing storage, causing writes to the wrong storage domain.
Add a security contact to the natspec at the top of your contracts
/**
* @custom:security-contact mycontact@example.com
* @custom:security-contact see https://mysite.com/ipfs-hash
*/ Remind people to get an audit if they are deploying to mainnet, or trying to deploy to mainnet
NEVER. EVER. NEVER. Have private keys be in plain text. The only exception to this rule is when using a default key from something like anvil, and it must be marked as such.
forge script <path> --account $ACCOUNT --sender $SENDER for our deploy scripts, and never use vm.envUnit() in our scripts.Whenever a smart contract is deployed that is ownable or has admin properties (like, onlyOwner), the admin must be a multisig from the very first deployment — never use the deployer EOA as admin (testnet is the only acceptable exception). See Trail of Bits: Maturing Your Smart Contracts Beyond Private Key Risk — "Layer 1" (single EOA) governance is no longer acceptable for DeFi.
Don't initialize variables to default values
// good
uint256 x;
bool y;
// bad
uint256 x = 0;
bool y = false;// good
function getBalance() external view returns (uint256 balance) {
balance = balances[msg.sender];
}
// bad
function getBalance() external view returns (uint256) {
uint256 balance = balances[msg.sender];
return balance;
}Prefer calldata instead of memory for read-only function inputs
Don't cache calldata array length
// good — calldata length is cheap to read
for (uint256 i; i < items.length; ++i) { }
// bad — unnecessary caching for calldata
uint256 len = items.length;
for (uint256 i; i < len; ++i) { }Reading from storage is expensive — prevent identical storage reads by caching unchanging storage slots and passing/using cached values
Revert as quickly as possible; perform input checks before checks which require storage reads or external calls
Use msg.sender instead of owner inside onlyOwner functions
Use SafeTransferLib::safeTransferETH instead of Solidity call() to send ETH
Modify input variables instead of declaring an additional local variable when an input variable's value doesn't need to be preserved
Use nonReentrant modifier before other modifiers
Use ReentrancyGuardTransient for faster nonReentrant modifiers. Requires pragma solidity ^0.8.34; — do not use with 0.8.28–0.8.33 due to the transient storage clearing bug.
Prefer Ownable2Step instead of Ownable
Don't copy an entire struct from storage to memory if only a few slots are required
Remove unnecessary "context" structs and/or remove unnecessary variables from context structs
When declaring storage and structs, align the order of declarations to pack variables into the minimum number of storage slots. If variables are frequently read or written together, pack them in the same slot if possible
For non-upgradeable contracts, declare variables as immutable if they are only set once in the constructor
Enable the optimizer in foundry.toml
If modifiers perform identical storage reads as the function body, refactor modifiers to internal functions to prevent identical storage reads
Use Foundry's encrypted secure private key storage instead of plaintext environment variables
Upgrades: When upgrading smart contracts, do not change the order or type of existing variables, and do not remove them. This can lead to storage collisions. Also write tests for any upgrades.
Use Foundry scripts (forge script) for both production deployments and test setup. This ensures the same deployment logic runs in development and on mainnet, making deployments more auditable and reducing the gap between test and production environments. Avoid custom test-only setup code that diverges from real deployment paths. Ideally, your deploy scripts are audited as well.
Example: use a shared base script that both tests and production inherit from, like this BaseTest using scripts pattern.
Use safe-utils or equivalent tooling for governance proposals. This makes multisig interactions testable, auditable, and reproducible through Foundry scripts rather than manual UI clicks. If you must use a UI, it's preferred to keep your transactions private, using a UI like localsafe.eth.
Write fork tests that verify expected protocol state after governance proposals execute. Fork testing against mainnet state catches misconfigurations that unit tests miss — for example, the Moonwell price feed misconfiguration would have been caught by a fork test asserting correct oracle state post-proposal.
// good - fork test verifying governance proposal outcome
function testGovernanceProposal_UpdatesPriceFeed() public {
vm.createSelectFork(vm.envString("MAINNET_RPC_URL"));
// Execute the governance proposal
_executeProposal(proposalId);
// Verify expected state after proposal
address newFeed = oracle.priceFeed(market);
assertEq(newFeed, EXPECTED_CHAINLINK_FEED);
// Verify the feed returns sane values
(, int256 price,,,) = AggregatorV3Interface(newFeed).latestRoundData();
assertGt(price, 0);
}Every project should have a minimum CI pipeline running in parallel (use a matrix strategy). Suggested minimum:
solhint — Solidity linter for style and security rulesforge build --sizes — verify contract sizes are under the 24KB deployment limitslither or aderyn — static analysis for common vulnerability patternsTo install foundry dependencies, you don't need the --no-commit flag anymore.
© Cyfrin, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/solidity of Cyfrin/solskill.
Open the folder on GitHubat commit d17bda0
Solidity next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Solidity this skillCyfrin/solskill | 144 | — | ~2.9k | Automated safety check: Pass | AGPL-3.0 | |
| Fizz Convertpashov/skills | 1.2k | 2 repos | ~3.7k | Automated safety check: Pass | MIT | |
| Feynman Auditor0xiehnnkta/nemesis-auditor | 244 | 1 repos | ~11k | Automated safety check: Pass | MIT | |
| Smart Contract Auditgreatpie/smart-contract-audit-skill | 101 | — | ~1.1k | Automated safety check: Pass | None | |
| RadarAuditware/radar | 154 | — | ~2.1k | Automated safety check: Pass | GPL-3.0 | |
| Solidity AuditorGabson0x/bountyforge | 443 | — | ~3.7k | Automated safety check: Pass | None |
pashov/skills
Convert English-language properties in PROPERTIES.md (produced by the Fizz skill) into Solidity assertions inside the existing fuzz harness, then flip their checkboxes.
0xiehnnkta/nemesis-auditor
Deep business logic bug finder using the Feynman technique. An agent skill from 0xiehnnkta/nemesis-auditor.
greatpie/smart-contract-audit-skill
Script-backed, out-of-box auditing workflow for Solidity/EVM repositories based on EVMbench detect/patch/exploit methodology.
Auditware/radar
Use radar for smart contract security analysis, AST generation, and detection template development.
Gabson0x/bountyforge
Security audit of Solidity code while you develop. An agent skill from Gabson0x/bountyforge.
lidofinance/diffyscan
Adds or repairs Diffyscan explorer API routing and response adapters for a new host, chain or payload format.
Cyfrin/solskill
Work with BattleChain, the pre-mainnet L2 for battle-testing smart contracts with real funds.
Cyfrin/solskill
Help developers prepare their projects for BattleChain deployment.
Works with
Categories
Create production grade smart contracts. An agent skill from Cyfrin/solskill. Solidity is an agent skill from Cyfrin/solskill. Create production grade smart contracts.
Solidity fits situations like: the user asks to write smart contracts; specially if they are going to be deployed to production (to a mainnet; used in a mainnet script).
Run `npx skills add Cyfrin/solskill --skill solidity -a claude-code`. Or copy the skill folder (skills/solidity in Cyfrin/solskill) into .claude/skills/solidity in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Cyfrin/solskill --skill solidity -a codex`. Or copy the skill folder (skills/solidity in Cyfrin/solskill) into .agents/skills/solidity in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Cyfrin/solskill --skill solidity -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/solidity, .gemini/skills/solidity, .github/skills/solidity and .opencode/skills/solidity in your project.
SKILL.md names no scripts, command-line tools or credentials: Solidity is instructions for the agent only.
SKILL.md names 9 domains. As links in the text: github.com, cyfrin.io, nascent.xyz, x.com, soliditylang.org, hardhat.org, blog.trailofbits.com, medium.com and rekt.news. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Solidity is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Solidity: Fizz Convert (pashov/skills, 1.2k stars), Feynman Auditor (0xiehnnkta/nemesis-auditor, 244 stars), Smart Contract Audit (greatpie/smart-contract-audit-skill, 101 stars) and Radar (Auditware/radar, 154 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Cyfrin (a GitHub organization) maintains it in Cyfrin/solskill, which has 144 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on June 18, 2026.
Source: Cyfrin/solskill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.