termi: Skill for Cursor

.cursor/skills/debug-rust-panic/SKILL.md

debug-rust-panic is a skill for Cursor from MannanSaood/termi. It costs 51 tokens per session (831 once invoked), scanned A, original, MIT.

A checklist for finding the cause of Rust panics and failed Cargo tests. Cargo is Rust's build and test tool, while a panic is an unexpected runtime failure.

In plain words
What is it for?
Use it to reproduce one failing test, inspect its output, classify the panic, and check Rust, virtual file-system, or Android integration code.
Why use it?
It turns a broad test failure into a narrow investigation, including poisoned locks, blocked file-system permissions, and failures that occur only through Android's Java-to-Rust connection.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is MannanSaood/termi's own configuration. It tells Cursor how to work on termi 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 termi configures →

Reuse

Borrowing it

Nothing to install: this file belongs to MannanSaood/termi. 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/MannanSaood/termi/main/.cursor/skills/debug-rust-panic/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/MannanSaood/termi

Made for: Cursor.

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 debug-rust-panic

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mannansaood/termi/debug-rust-panic"><img src="https://agentmods.dev/badge/skills/mannansaood/termi/debug-rust-panic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 831 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.00051 $0.00831
Opus 5.5 $0.00020 $0.00332
Sonnet 5.5 $0.00010 $0.00166
Haiku 4.5 $0.00005 $0.00083

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

Security

Grade A, and why

debug-rust-panic 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.

.cursor/skills/debug-rust-panic/SKILL.md · 73 lines

How it starts

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

Use this checklist whenever a cargo test run fails, a panic message shows up in logs, or behavior doesn't match what a test expects.

1. Reproduce narrowly

cd rust
cargo test <failing_test_name> -- --nocapture

--nocapture shows println!/log output even for passing tests, which often reveals the actual sequence of events leading to a failure that the assertion message alone doesn't show.

2. Classify the failure

  • Panic with a .unwrap()/.expect() in the message: this should have been caught by clippy::unwrap_used before it ever ran. Two possibilities:
    • It's in a #[cfg(test)] mod tests block — expected, not a bug, unless the test itself is wrong.
    • It's in production code — this is a regression in lint coverage. Check whether the file has #![warn(clippy::unwrap_used)] inherited from lib.rs (it should, crate-wide) and whether clippy was actually run before this code was merged (cargo clippy --all-targets -- -D warnings -D clippy::unwrap_used -D clippy::expect_used).
  • Poisoned mutex panic (PoisonError or "lock" in the message): check whether the code uses .lock().unwrap() instead of utils::sync_ext::LockExt::lock_safe(). If it's a data buffer (not a mutex protecting a real invariant), switch to lock_safe() — see that module's doc comment for when this is/isn't appropriate.
  • VFS operation failed unexpectedly: check whether the code called a FsProvider method directly instead of going through VfsService. If it went through VfsService, check whether the VfsOutcome was Blocked (capability check failed — expected for chmod/symlink on SAF) vs. an actual bug. Read vfs/capabilities.rs's capability matrix for the relevant FsType before assuming it's a bug.
  • JNI-related failure: this can only be meaningfully debugged on-device or with device logs (adb logcat). Don't try to reproduce JNI crashes with cargo test — the android feature only type-checks on host, it doesn't give you a JVM to actually exercise those code paths.

Read the full file on GitHub · 73 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. 1mo ago First seen · 73 lines · 51 tokens per session scan A 7d539c8b8678

Subscribe to this mod's changes

debug-rust-panic is a skill published in the GitHub repository MannanSaood/termi (10 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 831 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories