krait-init

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

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 commands/zealynxsecurity/krait/krait-init
Clone the repo
git clone --depth 1 https://github.com/ZealynxSecurity/krait

Made for: Claude Code.

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. 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.00000 $0.00347
Opus 5 $0.00000 $0.00173
Sonnet 5 $0.00000 $0.00069
Haiku 4.5 $0.00000 $0.00035

Measured 3d ago against content hash 39740aaffd16, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 (22 stars, last pushed 22d ago), 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.