rust-testing
Skill13 starsChanged 3 months agoApache-2.0View on GitHub
How to write Skill Doctor tests — unit, integration, CLI, fixtures, determinism, additive-only. Use when adding tests, fixtures, snapshots, or changing cargo test layout.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- templetongroup/radianttheir own version, first seen Sep 17, 2026
- MortuisVMain/ai-agent-superpowerstheir own version, first seen Sep 15, 2026
- idexal/idexal-skillstheir own version, first seen Aug 26, 2026
- rewrite-rs/skillstheir own version, first seen Aug 16, 2026
- SamuelNDCE/claude-super-skill-librarytheir own version, first seen Aug 1, 2026
- JunMystery/Agent-Guidance-Pythontheir own version, first seen Jul 21, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- loulanyue/awesome-claude-notes★ 272same name
- tpavanipradeep/everything-claude-code★ 134same name
- templetongroup/radiant★ 113same name
- Jamkris/everything-gemini-code★ 87same name
- huiali/rust-skills★ 47same name
- idexal/idexal-skills★ 13same name
- rewrite-rs/skills★ 5same name
- JunMystery/Agent-Guidance-Python★ 2same name
- SamuelNDCE/claude-super-skill-library★ 1same name
- MortuisVMain/ai-agent-superpowers★ 0same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- paper-writingSkill
- research-surveySkill
- brainstormingSkill
- ci-cdSkill
- cli-sarifSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- neutralize-sd11Skill
- project-contextSkill
- receiving-code-reviewSkill
- release-publishSkill
- requesting-code-reviewSkill
- review-botsSkill
- rust-best-practicesSkill
- rust-idiomsSkill
- rust-invariantsSkill
- rust-perfSkill
- rust-skillsSkill
- rust-workspaceSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- unsafe-sandboxSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- writing-plansSkill
- writing-skillsSkill
- yara-rulesSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Malformed skill: does not panic.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Testing
Canonical policy: TESTING.md. Do not invent a second harness.
Placement
| Kind | Where |
| Unit | #[cfg(test)] next to the code |
| Integration | crates/<name>/tests/ |
| CLI / exit codes | tests/cli/ against the compiled binary |
| Fixtures | tests/fixtures/{benign,attack,hard_negative,evasion}/ |
| Real malware | tests/fixtures/real_malware/, #[ignore], REAL_MALWARE=1 |
Detector PR checklist (all four)
- Engine or YARA rule
- Positive fixture (must fire)
- Hard-negative (must not fire)
- Test asserting both
Always-on property tests
- Determinism: two scans, equal SHA-256 of JSON.
- Additive-only: L1 CRITICAL + L2 "benign" → CRITICAL remains.
- Offline:
--offlinemakes zero network syscalls (at least: noreqwestconstructed). - Malformed skill: does not panic.
Forbidden
- Network in unit tests.
thread::sleepfor sandbox.- Snapshots with timestamps or absolute paths.
- Live secrets. Use canaries like
AKIA_TEST_CANARY. - Speed assertions in the every-commit suite (see
rust-perf).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

