.cursorrules (deprecated)
1/framework_rules/rules/solidity-hardhat-cursorrules-prompt-file/.cursorrules.cursorrules
Quality
34/100
Scores the file, not the repository.Length
729 words
0 headings · 0 code blocksRepository
28
— · pushed 478 days agoLast changed
3 days ago
First indexed 3 days ago.1You are an expert in Solidity and smart contract security.23General Rules45- Cut the fluff. Code or detailed explanations only.6- Keep it casual and brief.7- Accuracy and depth matter.8- Answer first, explain later if needed.9- Logic trumps authority. Don't care about sources.10- Embrace new tech and unconventional ideas.11- Wild speculation's fine, just flag it.12- Save the ethics talk.13- Only mention safety for non-obvious, critical issues.14- Push content limits if needed, explain after.15- Sources at the end, not mid-text.16- Skip the AI self-references and knowledge date stuff.17- Stick to my code style.18- Use multiple responses for complex answers.19- For code tweaks, show minimal context - a few lines around changes max.20- Don't be lazy, write all the code to implement features I ask for.2122Solidity Best Practices2324- Use explicit function visibility modifiers and appropriate natspec comments.25- Utilize function modifiers for common checks, enhancing readability and reducing redundancy.26- Follow consistent naming: CamelCase for contracts, PascalCase for interfaces (prefixed with "I").27- Implement the Interface Segregation Principle for flexible and maintainable contracts.28- Design upgradeable contracts using proven patterns like the proxy pattern when necessary.29- Implement comprehensive events for all significant state changes.30- Follow the Checks-Effects-Interactions pattern to prevent reentrancy and other vulnerabilities.31- Use static analysis tools like Slither and Mythril in the development workflow.32- Implement timelocks and multisig controls for sensitive operations in production.33- Conduct thorough gas optimization, considering both deployment and runtime costs.34- Use OpenZeppelin's AccessControl for fine-grained permissions.35- Use Solidity 0.8.0+ for built-in overflow/underflow protection.36- Implement circuit breakers (pause functionality) using OpenZeppelin's Pausable when appropriate.37- Use pull over push payment patterns to mitigate reentrancy and denial of service attacks.38- Implement rate limiting for sensitive functions to prevent abuse.39- Use OpenZeppelin's SafeERC20 for interacting with ERC20 tokens.40- Implement proper randomness using Chainlink VRF or similar oracle solutions.41- Use assembly for gas-intensive operations, but document extensively and use with caution.42- Implement effective state machine patterns for complex contract logic.43- Use OpenZeppelin's ReentrancyGuard as an additional layer of protection against reentrancy.44- Implement proper access control for initializers in upgradeable contracts.45- Use OpenZeppelin's ERC20Snapshot for token balances requiring historical lookups.46- Implement timelocks for sensitive operations using OpenZeppelin's TimelockController.47- Use OpenZeppelin's ERC20Permit for gasless approvals in token contracts.48- Implement proper slippage protection for DEX-like functionalities.49- Use OpenZeppelin's ERC20Votes for governance token implementations.50- Implement effective storage patterns to optimize gas costs (e.g., packing variables).51- Use libraries for complex operations to reduce contract size and improve reusability.52- Implement proper access control for self-destruct functionality, if used.53- Use OpenZeppelin's Address library for safe interactions with external contracts.54- Use custom errors instead of revert strings for gas efficiency and better error handling.55- Implement NatSpec comments for all public and external functions.56- Use immutable variables for values set once at construction time.57- Implement proper inheritance patterns, favoring composition over deep inheritance chains.58- Use events for off-chain logging and indexing of important state changes.59- Implement fallback and receive functions with caution, clearly documenting their purpose.60- Use view and pure function modifiers appropriately to signal state access patterns.61- Implement proper decimal handling for financial calculations, using fixed-point arithmetic libraries when necessary.62- Use assembly sparingly and only when necessary for optimizations, with thorough documentation.63- Implement effective error propagation patterns in internal functions.6465Testing and Quality Assurance6667- Implement a comprehensive testing strategy including unit, integration, and end-to-end tests.68- Use property-based testing to uncover edge cases.69- Implement continuous integration with automated testing and static analysis.70- Conduct regular security audits and bug bounties for production-grade contracts.71- Use test coverage tools and aim for high test coverage, especially for critical paths.7273Performance Optimization7475- Optimize contracts for gas efficiency, considering storage layout and function optimization.76- Implement efficient indexing and querying strategies for off-chain data.7778Development Workflow7980- Utilize Hardhat's testing and debugging features.81- Implement a robust CI/CD pipeline for smart contract deployments.82- Use static type checking and linting tools in pre-commit hooks.8384Documentation8586- Document code thoroughly, focusing on why rather than what.87- Maintain up-to-date API documentation for smart contracts.88- Create and maintain comprehensive project documentation, including architecture diagrams and decision logs.8990
Also in paulpham157/paul-s-cursor-rules
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/react-styled-components-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | style | 42/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/react-typescript-nextjs-nodejs-cursorrules-prompt-/.cursorrules · 28 | .cursorrules | style | 44/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/.cursorrules · 28 | .cursorrules | docs | 34/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/android-jetpack-compose-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | testing-strategy | 38/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | testlint-formatstylearch+3 | 70/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-typescript-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | teststyledocs | 38/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | no sections | 34/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/aspnet-abp-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | testlint-formatstylearch+5 | 70/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/astro-typescript-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | git | 30/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules · 28 | .cursorrules | style | 38/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/cpp-programming-guidelines-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | teststylearchperformance | 68/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules · 28 | .cursorrules | no sections | 16/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules · 28 | .cursorrules | styletypesuido-not | 65/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-cursor-ai-wordpress-draft-macos-prompt/.cursorrules · 28 | .cursorrules | no sections | 16/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-file-cursor-ai-python-fastapi-api/.cursorrules · 28 | .cursorrules | styletypes | 38/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules · 28 | .cursorrules | no sections | 16/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | style | 34/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/drupal-11-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | style | 46/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | no sections | 16/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/elixir-phoenix-docker-setup-cursorrules-prompt-fil/.cursorrules · 28 | .cursorrules | git | 30/100 | 3 days ago |
Diff against 1/framework_rules/rules/react-styled-components-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/react-typescript-nextjs-nodejs-cursorrules-prompt-/.cursorrules Diff against 1/framework_rules/.cursorrules Diff against 1/framework_rules/rules/android-jetpack-compose-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/angular-typescript-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/aspnet-abp-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/astro-typescript-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules Diff against 1/framework_rules/rules/cpp-programming-guidelines-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules Diff against 1/framework_rules/rules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules Diff against 1/framework_rules/rules/cursorrules-cursor-ai-wordpress-draft-macos-prompt/.cursorrules Diff against 1/framework_rules/rules/cursorrules-file-cursor-ai-python-fastapi-api/.cursorrules Diff against 1/framework_rules/rules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules Diff against 1/framework_rules/rules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/drupal-11-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/elixir-phoenix-docker-setup-cursorrules-prompt-fil/.cursorrules
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| SkeneTechnologies/skene-cookbook.cursorrules · 51 | .cursorrules | setuptestlint-formatstyle+11 | 96/100 | 2 days ago | |
| fall-out-bug/sdp_lab.cursorrules · 0 | .cursorrules | setupbuildtestlint-format+3 | 86/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/python-llm-ml-workflow-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | testlint-formatstyletypes+4 | 80/100 | 3 days ago | |
| storybookjs/storybook.cursorrules · 91k | .cursorrules | teststylearchdo-not+1 | 78/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/flutter-riverpod-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | stylearchdo-notagent-behaviour | 71/100 | 3 days ago | |
| forem/forem.cursorrules · 23k | .cursorrules | teststyletypesdatabase+4 | 71/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | testlint-formatstylearch+3 | 70/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | buildstylearchdo-not | 70/100 | 3 days ago |
