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/pythonnpx skills add jpablo/vibe-types --skill pythongit 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.00099 | $0.02981 |
| Opus 5 | $0.00049 | $0.01491 |
| Sonnet 5 | $0.00020 | $0.00596 |
| Haiku 4.5 | $0.00010 | $0.00298 |
Grade A, and why
vibe-types:python 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 yesterday.
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 — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python — Type-Checking Constraint Techniques
Base path:
${CLAUDE_PLUGIN_ROOT}/skills/python
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/T14-type-narrowing.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. →usecases/UC03-exhaustiveness.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
55 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/.gitkeep 0 B
- catalog/00-overview.md 3.1 KB
- catalog/T01-algebraic-data-types.md 18 KB
- catalog/T02-union-intersection.md 18 KB
- catalog/T03-newtypes-opaque.md 17 KB
- catalog/T04-generics-bounds.md 18 KB
- catalog/T05-type-classes.md 23 KB
- catalog/T06-derivation.md 17 KB
- catalog/T07-structural-typing.md 23 KB
- catalog/T08-variance-subtyping.md 20 KB
- catalog/T12-effect-tracking.md 20 KB
- catalog/T13-null-safety.md 15 KB
- catalog/T14-type-narrowing.md 17 KB
- catalog/T17-macros-metaprogramming.md 21 KB
- catalog/T18-conversions-coercions.md 15 KB
- catalog/T20-equality-safety.md 13 KB
- catalog/T21-encapsulation.md 17 KB
- catalog/T22-callable-typing.md 17 KB
- catalog/T23-type-aliases.md 14 KB
- catalog/T26-refinement-types.md 18 KB
- catalog/T27-erased-phantom.md 8.5 KB
- catalog/T31-record-types.md 14 KB
- catalog/T32-immutability-markers.md 14 KB
- catalog/T33-self-type.md 16 KB
- catalog/T34-never-bottom.md 19 KB
- catalog/T36-trait-objects.md 18 KB
- catalog/T45-paramspec-variadic.md 23 KB
- catalog/T46-kwargs-typing.md 15 KB
- catalog/T47-gradual-typing.md 21 KB
- catalog/T49-associated-types.md 17 KB
- catalog/T52-literal-types.md 7.4 KB
- catalog/T57-typestate.md 20 KB
- catalog/T59-existential-types.md 18 KB
- catalog/T61-recursive-types.md 11 KB
- README.md 5.9 KB
- usecases/.gitkeep 0 B
- usecases/00-overview.md 1.5 KB
- usecases/UC01-invalid-states.md 14 KB
- usecases/UC02-domain-modeling.md 12 KB
- usecases/UC03-exhaustiveness.md 13 KB
- usecases/UC04-generic-constraints.md 12 KB
- usecases/UC05-structural-contracts.md 16 KB
- usecases/UC06-immutability.md 14 KB
- usecases/UC07-callable-contracts.md 11 KB
- usecases/UC08-error-handling.md 12 KB
- usecases/UC09-builder-config.md 16 KB
- usecases/UC10-encapsulation.md 16 KB
- usecases/UC11-effect-tracking.md 11 KB
- usecases/UC12-compile-time.md 5.7 KB
- usecases/UC13-state-machines.md 17 KB
- usecases/UC14-extensibility.md 16 KB
- usecases/UC15-equality.md 9.0 KB
- usecases/UC16-nullability.md 11 KB
- usecases/UC17-variance.md 9.9 KB
- usecases/UC21-concurrency.md 9.0 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.
- yesterday First seen · 73 lines · 99 tokens per session scan A 8ac5065002c0
vibe-types:python is a skill published in the GitHub repository jpablo/vibe-types (42 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 99 tokens to every session and 2,981 once invoked, about $0.0005 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.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…
imagegen
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…
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…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…