rust-dev-skills
AGENTS.md0 starsChanged 3 days agoMITView on GitHub
Guidance for Codex CLI and other coding agents that use or work on this repository. The skills live in skills/<name>/SKILL.md and follow the Agent Skills format. Codex discovers them when they are copied to ~/.agents/skills/ or .agents/skills/ (see README "Install"). If you are reading this file inside the repository instead: 2. Read that SKILL.md completely and follow its Workflow section in order. 3. Paths such as scripts/x.py, references/y.md and assets/z.toml are relative to the skill folder. ${CLAUDE_SKILL_DIR} in the text…
- Installs packages
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,196 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository9 other files it gives its agents.
- rust-async-reviewSkill
- rust-borrow-checkerSkill
- rust-crates-publishSkill
- rust-dependency-auditSkill
- rust-error-handlingSkill
- rust-lint-ciSkill
- rust-testing-benchesSkill
- rust-unsafe-reviewSkill
- rust-workspace-setupSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 1 is common, 0 are distinctive, and 6 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Read that SKILL.md completely and follow its Workflow section in order.
- Very specific: line 28
Read files in references/ only when a workflow step points to them.
- Very specific: line 33
Ask before running anything that changes state outside the working tree: cargo publish, cargo yank, git push/tags, cargo install, rustup …
- Common: line 35
Never ask for, print or store tokens (crates.io, private registries, CI secrets).
- Very specific: line 39
Do not "fix" borrow-checker errors with unsafe.
- Very specific: line 56
Every script needs tests in tests/test_<skill_with_underscores>.py with fixtures in tests/fixtures/<skill>/ (small Rust crates, Cargo …
- Very specific: line 59
Keep each SKILL.md under 400 lines.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Guidance for Codex CLI and other coding agents that use or work on this repository.
Using the skills
The skills live in skills/<name>/SKILL.md and follow the Agent Skills format. Codex
discovers them when they are copied to ~/.agents/skills/ or .agents/skills/ (see
README "Install"). If you are reading this file inside the repository instead:
Pick the skill whose
descriptionmatches the user's request:Request is about Skill Cargo workspaces, members, resolver, [workspace.dependencies], xtaskrust-workspace-setuprustfmt, clippy, lint levels, GitHub Actions CI for Rust rust-lint-cithiserror vs anyhow, error types, removing unwraps rust-error-handlingborrow/lifetime errors (E0382, E0502, E0597, ...), triaging cargo output rust-borrow-checkerreviewing unsafe, FFI, Miri,Send/Syncimplsrust-unsafe-reviewtokio/async review, blocking calls, locks across .await, shutdownrust-async-reviewunit/integration/doc/property tests, coverage, criterion benches rust-testing-benchesdependency audit, advisories, licenses, duplicates, cargo-deny rust-dependency-auditreleasing to crates.io, SemVer, changelog, tags rust-crates-publish- Read that
SKILL.mdcompletely and follow its Workflow section in order. - Paths such as
scripts/x.py,references/y.mdandassets/z.tomlare relative to the skill folder.${CLAUDE_SKILL_DIR}in the text means that folder; Codex does not expand it. - Read files in
references/only when a workflow step points to them.
Safety rules (apply to every skill)
- The scripts are read-only, offline and never run cargo or code from the project.
- Ask before running anything that changes state outside the working tree:
cargo publish,cargo yank,git push/tags,cargo install,rustuptoolchain installs. - Never ask for, print or store tokens (crates.io, private registries, CI secrets). For publishing, let the user or CI (trusted publishing) do it.
- Show diffs before changing
Cargo.toml, CI workflows or public APIs, and call out breaking changes (they need a major, or for 0.x a minor, version bump). - Do not "fix" borrow-checker errors with
unsafe.
Working on this repository
python3 -m venv .venv && . .venv/bin/activate # Python 3.11+
pip install -r requirements-dev.txt
python tools/validate_skills.py # frontmatter, sections, links, YAML-safe descriptions, marketplace listing
ruff check . && ruff format --check .
pytest- Scripts: Python 3.11+ standard library only (
tomllibfor Cargo files),#!/usr/bin/env python3,argparsewith--help,--jsonwhere output is structured, exit 0/1/2 (ok / findings / error). - Scripts must stay standalone (one file each, no shared module) so a single skill folder
can be copied on its own. The small Rust lexer (
mask_rust) is duplicated on purpose. - Every script needs tests in
tests/test_<skill_with_underscores>.pywith fixtures intests/fixtures/<skill>/(small Rust crates, Cargo files, cargo JSON output). Cargo is not needed to run the tests. - Keep each
SKILL.mdunder 400 lines; move detail toreferences/. - Descriptions must not contain
": "or" #"(the validator rejects them). - A new skill must be added to
.claude-plugin/marketplace.json(plugins[0].skills), the README table, the table above, the bug report dropdown andCHANGELOG.md. The validator enforces the manifest.
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.

