rust-setup

rust-setup is a skill for Claude Code from ondrasek/cc-plugins. It costs 62 tokens per session (718 once invoked), scanned A, original, Apache-2.0.

A setup workflow that examines a Rust project and configures checks across nine areas of software quality, including code checks, automated tests, hooks, and continuous integration. Continuous integration means automated checks that run when code changes are submitted.

In plain words
What is it for?
Setting up linting, formatting, tests, security checks, code-quality checks, Git hooks, and CI for a Rust project.
Why use it?
It helps establish a consistent quality setup while keeping the project's existing configuration, Rust version requirements, and CI jobs.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the blueprint plugin — 16 skills shipped together

Good fit Setting up linting, formatting, tests, security checks, code-quality checks, Git hooks, and CI for a Rust project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ondrasek/cc-plugins/rust-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ondrasek/cc-plugins --skill rust-setup
Clone the repo
git clone --depth 1 https://github.com/ondrasek/cc-plugins

Made for: Claude Code.

Or install blueprint, the plugin that ships this one along with the rest of its 16 skills.

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 rust-setup

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ondrasek/cc-plugins/rust-setup"><img src="https://agentmods.dev/badge/skills/ondrasek/cc-plugins/rust-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 718 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.00062 $0.00718
Opus 5.5 $0.00025 $0.00287
Sonnet 5.5 $0.00012 $0.00144
Haiku 4.5 $0.00006 $0.00072

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

Security

Grade A, and why

rust-setup 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.

The scan reads SKILL.md. This mod also ships 5 executable files (templates/auto-commit.sh, templates/per-edit-fix.sh, templates/quality-gate.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/blueprint/skills/rust-setup/SKILL.md · 70 lines

How it starts

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

Rust Setup

Critical Rules

  • Always present analysis and plan to the user before making changes
  • Merge, don't replace — preserve existing Cargo.toml sections, CI jobs, hooks
  • Respect the project's Rust edition and MSRV (don't assume latest)
  • All hook scripts must be executable (chmod +x)

Context Files

Read these files before starting:

  • skills/shared/references/methodology-framework.md — shared principles, hook architecture, exit codes, settings.json format
  • skills/shared/references/setup-workflow.md — the 6-phase workflow structure
  • skills/rust-setup/references/methodology.md — Rust-specific 9 dimensions, thresholds, tool research guidance
  • skills/rust-setup/references/analysis-checklist.md — what to check in the target codebase
  • skills/rust-setup/templates/ — annotated examples showing structural patterns. Use templates for patterns but substitute the tools chosen during research.

Workflow

Follow the 6-phase workflow from setup-workflow.md.

Phase 1: Analyze

Follow analysis-checklist.md systematically: Rust edition, MSRV, project structure, targets (WASM, no_std), existing tools, CI, maturity.

Phase 2: Plan

Research tools for each of the 9 dimensions. Rust-specific files to plan:

  • Cargo.toml — [lints] sections
  • clippy.toml, rustfmt.toml, deny.toml
  • .claude/hooks/ — quality-gate.sh, per-edit-fix.sh, session-start.sh, optionally auto-commit.sh
  • .claude/settings.json — hook registrations (see methodology-framework.md for format)
  • .github/workflows/ci.yml — CI pipeline
  • CLAUDE.md — project instructions
  • semver-check.sh — only when Dimension 9 is activated at level 3

Present complete plan and wait for approval.

Phase 3: Configure

Read each template in templates/ for the structural pattern, substitute the researched tools. Install required cargo subcommands.

Phase 4: Review

Read references/reviewer-prompt.md for the full prompt template. Spawn reviewer subagent using Task tool with subagent_type: "general-purpose".

Read the full file on GitHub · 70 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 · 70 lines · 62 tokens per session scan A 6f20be7372db

Subscribe to this mod's changes

rust-setup is a skill published in the GitHub repository ondrasek/cc-plugins (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 62 tokens to every session and 718 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

rust-crate-ci

Load before editing any Rust crate in this repo (currently runners/swarm-sandbox-runner). Covers the mandatory local validation gate, common rustfmt/clippy pitfalls, and Windows-specific Rust correctness patterns that CI enforces but are hard to catch locally without a Windows toolchain.

ZaxbyHub/opencode-swarm · 60 tokens

rust-tooling-cicd

Use when structuring a Cargo workspace or building a Rust CI pipeline — fmt, clippy, cargo-deny/audit, nextest, coverage, MSRV. Not for writing the tests themselves (rust-testing-quality).

fusengine/agents · 51 tokens

cargo-workflows

Use when managing Cargo workspaces, feature flags, build scripts, CI caching, dependency auditing, or Cargo.lock with Rust.

OutlineDriven/outline-driven-development · 29 tokens

cargo-workflows

Cargo workflow skill for Rust projects. Use when managing workspaces, feature flags, build scripts, cargo cache, incremental builds, dependency auditing, or CI configuration with Cargo. Activates on queries about cargo workspaces, Cargo.toml features, build.rs, cargo nextest, cargo deny, cargo check vs build, or…

mohitmishra786/low-level-dev-skills · 72 tokens

scaffold-rust-cli

Scaffold a new Rust CLI with Cargo, cargo-deny, cargo-nextest, git-cliff, and CI. Use for "scaffold a Rust CLI" or "new Rust CLI".

cboone/agent-harness-plugins · 45 tokens

scaffold-rust

Scaffold a complete Rust project with CI/CD, release pipeline, and sr.yaml. Uses cargo as the native build system. Loads on top of scaffold-project (run that first for cross-language standard files). Use when creating a new Rust CLI, library, or workspace, or when the user mentions "new Rust project", "cargo init", or…

urmzd/dotfiles · 102 tokens