scan

scan is a skill for Claude Code, Codex from ZealynxSecurity/krait. It costs 51 tokens per session (2,426 once invoked), scanned A, original, MIT.

A quick security checker for Solidity smart contracts, the programs that run on some blockchain networks. It compares code with patterns from real security audit findings.

In plain words
What is it for?
Use it to scan Solidity files, estimate their size, check for security problems across DeFi areas such as lending or vaults, and run a slower deeper review when needed.
Why use it?
It helps spot possible contract vulnerabilities before a formal audit or deployment. It also avoids spending time reviewing test files and other excluded code that is not part of the main contracts.

Skill for Claude CodeCodex

Part of the krait plugin — 3 skills shipped together

Install

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.

agentmods
npx agentmods add skills/zealynxsecurity/krait/scan
Any agent
npx skills add ZealynxSecurity/krait --skill scan
Clone the repo
git clone --depth 1 https://github.com/ZealynxSecurity/krait

Made for: Claude Code, Codex.

Or install krait, the plugin that ships this one along with the rest of its 3 skills.

Wrote 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.

agentmods badge for scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/zealynxsecurity/krait/scan.svg)](https://agentmods.dev/skills/zealynxsecurity/krait/scan)
Your own site
<a href="https://agentmods.dev/skills/zealynxsecurity/krait/scan"><img src="https://agentmods.dev/badge/skills/zealynxsecurity/krait/scan.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,426 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00051 $0.02426
Opus 5 $0.00026 $0.01213
Sonnet 5 $0.00010 $0.00485
Haiku 4.5 $0.00005 $0.00243

Measured 4d ago against content hash c395810f5094, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

scan 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 4d 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.

checklist/skills/scan/SKILL.md · 239 lines

How it starts

The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Krait Security Scan

You are Krait, a smart contract security analyzer built by Zealynx Security. You analyze Solidity code against a framework of 845 checks derived from 4,500+ real audit findings sourced from Solodit.

Parse Arguments

Parse $ARGUMENTS for:

  • Target: file path or directory (default: current working directory)
  • --vertical : override auto-detection (e.g., lending, vaults, dasf (DEX/AMM in some user-facing copy))
  • --deep: thorough mode — loads prompt templates and analyzes check-by-check (slower, more findings)

Default is quick mode (uses your security knowledge guided by the framework checklist).

Methodology

Follow these steps precisely. Do NOT skip steps or take shortcuts.

Step 1: Discover Solidity Files

Find all .sol files in the target scope.

Glob for **/*.sol

Exclude: node_modules/, lib/, forge-std/, test/, script/, mock/, Mock*.sol, *.t.sol, *.s.sol

If no .sol files found, tell the user and stop.

Report what you found:

  • Number of source files (excluding test/script/lib)
  • Estimate NSLOC (non-comment, non-blank lines)

Step 2: Read the Code

Read ALL source .sol files (not tests, not scripts, not dependencies). For large codebases (>20 files), prioritize:

  1. Core protocol logic (pools, vaults, lending, staking contracts)
  2. Token contracts
  3. Access control / admin contracts
  4. Oracle integration
  5. Periphery / router contracts

You MUST actually read the files. Do not guess or assume what they contain.

Step 3: Detect Protocol Vertical

Based on the code you've read, determine which DeFi vertical(s) this protocol belongs to. Look for:

Pattern Vertical
swap, addLiquidity, removeLiquidity, AMM, pool pairs dasf
borrow, lend, collateral, liquidate, LTV lending
stake, unstake, validator, delegation, rewards staking
vault, deposit, withdraw, ERC4626, shares vaults
mint (stablecoin), CDP, peg, redemption stablecoins
bridge, relay, message, cross-chain, L2 bridges
perpetual, margin, funding rate, position perpetuals
leverage, long, short, multiplier leverage
Chainlink, oracle, price feed, latestRoundData chainlink
EigenLayer, restake, operator, AVS eigenlayer
LayerZero, lzReceive, endpoint layerzero
airdrop, merkle, claim airdrop
vesting, cliff, schedule, linear release vesting
governance, proposal, vote, timelock dao
VRF, randomness, requestRandomWords vrf
NFT, ERC721, ERC1155, tokenURI nft

Read the full file on GitHub · 239 lines

Changes

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.

  1. 4d ago First seen · 239 lines · 51 tokens per session scan A c395810f5094

Subscribe to this mod's changes

scan is a skill published in the GitHub repository ZealynxSecurity/krait (22 stars, last pushed 23d ago), licensed MIT. It adds 51 tokens to every session and 2,426 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

analyzing-ethereum-smart-contract-vulnerabilities

Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet.

mukul975/Anthropic-Cybersecurity-Skills · 49 tokens

analyzing-ethereum-smart-contract-vulnerabilities

Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet.

xalgorix/xalgorix · 49 tokens

analyzing-ethereum-smart-contract-vulnerabilities

Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet.

autohandai/community-skills · 49 tokens

analyzing-ethereum-smart-contract-vulnerabilities

使用 Slither 和 Mythril 对 Solidity 智能合约进行静态分析和符号执行,在部署到以太坊主网之前检测重入攻击、整数溢出、访问控制缺陷和其他漏洞类型。.

killvxk/cybersecurity-skills-zh · 60 tokens

analyzing-ethereum-smart-contract-vulnerabilities

Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet.

26zl/cybersec-toolkit · 49 tokens

analyzing-ethereum-smart-contract-vulnerabilities

Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet.

Youngmaidainon/Agent-Level-Up · 49 tokens