poteto avatar

Ts Best Practices Skill

Installs
419
Repo stars
711
Repo updated
Mar 19, 2026

TL;DR

ts-best-practices is a Claude Code skill for ai & agent building.

Install if

Best when you're working on ai & agent building and need structured help with ts best practices.

Skip if

Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.

npx skills add https://github.com/poteto/noodle --skill ts-best-practices
On this page
  1. What ts-best-practices covers
  2. ts-best-practices by the numbers
  3. What does the Ts Best Practices skill produce?
  4. What files ship with ts-best-practices?
  5. Which skills are related to ts-best-practices?
  6. Ts Best Practices skill FAQ
  7. More in this repo

What ts-best-practices covers

  • ts-best-practices
  • AI & Agent Building
  • AI-coding skill

ts-best-practices by the numbers

All-time installs419skills.sh registry
Repo stars★ 711GitHub
Repo last updatedMarch 19, 2026GitHub
Repositorypoteto/noodle ↗

Data as of Nov 23, 2026 (Skillselion catalog sync)

What does the Ts Best Practices skill produce?

Structured output aligned to ts-best-practices: ts-best-practices, AI & Agent Building.

What files ship with ts-best-practices?

SKILL.mdMarkdownGitHub ↗

Type Safety

This project's TypeScript policy. Apply when writing or reviewing TypeScript.

RuleSummary
No as castsEvery as is a potential runtime crash. Validate at boundaries, then cast only if earned. Prefer Zod/Valibot over manual validation.
unknown over anyany disables type checking for everything it touches. External data is always unknown.
Discriminated unionsModel variants with a shared literal discriminant. No optional-field bags.
Narrowing hierarchyPrefer: discriminated union switch > in operator > typeof/instanceof > type guard > as
Type guardsMust actually verify the claim. Name them isX or hasX. Prefer discriminant narrowing when possible.
Exhaustiveness checksAlways add default: never arm to switches over discriminated unions. Use an absurd() helper to reduce boilerplate.
satisfies over asWhen verifying a value matches a type without widening, use satisfies to preserve literal types.
Impossible statesIf a bug requires asking "can this combination happen?" the type is too loose. Tighten it.

Read references/patterns.md for code examples of each rule.

Which skills are related to ts-best-practices?

Ts Best Practices skill FAQ

Who is the Ts Best Practices skill for?

Best when you're working on ai & agent building and need structured help with ts best practices. Skip if: Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use ts-best-practices?

When you need to helps with ai & agent building tasks., or when ts-best-practices is a claude code skill for ai & agent building.

What does ts-best-practices do?

ts-best-practices is a Claude Code skill for ai & agent building.

What are the main capabilities?

ts-best-practices; AI & Agent Building; AI-coding skill.

Add a ts-best-practices badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Get the embed code

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.