tsz: Skill for Claude Code

.agents/skills/rust-debugger/SKILL.md

rust-debugger is a skill for Claude Code, Codex from tsz-org/tsz. It costs 136 tokens per session (1,520 once invoked), scanned C, original, Apache-2.0.

A command-line debugging workflow for Rust programs and failing tests, using breakpoints and paused program state. It lets you inspect real variable values, follow execution, and stop at panics; a debug build is a version prepared for this inspection.

In plain words
What is it for?
Use it to investigate wrong values, unexpected branches or state, panics, and runtime behaviour in Rust programs or tests.
Why use it?
Reading source code cannot always show which inputs or branch produced a wrong value. It avoids guessing when the problem only appears while the program runs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

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

Reuse

Borrowing it

Nothing to install: this file belongs to tsz-org/tsz. 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/tsz-org/tsz/main/.agents/skills/rust-debugger/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tsz-org/tsz

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tsz-org/tsz/rust-debugger"><img src="https://agentmods.dev/badge/skills/tsz-org/tsz/rust-debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,520 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00136 $0.01520
Opus 5.5 $0.00054 $0.00608
Sonnet 5.5 $0.00027 $0.00304
Haiku 4.5 $0.00014 $0.00152

Measured 23d ago against content hash 22d58807d6de, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

rust-debugger scanned grade C with 2 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 23d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

`curl -fsSL https://azimi.me/rust-debugger-skill/install.sh | sh` (also sets up

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`curl -fsSL https://azimi.me/rust-debugger-skill/install.sh | sh` (also sets up
.agents/skills/rust-debugger/SKILL.md · 105 lines

How it starts

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

rust-debugger

rdbg debugs from the command line: one paused process per project; breakpoints and state carry across calls. Needs a debug build (the default cargo build). Run rdbg with no arguments for the full command list; REFERENCE.md beside this file adds examples. Install: curl -fsSL https://azimi.me/rust-debugger-skill/install.sh | sh (also sets up codelldb), plus rust-analyzer on PATH.

When to reach for it (and when not)

Read first. Every launch rebuilds the target, so a wasted debugging detour is expensive. Launch only for a runtime question at a place you can name:

  • a wrong value where you need the real inputs/flow that produced it;
  • an unexpected branch, type, or state that reading can't pin down;
  • a panic — rdbg debug --panic lands on the culprit frame in one call;
  • testing a fix live with set --then continue before editing + rebuilding.

Don't launch when a quick read already points at the fix; when the output is missing (nothing fires to break on — finding the absent check is a reading task); or to iterate on a candidate fix — re-run the narrowed test instead.

Stay cheap: one session with several breakpoints, or one trace, beats re-launching. If 2–3 probes haven't localized it, go back to reading.

Fix once, don't churn: after ~2–3 edit→test cycles you're guessing — break at the failing assertion and compare actual vs expected values, or set the suspect value and continue to validate the hypothesis without editing.

tsz: wrong or extra diagnostics (the main use here)

tsz diagnostics funnel through a few sinks: CheckerState::error, CheckerContext::push_diagnostic (context/diagnostic_push.rs), and emit_render_request. For a wrong or extra (false-positive) diagnostic, break the sinks and trace the emit backward to the deciding code instead of grepping emit sites:

rdbg launch --cargo crates/tsz-checker --test <stem> --break-fn error --break-fn push_diagnostic -- <test_fn>
rdbg eval code                         # `code` at an error stop; `diag.code` at push_diagnostic
rdbg continue --until 'code == <code>' # ONLY if the current stop isn't already the emit
rdbg bt                                # walk back to the deciding frame
rdbg frame <n> ; rdbg vars             # the types/flags that produced it

Read the full file on GitHub · 105 lines

Files

What ships with it

1 file 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. 23d ago First seen · 105 lines · 136 tokens per session scan C 22d58807d6de

Subscribe to this mod's changes

rust-debugger is a skill published in the GitHub repository tsz-org/tsz (577 stars, last pushed today), licensed Apache-2.0. It adds 136 tokens to every session and 1,520 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-28.

Related

Other skills, from other repositories

rust-check

Run cargo check on the current Rust project to find compile errors.

Hmbown/CodeWhale · 15 tokens

stack-trace-rust-probe

Internal helper for meta-stack-trace-investigator. Use when a Rust panic or backtrace needs Rust-specific Result/Option checks, cargo test guidance, and patch targets.

opensquilla/opensquilla · 42 tokens

hotpath_init

Configure hotpath profiling in a Rust project. Adds the hotpath dependency with feature-gated setup, instruments main with hotpath::main, functions with measure/measureall, and wraps channels, mutexes, rwlocks, streams, futures, reqwest clients, axum routers and byte-level I/O with hotpath macros. Use when the user…

pawurb/hotpath-rs · 88 tokens

memory-safety-patterns

Implement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, managing resources, or preventing memory bugs.

rmyndharis/antigravity-skills · 45 tokens

rust-tracing

Add or change Rust diagnostic tracing in litellm-rust, including route spans, subscriber layers, and Python logger delivery.

BerriAI/litellm · 28 tokens

clickhouse-rust-type-mismatches

Fix ClickHouse query errors in Rust when using clickhouse-rs crate. Use when: (1) "string is not valid utf8" errors - typically FixedString columns need CAST to String, (2) "tag for enum is not valid" errors - typically Option fields receiving non-NULL values, (3) Sum/count aggregations returning Float64 but Rust…

divinevideo/divine-mobile · 280 tokens