agentleFS
89jobrien89jobrien/godmode/skills/rustqual-workspace/SKILL.md

rustqual-workspace

Skill1 starsChanged 57 days agoMITView on GitHub

rustqual guidance for Rust workspaces with multiple crates (lib + binary, lib + CLI, multi-crate workspace). Use when rustqual findings don't make sense in a workspace context — DEAD_CODE on pub API, TQ_UNTESTED on CLI dispatch, score mismatch between workspace-level and per-crate scans, or ORPHAN_SUPPRESSION after adding qual:allow(dry). Triggers on: "rustqual workspace", "dead code false positive", "cross-crate", "lib and binary crate", "qual:allow dry not working", "ORPHAN_SUPPRESSION", or any rustqual scenario involving pub API used across crate boundaries.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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 file named in a row before doing the task in its right column.

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

rustqual-workspace

Workspace-specific guidance for rustqual. rustqual operates per-crate — it cannot trace cross-crate call graphs. This creates predictable false positives in workspaces that require configuration rather than code changes.

For full rustqual reference (finding codes, CLI flags, config schema, quality loop), see the rustqual skill. This skill covers only the workspace-specific patterns.

Reference Files

Read the file named in a row before doing the task in its right column. These files are not loaded automatically.

FileRead before
references/workspace-toml-examples.mdwriting a rustqual.toml for a lib+binary, multi-crate, cfg-gated, or integration-test workspace
references/workspace-toml-template.mdcreating or editing the workspace-level rustqual.toml or a per-crate override
references/pattern-dead-code-pub-api.mda DEAD_CODE finding on a pub function used by another crate
references/pattern-tq-untested-cli-dispatch.mda TQ_UNTESTED finding on main, run, or a CLI dispatch function
references/pattern-score-mismatch.mdcomparing a workspace score against per-crate scores, or saving a baseline
references/pattern-lib-untested.mda TQ_UNTESTED finding on a function in a library crate
references/triage-decision-tree.mda finding's fix is not clear from its code location alone
helpers/triage.nurunning per-crate triage: nu helpers/triage.nu [--crate <path>] [--json]

helpers/triage.nu runs rustqual on each crate, annotates findings with recommended actions (fix vs. config vs. suppress), and groups output by action type.

The Core Limitation

rustqual analyzes one crate at a time. It cannot see:

  • Functions in lib-crate called only by binary-crate
  • Functions called by integration tests in tests/
  • Functions called by other workspace members

This produces structural false positives that are correct findings within a single crate but wrong in the workspace context.

Symptom index

Finding or symptomRead
DEAD_CODE (testonly) on a pub functionreferences/pattern-dead-code-pub-api.md
ORPHAN_SUPPRESSION after qual:allow(dry)references/pattern-dead-code-pub-api.md
TQ_UNTESTED on main, run, dispatch_* in a binaryreferences/pattern-tq-untested-cli-dispatch.md
Workspace score does not match per-crate scoresreferences/pattern-score-mismatch.md
TQ_UNTESTED on a lib functionreferences/pattern-lib-untested.md

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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.