example-fork-detection
TEMPLATE — replace with the description of your rule. Should activate on the specific code patterns your fork has. Activate on…
When auditing a contract that resembles a canonical implementation (OpenZeppelin, Solady, Uniswap, Compound, etc.), compare against the reference. Treat deviations as suspect by default.
Claude Code
$ npx -y skills add omermaksutii/RugProof --skill known-good-comparison --agent claude-code
Codex
$ npx skills add omermaksutii/RugProof --skill known-good-comparison -a codex -y
Cursor
$ npx skills add omermaksutii/RugProof --skill known-good-comparison -a cursor -y
Gemini CLI
$ npx skills add omermaksutii/RugProof --skill known-good-comparison -a gemini-cli -y
GitHub Copilot
$ npx skills add omermaksutii/RugProof --skill known-good-comparison -a github-copilot -y
OpenCode
$ npx skills add omermaksutii/RugProof --skill known-good-comparison -a opencode -y
Windsurf
$ npx skills add omermaksutii/RugProof --skill known-good-comparison -a windsurf -y
name: known-good-comparison description: When auditing a contract that resembles a canonical implementation (OpenZeppelin, Solady, Uniswap, Compound, etc.), compare against the reference. Treat deviations as suspect by default.
Most production Solidity is forks of well-known references. The fastest path to high-precision audit is to know what "normal" looks like and treat deviations as suspect.
The skill maintains awareness of canonical shapes:
If the contract:
→ Identify the reference and version.
For each function inherited or overridden from the reference:
For each storage variable added beyond the reference:
Each deviation gets a justification check:
Most exploits in forks live in the *deviation*, not the reference.
When finding-writing, include a reference comparison if applicable:
[REENT-001 | High] Reentrancy in Vault.withdraw Reference: OpenZeppelin v5.0.2 ERC4626.withdraw Deviation: caller-side nonReentrant guard removed (commit 0xabc) Impact: classic reentrancy pattern reintroduced → Confidence: HIGH (deviation from known-good adds the bug)
Rugproof your code before someone else does. 🌐 Live site: omermaksutii.github.io/RugProof 📦 Latest: v1.0.0 — 45 commands · 23 agents · 45 skills · 13 MCP servers · tested, offline-first, with rule packs, a benchmark, non-EVM coverage, and post-deploy
TEMPLATE — replace with the description of your rule. Should activate on the specific code patterns your fork has. Activate on…
Detect unsafe assumptions about Solady's gas-optimized ERC20/ERC2612 permit and DN404 metadata. Solady's ERC20 uses custom…
Detect front-runnable ownership initialization in Solady Ownable / OwnableRoles. Solady's `_initializeOwner` is a guarded…
Detect Solady SafeTransferLib calls that assume the token has code. SafeTransferLib.safeTransfer/safeTransferFrom/safeApprove…
Detect Uniswap V4 hooks that fail to settle currency deltas with the PoolManager. Every credit/debit a hook creates…
Detect Uniswap V4 hooks whose address-encoded permission flags don't match the callbacks the hook actually implements. In V4 the…
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…