Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
poteto avatar

Ts Best Practices

  • 54 installs
  • 217 repo stars
  • Updated March 19, 2026
  • poteto/noodle

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

About

ts-best-practices is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.

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

Ts Best Practices by the numbers

  • 54 all-time installs (skills.sh)
  • Ranked #6,877 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/poteto/noodle --skill ts-best-practices

Add your badge

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

Listed on Skillselion
Installs54
repo stars217
Last updatedMarch 19, 2026
Repositorypoteto/noodle

How do I helps with ai & agent building tasks.?

Helps with ai & agent building tasks.

Who is it 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 this skill?

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 you get

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

Files

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.

Related skills

FAQ

What does ts-best-practices do?

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

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 are the main capabilities?

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

This week in AI coding

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

unsubscribe anytime.