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

Typescript Advanced Patterns

  • 91 installs
  • 191 repo stars
  • Updated July 24, 2026
  • pproenca/dot-skills

typescript-advanced-patterns is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

Key points

  • typescript-advanced-patterns
  • AI & Agent Building
  • AI-coding skill

Typescript Advanced Patterns by the numbers

  • 91 all-time installs (skills.sh)
  • +6 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #4,765 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/pproenca/dot-skills --skill typescript-advanced-patterns

Add your badge

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

Listed on Skillselion
Installs91
repo stars191
Last updatedJuly 24, 2026
Repositorypproenca/dot-skills

How do I helps with ai & agent building tasks during ai-assisted development?

Helps with ai & agent building tasks during AI-assisted development.

Who is it for?

Best when you're working on ai & agent building and need structured help with typescript-advanced-patterns.

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 during ai-assisted development, or when typescript-advanced-patterns is a claude code skill for ai & agent building. it helps solo builders move faster with ai-assisted coding.

What you get

Structured output aligned to typescript-advanced-patterns: typescript-advanced-patterns; AI & Agent Building; AI-coding skill.

Files

SKILL.mdMarkdownGitHub ↗

TypeScript Advanced Patterns Best Practices

Type-level programming, library-author idioms, and feature-implementation patterns that go beyond surface uses of TypeScript 5.x. Contains 40 rules across 5 categories, prioritised by impact on consumer codebases.

When to Apply

Reference these guidelines when:

  • Designing a public library or DSL surface (fluent builders, event emitters, route parsers, query builders, schema-derived clients)
  • Writing type-level algorithms (recursive conditionals, accumulator pattern, key remapping, variadic tuples, type-level string/number ops, type-level tests)
  • Using TS 5.x features in non-trivial ways (Stage 3 decorators, using composition, const T for overload disambiguation, NoInfer for anchor-vs-constrained parameters, variance annotations, the bivariance hole)
  • Encoding workflow state, transitions, and capabilities at the type level so illegal states and missing checks are compile errors
  • Integrating with the declaration & module system (module augmentation, declaration merging, ambient asset modules, library type publishing via exports/typesVersions)

Boundary with neighbouring skills

SkillDon't reach for this skill if you need…
typescript (curated)Compiler performance / tsconfig tuning
typescript-refactorGeneral refactoring patterns and modern-TS surface basics
ts-googleGoogle-style code style decisions
clean-code-ts-reactClean-code principles (naming, function shape, abstraction)
effect-ts / opencode-tsEffect library-specific patterns

If a rule in this skill overlaps with one in typescript-refactor or .curated/typescript, the rule's Scope delta section names what this skill adds beyond the simpler version.

Rule Categories by Priority

PriorityCategoryImpactPrefixRules
1Library Author / DSL PatternsCRITICALdsl-8
2Type-level ProgrammingHIGHtlp-10
3Modern Features at DepthHIGHmod-8
4Feature Implementation PatternsMEDIUM-HIGHimpl-8
5Declaration & Module SystemMEDIUMdecl-6

Quick Reference

1. Library Author / DSL Patterns (CRITICAL)

  • `dsl-fluent-builder-phantom-state` — Enforce builder call order with phantom state types
  • `dsl-typed-event-emitter` — Build typed event emitters with mapped event maps
  • `dsl-type-safe-object-paths` — Type object path access with dot-notation inference
  • `dsl-route-param-inference` — Infer route parameters from path patterns
  • `dsl-schema-first-inference` — Derive static types from runtime schemas
  • `dsl-type-safe-query-builder` — Encode query shape in the builder's return type
  • `dsl-narrow-api-surface` — Export only the API surface, not internal helpers
  • `dsl-overloads-vs-conditional-returns` — Choose overloads over conditional return types

2. Type-level Programming (HIGH)

  • `tlp-recursive-conditional-types` — Use recursive conditional types for structural transformations
  • `tlp-tail-recursion-accumulator` — Use tail-recursion accumulator pattern to bypass the 50-step limit
  • `tlp-infer-extends-constraints` — Constrain infer with extends for validated extraction
  • `tlp-key-remapping-as` — Remap keys with as clauses in mapped types
  • `tlp-variadic-tuple-types` — Use variadic tuples for position-aware type algorithms
  • `tlp-type-level-string-algorithms` — Build type-level string algorithms with recursive template literals
  • `tlp-distributive-conditional-control` — Control distribution with the [T] extends [U] tuple trick
  • `tlp-type-level-tests` — Test types with Equal, Expect, and @ts-expect-error
  • `tlp-template-literal-pattern-matching` — Match structured strings with infer in template literals
  • `tlp-hkt-emulation` — Emulate higher-kinded types with interface dictionaries

3. Modern Features at Depth (HIGH)

  • `mod-stage-3-decorators` — Use Stage 3 decorators with decorator context for metaprogramming
  • `mod-using-disposal-ordering` — Compose using resources with explicit disposal ordering
  • `mod-const-type-params-overloads` — Use const T to preserve literals through overloaded APIs
  • `mod-noinfer-overload-disambiguation` — Use NoInfer<T> to disambiguate overloaded function signatures
  • `mod-variance-debugging` — Debug variance errors with in/out annotations
  • `mod-method-vs-property-bivariance` — Prefer property syntax over method syntax to avoid bivariance holes
  • `mod-phantom-capability-tracking` — Track capabilities at the type level with phantom brands
  • `mod-satisfies-branded-config` — Combine satisfies with branded types for validated configuration

4. Feature Implementation Patterns (MEDIUM-HIGH)

  • `impl-tagged-result-type` — Model operation outcomes as Ok<T> | Err<E> tagged unions
  • `impl-state-discriminated-union` — Model workflow state as a discriminated union of state records
  • `impl-finite-state-machine` — Encode FSM transitions in function signatures
  • `impl-schema-derived-api-client` — Derive client argument and return types from endpoint schemas
  • `impl-type-safe-form-builder` — Drive form-field inference from a single schema definition
  • `impl-phantom-feature-flags` — Gate feature-dependent code with phantom capability types
  • `impl-assert-never-exhaustive` — Use assertNever to force exhaustive handling of union variants
  • `impl-env-config-loader` — Validate environment configuration at boundary with schema inference

5. Declaration & Module System (MEDIUM)

  • `decl-module-augmentation` — Augment third-party module types without patching source
  • `decl-declaration-merging` — Merge interface, namespace, and class declarations to extend APIs
  • `decl-ambient-asset-modules` — Declare ambient modules for non-TypeScript asset imports
  • `decl-global-augmentation-discipline` — Scope global type augmentation to avoid conflicts
  • `decl-exports-and-types-versions` — Ship library types with exports and typesVersions maps
  • `decl-authoring-d-ts-for-js` — Author .d.ts files for plain JavaScript libraries

How to Use

Read individual reference files for detailed explanations, code examples, and "when NOT to apply" guidance:

  • Section definitions — Category structure and impact levels
  • Rule template — Template for adding new rules

Rules cross-link via [[other-rule-slug]]; follow them when a related pattern is referenced.

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Related skills

FAQ

What does typescript-advanced-patterns do?

typescript-advanced-patterns is a Claude Code skill for ai & agent building. It helps developers move faster with AI-assisted coding.

When should I use typescript-advanced-patterns?

When you need to helps with ai & agent building tasks during ai-assisted development, or when typescript-advanced-patterns is a claude code skill for ai & agent building. it helps developers move faster with ai-assisted coding.

What are the main capabilities?

typescript-advanced-patterns; AI & Agent Building; AI-coding skill.

This week in AI coding

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

unsubscribe anytime.