AcademyRulesDevelopment

Solidity and Foundry Cursor rules

Blockchain development teams that write and review smart contracts in Solidity.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/solidity-foundry-cursorrules-prompt-file.mdc -o .cursor/rules/solidity-foundry.mdc
solidity-foundry.mdc

Loading the file...

What it does

A Cursor rules file for Solidity smart contract work with Foundry. It sets a short, direct answer style and lists contract practices such as explicit visibility, modifiers, events, upgradeable patterns and the checks-effects-interactions order.

Use cases

  1. 01Write contracts with explicit visibility and events
  2. 02Review contracts for reentrancy risks
  3. 03Design an upgradeable contract with a proxy pattern

Questions about
Solidity and Foundry Cursor rules.

What is Solidity and Foundry Cursor rules used for?

Blockchain development teams that write and review smart contracts in Solidity. A Cursor rules file for Solidity smart contract work with Foundry. It sets a short, direct answer style and lists contract practices such as explicit visibility, modifiers, events, upgradeable patterns and the checks-effects-interactions order.

How do I install Solidity and Foundry Cursor rules?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/solidity-foundry-cursorrules-prompt-file.mdc -o .cursor/rules/solidity-foundry.mdc

Is Solidity and Foundry Cursor rules open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is Solidity and Foundry Cursor rules safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.