krait: Instructions file for Claude Code

CLAUDE.md

krait CLAUDE.md is an instructions file for Claude Code from ZealynxSecurity/krait. It costs 3,776 tokens per session, scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is ZealynxSecurity/krait's own configuration. It tells Claude Code how to work on krait itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything krait configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ZealynxSecurity/krait. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ZealynxSecurity/krait/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/ZealynxSecurity/krait

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zealynxsecurity/krait/claude-md/github.svg)](https://agentmods.dev/instructions/zealynxsecurity/krait/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/zealynxsecurity/krait/claude-md"><img src="https://agentmods.dev/badge/instructions/zealynxsecurity/krait/claude-md/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 krait CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zealynxsecurity/krait/claude-md"><img src="https://agentmods.dev/badge/instructions/zealynxsecurity/krait/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,776 This file is loaded in full into every session.
When invoked 3,776 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.03776 $0.03776
Opus 5.5 $0.01510 $0.01510
Sonnet 5.5 $0.00755 $0.00755
Haiku 4.5 $0.00378 $0.00378

Measured yesterday against content hash 3ee3536ffbc0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 Changed · +22 tokens per session 3ee3536ffbc0
  2. 1mo ago 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 (26 stars, last pushed today), licensed MIT. It adds 3,776 tokens to every session, about $0.0151 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

Other instructions, from other repositories