Updated 1mo ago
by mkosir
typescript-style-guide
⚙️ TypeScript Style Guide and Agent Skill. A concise set of conventions and best practices for consistent, maintainable code.
784 GitHub stars (784)
+1 in 16 days
| Period | New stars |
|---|---|
| Oct 1 | 0 |
| Oct 2 | 0 |
| Oct 3 | 0 |
| Oct 4 | 0 |
| Oct 5 | 0 |
| Oct 6 | −1 |
| Oct 7 | +1 |
| Oct 8 | 0 |
| Oct 9 | 0 |
| Oct 10 | 0 |
| Oct 11 | 0 |
| Oct 12 | 0 |
| Oct 13 | 0 |
| Oct 14 | 0 |
| Oct 15 | 0 |
| Oct 16 | +1 |
- 9 skills (9 skills found in its SKILL.md files)
- 38 forks (38 forks)
- 1mo ago last update (Last updated 1mo ago)
Install
Skills CLI
npx skills add mkosir/typescript-style-guide
Asks which skills and agents to install. Just one: npx skills add mkosir/typescript-style-guide --skill typescript-discriminated-unions — add -g for every project.
Claude Code
git clone https://github.com/mkosir/typescript-style-guidecp -r "typescript-style-guide/skills/typescript-discriminated-unions" ~/.claude/skills/
Copies the typescript-discriminated-unions skill into ~/.claude/skills/ for every project (use .claude/skills/ for one project). Repeat for the other skills listed below.
Plugin
/plugin marketplace add mkosir/typescript-style-guide
Run inside Claude Code if the repository ships a plugin marketplace, then pick plugins from /plugin.
Skills can run code on your machine — read the SKILL.md first.
What it does
In the author's own words, from each skill's SKILL.md.
-
typescript-discriminated-unions
Apply, review, and explain discriminated unions in TypeScript. Use automatically for tasks involving mutually exclusive variants, invalid state prevention, exhaustiveness checking, variant-specific object properties, application state, function arguments, or React props.
skills/typescript-discriminated-unions/SKILL.md on GitHub (opens in a new tab) -
typescript-functions
Apply, review, and explain TypeScript function conventions. Use automatically for tasks involving function responsibility, statelessness, purity, side effects, function arguments, function API design, or return types.
skills/typescript-functions/SKILL.md on GitHub (opens in a new tab) -
typescript-naming
Apply, review, and explain TypeScript naming conventions. Use automatically for tasks involving exports, identifiers, generic type parameters, acronyms, React props and handlers, hooks, comments, or TSDoc.
skills/typescript-naming/SKILL.md on GitHub (opens in a new tab) -
typescript-react
Apply, review, and explain React conventions from the TypeScript Style Guide. Use automatically for TypeScript and TSX tasks involving prop-derived state, prop typing, component responsibilities, data flow, compound components, or client and server state.
skills/typescript-react/SKILL.md on GitHub (opens in a new tab) -
typescript-source-organization
Apply, review, and explain TypeScript source organization conventions. Use automatically for tasks involving feature-based organization, code colocation, import paths, import sorting, monorepos, or frontend and backend project structure.
skills/typescript-source-organization/SKILL.md on GitHub (opens in a new tab) -
typescript-style-guide
Apply, review, and explain the opinionated conventions in the TypeScript Style Guide. Use automatically only when TypeScript conventions are part of the requested task, including type modelling, discriminated unions, function APIs, variables and state, naming, source organization, React props, component APIs, state management, data flow, or tests. Do not use for styling or layout alone.
skills/typescript-style-guide/SKILL.md on GitHub (opens in a new tab) -
typescript-tests
Apply, review, and explain testing conventions from the TypeScript Style Guide. Use automatically for TypeScript and TSX test tasks involving test design, AAA, mocking, isolation, black-box testing, Testing Library queries, test descriptions, or snapshots.
skills/typescript-tests/SKILL.md on GitHub (opens in a new tab) -
typescript-types
Apply, review, and explain TypeScript type conventions. Use automatically for tasks involving inference, readonly data, type-safe constants, template literal types, any and unknown, assertions, type errors, type definitions, arrays, type imports, or generated service types.
skills/typescript-types/SKILL.md on GitHub (opens in a new tab) -
typescript-variables
Apply, review, and explain TypeScript variable conventions. Use automatically for tasks involving variable declarations, const assertions, enum alternatives, literal-union state modelling, boolean flags, or choosing between null and undefined.
skills/typescript-variables/SKILL.md on GitHub (opens in a new tab)
No skill matches that filter.
Review before you install
A skill is a set of instructions and scripts your agent will follow, and it can run code on your machine. Read the SKILL.md and any scripts first — this listing is not a security review.