RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/.cursorrules/paulpham157/paul-s-cursor-rules

.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 blocks

Repository

28

— · pushed 478 days ago

Last changed

3 days ago

First indexed 3 days ago.
paulpham157/paul-s-cursor-rules/1/framework_rules/rules/solidity-hardhat-cursorrules-prompt-file/.cursorrulesRawGitHub
1You are an expert in Solidity and smart contract security.
2 
3General Rules
4 
5- 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.
21 
22Solidity Best Practices
23 
24- 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.
64 
65Testing and Quality Assurance
66 
67- 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.
72 
73Performance Optimization
74 
75- Optimize contracts for gas efficiency, considering storage layout and function optimization.
76- Implement efficient indexing and querying strategies for off-chain data.
77 
78Development Workflow
79 
80- 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.
83 
84Documentation
85 
86- 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.
89 
90 

What it covers

testing-strategy

Stack — with the evidence

github-actions

(0.60)

Format

.cursorrules

Cursor's original single-file format, superseded by .cursor/rules/*.mdc. Tracked here precisely because it is dead: how much of the ecosystem is still shipping a deprecated file is a measurable answer, and a large share of the "best cursor rules" pages on the web still teach this format.

What the corpus says about it

Repository

Owner
paulpham157
Language
—
License
—
Archived
no

All configs in this repo

Also in paulpham157/paul-s-cursor-rules

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
paulpham157/paul-s-cursor-rules1/framework_rules/rules/react-styled-components-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstyle42/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/react-typescript-nextjs-nodejs-cursorrules-prompt-/.cursorrules · 28.cursorrulesgithub-actionsstyle44/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/.cursorrules · 28.cursorrulesgithub-actionsdocs34/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/android-jetpack-compose-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstesting-strategy38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstylearch+370/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-typescript-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsteststyledocs38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsno sections34/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/aspnet-abp-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstylearch+570/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/astro-typescript-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsgit30/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules · 28.cursorrulesgithub-actionsstyle38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cpp-programming-guidelines-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsteststylearchperformance68/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules · 28.cursorrulesgithub-actionsstyletypesuido-not65/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-cursor-ai-wordpress-draft-macos-prompt/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-file-cursor-ai-python-fastapi-api/.cursorrules · 28.cursorrulesgithub-actionsstyletypes38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstyle34/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/drupal-11-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstyle46/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/elixir-phoenix-docker-setup-cursorrules-prompt-fil/.cursorrules · 28.cursorrulesgithub-actionsgit30/1003 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.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
SkeneTechnologies/skene-cookbook.cursorrules · 51.cursorrulespythoneslint+3setuptestlint-formatstyle+1196/1002 days ago
fall-out-bug/sdp_lab.cursorrules · 0.cursorrulesgodocker+3setupbuildtestlint-format+386/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/python-llm-ml-workflow-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstyletypes+480/1003 days ago
storybookjs/storybook.cursorrules · 91k.cursorrulestypescriptjavascript+6teststylearchdo-not+178/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/flutter-riverpod-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstylearchdo-notagent-behaviour71/1003 days ago
forem/forem.cursorrules · 23k.cursorrulesrubyrails+9teststyletypesdatabase+471/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstylearch+370/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsbuildstylearchdo-not70/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack