krait CLAUDE.md

Project instructions for Krait, a Solidity security auditor with Claude Code commands, a standalone TypeScript command-line tool, and a checklist plugin.

In plain words
What is it for?
Running smart-contract audit workflows, batch or CI audits, fixed security checklists, tests, linting, type checks, and project setup or preflight checks.
Why use it?
They explain the repository's separate delivery surfaces and testing commands, helping contributors use the correct audit method and runtime for each one.

Instructions file

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 instructions/zealynxsecurity/krait/claude-md
Clone the repo
git clone --depth 1 https://github.com/ZealynxSecurity/krait
Per session 3,754 This file is loaded in full into every session.
When invoked 3,754 The same file — it is already loaded in full.
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.03754 $0.03754
Opus 5 $0.01877 $0.01877
Sonnet 5 $0.00751 $0.00751
Haiku 4.5 $0.00375 $0.00375

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

Security

Grade A, and why

krait CLAUDE.md 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 yesterday.

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.

CLAUDE.md · 151 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project shape

Krait is a Solidity security auditor with three delivery surfaces. The first two share patterns and methodology but have separate runtimes; the third is a separate product that happens to live in the same repo.

  1. Claude Code skill under .claude/ — invoked via /krait, /krait-quick, /krait-fuzz, /krait-review, plus the read-only preflight /krait-init. Pure prompt + methodology files; runs inside the user's Claude session, no API key. Source of truth for the audit methodology.
  2. Standalone CLI under src/ (TypeScript, Node ≥20) — calls the Anthropic SDK directly. Used for batch/shadow audits and CI; needs ANTHROPIC_API_KEY.
  3. Checklist plugin under checklist/ — a self-contained Claude Code plugin providing /krait:scan, /krait:assess, /krait:check. Evaluates code against 845 fixed checks across 39 DeFi verticals and emits an importable assessment. Do not apply the audit methodology here: surfaces 1–2 reason adversarially toward exploit traces with a zero-FP bar; the checklist answers "am I audit-ready?" with per-check coverage. Changes to kill gates, heuristics or lenses do NOT propagate to it, and vice versa.

checklist/ was migrated in from the Zealynx-WebSite repo, where it had been developed despite its own plugin.json naming this repo as its home. Its framework JSONs are a synced copy — the website's public/frameworks/ is the source of truth, refreshed weekly from Solodit by a workflow in that repo. Pull updates with checklist/scripts/sync-frameworks.sh <path-to-website>/public/frameworks. The checklist↔website mapping bridge (src/data/krait-checklist-mapping.ts) and its maintainer skill intentionally stayed in the website repo, since they validate against that repo's published data.

Repo root carries .claude-plugin/marketplace.json so /plugin marketplace add ZealynxSecurity/krait resolves — the install path checklist/README.md had always documented but which had no manifest to back it. Install id is krait@krait (plugin krait from marketplace krait); skills are namespaced <plugin>:<skill>, giving /krait:scan, /krait:assess, /krait:check.

Read the full file on GitHub · 151 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. yesterday First seen · 151 lines · 3,754 tokens per session scan A b7df3b29f53d

Subscribe to this mod's changes

krait CLAUDE.md is an instructions file published in the GitHub repository ZealynxSecurity/krait (22 stars, last pushed 21d ago), licensed MIT. It adds 3,754 tokens to every session, about $0.0188 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.