parth0248/data_science_examples/matt-pocock-typescript-patterns

Claude Code and agent skill by parth0248/data_science_examples

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Total TypeScript architectural patterns by Matt Pocock (Discriminated Unions, Branded Types, Generic Type Narrowing, Zod Schema Validation, and Template Literal Types).

Install

npx vskill@latest install parth0248/data_science_examples/matt-pocock-typescript-patterns

SKILL.md

The same SKILL.md was published earlier as parth0248/data_science_examples/matt-pocock-typescript-patterns.

Matt Pocock Total TypeScript Architectural Patterns

This skill documents production-grade TypeScript patterns for building scalable, type-safe full-stack systems.


1. Core Patterns

Pattern 1: Discriminated Unions for State Machines
typescript
export type AsyncState<T> =
| { status: 'idle' }
| { status: 'loading' }
| { status: 'success'; data: T }
| { status: 'error'; error: Error };
Pattern 2: Branded / Nominal Types
typescript
export type UserId = string & { readonly __brand: unique symbol };
export type OrderId = string & { readonly __brand: unique symbol };
Pattern 3: Zod Schema Inferred Typing
typescript
import { z } from 'zod';
export const TaskSchema = z.object({
id: z.string().uuid(),
title: z.string().min(3),
completed: z.boolean().default(false)
});
export type Task = z.infer<typeof TaskSchema>;

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/parth0248/data_science_examples/matt-pocock-typescript-patterns/badge)](https://verified-skill.com/skills/parth0248/data_science_examples/matt-pocock-typescript-patterns)

Something wrong with this skill or its page? Tell us.