skills
CLAUDE.md5 starsChanged 4 months agoBSD-3-ClauseView on GitHub
Rules for any session that authors, edits, or reviews a skill in this repo. Read .agents/invocation.md, .agents/install-block.md, and .agents/writing-docs.md before touching skill content — this file points at them rather than repeating them. skills/rust/ (language craft), skills/porting/ (migration), skills/workflow/ (review, testing, setup, router), and skills/misc/ (occasional setup and audit skills, reached for less often) are promoted. skills/in-progress/ (public, unshipped) is not promoted. Every promoted skill must appear in all three of: A non-promoted skill appears in none of the three.…
In this repository28 other files it gives its agents.
- rust-ffiSkill
- rust-macrosSkill
- rust-serdeSkill
- rust-supply-chainSkill
- setup-rust-ciSkill
- setup-rust-pre-commitSkill
- port-from-cppSkill
- port-from-cSkill
- port-from-goSkill
- port-from-javaSkill
- port-from-pythonSkill
- port-from-typescriptSkill
- port-to-rustSkill
- async-rustSkill
- idiomatic-rustSkill
- ownership-not-cloneSkill
- rust-api-designSkill
- rust-concurrencySkill
- rust-docsSkill
- rust-errorsSkill
- rust-observabilitySkill
- rust-performanceSkill
- type-driven-designSkill
- unsafe-rustSkill
- rust-code-reviewSkill
- rust-skills-mapSkill
- rust-testingSkill
- setup-rust-skillsSkill
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Every promoted skill must appear in all three of:
- Very specific: line 41
Never author or revise two port-from-* language skills in the same session.
- Distinctive: line 76
Run these before considering skill work done:
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
CLAUDE.md
Rules for any session that authors, edits, or reviews a skill in this repo. Read
.agents/invocation.md, .agents/install-block.md, and .agents/writing-docs.md
before touching skill content — this file points at them rather than repeating them.
1. Buckets
skills/rust/ (language craft), skills/porting/ (migration),
skills/workflow/ (review, testing, setup, router), and skills/misc/
(occasional setup and audit skills, reached for less often) are promoted.
skills/in-progress/ (public, unshipped) is not promoted.
Every promoted skill must appear in all three of:
README.md.claude-plugin/plugin.json'sskillsarraydocs/<bucket>/<name>.md
A non-promoted skill appears in none of the three. The split that decides which bucket a skill lives in is frequency of use — how often an agent reaches for it — not whether the skill happens to write files into a user's repo.
2. Prose-dominant with verification
Skills teach judgment in prose. Commands inside a skill are inline instructions the
agent runs itself, never shipped runner scripts the skill invokes on the user's
behalf. Every skill where a machine can settle the question it makes ends with a
verification step the agent actually runs — see
.agents/adr/0001-verification-steps-run-cargo.md.
3. Config precedence
A verification step runs at the lint level configured in the target repo.
cargo clippy -- -D warnings is the fallback only when the target repo has no lint
configuration at all. A skill must never override a lint level the user (or an
earlier setup-rust-skills run) deliberately set.
4. One porting language per session
Never author or revise two port-from-* language skills in the same session. See
.agents/adr/0003-one-skill-per-source-language.md for why the set is split by
source language in the first place.
5. No citations in skill files
Sources live in .agents/sources.md, not inside any SKILL.md or docs page.
6. Invocation
See .agents/invocation.md for the full rules on user-invoked versus model-invoked
skills, and for what agrees between the frontmatter flag in Claude Code and the
agents/openai.yaml policy in Codex.
Any skill that writes files into the user's repo is user-invoked, in any
bucket; rust-skills-map is user-invoked without writing files, because it is
a router the user consults directly. The user-invoked skills are therefore
setup-rust-skills and rust-skills-map in workflow/, and
setup-rust-ci and setup-rust-pre-commit in misc/. Every other skill is
model-invoked.
7. Router upkeep
Whenever a user-reachable skill is added, renamed, removed, or changes how it fits
the flows, re-read rust-skills-map's SKILL.md and update it in the same change.
A router that omits a new skill or routes to a dead one is a router that lies.
8. Docs pages
See .agents/writing-docs.md for the page template. Trigger: adding, renaming, or
behaviour-changing a promoted skill means its docs/<bucket>/<name>.md page is
created or re-synced in the same change. A rename moves the file — it does not leave
the old page behind and add a new one.
9. Checks
Run these before considering skill work done:
npm run check— runs the test harness, the index checker (check-skills.mjs), the plugin-version check (sync-plugin-version.mjs --check), and the example compile gate (check-examples.mjs).claude plugin validate . --strict— after touching.claude-plugin/plugin.jsonor.claude-plugin/marketplace.json.scripts/link-skills.sh— symlinks skills into the local harness for manual testing.
10. Code examples
A complete, self-contained Rust example is fenced ```rust. A deliberate fragment —
a snippet using symbols defined elsewhere, a signature with no body, illustrative
pseudocode — is fenced ```rust,ignore. Untagged means "this compiles", so an
untagged block that does not compile is a bug. See .agents/code-examples.md.
Skills authored from now on are written to this convention. npm run check
compiles every untagged block; an untagged block that does not compile fails the
check.
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.

