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 gagoarv0.6.2MITIn 2 marketplaces
Enforce TypeScript best practices and patterns — inline skill guidance plus a dedicated subagent for reviews and refactors.
Claude hands work to one, or you mention it with @.
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.
2 marketplaces, most starred first
typescript, patterns, code-quality, linting, best-practices, hooks, code-review
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude writes TypeScript. TypeScript Patterns Enforcer checks every edit.
A Claude Code plugin that holds Claude's TypeScript to a written standard. It has three parts. An inline skill carries the rules. A review subagent handles large changes. A hook checks sixteen rules after every .ts or .tsx edit.
/plugin marketplace add gagoar/typescript-patterns-enforcer
/plugin install typescript-patterns-enforcer@typescript-patterns-enforcer
/reload-plugins
Prefer one marketplace for all gagoar plugins? Use gago-plugins:
/plugin marketplace add gagoar/gago-plugins
/plugin install typescript-patterns-enforcer@gago-plugins
Before v0.5.0 this plugin was called ts-patterns. The plugin directory held that name as too close to other plugins, so it is now typescript-patterns-enforcer.
If you installed the old name, remove it and install the new one:
/plugin uninstall ts-patterns@gago-plugins
/plugin install typescript-patterns-enforcer@gago-plugins
The skill is now /typescript-patterns-enforcer:check and the agent is typescript-patterns-enforcer:review. Three things keep the old name, so nothing you wrote needs to change: the ts-patterns: prefix on the hook's messages, the ts-patterns/<rule> names in eslint-disable comments, and the ts-patterns: allow exhaustive switch line in a project's CLAUDE.md.
tsconfig setup.Claude writes this:
export function describeStatus(status: string): string {
return status === "active" ? "Active" : status === "paused" ? "Paused" : "Unknown";
}
The hook replies to Claude:
ts-patterns: 1 mechanical violation(s) in describeStatus.ts:
L2:10 no-nested-ternary nested ternary — flatten, or convert to a Record/.find() lookup
Fix these to satisfy the TypeScript patterns before continuing.
Claude rewrites it:
const STATUS_LABELS: Record<string, string> = { active: "Active", paused: "Paused" };
export function describeStatus(status: string): string {
return STATUS_LABELS[status] ?? "Unknown";
}
The next check passes with no output.
| Component | What it does |
|---|---|
Skill /typescript-patterns-enforcer:check | Active while Claude writes or edits .ts and .tsx files. It gives inline guidance on type safety, patterns, and anti-patterns. |
Agent typescript-patterns-enforcer:review | Runs through the Agent tool for full PR reviews, large refactors, and JavaScript to TypeScript conversions. |
| Hook | Runs a bundled checker after every .ts or .tsx edit and backs the skill with sixteen deterministic checks. |
any. Use unknown and narrow, or write a precise type.interface for extendable shapes. type for unions, intersections, and mapped types.readonly by default.async/await only. No .then() chains.<TEntity extends BaseEntity>, not <T>.The skill covers more: data over logic, validation at the boundary, comment discipline, and a review checklist. Read skills/check/SKILL.md for the full text.
npx claudepluginhub gagoar/typescript-patterns-enforcer --plugin typescript-patterns-enforcerBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground