solidity react blockchain apps cursorrules prompt
via PatrickJS/awesome-cursorrules
Secure Solidity smart contracts with React frontends using security tooling and OpenZeppelin patterns.
What is solidity react blockchain apps cursorrules prompt ?
Guidelines for building production-grade blockchain applications combining Solidity smart contracts with React frontends. Emphasizes security practices, gas optimization, and type-safe Web3 interactions for reliable decentralized applications.
- Enforce secure Solidity patterns with explicit visibility, access control, and NatSpec documentation
- Integrate security tooling like Slither and Mythril for contract analysis and property-based testing
- Recommend OpenZeppelin contracts for ownership, access control, multisig, and timelock primitives
- Guide gas optimization through storage layout review and function visibility analysis
- Establish pull-payment patterns, event logging, and defensive error handling for production contracts
- Ensure type-safe Web3 frontend code for wallet, provider, and transaction interactions
Applies to
File patterns this rule matches.
Rule definition (reference)
Source of truth, from the repository.
Solidity React Blockchain Apps Guidelines
- Prioritize secure Solidity smart contracts with explicit visibility, access control, and clear NatSpec documentation.
- Use established security tooling such as Slither, Mythril, and property-based tests for critical contract behavior.
- Prefer OpenZeppelin contracts for common primitives such as ownership, access control, multisig, and timelocks.
- Optimize gas deliberately by reviewing storage layout, function visibility, and unnecessary writes.
- Use pull-payment patterns, event logging, and defensive error handling for production-grade contracts.
- Keep Web3 frontend code type-safe and explicit when interacting with wallets, providers, and transactions.
Related rules
Solid.js development setup with functional components and reactive state management.
Solid.js development with Tailwind CSS integration and best practices.
TypeScript best practices and patterns for Solid.js development.

Svelte best practices and patterns for modern web applications
Svelte 5 migration guide: runes, snippets, and standardized event handling.
SvelteKit + RESTful API + Tailwind CSS development guide with TDD and full file-path tracking.