Borrowing it
Nothing to install: this file belongs to shenjingnan/haimen. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/shenjingnan/haimen/main/.agents/skills/check/SKILL.mdgit clone --depth 1 https://github.com/shenjingnan/haimenWrote 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.
[](https://agentmods.dev/skills/shenjingnan/haimen/check)<a href="https://agentmods.dev/skills/shenjingnan/haimen/check"><img src="https://agentmods.dev/badge/skills/shenjingnan/haimen/check.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.00541 |
| Opus 5 | $0.00024 | $0.00270 |
| Sonnet 5 | $0.00010 | $0.00108 |
| Haiku 4.5 | $0.00005 | $0.00054 |
Grade A, and why
check 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 8d 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.
What it actually says
Check Command
运行完整的代码质量检查,包括格式化检查、Lint、测试和编译检查。
上下文获取
以下命令将在技能加载时自动执行,结果将注入到上下文中供分析:
- 全部检查结果: !
bash .agents/skills/check/scripts/run-checks.sh
你的任务
根据上方注入的检查结果,按以下步骤处理:
1. 分析结果
逐项检查每个命令的输出,判断哪些检查未通过。
2. 修复问题
按以下优先级依次处理:
- 格式化问题 — 运行
cargo fmt自动修复 - Lint 问题 — 分析
cargo clippy输出并修复代码中的问题 - 测试失败 — 分析
cargo test输出并修复失败的测试 - 编译错误 — 分析
cargo build输出并修复编译错误
3. 最终验证
修复完成后,重新运行完整检查确认全部通过:
cargo fmt --check && cargo clippy -- -D warnings && cargo test -- --test-threads=1 && cargo build
配置参考
| 工具 | 配置方式 | 用途 |
|---|---|---|
| Cargo fmt | rustfmt.toml |
代码格式化 |
| Clippy | clippy.toml / Cargo.toml |
Lint 检查 |
| Cargo test | Cargo.toml |
测试运行 |
| Cargo check | Cargo.toml |
编译检查 |
代码风格
- 缩进: 2 空格
- 行宽: 100 字符
- 由
cargo fmt强制执行
测试规范
- 测试文件:
src/*.rs中的#[cfg(test)] mod tests - 框架: Rust 内置
#[test]+assert_eq!/assert! - 运行:
cargo test(单线程:cargo test -- --test-threads=1)
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 8d ago First seen · 61 lines · 48 tokens per session scan A bcab57085e91
check is a skill published in the GitHub repository shenjingnan/haimen (7 stars, last pushed yesterday), licensed MIT. It adds 48 tokens to every session and 541 once invoked, about $0.0002 per session on Opus 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-31.
Other skills, from other repositories
edge-python
Write, run, test and package Edge Python programs with the edge CLI. Use when editing .py files in an Edge Python project or when the user asks for Edge Python code.
cargo-fuzz
Sets up and runs cargo-fuzz, the standard fuzzing tool for Cargo-based Rust projects. Covers cargo fuzz init, the nightly toolchain requirement, fuzztarget! harnesses, Arbitrary-derived structured inputs, sanitizer options, cargo fuzz coverage, and reproducing a crash artifact. Use when fuzzing a Rust crate, writing a…
rust-development
Idiomatisk Rust-utvikling med cargo, clippy, error handling, async/tokio, unsafe og testing.
cargo-fuzz
Use when initializing, running, measuring coverage, or triaging a cargo-fuzz target in a Rust crate. Not for remote, credential, publish, deploy, or irreversible changes.
presentations
Build PowerPoint (PPTX) decks — pptxgenjs when Node is present, python-pptx when not; edit existing decks in place via OOXML — with visual QA before delivery.
rust-testing-quality
Use when writing, organizing, or running Rust tests — unit, integration, doc-tests, proptest, criterion benchmarks, or cargo-mutants. Not for CI pipeline wiring (rust-tooling-cicd).