lilith-zero: Skill for Claude Code

.agent/skills/rust-bulletproof/SKILL.md

rust_bulletproof is a skill for Claude Code, Codex from BadC-mpany/lilith-zero. It costs 27 tokens per session (696 once invoked), scanned A, original, Apache-2.0.

A Rust verification guide for critical code, using fuzzing, property-based tests, and Miri, a tool that checks for certain kinds of undefined memory behavior.

In plain words
What is it for?
Use it when changing critical Rust logic, parsing external data, adding unsafe code, or modifying Tokio, Mutex, or RwLock concurrency code.
Why use it?
It checks more than a few example cases, helping catch panics, incorrect results, memory-safety problems, and issues in concurrent or unsafe code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is BadC-mpany/lilith-zero's own configuration. It tells Claude Code and Codex how to work on lilith-zero 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 lilith-zero configures →

Reuse

Borrowing it

Nothing to install: this file belongs to BadC-mpany/lilith-zero. 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/BadC-mpany/lilith-zero/main/.agent/skills/rust-bulletproof/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/BadC-mpany/lilith-zero

Made for: Claude Code, Codex.

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 rust_bulletproof

README.md
[![agentmods](https://agentmods.dev/badge/skills/badc-mpany/lilith-zero/rust-bulletproof/github.svg)](https://agentmods.dev/skills/badc-mpany/lilith-zero/rust-bulletproof)
Your own site
<a href="https://agentmods.dev/skills/badc-mpany/lilith-zero/rust-bulletproof"><img src="https://agentmods.dev/badge/skills/badc-mpany/lilith-zero/rust-bulletproof/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 rust_bulletproof

Your own site · 80×15
<a href="https://agentmods.dev/skills/badc-mpany/lilith-zero/rust-bulletproof"><img src="https://agentmods.dev/badge/skills/badc-mpany/lilith-zero/rust-bulletproof.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 696 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.00027 $0.00696
Opus 5.5 $0.00011 $0.00278
Sonnet 5.5 $0.00005 $0.00139
Haiku 4.5 $0.00003 $0.00070

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

Security

Grade A, and why

rust_bulletproof 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 2mo 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.

.agent/skills/rust-bulletproof/SKILL.md · 76 lines

How it starts

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

Rust Bulletproof: Advanced Verification Strategy

This skill goes beyond standard unit testing to ensure the mathematical correctness and memory safety of Lilith's critical Rust path (lilith-zero/src). It employs fuzzing, property-based testing, and interpreter-based verification.

When to use this skill

  • Critical Logic Changes: Modifications to policy_validator.rs, pattern_matcher.rs, or security.rs.
  • Parsing/Input Handling: Changes to how external data (YAML, JSON, Byte streams) is ingested.
  • Unsafe Code: ANY addition or modification of unsafe blocks.
  • Concurrency: Changes involving Tokio, Mutex, or RwLock.

How to use it

1. The "No-Panic" Policy (Property Testing)

Use proptest to mathematically assert that functions never panic and properties hold for all inputs, not just example cases.

Command:

# Run property tests specifically (usually marked with #[test])
cd lilith-zero; cargo test --package sentinel --test properties

Note: If tests\properties.rs does not exist, ask the user to create a property test for the new feature.

2. Undefined Behavior Check (Miri)

If the code uses unsafe or does complex pointer arithmetic, you MUST run Miri. Miri interprets the code to find memory leaks, data races, and misalignment.

Command:

# Install Miri if missing
rustup component add miri
# Run tests under Miri
cd lilith-zero; cargo miri test

3. Fuzzing Campaign

For parsers and security boundaries, run a short fuzzing campaign to find edge case crashes.

Command:

# Ensure cargo-fuzz is installed
cargo install cargo-fuzz
# Initialize if needed: cargo fuzz init
# Run the relevant target (e.g., policy_parser)
cd lilith-zero; cargo fuzz run policy_parser -- -max_total_time=300 # 5 minutes

4. Mutation Testing (The "Test the Tests" Rule)

Verify that your tests are actually checking the code by introducing random bugs (mutants) and ensuring tests fail.

Read the full file on GitHub · 76 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. 2mo ago First seen · 76 lines · 27 tokens per session scan A ec5d27649960

Subscribe to this mod's changes

rust_bulletproof is a skill published in the GitHub repository BadC-mpany/lilith-zero (23 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 27 tokens to every session and 696 once invoked, about $0.0001 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

rust_bulletproof compared with skills from other repositories

rust_bulletproof next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rust_bulletproofBadC-mpany/lilith-zeroSkill233mo agoApache-2.0A27Claude Code, Codex
rust-developmentnavikt/copilotSkill60yesterdayMITA27Claude Code, Codex
rust-testingxobotyi/cc-foundrySkill236d agoMITA70Claude Code
rust-testing-qualityfusengine/agentsSkill3425d agoMITA46Claude Code
rust-testingbl1nk-bot/bl1nk-agents-managerSkill84d agoMITA31Claude Code, Codex
rust-best-practicespedronauck/skillsSkill6483d agononeA48Claude Code
testing-rustqte77/claude-code-pluginsSkill34d agoApache-2.0A39Claude Code