rust-harden

rust-harden is a skill for Claude Code, Codex from leafyoung/pi-agent-skills. It costs 188 tokens per session (1,889 once invoked), scanned B, original, no licence file.

A set of practices for making Rust software more resilient in production, including handling panics, reducing container risks, sandboxing, and dropping privileges.

In plain words
What is it for?
Use it to harden Rust web services, configure panic behavior, secure their Docker images, add Landlock sandboxing, or reduce process privileges.
Why use it?
It addresses failures and security risks that can affect a Rust service after deployment.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to harden Rust web services, configure panic behavior, secure their Docker images, add Landlock sandboxing, or reduce process privileges.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leafyoung/pi-agent-skills/rust-harden
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.

Any agent
npx skills add leafyoung/pi-agent-skills --skill rust-harden
Clone the repo
git clone --depth 1 https://github.com/leafyoung/pi-agent-skills

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-harden

README.md
[![agentmods](https://agentmods.dev/badge/skills/leafyoung/pi-agent-skills/rust-harden/github.svg)](https://agentmods.dev/skills/leafyoung/pi-agent-skills/rust-harden)
Your own site
<a href="https://agentmods.dev/skills/leafyoung/pi-agent-skills/rust-harden"><img src="https://agentmods.dev/badge/skills/leafyoung/pi-agent-skills/rust-harden/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-harden

Your own site · 80×15
<a href="https://agentmods.dev/skills/leafyoung/pi-agent-skills/rust-harden"><img src="https://agentmods.dev/badge/skills/leafyoung/pi-agent-skills/rust-harden.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 188 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,889 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00188 $0.01889
Opus 5.5 $0.00075 $0.00756
Sonnet 5.5 $0.00038 $0.00378
Haiku 4.5 $0.00019 $0.00189

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

Security

Grade B, and why

rust-harden scanned grade B with 1 finding 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

9. **Drop privileges** — Don't run as root; prefer high ports or `CAP_NET_BIND_SERVICE`; drop startup-only caps before serving.
rust-harden/SKILL.md · 103 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 103 lines · 188 tokens per session scan B 8b8d42c9963a

Subscribe to this mod's changes

rust-harden is a skill published in the GitHub repository leafyoung/pi-agent-skills (2 stars, last pushed 16d ago), with no licence file. It adds 188 tokens to every session and 1,889 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.