bifrost: Skill for Claude Code

.agents/skills/rust-project-validate/SKILL.md

rust-project-validate is a skill for Claude Code, Codex from bifrost-proxy/bifrost. It costs 46 tokens per session (848 once invoked), scanned A, original, MIT.

A validation routine for Rust projects that checks formatting, static warnings, builds, and tests, including end-to-end tests where needed.

In plain words
What is it for?
Use it at the end of Rust work to run the prescribed formatting, linting, build, and workspace test checks.
Why use it?
It catches code-quality and build problems before changes are submitted or reviewed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is bifrost-proxy/bifrost's own configuration. It tells Claude Code and Codex how to work on bifrost itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bifrost configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bifrost-proxy/bifrost. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/.agents/skills/rust-project-validate/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bifrost-proxy/bifrost

Made for: Claude Code, Codex.

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-project-validate

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bifrost-proxy/bifrost/rust-project-validate"><img src="https://agentmods.dev/badge/skills/bifrost-proxy/bifrost/rust-project-validate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 848 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00046 $0.00848
Opus 5.5 $0.00018 $0.00339
Sonnet 5.5 $0.00009 $0.00170
Haiku 4.5 $0.00005 $0.00085

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

Security

Grade A, and why

rust-project-validate 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.

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.

.agents/skills/rust-project-validate/SKILL.md · 65 lines

What it actually says

Rust 项目规范校验

必须:该技能在任务结束前执行一键规范校验,确保代码风格、静态检查、构建与测试均通过。 避免:还没进行 api和交互测试的情况下,就开始执行规范校验,因为这时候代码可能还不是最终版本,还不能确保通过所有测试用例。

何时调用

  • 每次开发任务结束前必须调用
  • 提交代码或发起评审前建议调用

执行内容

  1. 格式检查:
    • cargo fmt --all -- --check
    • cargo fmt --manifest-path desktop/src-tauri/Cargo.toml --all -- --check
  2. Lint 检查:cargo clippy --all-targets --all-features -- -D warnings
  3. 执行端到端用例,按本次任务的测试范围执行
  4. 运行测试:优先按修改范围执行 cargo test,避免无差别跑完整套耗时用例
  5. 完整构建:cargo build --all-targets --all-features(避免无差别构建,应该按改动范围构建)
  6. 工作区兜底测试:开发完成后必须至少执行一次 cargo test --workspace --all-features,避免提交后才在 CI 中暴露失败

如果任一步失败,立即停止并返回失败报告。

验证顺序补充

  • 对 UI / push / 管理端交互问题,必须先做 E2E 或 API 交叉验证,再进入 fmt/clippy/build
  • 在跑 clippy/build/test 前,先确认没有遗留的 cargo、rustc、旧 bifrost 进程,避免互相抢锁造成假卡死
  • 如果前面为了调试开过多轮 cargo test 或 cargo clippy,进入本技能前先清理残留任务,再顺序执行校验

输出

  • 结构化报告,按步骤给出状态(通过/失败)与关键信息
  • 当 fmt --check 失败时提示可使用以下命令自动修复:
    • cargo fmt --all
    • cargo fmt --manifest-path desktop/src-tauri/Cargo.toml --all
  • 当 cargo test --workspace --all-features 失败时,必须在报告里明确指出这是 CI 风险,不能默默跳过

前置条件

  • 项目为 Rust 工作空间,已正确安装 Rust toolchain 与 cargo
  • 在仓库根目录执行

示例

运行本技能将顺序执行:

cargo fmt --all -- --check # 检查工作区 Rust 代码格式
cargo fmt --manifest-path desktop/src-tauri/Cargo.toml --all -- --check # 检查 desktop Tauri Rust 代码格式
cargo clippy --all-targets --all-features -- -D warnings # 检查代码是否符合 Rust 编码规范
cargo test -p bifrost-e2e -- --list # 先确认本次需要覆盖的 E2E 范围
cargo test -p <changed-crate> --all-features # 按修改范围执行测试
cargo build --all-targets --all-features # 最终构建项目

注意

  • 与项目规则一致:参考 ../../rules/project_rules.md
  • 若改动涉及 desktop/src-tauri,必须确保本地执行过独立 fmt 检查,不能只依赖工作区根 cargo fmt --all -- --check
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 · 65 lines · 46 tokens per session scan A 248dcf2e6f6a

Subscribe to this mod's changes

rust-project-validate is a skill published in the GitHub repository bifrost-proxy/bifrost (165 stars, last pushed 2d ago), licensed MIT. It adds 46 tokens to every session and 848 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-30.

Related

Other skills, from other repositories

omh-rust

This is an OMH rust workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 74 tokens

rust-sota-arsenal

Reference for state-of-the-art Rust tooling: ast-grep, cargo-semver-checks, samply, cargo-pgo, divan, Criterion, cargo-nextest, cargo-mutants. Use for Rust refactoring, profiling, benchmarking or testing.

terrylica/cc-skills · 58 tokens

migration-validator

Safety verification checklist for C-to-Rust migrations. Validates compilation, unsafe block minimization, memory safety, API compatibility, and idiomatic Rust patterns. Use when: validate migration, check Rust safety, verify converted code, migration QA.

JuanMarchetto/agent-skills · 51 tokens

rust-engineer

Writes, reviews, and debugs idiomatic Rust code with memory safety and zero-cost abstractions. Implements ownership patterns, manages lifetimes, designs trait hierarchies, builds async applications with tokio, and structures error handling with Result/Option. Use when building Rust applications, solving ownership or…

eric861129/SKILLS_All-in-one · 120 tokens

dev-browser

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website"…

MemTensor/MemOS · 84 tokens

omh-agent-evaluation

This is a Hermes-native agent-evaluation workflow skill.

rlaope/oh-my-hermes · 71 tokens