Agent skill

Rust

by streamband in streamband/hydra-srt

A skill your agent uses for Rust development in this repo: design, implementation, debugging, performance work, and reliable testing.

Apache-2.0Auto-check passedDevelopment

Install Rust

skills CLI
$ npx skills add streamband/hydra-srt --skill rust -a claude-code

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

GitHub CLI
$ gh skill install streamband/hydra-srt 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/streamband/hydra-srt.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
146
Token cost
~459 tokens
SKILL.md length
227 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses for Rust development in this repo: design, implementation, debugging, performance work, and reliable testing.

  • Works in 5 steps: Read module boundaries and trait… → Make the smallest safe change that… → Prefer clear ownership/lifetime design… → …
  • Rust development in this repo: design
  • SKILL.md covers When to use, Workflow, Repo commands and Design rules, plus 4 more sections
  • Calls cargo

What it does

Rust is an agent skill from streamband/hydra-srt. Use this skill for Rust development in this repo: design, implementation, debugging, performance work, and reliable testing.

Its SKILL.md is about 460 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 Development, covering Debugging. It works with Rust. The repository describes itself as: An Open Source Alternative to Haivision SRT Gateway. The licence is Apache-2.0.

When your agent uses it

  • Rust development in this repo: design
  • Performance work
  • Reliable testing

Example prompts

  • “/rust”

Workflow steps

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

  1. Read module boundaries and trait contracts first.
  2. Make the smallest safe change that solves the issue.
  3. Prefer clear ownership/lifetime design over complex workarounds.
  4. Add or update tests for behavior changes.
  5. Validate with fmt, clippy, and tests.

What it can do on your machine

Read from SKILL.md and the folder at commit 8d081f2. 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:

    • cargo

    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 459 tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 227 words of instructions outside code blocks.

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

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 streamband/hydra-srt at commit 8d081f2, republished under its Apache-2.0 licence (© streamband). 227 words, ~459 tokens.

Download SKILL.mdSave it as .claude/skills/rust/SKILL.md (or your agent's skills folder).
name
rust
description
Use this skill for Rust development in this repo: design, implementation, debugging, performance work, and reliable testing.

Rust Skill

When to use

Use for any task touching Rust code, Cargo, clippy, unsafe blocks, async runtime, or benchmarks.

Workflow

  1. Read module boundaries and trait contracts first.
  2. Make the smallest safe change that solves the issue.
  3. Prefer clear ownership/lifetime design over complex workarounds.
  4. Add or update tests for behavior changes.
  5. Validate with fmt, clippy, and tests.

Repo commands

  • Format: cargo fmt --all
  • Lints: cargo clippy --all-targets --all-features -- -D warnings
  • Tests: cargo test --all
  • Check quickly: cargo check --all-targets --all-features

Design rules

  • Favor enums and pattern matching for state machines.
  • Use Result with domain-specific errors; avoid unwrap() in production paths.
  • Keep public API minimal and documented.
  • Prefer iterators and zero-copy paths when it keeps readability acceptable.

Async and Concurrency

  • Never block async executors with sync I/O or long CPU tasks.
  • Use cancellation-aware patterns and explicit timeouts.
  • Protect shared mutable state with clear ownership or narrow lock scopes.

Unsafe code

  • Keep unsafe blocks tiny and documented with invariants.
  • Add tests specifically covering invariant boundaries.
  • Prefer safe wrappers exposing safe API to callers.

Testing and quality

  • Unit tests for logic, integration tests for module interaction.
  • Add regression tests for bug fixes.
  • For perf-sensitive paths, include criterion or reproducible benchmark notes.

PR checklist

  • fmt, clippy, test are clean.
  • No hidden panic paths in non-test code.
  • Error messages provide actionable context.
  • Concurrency behavior has explicit assumptions.

© streamband, Apache-2.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 streamband/hydra-srt.

Open the folder on GitHubat commit 8d081f2

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 skillstreamband/hydra-srt146—~459Automated safety check: PassApache-2.0
OpenLogi macOS Permissions TriageAprilNEA/OpenLogi23k—~2.5kAutomated safety check: NotesApache-2.0
Debug Tuitrasta298/keifu811—~1.3kAutomated safety check: PassMIT
Cppcrazyguitar/cppcheatsheet290—~1.8kAutomated safety check: PassMIT
Codex TUI Testingopeninterpreter/openinterpreter69k2 repos~133Automated safety check: PassApache-2.0
Dbgtheodo-group/debug-that158—~1.9kAutomated safety check: PassMIT

Similar skills

  • 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
  • Debug Tui

    trasta298/keifu

    Drive and debug the real keifu TUI autonomously via its remote-control debug server (--debug-listen) — launch headlessly, inject keys/mouse, dump the rendered screen as text, and inspect app state.

    811 GitHub stars~1.3k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Cpp

    crazyguitar/cppcheatsheet

    Comprehensive C/C++ programming reference covering everything from C11-C23 and C++11-C++23, system programming, CUDA GPU computing, debugging tools, Rust interop, and advanced topics.

    290 GitHub stars~1.8k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Codex TUI Testing

    openinterpreter/openinterpreter

    Guide for testing Codex TUI interactively

    69k GitHub starsUsed in 2 repos~133 tokens
    DevelopmentAuto-check passed
  • Dbg

    theodo-group/debug-that

    Debug applications using the dbg CLI debugger. An agent skill from theodo-group/debug-that.

    158 GitHub stars~1.9k tokensUpdated 4 mo ago
    DevelopmentAuto-check passed
  • Issue Tracking

    static-web-server/static-web-server

    Triage, debug, fix, and document issues for the Static Web Server (SWS) project — bug reports, root cause analysis, fix implementation, and regression prevention

    2.4k GitHub stars~1.5k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from streamband/hydra-srt

  • Elixir

    streamband/hydra-srt

    A skill your agent uses for Elixir/Phoenix development in this repo: implementing features, refactors, debugging, tests, Ecto changes, and production-safe fixes.

    146 GitHub stars~804 tokensUpdated 21 days ago
    Auto-check passed
  • Hydra Dev

    streamband/hydra-srt

    Run HydraSRT development workflows: mix q quality gate, Elixir unit/E2E tests, native Rust tests, web Vitest/Playwright, and make dev.

    146 GitHub stars~995 tokensUpdated 21 days ago
    Auto-check passed
  • Frontend

    streamband/hydra-srt

    A skill your agent uses for frontend work in webapp (React/TypeScript, UI implementation, tests, and refactors).

    146 GitHub stars~582 tokensUpdated 21 days ago
    Auto-check passed
  • Gstreamer

    streamband/hydra-srt

    A skill your agent uses for GStreamer pipeline development and debugging: graph design, caps negotiation issues, latency, synchronization, and runtime diagnostics.

    146 GitHub stars~499 tokensUpdated 21 days ago
    Auto-check passed
  • Hydra Architect

    streamband/hydra-srt

    A skill your agent uses when designing or evolving Hydra platform architecture across Elixir/Phoenix, SQLite, VictoriaMetrics/VictoriaLogs analytics, native/Rust, and runtime boundaries.

    146 GitHub stars~1.2k tokensUpdated 21 days ago
    Auto-check passed
  • Hydra MCP

    streamband/hydra-srt

    Query the running HydraSRT instance via MCP (routes, logs, stats, control).

    146 GitHub stars~789 tokensUpdated 21 days ago
    Auto-check passed

Works with

Categories

Questions about Rust

What does Rust do?

A skill your agent uses for Rust development in this repo: design, implementation, debugging, performance work, and reliable testing. Rust is an agent skill from streamband/hydra-srt. Use this skill for Rust development in this repo: design, implementation, debugging, performance work, and reliable testing.

When should I use Rust?

Rust fits situations like: rust development in this repo: design; performance work; reliable testing.

How do I install Rust in Claude Code?

Run `npx skills add streamband/hydra-srt --skill rust -a claude-code`. Or copy the skill folder (.agents/skills/rust in streamband/hydra-srt) 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 streamband/hydra-srt --skill rust -a codex`. Or copy the skill folder (.agents/skills/rust in streamband/hydra-srt) 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 streamband/hydra-srt --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 (cargo).

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 Apache-2.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 459 tokens (SKILL.md is roughly 1.8k 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: OpenLogi macOS Permissions Triage (AprilNEA/OpenLogi, 23k stars), Debug Tui (trasta298/keifu, 811 stars), Cpp (crazyguitar/cppcheatsheet, 290 stars) and Codex TUI Testing (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rust?

streamband (a GitHub organization) maintains it in streamband/hydra-srt, which has 146 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on September 16, 2026.

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