Solidity Foundry smart contract Cursor rules
This Cursor rule file sets the assistant up as an expert in Solidity and smart contract security for projects built with Foundry. It is for smart contract developers who want short, direct answers and complete code, with safety warnings kept to critical issues that are not obvious.
What it does
The general rules ask for answers first, code or detailed explanations only, minimal context around code edits, sources at the end and the developer's own code style. It also tells Cursor to write all the code for a requested feature. The file's title carries a Foundry tip: the via_ir pipeline is slow, so precompile with a separate profile and deploy with vm.getCode.
How to use it
It applies across the project.
Requirements and limits
Its brief, low-caveat style means you should run your own security review before deploying contracts.
More in Rules and the Cursor library.
The full text is in the members library
Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.
Source and license
Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.