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 lending-protocol-securitygit 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/lending-protocol-security)<a href="https://agentmods.dev/skills/plamentsv/plamen/lending-protocol-security"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/lending-protocol-security/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/lending-protocol-security"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/lending-protocol-security.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.00053 | $0.03612 |
| Opus 5.5 | $0.00021 | $0.01445 |
| Sonnet 5.5 | $0.00011 | $0.00722 |
| Haiku 4.5 | $0.00005 | $0.00361 |
Grade A, and why
lending-protocol-security 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 — 268 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Injectable Skill: Lending Protocol Security
Protocol Type Trigger:
lending(detected when recon finds: liquidate|borrow|repay|collateral|lend|loan|LTV|healthFactor|interestRate|debtToken) Inject Into: Breadth agents, depth-token-flow, depth-edge-case, depth-state-trace Language: Language-agnostic methodology Finding prefix:[LEND-N]
Orchestrator Decomposition Guide
When decomposing this skill into depth agent investigation questions, map sections to domains:
- Sections 1, 4: depth-edge-case (health factor boundaries, first borrower)
- Sections 2, 5: depth-state-trace (interest accrual, collateral state, pause mechanics)
- Sections 3, 3b, 3c: depth-token-flow (liquidation flows, bad debt socialization)
- Section 6: depth-external (oracle dependency for pricing)
When This Skill Activates
Recon classifies protocol as lending type based on indicators: liquidate, borrow, repay, collateral, lend, loan, LTV, healthFactor, interestRate, debtToken, reserve, utilizationRate, debtShare.
This skill adds lending-specific checks that the general ECONOMIC_DESIGN_AUDIT does not cover.
1. Health Factor Boundary Analysis
1a. Health Factor Computation
Identify the health factor (HF) formula and trace each input:
- What is the formula? (typically:
HF = (collateralValue * liquidationThreshold) / debtValue) - How is
collateralValuederived? (oracle price * collateral amount * collateral factor) - How is
debtValuederived? (oracle price * borrow amount including accrued interest) - Is interest included in the HF check at the moment of the check, or from a stale snapshot?
Substitute boundary values into the formula:
| State | HF Value | Expected Behavior | Actual? |
|---|---|---|---|
| HF = 1.0 exactly | Liquidation threshold - which side? | ||
| HF = 1.0 + 1 wei | Should NOT be liquidatable | ||
| HF = 1.0 - 1 wei | Should be liquidatable | ||
| HF after max interest accrual | Worst case between check intervals | ||
| HF with dust collateral | Liquidation gas > reward? |
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 · 268 lines · 53 tokens per session scan A 18ec61a9ee20
lending-protocol-security is a skill published in the GitHub repository PlamenTSV/plamen (320 stars, last pushed 2mo ago), licensed MIT. It adds 53 tokens to every session and 3,612 once invoked, about $0.0002 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-09-03.
lending-protocol-security compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lending-protocol-securityPlamenTSV/plamen | Skill | 320 | 2mo ago | MIT | A | 53 | Claude Code, Codex |
| trading-futuresalsk1992/CloddsBot | Skill | 3.1k | 16d ago | MIT | A | 28 | Claude Code, Codex |
| pump-swarmalsk1992/CloddsBot | Skill | 3.1k | 16d ago | MIT | A | 13 | Claude Code, Codex |
| riskalsk1992/CloddsBot | Skill | 3.1k | 16d ago | MIT | A | 18 | Claude Code, Codex |
| trading-solanaalsk1992/CloddsBot | Skill | 3.1k | 16d ago | MIT | A | 28 | Claude Code, Codex |
| copy-tradingalsk1992/CloddsBot | Skill | 3.1k | 16d ago | MIT | A | 16 | Claude Code, Codex |
| feedsalsk1992/CloddsBot | Skill | 3.1k | 16d ago | MIT | A | 13 | Claude Code, Codex |