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.
npx agentmods add rules/quantum3-labs/arbuilder/cursorrulesgit clone --depth 1 https://github.com/Quantum3-Labs/ARBuilderWhat 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 | $0.00896 | $0.00896 |
| Opus 5 | $0.00448 | $0.00448 |
| Sonnet 5 | $0.00179 | $0.00179 |
| Haiku 4.5 | $0.00090 | $0.00090 |
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 2d 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 — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ARBuilder Development Rules for Cursor
Stylus SDK Version Information (CRITICAL - ALWAYS USE THESE)
Current stable versions (as of January 2025):
- stylus-sdk: 0.9.2 (use this for new projects)
- alloy-primitives: =0.8.20
- alloy-sol-types: =0.8.20
- Rust version: 1.81 (1.82+ may have compatibility issues)
- cargo-stylus CLI: 0.5.x
Cargo.toml Template
[dependencies]
stylus-sdk = "0.9.2"
alloy-primitives = "=0.8.20"
alloy-sol-types = "=0.8.20"
[lib]
crate-type = ["cdylib"]
[profile.release]
codegen-units = 1
strip = true
lto = true
panic = "abort"
opt-level = "s"
Arbitrum SDK Version Information
- @arbitrum/sdk: ^4.0.0
- ethers: ^5.7.0 (NOT v6 - SDK requires ethers v5)
Stylus Contract Best Practices
Required Attributes
#![cfg_attr(not(any(feature = "export-abi", test)), no_std)]
#![cfg_attr(not(test), no_main)]
extern crate alloc;
Storage Pattern
use stylus_sdk::prelude::*;
use alloy_primitives::{U256, Address};
sol_storage! {
#[entrypoint]
pub struct MyContract {
uint256 value;
mapping(address => uint256) balances;
}
}
Public Methods
#[public]
impl MyContract {
pub fn get_value(&self) -> U256 {
self.value.get()
}
pub fn set_value(&mut self, new_value: U256) {
self.value.set(new_value);
}
}
Key Constraints
- 24KB size limit (Brotli-compressed WASM)
- No floating point operations allowed
- Yearly reactivation required for deployed contracts
- Use
alloc::vec::Vecinstead ofstd::vec::Vec - Use
alloc::string::Stringinstead ofstd::string::String
Common Pitfalls to Avoid
- Using
stdlibrary features (useallocorcoreinstead) - Floating point math (use fixed-point or integer math)
- Forgetting
#[entrypoint]attribute on main struct - Not handling storage slots correctly in upgrades
- Using Rust 1.82+ (stick to 1.81)
Arbitrum Bridging Best Practices
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.
- 2d ago First seen · 116 lines · 896 tokens per session scan A b3b500f205c9
cursorrules is a cursor rule published in the GitHub repository Quantum3-Labs/ARBuilder (24 stars, last pushed 3mo ago), licensed MIT. It adds 896 tokens to every session, about $0.0045 per session on Opus 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-30.
Other cursor rules, from other repositories
cursor
You are working on the checkout service. Preserve transaction integrity and auditability.
beanstalk-deploy
Robust deployment patterns for Elastic Beanstalk with GitHub Actions, Pulumi, and edge case handling.
archcore-files
Enforce MCP-only operations when working with .archcore/ files.
dev_workflow
Guide for using Taskmaster to manage task-driven development workflows.
execution
Repository execution and verification commands.
cosmosmith
Cosmosmith project rules adapter.