Agent skill

Rust Validation

by macro-inc in macro-inc/macro

Validate Rust work after substantial Rust code changes by running just check, just clippy, then just format.

AGPL-3.0Auto-check: notes

Install Rust Validation

skills CLI
$ npx skills add macro-inc/macro --skill rust-validation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install macro-inc/macro rust-validation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/macro-inc/macro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.pi/skills/rust-validation .claude/skills/rust-validation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rust-validation
GitHub stars
4.6k
Token cost
~396 tokens
SKILL.md length
186 words
Files
1
Skills in repo
19
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Validate Rust work after substantial Rust code changes by running just check, just clippy, then just format.

  • SKILL.md covers Working Directory, Validation Commands and Final Response
  • Calls just

What it does

Rust Validation is an agent skill from macro-inc/macro. Validate Rust work after substantial Rust code changes by running just check, just clippy, then just format. Use before the final response after a significant Rust implementation or cleanup task; batch edits first instead of running after every small change.

Its SKILL.md is about 400 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Rust. The repository describes itself as: Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory. The licence is AGPL-3.0.

Example prompts

  • “/rust-validation”

Requirements

  • Pre-approved tools (allowed-tools): Bash, Read, Edit, Glob, Grep

What it can do on your machine

Read from SKILL.md and the folder at commit 39f3c91. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read
    • Edit
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • just

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rust Validation loads about 396 tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 186 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~396

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read, Edit, Glob, Grep

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from macro-inc/macro at commit 39f3c91, republished under its AGPL-3.0 licence (© macro-inc). 186 words, ~396 tokens.

Download SKILL.mdSave it as .claude/skills/rust-validation/SKILL.md (or your agent's skills folder).
name
rust-validation
description
Validate Rust work after substantial Rust code changes by running `just check`, `just clippy`, then `just format`. Use before the final response after a significant Rust implementation or cleanup task; batch edits first instead of running after every small change.
allowed-tools
Bash, Read, Edit, Glob, Grep
disable-model-invocation
true

Rust Validation

Use this skill when you have changed Rust code or Rust build inputs and are nearing the end of a substantial implementation, refactor, or bug-fix task.

Do not run these commands after every individual edit. Batch related edits first, then validate once at the end of a major work pass or before handing the task back to the user.

Working Directory

Run validation from the repository root. If the root justfile or one of the required recipes is missing, stop and tell the user what prevented validation instead of inventing alternate commands.

Validation Commands

Run these commands one at a time, in this exact order:

bash
just rust-check
just clippy
just format
just hakari

If just rust-check or just clippy fails, do not continue to later commands. Inspect the failure, fix it if it is in scope, then rerun the full sequence starting at just rust-check.

If just format changes files, review the resulting changes before the final response.

Final Response

Briefly report whether validation passed and list the commands that ran. If validation was skipped because no Rust code was changed, or because the user explicitly asked to skip it, say so.

© macro-inc, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .pi/skills/rust-validation of macro-inc/macro.

Open the folder on GitHubat commit 39f3c91

Compare with similar skills

Rust Validation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rust Validation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rust Validation this skillmacro-inc/macro4.6k—~396Automated safety check: NotesAGPL-3.0
Update V8 Versionopeninterpreter/openinterpreter69k2 repos~845Automated safety check: PassApache-2.0
Firecrawl Page Scrape Integrationfirecrawl/firecrawl189k1 repos~944Automated safety check: PassISC
Migrate Core Code to Submodulestinyhumansai/openhuman41k—~2.6kAutomated safety check: PassGPL-3.0
Rust TDD Workflowrtk-ai/rtk83k—~753Automated safety check: NotesApache-2.0
Rust Best Practicesfarm-fe/farm5.6k3 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Update V8 Version

    openinterpreter/openinterpreter

    Bumps the pinned v8 and rusty_v8 versions in Codex, validates the release-candidate path with the v8-canary check, and traces failures to upstream build changes.

    69k GitHub starsUsed in 2 repos~845 tokens
    DevOps & CloudAuto-check passed
  • Adds Firecrawl's /scrape endpoint to application code to pull markdown, HTML, links, screenshots or structured data from a single known URL.

    189k GitHub starsUsed in 1 repo~944 tokens
    Data & AnalyticsAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    41k GitHub stars~2.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Enforces red-green-refactor for Rust work, with idiomatic test patterns, a naming convention and a pre-commit gate of cargo fmt, clippy and test.

    83k GitHub stars~753 tokensUpdated today
    Testing & QAAuto-check: notes
  • Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

    5.6k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Decides whether an OpenLogi device problem on macOS is a privacy-permission (TCC) problem, using agent log lines, and says which identity needs which grant.

    23k GitHub stars~2.5k tokensUpdated 4 days ago
    DevelopmentAuto-check: notes

More from macro-inc/macro

All 19 skills in this repo
  • Mintlify API

    macro-inc/macro

    Interact with the Mintlify REST API to manage deployments, trigger builds, and query documentation site metadata programmatically.

    4.6k GitHub starsUsed in 2 repos~333 tokens
    Auto-check passed
  • Add Tour

    macro-inc/macro

    Add or change an in-app feature tour (a view's guided flyover) in the web app.

    4.6k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Define Feature Flag

    macro-inc/macro

    Define a frontend feature flag with defineFlag and wire its readers.

    4.6k GitHub stars~780 tokensUpdated today
    Auto-check passed
  • Run App

    macro-inc/macro

    Run the Macro app on Cursor Cloud and pick up edits. An agent skill from macro-inc/macro.

    4.6k GitHub stars~712 tokensUpdated today
    Auto-check passed
  • Add SDK Endpoint

    macro-inc/macro

    Wrap a new backend endpoint in the TypeScript SDK (packages/sdk), or record it as skipped.

    4.6k GitHub stars~1k tokensUpdated today
    Auto-check: notes
  • Enforce hexagonal architecture in the Rust backend. An agent skill from macro-inc/macro.

    4.6k GitHub stars~3k tokensUpdated today
    Auto-check passed

Works with

Questions about Rust Validation

What does Rust Validation do?

Validate Rust work after substantial Rust code changes by running just check, just clippy, then just format. Rust Validation is an agent skill from macro-inc/macro. Validate Rust work after substantial Rust code changes by running just check, just clippy, then just format.

How do I install Rust Validation in Claude Code?

Run `npx skills add macro-inc/macro --skill rust-validation -a claude-code`. Or copy the skill folder (.pi/skills/rust-validation in macro-inc/macro) into .claude/skills/rust-validation in your project. Claude Code loads it when a task matches its description.

How do I install Rust Validation in Codex?

Run `npx skills add macro-inc/macro --skill rust-validation -a codex`. Or copy the skill folder (.pi/skills/rust-validation in macro-inc/macro) into .agents/skills/rust-validation in your project. Codex loads it when a task matches its description.

Can I use Rust Validation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add macro-inc/macro --skill rust-validation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rust-validation, .gemini/skills/rust-validation, .github/skills/rust-validation and .opencode/skills/rust-validation in your project.

What does Rust Validation need to run?

Going by SKILL.md and its folder, Rust Validation needs the command-line tools its instructions call (just). Its frontmatter pre-approves these tools: Bash, Read, Edit, Glob, Grep.

Does Rust Validation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Rust Validation safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Rust Validation use?

Rust Validation is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rust Validation use?

About 396 tokens (SKILL.md is roughly 1.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rust Validation?

Skills that share tags, products or a category with Rust Validation: Update V8 Version (openinterpreter/openinterpreter, 69k stars), Firecrawl Page Scrape Integration (firecrawl/firecrawl, 189k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 41k stars) and Rust TDD Workflow (rtk-ai/rtk, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rust Validation?

macro-inc (a GitHub organization) maintains it in macro-inc/macro, which has 4,578 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 7, 2026.

Source: macro-inc/macro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.