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 skills add quillai-network/quillshield_skills --skill input-arithmetic-safetygit clone --depth 1 https://github.com/quillai-network/quillshield_skillsWrote 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/skills/quillai-network/quillshield_skills/input-arithmetic-safety)<a href="https://agentmods.dev/skills/quillai-network/quillshield_skills/input-arithmetic-safety"><img src="https://agentmods.dev/badge/skills/quillai-network/quillshield_skills/input-arithmetic-safety/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/skills/quillai-network/quillshield_skills/input-arithmetic-safety"><img src="https://agentmods.dev/badge/skills/quillai-network/quillshield_skills/input-arithmetic-safety.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.00095 | $0.03050 |
| Opus 5.5 | $0.00038 | $0.01220 |
| Sonnet 5.5 | $0.00019 | $0.00610 |
| Haiku 4.5 | $0.00010 | $0.00305 |
Grade A, and why
input-arithmetic-safety 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 — 350 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Input & Arithmetic Safety
Detect input validation failures (the #1 direct exploitation cause at 34.6% of all contract exploits) and arithmetic vulnerabilities that persist even with Solidity 0.8+ checked math — precision loss, rounding exploitation, unsafe casting, and share price manipulation.
When to Use
- Auditing any contract with public/external functions accepting user-supplied parameters
- Reviewing DeFi protocols with fee calculations, share pricing, or exchange rates
- Analyzing vault/staking contracts for rounding or first-depositor attacks
- Checking contracts with
uncheckedblocks for overflow/underflow risks - Verifying arithmetic in token minting, burning, and distribution logic
When NOT to Use
- Access control analysis (use semantic-guard-analysis)
- Reentrancy detection (use reentrancy-pattern-analysis)
- Full multi-dimensional audit (use behavioral-state-analysis)
Part 1: Input Validation Analysis
Critical Missing Validations
Zero Address Check:
// VULNERABLE: No zero address check
function setAdmin(address newAdmin) external onlyOwner {
admin = newAdmin; // Can set admin to address(0) — locking out admin forever
}
// SAFE
function setAdmin(address newAdmin) external onlyOwner {
require(newAdmin != address(0), "Zero address");
admin = newAdmin;
}
Zero Amount Check:
// VULNERABLE: Allows zero-amount operations
function deposit(uint256 amount) external {
balances[msg.sender] += amount;
emit Deposit(msg.sender, amount);
// Zero deposit: wastes gas, pollutes events, may affect accounting
}
// SAFE
function deposit(uint256 amount) external {
require(amount > 0, "Zero amount");
balances[msg.sender] += amount;
}
Array Length Validation:
// VULNERABLE: No length check
function batchTransfer(address[] calldata recipients, uint256[] calldata amounts) external {
for (uint i = 0; i < recipients.length; i++) {
transfer(recipients[i], amounts[i]); // Out-of-bounds if arrays differ in length
}
}
// SAFE
function batchTransfer(address[] calldata recipients, uint256[] calldata amounts) external {
require(recipients.length == amounts.length, "Length mismatch");
require(recipients.length <= MAX_BATCH_SIZE, "Batch too large");
// ...
}
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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 · 350 lines · 95 tokens per session scan A 52fb35313ea9
input-arithmetic-safety is a skill published in the GitHub repository quillai-network/quillshield_skills (134 stars, last pushed 7mo ago), licensed MIT. It adds 95 tokens to every session and 3,050 once invoked, about $0.0004 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-30.
input-arithmetic-safety compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| input-arithmetic-safetyquillai-network/quillshield_skills | Skill | 134 | 7mo ago | MIT | A | 95 | Claude Code |
| 1m-tradeLeoYeAI/openclaw-master-skills | Skill | 2.2k | 7d ago | MIT | A | 79 | Claude Code, Codex |
| aawpLeoYeAI/openclaw-master-skills | Skill | 2.2k | 7d ago | MIT | A | 77 | Claude Code, Codex |
| agent-otc-tradeLeoYeAI/openclaw-master-skills | Skill | 2.2k | 7d ago | MIT | A | 80 | Claude Code |
| agent-soulLeoYeAI/openclaw-master-skills | Skill | 2.2k | 7d ago | MIT | A | 60 | Claude Code, Codex |
| agentic-streetLeoYeAI/openclaw-master-skills | Skill | 2.2k | 7d ago | MIT | A | 91 | Claude Code, Codex |
| prompt-proximity-architectureelvisun/newsjack | Skill | 1.7k | yesterday | MIT | A | 67 | Claude Code |