Borrowing it
Nothing to install: this file belongs to XFuel-Lab/xfuel-protocol. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/XFuel-Lab/xfuel-protocol/main/.cursorrulesgit clone --depth 1 https://github.com/XFuel-Lab/xfuel-protocolWrote 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.
[](https://agentmods.dev/rules/xfuel-lab/xfuel-protocol/cursorrules)<a href="https://agentmods.dev/rules/xfuel-lab/xfuel-protocol/cursorrules"><img src="https://agentmods.dev/badge/rules/xfuel-lab/xfuel-protocol/cursorrules/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.
<a href="https://agentmods.dev/rules/xfuel-lab/xfuel-protocol/cursorrules"><img src="https://agentmods.dev/badge/rules/xfuel-lab/xfuel-protocol/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00889 | $0.00889 |
| Opus 5.5 | $0.00356 | $0.00356 |
| Sonnet 5.5 | $0.00178 | $0.00178 |
| Haiku 4.5 | $0.00089 | $0.00089 |
Grade A, and why
cursorrules 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.
XFuel Protocol – Cursor Rules
Based on Whitepaper v1.6 core with expansions to v2.4
Solidity
- Use Solidity ^0.8.22 for all contracts in
contracts/core/and any new audit-scope contracts. - Use Solidity ^0.8.20 for all other contracts (
contracts/circuits/,contracts/mocks/,contracts/legacy/,contracts/interfaces/). - Do NOT use versions below 0.8.20 in any new contract.
- Follow OpenZeppelin patterns for access control, pausability, and safe transfers.
Architecture
- Prioritize modularity per whitepaper Section 2: No shared state between circuits, event-driven interfaces.
- Use SP1 hooks for zkML proofs per Section 7.
- Money + proof home = Base (USDC/x402, ZKVerifierSP1). Theta EdgeCloud = optional GPU provider only (ADR 0002).
Gas Optimization
- Target <300K gas per operation, <500K gas end-to-end per Section 3.5.
Code Comments
- Comment code with whitepaper references (e.g.,
// Per Section 3.2for Hyperlane relay).
Hardhat / Testing
- Use ethers.js v6+ for all RPC interactions.
- NEVER run
npx hardhat testagainst a live Theta RPC. Tests run against Hardhat local (chain 1337) only. - Theta ETH-RPC adaptor does NOT support
evm_snapshot,evm_revert, orevm_mine. Waffle fixtures will fail on-chain. - When writing Theta-live integration tests, replace
revertedWith('custom message')withrevertedWith('evm: execution reverted')— Theta always returns the generic message.
Base Networks (money + proof home — ADR 0002)
- Mainnet: chain ID 8453, RPC
https://mainnet.base.org(or Alchemy/Infura) - Sepolia: chain ID 84532, RPC
https://sepolia.base.org - Hardhat networks:
base,base-sepolia
Theta ETH-RPC (provider / EdgeCloud ops only — not settlement home)
- Mainnet: chain ID 361 (
0x169), RPChttps://eth-rpc-api.thetatoken.org/rpc - Testnet: chain ID 365 (
0x16d), RPChttps://eth-rpc-api-testnet.thetatoken.org/rpc - Privatenet: chain ID 366, RPC
http://localhost:18888/rpc - Subchain Testnet: chain ID 365001; Mainnet: 361001; Privatenet: 360777
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.
- 2mo ago First seen · 54 lines · 889 tokens per session scan A 0727eb41288c
cursorrules is a cursor rule published in the GitHub repository XFuel-Lab/xfuel-protocol (1 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 889 tokens to every session, about $0.0036 per session on Opus 5.5. 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-08-31.
cursorrules compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cursorrulesXFuel-Lab/xfuel-protocol | Cursor rule | 1 | 2mo ago | Apache-2.0 | A | 889 | Cursor |
| agoragenticrhein1/agoragentic-integrations | Cursor rule | 41 | 16d ago | MIT | A | 49 | Cursor |
| agoragentic-deployrhein1/agoragentic-integrations | Cursor rule | 41 | 16d ago | MIT | A | 38 | Cursor |
| agoragentic-proverhein1/agoragentic-integrations | Cursor rule | 41 | 16d ago | MIT | A | 36 | Cursor |
| sui-platformmission69b/t2000 | Cursor rule | 23 | 1mo ago | MIT | A | 0 | Cursor |
| x402-before-you-payseancrecord/scvd-general-store-repo | Cursor rule | 3 | 3d ago | MIT | A | 0 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 185k | 8d ago | MIT | A | 604 | Cursor |