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 PlamenTSV/plamen --skill consensus-math-correctnessgit clone --depth 1 https://github.com/PlamenTSV/plamenWrote 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/plamentsv/plamen/consensus-math-correctness)<a href="https://agentmods.dev/skills/plamentsv/plamen/consensus-math-correctness"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/consensus-math-correctness/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/plamentsv/plamen/consensus-math-correctness"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/consensus-math-correctness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00030 | $0.01108 |
| Opus 5.5 | $0.00012 | $0.00443 |
| Sonnet 5.5 | $0.00006 | $0.00222 |
| Haiku 4.5 | $0.00003 | $0.00111 |
Grade A, and why
consensus-math-correctness 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 3mo 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 — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Injectable Skill: Consensus Math Correctness
L1 trigger:
CONSENSUSflag AND (adjust_difficultyORdifficulty_adjustORemaORmoving_averageORreward_curveORtarget_timedetected) Inject Into:depth-consensus-invariantordepth-edge-caseLanguage: Go and Rust Finding prefix:[CM-N]
Consensus math bugs are small, deterministic, and load-bearing. They rarely need fancy exploit chains: one wrong operator, one dead bound, or one flipped EMA direction can permanently skew the chain.
1. Division-before-multiplication
For every expression of the form (A / B) * C, test whether A < B is
possible. If so, the intermediate division truncates to zero before the
multiplication and the protocol silently loses precision.
Questions:
- Can
A < Bhappen at runtime? - Is the intended formula mathematically
(A * C) / B? - If multiplication moves first, is there an overflow guard on the wider intermediate?
Tag: [CONSENSUS-MATH:DIV-FIRST]
2. Declared-but-unapplied bounds
Consensus configs often declare bounds that never influence runtime math.
Questions:
- Which config fields look like bounds or caps? Example names:
max_difficulty_adjustment_factor,min_reward,max_step_count. - Is each field used only during config parsing, or also in the live computation?
- If a field is declared but never applied at runtime, what unbounded state transition does that permit?
Tag: [CONSENSUS-MATH:UNUSED-BOUND]
3. EMA / moving-average direction
For each moving-average implementation, identify the prior sample, current sample, and smoothing factor.
Questions:
- Does the code use the same sample ordering as the design doc or comments?
- Is the "previous" state actually previous, or has the implementation swapped current and prior inputs?
- If the direction is flipped, does the chain overreact instead of smoothing?
Tag: [CONSENSUS-MATH:EMA-DIRECTION]
4. Threshold operators
Consensus edge cases often live at threshold-1, threshold, and
threshold+1.
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.
- 3mo ago First seen · 125 lines · 30 tokens per session scan A a64476cbb442
consensus-math-correctness is a skill published in the GitHub repository PlamenTSV/plamen (320 stars, last pushed 2mo ago), licensed MIT. It adds 30 tokens to every session and 1,108 once invoked, about $0.0001 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.
consensus-math-correctness compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| consensus-math-correctnessPlamenTSV/plamen | Skill | 320 | 2mo ago | MIT | A | 30 | Claude Code, Codex |
| debugChainGPT-org/chaingpt-claude-skill | Skill | 7 | 6d ago | MIT | A | 65 | Claude Code |
| evm-tx-debuggerXSpoonAi/spoon-awesome-skill | Skill | 17 | 7mo ago | none | A | 38 | Claude Code, Codex |
| solidity-debug0xlayerghost/solidity-agent-kit | Skill | 4 | 1mo ago | MIT | A | 57 | Claude Code, Codex |
| gh-awprowler-cloud/prowler | Skill | 15k | today | Apache-2.0 | A | 59 | Claude Code |
| postgresql-indexingprowler-cloud/prowler | Skill | 15k | today | Apache-2.0 | A | 108 | Claude Code |
| trading-solanaalsk1992/CloddsBot | Skill | 3.1k | 18d ago | MIT | A | 28 | Claude Code, Codex |