Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/jpablo/vibe-types/leannpx skills add jpablo/vibe-types --skill leangit clone --depth 1 https://github.com/jpablo/vibe-typesWhat 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 | $0.00115 | $0.03402 |
| Opus 5 | $0.00057 | $0.01701 |
| Sonnet 5 | $0.00023 | $0.00680 |
| Haiku 4.5 | $0.00012 | $0.00340 |
Grade A, and why
vibe-types:lean 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Lean 4 — Compile-Time Safety Techniques
Base path:
${CLAUDE_PLUGIN_ROOT}/skills/lean
Core tenets
Let the type checker carry as much of correctness as it can. The idea is to move guarantees out of runtime checks, tests, and discipline and into the types, so that holding a value is itself evidence that its invariants hold. Wherever you can, make a bad state impossible to express instead of checking for it later. Treat these as defaults to apply with judgment, not as absolute rules.
- Make illegal states unrepresentable. Model the data so that an invalid combination of values does not typecheck. →
usecases/UC01-invalid-states.md - Parse, don't validate. At the boundary, turn a check into a value of a refined type that proves the check ran, rather than returning a boolean and discarding what you learned. →
catalog/T26-refinement-types.md - Keep a functional core and an imperative shell. Put the decisions and computation in pure functions that take values and return values, and push the effects (input and output, network calls, database access, the clock, randomness) out to a thin outer layer that calls into that core. The core stays deterministic and easy to test and reason about, and the shell is the only part that talks to the outside world. →
usecases/UC11-effect-tracking.md - Upgrade information at the edges; never re-acquire it in the core. Every parse, check, or branch gains information. Capture it in a type at the boundary and pass it inward, so that the core relies on the evidence it already has instead of re-deriving it by checking or parsing again. This is the second half of parse-don't-validate, applied to every decision point and not just to input. →
catalog/T58-witness-evidence.md - Prefer a more precise type over a less precise one. A type is more precise when its inhabitants (the distinct values it can hold, so
Boolhas two and a three-case enum has three) match the values that are legal for the job, holding every value that should occur and as few as possible that should not. A practical rule: among the types that can represent every legal value, choose the one with the fewest inhabitants, since the extra inhabitants are exactly the values that should never occur and that you would otherwise have to check for. For a yes or no choice,Boolis more precise thanInt; a closed enum is more precise than aString;NonEmptyListis more precise thanList. A newtype covers a second case:UserIdandOrderIdmay have the same number of inhabitants as the integer underneath, but as distinct types they can no longer be passed in place of one another. The limiting case, a type with no illegal inhabitants at all, is just make illegal states unrepresentable. →catalog/T03-newtypes-opaque.md - Add precision where a wrong value would do real harm, and leave low-stakes values plain. A precise type costs some friction to introduce and use, so add it where that cost is worth it. Reach for one when a wrong value would pass unnoticed (nothing fails to signal it), when it would be expensive (money, access, lost data), when the value crosses a boundary (untrusted input, a public API, anything stored or sent), or when the same fact is relied on in many places or far from where it was first established. Leave a value plain when it is used once, locally, never branched on, and a wrong value would be obvious and harmless, such as a string you only display, a log message, or a one-off script. Before introducing a new type, ask which never-legal value it rules out and what it would cost if that value occurred; if it rules nothing out, keep the plain type.
- Prefer types over tests to capture invariants. If the compiler can enforce a property, do not write a test for it. Keep tests for the behavior that types cannot express.
- Make functions total, and let the compiler force every case. A total function is defined for every input its parameter types allow: no input makes it throw, hang, or return a meaningless result. There are two ways to get there. Widen the output, returning
OptionorResultso that "no answer" becomes a case the caller has to handle. Or narrow the input, for example taking aNonEmptyListso thatheadalways has an answer. When you match, cover every constructor and avoid a catch-all case unless the set of cases is genuinely open, so that adding a variant later becomes a compile error instead of a silent fall-through. For a branch that genuinely cannot occur, close it with a value of an empty type (the uninhabited type, writtenNothing,Never,!, orEmptydepending on the language), which has no inhabitants and so proves the branch unreachable, rather than throwing a "can't happen" error that a later change can turn into a real crash. Finally, prefer a definition that provably terminates over one you only expect to terminate. →catalog/T51-totality.md,catalog/T28-termination.md,catalog/T34-never-bottom.md - Make immutability the default, and mark mutation as the exception. A value that cannot change after it is constructed cannot quietly become invalid behind the check that vouched for it. Require an explicit, visible marker to opt into mutation or shared aliasing, so that the type records which values are allowed to change. →
catalog/T32-immutability-markers.md - Use state machines when appropriate. When an object has a lifecycle or a protocol, encode its states as types so that an invalid transition does not compile. These are the invariants that hold across time, between calls, rather than inside a single value. →
usecases/UC13-state-machines.md - Pass authority as a typed value instead of reaching for ambient power. The right to do something powerful or effectful is itself a value, and a function should receive it as an argument rather than reach for it on its own. Treat as authority the ability to use the filesystem, make a network call, read the clock or a source of randomness, read an environment variable or a secret, start a subprocess, or move money. A function that needs one of these should take it as a parameter (a
Clock, anHttpClient, aPaymentGateway, and so on) instead of calling a global or a singleton. A function whose type does not name a given authority then cannot use it, the caller decides what to pass down, and the code becomes easy to test by passing a different value. →catalog/T12-effect-tracking.md
What ships with it
60 files 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.
- catalog/00-overview.md 8.5 KB
- catalog/T01-algebraic-data-types.md 7.7 KB
- catalog/T02-union-intersection.md 7.0 KB
- catalog/T03-newtypes-opaque.md 5.8 KB
- catalog/T04-generics-bounds.md 6.1 KB
- catalog/T05-type-classes.md 10 KB
- catalog/T06-derivation.md 5.7 KB
- catalog/T09-dependent-types.md 9.4 KB
- catalog/T12-effect-tracking.md 7.9 KB
- catalog/T13-null-safety.md 5.7 KB
- catalog/T14-type-narrowing.md 7.5 KB
- catalog/T15-const-generics.md 6.9 KB
- catalog/T16-compile-time-ops.md 6.8 KB
- catalog/T17-macros-metaprogramming.md 8.9 KB
- catalog/T18-conversions-coercions.md 11 KB
- catalog/T19-extension-methods.md 7.5 KB
- catalog/T20-equality-safety.md 7.0 KB
- catalog/T21-encapsulation.md 12 KB
- catalog/T22-callable-typing.md 7.3 KB
- catalog/T23-type-aliases.md 8.4 KB
- catalog/T25-coherence-orphan.md 8.6 KB
- catalog/T26-refinement-types.md 9.1 KB
- catalog/T27-erased-phantom.md 7.1 KB
- catalog/T28-termination.md 10 KB
- catalog/T29-propositions-as-types.md 9.1 KB
- catalog/T30-proof-automation.md 9.9 KB
- catalog/T31-record-types.md 9.1 KB
- catalog/T32-immutability-markers.md 8.6 KB
- catalog/T33-self-type.md 7.9 KB
- catalog/T34-never-bottom.md 6.3 KB
- catalog/T35-universes-kinds.md 10 KB
- catalog/T36-trait-objects.md 6.7 KB
- catalog/T37-trait-solver.md 8.0 KB
- catalog/T38-implicits-auto-bound.md 9.0 KB
- catalog/T39-notation-attributes.md 9.0 KB
- catalog/T40-type-lambdas.md 7.2 KB
- catalog/T41-match-types.md 7.4 KB
- catalog/T42-context-functions.md 8.9 KB
- catalog/T49-associated-types.md 8.9 KB
- catalog/T51-totality.md 10.0 KB
- catalog/T52-literal-types.md 10 KB
- catalog/T53-path-dependent-types.md 10 KB
- catalog/T54-functor-applicative-monad.md 8.9 KB
- catalog/T55-monad-transformers.md 6.9 KB
- catalog/T56-tagless-final.md 7.0 KB
- catalog/T57-typestate.md 9.7 KB
- catalog/T58-witness-evidence.md 7.4 KB
- catalog/T59-existential-types.md 7.3 KB
- catalog/T61-recursive-types.md 8.5 KB
- README.md 5.4 KB
- usecases/00-overview.md 1.4 KB
- usecases/UC01-invalid-states.md 4.7 KB
- usecases/UC02-domain-modeling.md 3.3 KB
- usecases/UC03-exhaustiveness.md 3.4 KB
- usecases/UC04-generic-constraints.md 3.4 KB
- usecases/UC06-immutability.md 4.2 KB
- usecases/UC07-callable-contracts.md 4.1 KB
- usecases/UC08-error-handling.md 5.2 KB
- usecases/UC09-builder-config.md 5.1 KB
- usecases/UC10-encapsulation.md 2.9 KB
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.
- 2d ago First seen · 88 lines · 115 tokens per session scan A 892b4fd64437
vibe-types:lean is a skill published in the GitHub repository jpablo/vibe-types (42 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 115 tokens to every session and 3,402 once invoked, about $0.0006 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-30.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
auto-perf-optimize
Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.
chat-perf
Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…