agentleFS
DankosikDankosik/rust-cli-skills/skills/rust-debugging/SKILL.md

rust-debugging

Skill0 starsChanged 2 months agoMITView on GitHub

Causality. Use for an uncertain Rust CLI defect, panic, hang, incorrect output, resource leak, or platform-dependent failure.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the available error chain or backtrace and trace relevant callers.

    line 14
  2. Distinctive:

    Follow file identity, buffer contents, short I/O operations, child streams, locks, and task completion across their real boundaries.

    line 16
  3. Distinctive:

    Use the appropriate debugger, profile, or syscall trace when runtime evidence is needed.

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Rust Debugging

Causality. Find the first observable divergence between the intended command and the real execution path. Honor supplied requirements and preserve settled choices outside the requested change; resolve only what the task leaves open.

Choose the smallest useful signal for the reported symptom. Inspect actual arguments, bytes, environment, target, features, or profile when they distinguish plausible causes; compiler-only failures need no process reproduction. Separate compiler diagnostics, process startup failures, domain errors, and crashes. Preserve raw stdout, stderr, and status when their differences explain the symptom.

Minimize a reproducer only while it retains the same failure. Choose an observation that could disprove the leading explanation, not just confirm it. After an ineffective fix, revisit that explanation instead of stacking speculative changes. Keep unrelated baseline failures distinct from the reported defect.

Read the available error chain or backtrace and trace relevant callers. For ownership errors, identify the actual owner and required lifetime before adding clone, Arc, or unsafe. For optimized-only failures, compare cfg, assertions, overflow behavior, and timing rather than assuming an optimizer bug.

Follow file identity, buffer contents, short I/O operations, child streams, locks, and task completion across their real boundaries. A retry, panic catch, or discarded error can hide the mechanism without repairing it.

Use the appropriate debugger, profile, or syscall trace when runtime evidence is needed. Miri can detect some undefined behavior in supported executions, but it does not certify arbitrary OS interaction or prove overall soundness. Keep sensitive input and credentials out of diagnostic captures.

Control scheduling, fixtures, and dependencies enough to expose intermittent behavior; change one causal variable at a time.

For diagnosis, finish with the supported explanation or next discriminating observation; do not edit unless fixing is requested. For a fix, change the causal owner, replay the original failure, and check relevant neighboring paths. Retain a regression check, remove temporary instrumentation, and report actual verification and remaining uncertainty without expanding to unrelated diagnostics.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.