agentleFS
jscott3201jscott3201/yet-more-skills/skills/rust-workflow/SKILL.md

rust-workflow

Skill4 starsChanged 2 months agoApache-2.0View on GitHub

Orient a substantial Rust task: map the workspace, choose validation and specialist skills, and coordinate agent work. Explicit entry point; not required for tiny edits.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    Use this as an entry point, not a mandatory ceremony.

    line 9
  2. Distinctive:

    Use the specialist matching the difficult part.

    line 23
  3. Distinctive:

    Follow the existing implementer/reviewer split.

    line 41
  4. Distinctive:

    Read repository adaptation when entering one of the reviewed workspaces.

    line 51

≈ “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 Workflow

Use this as an entry point, not a mandatory ceremony. For a small correction, inspect the relevant code and act. For substantial work, establish the boundary of the change before choosing specialists.

Establish context

Read applicable AGENTS.md, task instructions, the nearest Cargo.toml, workspace manifest, toolchain pin, testing scripts, and relevant nextest configuration. Distinguish workspace members, default members, excluded crates, feature sets, generated code, and native/FFI boundaries. Consult repo-local compatibility policy: a greenfield engine and a published protocol library need different API decisions.

Use the installed language server or repository code graph for callers and dependency direction when available; verify its coverage and confirm decisive claims in source. Do not require a memory service, a particular MCP, or a machine-specific path. With no graph tool, use targeted search and Cargo metadata.

Read manifests and configuration sections relevant to the affected crate; reuse established workspace facts instead of dumping every manifest, lockfile, or dependency. When package ownership is unclear, cargo metadata --no-deps --format-version 1 can identify workspace packages; project its output to the needed names, paths, or targets. Do not run it as a mandatory preflight when the owner is known. Use --locked where a lockfile is authoritative. Metadata without dependencies is not a transitive dependency analysis. Cargo commands may resolve dependencies or invoke build scripts later: respect network and execution permissions.

Choose the smallest useful workflow

Translate the task into an observable outcome and the few invariants it could disturb. For example: reduce response copies while preserving transaction identity, errors, and retained-memory bounds. State a short plan only when it resolves real coordination or design uncertainty.

Use the specialist matching the difficult part; usually one or two are enough:

WorkSpecialist
Public interfaces and ownership$rust-api-design
Selecting/running tests$rust-nextest
Missing or weak behavioral evidence$rust-test-design
Measured runtime improvement$rust-performance, then memory or SIMD as relevant
Cancellation, contention, task ownership$rust-async-concurrency
Wire/state-machine semantics$rust-protocol-codecs
WAL, recovery, indexes$rust-storage-durability
Binding or unsafe boundary$rust-python-bindings or $rust-unsafe-ffi
Features, dependencies, slow buildsWorkspace or build-diagnostics skill

Skills are independent; an uninstalled specialist is not a blocker. Load only the references relevant to the current question.

Execute and verify

Follow the existing implementer/reviewer split. Delegate independent source questions only when they save useful root work. Give readers one question, paths, constraints, and expected evidence. Do not create extra approval panels, nested delegation, or multiple product writers merely because more agents are available.

Coordinate expensive Cargo builds, shared fixtures, ports, and benchmark hosts. A separate worktree does not isolate machine load or external services. Keep performance runs free of competing work. A skill never grants permission to commit, push, merge, publish, access hardware, or change CI.

Implement the smallest coherent change, including its regression test. Run the relevant package/consumer checks, then the repo's required gate. Preserve no_std, no_alloc, unsafe-code policy, deterministic behavior, and wire/persistence contracts. Do not silently upgrade the compiler, dependency graph, or MSRV to make a patch easier.

Finish

Return the outcome, important design tradeoff, actual commands/results, and unverified areas. A skipped command is unrun, not passing. Distinguish a source-based hypothesis, a compiled result, a test result, and a measured performance result. Keep handoffs short and integrate with existing review/stopping rules.

Read repository adaptation when entering one of the reviewed workspaces.

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.