/oh-my-claudecode:typescript-best-practicesfrom oh-my-claudecode
Enforces TypeScript type-system discipline: discriminated unions over flags, satisfies, parse-don't-validate at boundaries, branded primitives, no non-null assertions on external data.
Ships in oh-my-claudecode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The type system is the cheapest place to make illegal states unrepresentable
(principles skill, Type system discipline). Concrete forms:
type Ev = {kind:'click'; x:number} | {kind:'focus'} — not {isClick:boolean; x?:number}. Exhaustive switch on kind turns missing cases into compile errors.satisfies for configuration literals. {...} satisfies Config keeps literal inference while checking the shape.any re-cast. unknown in, typed out.type SessionId = string & {__brand:'SessionId'} when mixing two strings is a realistic bug.! is allowed only where a check on a previous line proves the value; at boundaries it is a runtime crash with compile-time approval.T plus a thrown maybe; callers must handle both arms to compile.readonly by default on shared shapes, mutation as an explicit opt-in.When reviewing TS, the question per diff hunk is not "does it compile" but
"which illegal state did this type just permit" — flag flags-over-unions,
boundary anys, and unbranded overlapping primitives.
minimal-code-discipline).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub yeachan-heo/oh-my-claudecode --plugin oh-my-claudecode2 plugins ship this exact skill · first indexed Nov 8, 2026
85 skills in this plugin
/agent-doc-disciplineWriting-time discipline for documents agents consume (the five surfaces, specs, tickets, .omc/skills/) — every rule checkable and carrying a why, steps before reference, one meaning in one home, no restating what the environment already says. Mandatory at drydock seed generation and the launch C5 sediment pass; opt-in for any other agent-facing doc edit. The companion of minimal-code-discipline: that one disciplines code, this one disciplines papers./ai-slop-cleanerClean AI-generated code slop with a regression-safe, deletion-first workflow and optional reviewer-only mode/architectSettle types and module shape before cross-boundary code — competing designs explored in parallel, compared on API surface and invariants, decision recorded with rejected alternatives and an accepted-deviations register.Other plugins' skills for the same job