Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By CheckPickerUpperv1.39.0MITIn 1 marketplace
Rust-style discipline for TypeScript: bans null/undefined/optionals/booleans-as-state/any/unknown/positional-args/string-widening/phantom-type-params/degenerate-comparators. Forces discriminated unions and exhaustive switches everywhere domain state lives. Per-file PreToolUse Write/Edit hooks plus SessionStart rule injection plus a bundled ESLint plugin for cross-file rules the per-file hook cannot see.
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Rust-style discipline for TypeScript. Bans null, undefined, optional fields, booleans-as-domain-state, any, unknown, positional args (>1), string widening, phantom type parameters, degenerate comparators, missing @why tags on exports, and other shapes that compile but rot in production. Forces discriminated unions and exhaustive switch everywhere domain state lives.
Pick your runtime, run the one-liner, done.
claude plugin marketplace add https://github.com/CheckPickerUpper/perfect-typescripter
claude plugin install perfect-typescripter@perfect-typescripter --scope user
git clone https://github.com/CheckPickerUpper/perfect-typescripter \
~/.codex/plugins/cache/perfect-typescripter/perfect-typescripter/local
git clone https://github.com/CheckPickerUpper/perfect-typescripter ~/perfect-typescripter
Then add to your opencode.json:
{ "plugin": ["file:///home/you/perfect-typescripter/.opencode/perfect-typescripter-opencode-bundle.js"] }
npx skills add CheckPickerUpper/perfect-typescripter
From your TypeScript project's root, beside its tsconfig.json:
git clone https://github.com/CheckPickerUpper/perfect-typescripter.git ../perfect-typescripter
npm install --save-dev eslint@latest @typescript-eslint/parser@latest \
file:../perfect-typescripter/eslint-plugin \
'typescript@npm:@typescript/typescript6@latest' \
'@typescript/cli@npm:typescript@latest'
The npm dependencies require Node.js ^20.19.0 || ^22.13.0 || >=24. For TypeScript 7 projects, the aliases keep the TypeScript 6 JavaScript API available as typescript for the parser and cross-file rules, while npx tsc runs the native TypeScript 7 compiler. This follows TypeScript's side-by-side installation approach.
Add the Bun lint configuration or the ESLint configuration below. In Claude Code, /setup-eslint can also install the dependencies, configure ESLint, and add a pre-commit hook.
For runtime options and configuration, see Install (full).
| Artifact | Catches | Where it lives |
|---|---|---|
| Claude Code / Codex / OpenCode plugin | The file you are writing. PreToolUse Write / Edit hooks block the bad shapes before they land on disk. | this repo's root |
eslint-plugin-perfect-typescripter for Bun lint or ESLint | Patterns that span files: duplicate envelope shapes, shared variant literals across discriminated unions, variant prefix drift. | ./eslint-plugin/ |
The hooks check each agent edit. Bun lint or ESLint compares declarations across the TypeScript project.
A taste; full catalogue in docs/RULES.md:
// blocked: optional field
type User = { name: string; email?: string };
// blocked: null / undefined in declared types
type Maybe = string | null;
function find(): User | undefined { ... }
// blocked: boolean as domain state
function setStatus(active: boolean) { ... }
// blocked: positional args (> 1)
function move(x: number, y: number, z: number) { ... }
// blocked: string widening of literal union
type Variant = "Small" | "Medium" | "Large" | string;
// blocked: phantom type parameter (TKind never used in the body)
type Registry<TKind, V> = { entries: V[] };
// blocked: degenerate comparator returning boolean over a typed input
function isSameTransition(prev: Slot, next: Slot): boolean { ... }
The correct shape in each case is a discriminated union with a Kind field and an exhaustive switch. See docs/RULES.md for the rewrite of each example.
This section covers runtime configuration and the cross-file lint rules.
The repo doubles as a single-plugin marketplace via .claude-plugin/marketplace.json + .claude-plugin/plugin.json. Install in one step:
claude plugin marketplace add https://github.com/CheckPickerUpper/perfect-typescripter
claude plugin install perfect-typescripter@perfect-typescripter --scope user
Or from a local clone:
git clone https://github.com/CheckPickerUpper/perfect-typescripter.git ~/perfect-typescripter
claude plugin marketplace add ~/perfect-typescripter
claude plugin install perfect-typescripter@perfect-typescripter --scope user
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid string: must end with ".md"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.