krait: Command for Claude Code

.claude/commands/krait-init.md

krait-init is a command for Claude Code from ZealynxSecurity/krait. It costs 0 tokens per session (347 once invoked), scanned A, original, MIT.

A read-only command that checks whether a project and its surrounding tools are ready for a Krait audit. It examines items such as required tools, project structure, Git ignore rules, connections, and Krait's installation.

In plain words
What is it for?
Use it to check the current project or a chosen directory and receive a summary of passed and failed readiness checks, with suggested installation commands for missing tools.
Why use it?
It shows what is missing before an audit begins without changing the project. This is useful when preparing continuous integration, or when diagnosing an environment problem.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

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/commands/krait-init.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-init

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/zealynxsecurity/krait/krait-init"><img src="https://agentmods.dev/badge/commands/zealynxsecurity/krait/krait-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 347 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.
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.00000 $0.00347
Opus 5.5 $0.00000 $0.00139
Sonnet 5.5 $0.00000 $0.00069
Haiku 4.5 $0.00000 $0.00035

Measured 1mo ago against content hash 39740aaffd16, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

krait-init 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 1mo 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.

.claude/commands/krait-init.md · 26 lines

What it actually says

Krait Init — Project Readiness Check

Standalone readiness check before running /krait. Verifies tools, project shape, gitignore, MCP wiring, and ~/.claude install. Reports what's missing — does NOT install or modify anything.

Use this when you want to validate your environment without committing to a full audit run (CI setup, debugging, "is my env ready?"). /krait runs the hard checks automatically on every invocation, so most users will never need to call this directly.

Usage

/krait-init
/krait-init src/contracts/   # check a specific subdir

Instructions

Read and follow ~/.claude/skills/krait/preflight/instructions.md in report mode.

That skill defines every check, the hard-vs-soft distinction, and the output table format. Your job is to run all of its checks (hard + soft, including ~/.claude skills sync) and emit the full summary table with a single-line verdict at the end.

CRITICAL:

  • Read-only. Do NOT install dependencies, modify .gitignore, edit .mcp.json, or write .audit/* files unless the user explicitly says "go ahead" / "fix it" / "yes".
  • For environmental misses (e.g. forge not on PATH), propose the install command but don't run it yourself.
  • Do all checks in parallel where possible. A tight pass/fail table beats narration.

If the verdict is READY or READY (warnings), suggest /krait next. If it is NOT READY, do not suggest /krait — fix the env first.

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. 1mo ago First seen · 26 lines · 0 tokens per session scan A 39740aaffd16

Subscribe to this mod's changes

krait-init is a command published in the GitHub repository ZealynxSecurity/krait (26 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 347 tokens. 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.