Rust Best Practices
farm-fe/farm
Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.
Structures Lean 4 proofs and library design along Mathlib conventions, from stating theorems to refactoring long tactic proofs and fixing slow or timing-out ones.
$ npx skills add trailofbits/skills --skill writing-lean-proofs -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install trailofbits/skills writing-lean-proofs --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/trailofbits/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/writing-lean-proofs/skills/writing-lean-proofs .claude/skills/writing-lean-proofs && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "writing-lean-proofs" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/writing-lean-proofs/skills/writing-lean-proofs into .claude/skills/writing-lean-proofs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-lean-proofs", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/trailofbits/skills/tree/main/plugins/writing-lean-proofs/skills/writing-lean-proofsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add trailofbits/skills --skill writing-lean-proofs -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install trailofbits/skills writing-lean-proofs --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/trailofbits/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/writing-lean-proofs/skills/writing-lean-proofs .agents/skills/writing-lean-proofs && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "writing-lean-proofs" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/writing-lean-proofs/skills/writing-lean-proofs into .agents/skills/writing-lean-proofs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-lean-proofs", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add trailofbits/skills --skill writing-lean-proofs -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install trailofbits/skills writing-lean-proofs --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/trailofbits/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/writing-lean-proofs/skills/writing-lean-proofs .cursor/skills/writing-lean-proofs && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "writing-lean-proofs" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/writing-lean-proofs/skills/writing-lean-proofs into .cursor/skills/writing-lean-proofs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-lean-proofs", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/trailofbits/skills.git --path plugins/writing-lean-proofs/skills/writing-lean-proofs--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add trailofbits/skills --skill writing-lean-proofs -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install trailofbits/skills writing-lean-proofs --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/trailofbits/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/writing-lean-proofs/skills/writing-lean-proofs .gemini/skills/writing-lean-proofs && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "writing-lean-proofs" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/writing-lean-proofs/skills/writing-lean-proofs into .gemini/skills/writing-lean-proofs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-lean-proofs", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install trailofbits/skills writing-lean-proofsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add trailofbits/skills --skill writing-lean-proofs -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/trailofbits/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/writing-lean-proofs/skills/writing-lean-proofs .github/skills/writing-lean-proofs && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "writing-lean-proofs" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/writing-lean-proofs/skills/writing-lean-proofs into .github/skills/writing-lean-proofs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-lean-proofs", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add trailofbits/skills --skill writing-lean-proofs -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install trailofbits/skills writing-lean-proofs --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/trailofbits/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/writing-lean-proofs/skills/writing-lean-proofs .opencode/skills/writing-lean-proofs && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "writing-lean-proofs" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/writing-lean-proofs/skills/writing-lean-proofs into .opencode/skills/writing-lean-proofs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-lean-proofs", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
writing-lean-proofsStructures Lean 4 proofs and library design along Mathlib conventions, from stating theorems to refactoring long tactic proofs and fixing slow or timing-out ones.
This skill is built on Mathlib's style and review conventions and on the methods of large formalization projects. Its core principle is to design top-down and prove bottom-up: statements and definitions are the stable interface and proofs can be swapped freely, so design effort goes into definitions and statements first, and proofs are filled in against skeletons that already compile apart from sorry placeholders.
It covers proving theorems, formalizing mathematics or specifications, defining new types in a library, reviewing proofs for readability, splitting long tactic proofs into lemmas, setting up CI and linters, diagnosing slow proofs and maxHeartbeats timeouts, and writing custom tactics, macros or linters. Reference files cover anti-patterns, library design, linting, naming conventions, performance, proof style, tactics and LLM techniques. It is not aimed at Lean 4 as a general programming language, Lean 3, Coq, Isabelle or Agda.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 82fe822. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are lean).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Writing Lean Proofs loads about 4k tokens when it runs, and up to ~23k if it reads all its reference files. Until then it costs about 140 tokens; SKILL.md has 1,912 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from trailofbits/skills at commit 82fe822, republished under its CC-BY-SA-4.0 licence (© trailofbits). 1,912 words, ~3,978 tokens.
.claude/skills/writing-lean-proofs/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.Structured Lean 4 proof writing and library design, distilled from Mathlib's style and review conventions and from the methodology of large formalization projects (Liquid Tensor Experiment, PFR, Fermat's Last Theorem).
Core principle: design top-down, prove bottom-up. Lean propositions are
proof-irrelevant — only a theorem's statement can affect later declarations.
Statements are the stable interface; proofs are disposable and freely
replaceable. Put design effort into definitions and statements, then fill in
proofs against skeletons that already compile (modulo sorry).
maxHeartbeats timeouts, or expensive reductionge_or_gt linting, discrete_field) are obsoleteDefinitions carry the design weight. Before proving anything about a new concept:
Option in
signatures (Mathlib: (0 : ℝ)⁻¹ = 0). Side conditions then appear only on
the lemmas that need them, not at every use site.FunLike instance;
new subobject kinds use SetLike; carry property proofs as structure
fields, not separate IsHom-style predicates.ext, @[simp],
coercion, and injectivity lemmas — before the definition is used anywhere.
Downstream proofs use the API, never unfold/show ... from rfl.See library-design.md for the full set of design rules with rationale.
State everything before proving anything, at every scale:
:= sorry, and make the file compile. Each sorry is now an
independent work unit — a contributor (human or LLM) can discharge one
without understanding the rest. This is how LTE, PFR, and FLT scale to
dozens of parallel contributors.have/suffices/calc
skeleton with sorry justifications, get Lean to accept the structure,
then fill each step. Keeping the structure intact is what produces useful
error messages while you work.example (a b c d : ℝ) (h : c = d * a + b) (h' : b = a * d) : c = 2 * a * d := by
calc
c = d * a + b := sorry
_ = d * a + a * d := sorry
_ = 2 * a * d := sorry· with an indented block — never
leave several goals active in unfocused sequence (Mathlib's multiGoal
linter enforces this). This is what kills fragile goal-ordering dependence.show stating its goal. The proof works
without it; reviewers and future editors need it. If show would change
the goal, use change instead — keep stated goals honest.calc blocks, relations aligned
vertically.have for forward stepping stones ("we first establish X"); suffices
for backward reduction ("it suffices to show X").trace_state at the point of interest or a deliberate done where goals
should be closed, then run lake env lean Path/To/File.lean; copy the
reported hypotheses, case name, and target. Strip routine probes after the
proof works. This is the single most effective technique for LLM-written
proofs (see llm-techniques.md).See proof-style.md for the full tactic-style rules, and naming-conventions.md for naming lemmas so their names are guessable from their statements.
Do not eyeball-check style — run the checkers. lake build is the floor,
and it is only the floor: sorry is a warning, so a green build exits 0
with sorries still present.
#print axioms myTheorem for a spot check; for CI, collect axioms per
declaration with Lean.collectAxioms and assert the whole expected
footprint ([propext, Classical.choice, Quot.sound] unless deliberately
widened), so a stray sorry or a new trust assumption like
native_decide fails loudly. Grep is wrong in both directions: it matches
the word in comments, and it misses a theorem whose own text is clean but
which applies an unproved helper. Working script in
linting.md.linter.mathlibStandardSet wholesale in a downstream project: it
combines proof-maintenance checks with public-API checks, house style, and
Mathlib-specific repository policy. For a self-contained proof, start with
linter.auxLemma, linter.style.maxHeartbeats,
linter.style.multiGoal, linter.style.setOption, and
linter.style.show. A reusable library should additionally enable
linter.flexible, linter.style.missingEnd,
linter.style.openClassical, and the two unused*InType checks. Treat
nativeDecide as a trust-policy choice and formatting or deprecated-syntax
checks as project style. No warning gates anything unless warnings fail
the build. Run Batteries' declaration-level #lint checks, including
simpNF, separately. Verify every option against the pinned Mathlib source
and with a known-trigger fixture: a misspelled weak. option is
intentionally ignored. The complete 26-member audit and lakefile profiles
are in linting.md.@[env_linter] is one structure, and it is the only
thing that reliably catches "the attribute is missing on 29 of 30
declarations". See linting.md for the recipe and
the engineering rules (vacuity anchors, prove-it-can-fail, allowlists).When does proof structure graduate into separate lemmas?
Before extracting, state the fragment's type and search by shape. Put
the proposed statement in a scratch example, run exact? and apply?
on the bare goal, then try a type-pattern and source search. If an existing
theorem fits, use it. Do not report an API gap without recording the
searches that failed.
A sub-argument repeats within one proof → name it as a local have.
theorem min_comm (a b : ℝ) : min a b = min b a := by
have h : ∀ x y : ℝ, min x y ≤ min y x := by
intro x y
apply le_min
· show min x y ≤ y
exact min_le_right x y
· show min x y ≤ x
exact min_le_left x y
apply le_antisymm
· show min a b ≤ min b a
exact h a b
· show min b a ≤ min a b
exact h b aThe statement is independently interesting, or extraction sheds hypotheses the sub-argument does not need → standalone lemma. Dropping unneeded hypotheses is the stronger trigger: the extracted lemma becomes more general than the proof it came from.
The proof reads as "long and unwieldy" → split it. This is Mathlib's review criterion, and it is deliberately qualitative — there is no line threshold. Resolve doubt by attempting the extraction: if a fragment has a clean statement, it wanted to be a lemma.
| Rule | Why | Enforced by |
|---|---|---|
Never unfold definitions downstream; erw or trailing rfl = missing API | API lemmas are the abstraction boundary | review ("missing API" smell) |
Terminal simp stays unsqueezed; non-terminal simp becomes simp only [...] | squeezed terminal calls bury the key lemmas and break on renames | style guide |
One focused goal at a time (· blocks) | kills goal-ordering fragility | linter.style.multiGoal |
show must not change the goal (use change) | stated goals stay honest | linter.style.show |
No set_option debug/trace/profiler or unscoped maxHeartbeats in final code | debugging scaffolding | linter.style.setOption |
State lemmas in simp-normal form, < not > | simp matches syntactically | simpNF linter |
| Golf only when the result is at least as readable; trivial results exempt | short ≠ better | review |
Fact instances are local, never global | global instances degrade all typeclass search | review |
| Name lemmas from their statements (see naming reference) | names become guessable without search | linter.style.nameCheck catches only __; #lint defsWithUnderscore and review cover more |
| Search a bare goal by shape before writing a helper or claiming an API gap | names are not always guessable from the target | exact?, apply?, type/source search |
| Generally one tactic invocation per line; a one-line closing proof is the exception | preserves readable proof structure without inventing an absolute rule | style guide |
Gate sorry with collectAxioms/#print axioms, never grep | grep matches comments, misses unproved helpers | axiom audit in CI |
| Prefer simp-lemma LHSs keyed on structure, not numerals; one spelling per constant | 2 ^ 32 never matches a goal normalized to 4294967296 | simpNF, review |
Re-derive every simp only list with simp? at its own site | lists do not transfer between look-alike goals | linter.flexible |
Every maxHeartbeats override is an unproven claim — measure before believing | copy-pasted budgets carry no information | #count_heartbeats, bisection |
Conditional simp lemma fires shallow but not deep → raise maxDischargeDepth (default 2) | chained side conditions truncate silently, no diagnostic | diagnosis (proof-style, simp discipline) |
| Every project-specific convention gets a custom linter, in CI from day one | review misses the 29-of-30 failure mode | @[env_linter] + #lint |
Full rationale for each row, plus the library-level anti-patterns, in anti-patterns.md.
| Excuse | Reality |
|---|---|
| "The proof compiles, ship it" | Compiling is the floor. A monolithic tactic block that only Lean can read will break silently at the next Mathlib bump and no one will be able to repair it. |
| "Unfolding the definition is simpler than writing API lemmas" | Every downstream unfold couples a proof to the implementation. The first refactor breaks all of them at once. Write the missing lemma. |
| "Squeezing every simp makes the proof faster and more robust" | Backwards for terminal simp calls: the squeezed list breaks on every rename and drowns the signal. Squeeze non-terminal calls only. |
| "It's shorter, therefore better" | Mathlib review policy: golfing is fine only when it does not sacrifice readability. Length is not the target; legibility is. |
| "I'll restructure it into lemmas after it works" | After it works, the structure is load-bearing and tangled. State the skeleton first; the lemmas fall out for free. |
"Adding show lines is redundant noise" | They are redundant to the kernel and essential to every human or model that reads the proof next. |
| "This helper is too specific to be a lemma" | If it has a clean statement, extract it — dropping the hypotheses it doesn't need usually reveals it was general all along. |
| "We'll add linters once the library stabilizes" | Backwards: patterns propagate by copy-paste, so a deferred linter meets a 400-warning backlog instead of one bad line. Enable what is already clean and gate it now. |
| "The check passed, so we're clean" | A check that can't fail proves nothing — sweeps reach zero files, misspelled weak. options are ignored, pipelines swallow exit codes. Prove every gate can fail before trusting that it passes. |
| "The proof is slow, raise maxHeartbeats" | An unmeasured budget is a claim, not a fix — and it masks the regression the next reader needs to see. Measure with #count_heartbeats; restructure the definition or decompose the goal. |
© trailofbits, CC-BY-SA-4.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 8 other files (references) in plugins/writing-lean-proofs/skills/writing-lean-proofs of trailofbits/skills.
Open the folder on GitHubat commit 82fe822
Writing Lean Proofs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Writing Lean Proofs this skilltrailofbits/skills | 7.4k | — | ~4k | Automated safety check: Pass | CC-BY-SA-4.0 | |
| Rust Best Practicesfarm-fe/farm | 5.6k | 3 repos | ~1.1k | Automated safety check: Pass | MIT | |
| File Good First BugBrowserWorks/waterfox-android | 376 | 1 repos | ~2k | Automated safety check: Pass | Custom licence | |
| Unslop CodeJCarterJohnson/vibecoded-design-tells | 508 | — | ~2.5k | Automated safety check: Pass | Custom licence | |
| Code Quality Gatefengshao1227/ccg-workflow | 5.9k | — | ~593 | Automated safety check: Notes | MIT | |
| Rust Hygiene Audittsz-org/tsz | 572 | — | ~1.5k | Automated safety check: Pass | Apache-2.0 |
farm-fe/farm
Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.
BrowserWorks/waterfox-android
A skill your agent uses when the user wants to file good-first-bugs in Bugzilla for Firefox.
JCarterJohnson/vibecoded-design-tells
Strips the tells that make source code read as AI-generated and forces code that fits the project instead of the model's default average.
fengshao1227/ccg-workflow
Scans code for complexity, long functions, duplicated blocks, naming problems and code smells with a Node script, then reports and suggests refactors.
tsz-org/tsz
Run a deep DRY + code-hygiene audit of the Rust workspace and turn the findings into verified, deduplicated, hierarchical GitHub tech-debt issues.
blokadaorg/blokada
A skill your agent uses to validate risky dependency bumps end to end as a local or cloud-launched agent.
trailofbits/skills
Scans a codebase for vulnerabilities with CodeQL's data flow and taint tracking in run-all or important-only modes, including data extensions for project-specific sources and sinks.
trailofbits/skills
Generates Mermaid diagrams from Trailmark code graphs, including call graphs, class hierarchies, module dependency maps, complexity heatmaps and attack surface data flows.
trailofbits/skills
Compares Trailmark code graphs at two snapshots, such as commits, tags or directories, to surface attack paths, blast radius and taint changes that text diffs miss.
trailofbits/skills
Draws a 12 Houses tarot spread to break ties when a request is vague or casually delegated, then reads the cards to pick the next step.
trailofbits/skills
Detects languages, proposes rulesets for approval, then runs the approved Semgrep scan across a codebase and merges the output into one SARIF file.
trailofbits/skills
Searches and extracts data from Burp Suite project files on the command line: regex searches over responses, audit findings, proxy history and site map data.
Categories
Structures Lean 4 proofs and library design along Mathlib conventions, from stating theorems to refactoring long tactic proofs and fixing slow or timing-out ones. This skill is built on Mathlib's style and review conventions and on the methods of large formalization projects. Its core principle is to design top-down and prove bottom-up: statements and definitions are the stable interface and proofs can be swapped freely, so design effort goes into definitions and statements first, and proofs are filled in against skeletons that already compile apart from sorry placeholders.
Writing Lean Proofs fits situations like: proving a theorem in Lean 4 with a clean top-down structure; refactoring a long, fragile tactic proof into lemmas; diagnosing slow proofs or maxHeartbeats timeouts; setting up CI and linters for a Lean formalization project.
Run `npx skills add trailofbits/skills --skill writing-lean-proofs -a claude-code`. Or copy the skill folder (plugins/writing-lean-proofs/skills/writing-lean-proofs in trailofbits/skills) into .claude/skills/writing-lean-proofs in your project. Claude Code loads it when a task matches its description.
Run `npx skills add trailofbits/skills --skill writing-lean-proofs -a codex`. Or copy the skill folder (plugins/writing-lean-proofs/skills/writing-lean-proofs in trailofbits/skills) into .agents/skills/writing-lean-proofs in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add trailofbits/skills --skill writing-lean-proofs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/writing-lean-proofs, .gemini/skills/writing-lean-proofs, .github/skills/writing-lean-proofs and .opencode/skills/writing-lean-proofs in your project.
SKILL.md names no scripts, command-line tools or credentials: Writing Lean Proofs is instructions for the agent only. Our summary lists: A Lean 4 project.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Writing Lean Proofs is published under the CC-BY-SA-4.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 19k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Writing Lean Proofs: Rust Best Practices (farm-fe/farm, 5.6k stars), File Good First Bug (BrowserWorks/waterfox-android, 376 stars), Unslop Code (JCarterJohnson/vibecoded-design-tells, 508 stars) and Code Quality Gate (fengshao1227/ccg-workflow, 5.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
trailofbits (a GitHub organization, an official publisher) maintains it in trailofbits/skills, which has 7,400 GitHub stars. The repository holds 79 skills in this directory. The repository was last updated on October 2, 2026.
Source: trailofbits/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.