scan

scan is a skill for Claude Code 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 Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the krait plugin — 3 skills shipped together

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zealynxsecurity/krait/scan
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.

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.

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/github.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/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.

agentmods 80×15 button for scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/zealynxsecurity/krait/scan"><img src="https://agentmods.dev/badge/skills/zealynxsecurity/krait/scan.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
SkillSpector: 1 finding, up to low

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • low Excessive Agency · line 220
    Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.
    Fix: Limit the skill's scope to its documented purpose. Remove instructions that enable the agent to perform actions outside its stated functionality.
How audits are shown
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.1 $0.00051 $0.02426
Opus 5.5 $0.00020 $0.00970
Sonnet 5.5 $0.00010 $0.00485
Haiku 4.5 $0.00005 $0.00243

Measured 3mo ago against content hash c395810f5094, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 3mo 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 (30 stars, last pushed 23d ago), licensed MIT. It adds 51 tokens to every session and 2,426 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-08-30.

Related

scan compared with skills from other repositories

scan next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scanZealynxSecurity/kraitSkill3023d agoMITA51Claude Code
analyzing-ethereum-smart-contract-vulnerabilitiesxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A49Claude Code, Codex
analyzing-ethereum-smart-contract-vulnerabilitiesmukul975/Anthropic-Cybersecurity-SkillsSkill37k3mo agoApache-2.0A49Claude Code
analyzing-ethereum-smart-contract-vulnerabilitieskillvxk/cybersecurity-skills-zhSkill647mo agoApache-2.0A60Claude Code
analyzing-ethereum-smart-contract-vulnerabilities26zl/cybersec-toolkitSkill116yesterdayMITA49Claude Code
analyzing-ethereum-smart-contract-vulnerabilitiesplurigrid/asiSkill731mo agoMITA49Claude Code
analyzing-ethereum-smart-contract-vulnerabilitiesautohandai/community-skillsSkill144mo agoApache-2.0A49Claude Code, Codex