eth-contracts

eth-contracts is a cursor rule for Cursor from hiromaily/go-crypto-wallet. It costs 0 tokens per session (693 once invoked), scanned A, original, MIT.

A set of development rules for the Ethereum smart-contract project in the apps/eth-contracts directory. It specifies Foundry commands, Solidity conventions, and checks to run before committing.

In plain words
What is it for?
Use it when modifying Solidity contracts, installing Foundry dependencies, or verifying Ethereum contract changes before a commit.
Why use it?
It gives contributors a consistent way to build, test, lint, format, and review smart-contract changes.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when modifying Solidity contracts, installing Foundry dependencies, or verifying Ethereum contract changes before a commit.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/hiromaily/go-crypto-wallet/eth-contracts
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for eth-contracts

README.md
[![agentmods](https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/eth-contracts/github.svg)](https://agentmods.dev/rules/hiromaily/go-crypto-wallet/eth-contracts)
Your own site
<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/eth-contracts"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/eth-contracts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for eth-contracts

Your own site · 80×15
<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/eth-contracts"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/eth-contracts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 693 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00693
Opus 5 $0.00000 $0.00347
Sonnet 5 $0.00000 $0.00139
Haiku 4.5 $0.00000 $0.00069

Measured 7d ago against content hash 085ff433f8a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

eth-contracts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/apps/eth-contracts.mdc · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ETH Contracts Directory Rules

Rules for working in apps/eth-contracts/ — a standalone Foundry project for Ethereum smart contracts.

Skill

Use the solidity-development skill for all changes in this directory.

Toolchain

Tool Command Notes
Compile forge build Artifacts go to out/
Test forge test -v All *.t.sol files in test/
Lint bun run lint solhint — must exit 0, zero errors
Format bun run fmt dprint — must exit 0
Install deps bun install npm packages (node_modules/)
Install forge libs forge install foundry-rs/forge-std Foundry libs go to lib/

forge is at ~/.foundry/bin/forge if not in PATH.

Verification (required before commit)

cd apps/eth-contracts
forge build       # must succeed with zero errors
bun run lint      # must exit 0, zero solhint errors
forge test -v     # must pass with zero failures

Solidity Conventions

  • Pragma: ^0.8.34 (or latest stable)
  • Imports: Named imports only — import {ERC20} from "..." (no global imports)
  • NatSpec: Required on all contracts (@title, @author, @notice) and public/external functions (@notice, @param, @return)
  • Visibility: Explicit on all functions; constructors exempt in Solidity ≥0.8
  • Dependencies: OpenZeppelin Contracts ^5.6.1 via npm (node_modules/)
  • Foundry libs: forge-std via forge install (not npm), stored in lib/

Security Rules

  • Never hardcode private keys — use vm.envUint("PRIVATE_KEY") in scripts
  • Always keep .env in .gitignore
  • Do not add custom access control, pausability, or upgradeability unless explicitly required
  • _mint should only be called in constructors (fixed supply)

File Layout

apps/eth-contracts/
├── contracts/    ← production Solidity source (*.sol)
├── script/       ← Foundry deploy scripts (*.s.sol)
├── test/         ← Foundry unit tests (*.t.sol)
├── lib/          ← forge install libraries (gitignored)
├── node_modules/ ← bun install packages (gitignored)
└── out/          ← compiled artifacts (gitignored)

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 72 lines · 0 tokens per session scan A 085ff433f8a1

Subscribe to this mod's changes

eth-contracts is a cursor rule published in the GitHub repository hiromaily/go-crypto-wallet (127 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 693 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.