‹ 首页

rust-quality-gates

@axone-protocol · 收录于 昨天 · 上游提交 1 周前

Repository quality gates for Rust and generated artifacts. Use when validating changes locally or before committing Rust, schema, or documentation updates.

适合你,如果你使用 Rust 开发并希望在提交前自动检查代码质量。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add axone-protocol/contracts/rust-quality-gates
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- axone-protocol/contracts/rust-quality-gates
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify axone-protocol/contracts/rust-quality-gates
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
124GitHub stars
~213最小装载
~213含声明引用
~273文本包总量
索引托管

怎么用

商店整理自技能原文 · 版本 7a14fd6 · 表述以原文为准
它做什么

装上后,Claude 可以运行一个本地脚本,依次执行代码格式化、静态检查、测试、覆盖率、schema 和文档检查,并停在第一个失败项上。

什么时候触发

当你要求验证 Rust 代码质量,或准备提交修改时,Claude 会运行这个脚本。

装好后可以这样说
脚本会按顺序执行所有检查。
跳过其他步骤,节省时间。
技能原文 SKILL.md作者撰写 · BSD-3-Clause · 7a14fd6

Rust Quality Gates

Canonical Sequence

Run the full local gate sequence with:

./.agents/skills/rust-quality-gates/scripts/run-all.sh

By default the script runs:

format
lint
test
test-coverage
schema
docs
Running a Subset

Pass explicit task names to run only a subset:

./.agents/skills/rust-quality-gates/scripts/run-all.sh lint test schema
When to Run Which Gates
  • Run the full sequence before finalizing substantial Rust changes.
  • Always include schema and docs when message types, response types, doc comments, or metadata.json changed.
  • Use the script output as the source of truth. Stop at the first failing gate and fix that issue before continuing.
按 BSD-3-Clause 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。