Tooling style workflow
Skill gaelic-ghost/socket/plugins/rust-skills/skills/tooling-style-workflow
The Source for macOS Agent Workflows
npx -y skills add gaelic-ghost/socket --skill tooling-style-workflowAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Align Rust formatting, linting, toolchain, and CI behavior with repository policy, including cargo fmt, rustfmt style edition, cargo clippy, rust-toolchain.toml, MSRV checks, warnings-as-errors decisions, and validation command selection. Use when configuring or fixing Rust style, lint, toolchain, or CI workflows.
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
4.3 KB, 926 tokens by cl100k_base, as published. Nobody here has run it
Rust Tooling And Style Workflow
Purpose
Keep Rust formatting, linting, toolchain, and CI behavior explicit and consistent with the repository.
The practical goal is to avoid accidental formatter churn, surprise MSRV changes, lint strictness jumps, or CI commands that do not match local validation.
Source Check
Use repo-local files, checked-out dependency sources, Dash MCP or Dash HTTP for installed docsets, and then official project documentation when Dash/local coverage is missing or stale:
cargo fmtcargo clippy- Rustfmt 2024 style edition guide
- The rustup book
- Cargo continuous integration guide
Treat rustfmt and Clippy as toolchain components. If they are missing locally, report the missing component and the likely install command instead of guessing at style by hand.
Repository Inspection
Before changing tooling, inspect:
Cargo.tomlCargo.lockrust-toolchain.tomlorrust-toolchainrustfmt.tomlor.rustfmt.tomlclippy.toml.cargo/config.toml.github/workflows/- existing Makefile, justfile, xtask, or scripts
- README, CONTRIBUTING, AGENTS, or package docs for validation commands
Formatting
Use Cargo's formatter command by default:
cargo fmt --check
Apply formatting only when the user asked for implementation or formatting work:
cargo fmt
For Rust 2024 projects, check whether the repo needs an explicit rustfmt.toml with style_edition = "2024" so editor format-on-save and CI use the same style behavior. Do not add this file to older-edition projects without a conscious style decision.
Linting
Use Clippy when lint behavior matters:
cargo clippy --all-targets --all-features
Use warnings-as-errors only when the repo already expects it or the task is explicitly tightening CI:
cargo clippy --all-targets --all-features -- -D warnings
Do not silence lints broadly. Prefer a local code fix, then a narrow allow with a concrete reason when the lint is intentionally wrong for that code.
Toolchain And MSRV
Use rust-toolchain.toml when contributors or CI need a pinned channel or components:
[toolchain]
channel = "stable"
components = ["rustfmt", "clippy"]
Preserve existing MSRV. If the task needs a newer compiler, make that compatibility change explicit in docs, CI, and release notes.
Check local toolchain state only when implementation needs it:
rustc --version
cargo --version
rustup show
CI Alignment
Local and CI validation should name the same meaningful commands. A normal Rust CI baseline is:
cargo fmt --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-targets --all-features
Narrow this for small crates or widen it for published libraries with feature matrices, MSRV checks, or platform-specific behavior.
Output Shape
Return:
Tooling state: formatter, linter, toolchain, MSRV, and CI policy observed.Commands: exact commands run or recommended.Changes: files or settings changed, if any.Validation: pass, fail, or skipped with the concrete reason.Compatibility impact: whether edition, style edition, MSRV, lint strictness, or CI behavior changed.
Guardrails
- Do not add warnings-as-errors as a casual cleanup.
- Do not add or change
rust-toolchain.tomlwithout a reproducibility or CI reason. - Do not raise MSRV silently.
- Do not hand-format Rust when
cargo fmtis available. - Do not overwrite repo-local style, lint, or CI policy with a generic template.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.