Agent skill

Rust

by Moosync in Moosync/Moosync

Hermetic Rust crate building, testing, and formatting via Bazel targets.

GPL-3.0Auto-check passedTesting & QA

Install Rust

skills CLI
$ npx skills add Moosync/Moosync --skill rust -a claude-code

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

GitHub CLI
$ gh skill install Moosync/Moosync rust --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/Moosync/Moosync.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/rust .claude/skills/rust && 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
GitHub stars
259
Token cost
~665 tokens
SKILL.md length
201 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
GPL-3.0

At a glance

Hermetic Rust crate building, testing, and formatting via Bazel targets.

  • Works in 3 steps: Quick build of a feature module —… → Test after change — run Run tests to… → Formatting — invoke Format files as part…
  • Tasks that involve Dependency management
  • SKILL.md covers Description, Commands, Usage Patterns and Example Workflow, plus 1 more section
  • Calls bazel

What it does

Rust is an agent skill from Moosync/Moosync. Hermetic Rust crate building, testing, and formatting via Bazel targets. Covers build/test commands through rulesrust, formatting with bazel run //tools:format, test suites defined in root BUILD, and dependency management via MODULE.bazel crates.io integration.

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

It sits in Testing & QA, covering Dependency management and Test generation. It works with Rust. The licence is GPL-3.0.

When your agent uses it

  • Tasks that involve Dependency management
  • Tasks that involve Test generation

Example prompts

  • “/rust”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Quick build of a feature module — identify the target label in the crate's BUILD.bazel file and run the Build crate command.
  2. Test after change — run Run tests to catch regressions before committing. Test suites are aggregated under core_tests at the root level.
  3. Formatting — invoke Format files as part of a Git pre-commit hook (see .git/hooks/pre-commit). The formatter resolves hermetic rustfmt…

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bazel

    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 loads about 665 tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 201 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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 Moosync/Moosync at commit a2b81ce, republished under its GPL-3.0 licence (© Moosync). 201 words, ~665 tokens.

Download SKILL.mdSave it as .claude/skills/rust/SKILL.md (or your agent's skills folder).
name
rust
description
Hermetic Rust crate building, testing, and formatting via Bazel targets. Covers build/test commands through rules_rust, formatting with bazel run //tools:format, test suites defined in root BUILD, and dependency management via MODULE.bazel crates.io integration.

Rust Skill

Description

The Rust skill provides a set of reusable commands for building, testing, and formatting Rust crates in the Moosync repository. All operations use Bazel's hermetic rules_rust toolchain — Cargo is never invoked directly.

Commands

CommandDescriptionExample
Build crateBuild a specific Rust library or binary target via Bazel.bazel build //core/player:player
Run testsExecute unit tests for a crate through Bazel.bazel test //core/database:database_test
Format filesRun hermetic formatter on staged .rs, .slint, .proto, and Bazel files via the pre-commit target.bazel run //tools:format -- path/to/file.rs path/to/file.proto

Usage Patterns

  1. Quick build of a feature module — identify the target label in the crate's BUILD.bazel file and run the Build crate command.
  2. Test after change — run Run tests to catch regressions before committing. Test suites are aggregated under core_tests at the root level.
  3. Formatting — invoke Format files as part of a Git pre-commit hook (see .git/hooks/pre-commit). The formatter resolves hermetic rustfmt, slint-lsp, buildifier, and buf through Bazel runfiles.

Example Workflow

bash
# Build the player module
bazel build //core/player:player

# Run tests for the database crate
bazel test //core/database:database_test

# Format specific files (pre-commit hook pattern)
bazel run //tools:format -- core/player/src/lib.rs ui/slint/app.slint

Rules_rust Integration Notes

  • All Rust dependencies are declared in modules/crates.MODULE.bazel via the crates.io integration. Do not manually edit lockfiles.
  • New crates should use rust_library, rust_binary, or rust_shared_library from @rules_rust//rust:defs.bzl.
  • Build scripts (build.rs) are declared with cargo_build_script() from @rules_rust//cargo:cargo_build_script.bzl.

© Moosync, GPL-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 .agents/skills/rust of Moosync/Moosync.

Open the folder on GitHubat commit a2b81ce

Compare with similar skills

Rust 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 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rust this skillMoosync/Moosync259—~665Automated safety check: PassGPL-3.0
Maintainopenwpm/OpenWPM1.4k—~1.5kAutomated safety check: PassCustom licence
Validate PRathola/claude-night-market342—~2.2kAutomated safety check: PassMIT
Find Untested Sourcesdotnet/skills5.6k1 repos~3.3kAutomated safety check: PassMIT
Testingfastrepl/anarlog9.4k—~819Automated safety check: PassMIT
Review Pre Commitopenwpm/OpenWPM1.4k—~788Automated safety check: PassCustom licence

Similar skills

  • Maintain

    openwpm/OpenWPM

    A skill your agent uses to run a periodic codebase-health pass — dependency audit, lint, test suite, dead code / TODO scan, doc freshness, crosslink issue hygiene, and build artifacts.

    1.4k GitHub stars~1.5k tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Validate PR

    athola/claude-night-market

    Generates and self-executes a diff-derived test plan for a PR.

    342 GitHub stars~2.2k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Official

    Statically pairs source files with test files to list code that no test references, using Roslyn for C# or tree-sitter for many languages, with no build.

    5.6k GitHub starsUsed in 1 repo~3.3k tokens
    Testing & QAAuto-check passed
  • Testing

    fastrepl/anarlog

    A skill your agent uses when adding, changing, deleting, or reviewing tests in Anarlog (TypeScript, Rust, or node --test scripts), deciding whether a change needs a test, fixing a failing test, or…

    9.4k GitHub stars~819 tokensUpdated today
    Testing & QAAuto-check passed
  • Review Pre Commit

    openwpm/OpenWPM

    Use as a pre-commit quality gate — review the working diff for stub patterns (TODO/FIXME/unimplemented!()/todo!()), debug leftovers (dbg!, stray console.log/println!, commented-out code), then run…

    1.4k GitHub stars~788 tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Testing Strategies

    ancoleman/ai-design-components

    Strategic guidance for choosing and implementing testing approaches across the test pyramid.

    526 GitHub stars~3.8k tokensUpdated 10 mo ago
    Testing & QAAuto-check passed

More from Moosync/Moosync

  • Bazel

    Moosync/Moosync

    Hermetic Bazel build, test, and packaging commands for the Moosync project.

    259 GitHub stars~722 tokensUpdated 6 days ago
    Auto-check passed
  • Instrumentation

    Moosync/Moosync

    Hermetic tracing instrumentation rules and validation. An agent skill from Moosync/Moosync.

    259 GitHub stars~570 tokensUpdated 6 days ago
    Auto-check passed
  • Moosync

    Moosync/Moosync

    Project-wide helpers for adding new features to Moosync. An agent skill from Moosync/Moosync.

    259 GitHub stars~2.5k tokensUpdated 6 days ago
    Auto-check passed
  • Slint

    Moosync/Moosync

    Expert guidance for building, debugging, and working with Slint GUI applications.

    259 GitHub stars~2.4k tokensUpdated 6 days ago
    Auto-check passed

Works with

Questions about Rust

What does Rust do?

Hermetic Rust crate building, testing, and formatting via Bazel targets. Rust is an agent skill from Moosync/Moosync. Hermetic Rust crate building, testing, and formatting via Bazel targets.

When should I use Rust?

Rust fits situations like: tasks that involve Dependency management; tasks that involve Test generation.

How do I install Rust in Claude Code?

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

How do I install Rust in Codex?

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

Can I use Rust 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 Moosync/Moosync --skill rust -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, .gemini/skills/rust, .github/skills/rust and .opencode/skills/rust in your project.

What does Rust need to run?

Going by SKILL.md and its folder, Rust needs the command-line tools its instructions call (bazel).

Does Rust 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 safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rust use?

Rust is published under the GPL-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 use?

About 665 tokens (SKILL.md is roughly 2.7k 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?

Skills that share tags, products or a category with Rust: Maintain (openwpm/OpenWPM, 1.4k stars), Validate PR (athola/claude-night-market, 342 stars), Find Untested Sources (dotnet/skills, 5.6k stars) and Testing (fastrepl/anarlog, 9.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rust?

Moosync (a GitHub organization) maintains it in Moosync/Moosync, which has 259 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 1, 2026.

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