Agent Skill · Contentful

ts-patterns

TypeScript patterns and idioms reference. Use when writing TypeScript and need a quick refresher on generics, discriminated unions, builder patterns, or error handling.

Provider: Contentful Path in repo: examples/ts-patterns/skill/SKILL.md

Skill body

ts-patterns

This skill provides reference information on demand.

MCP mode (preferred)

If you have MCP tools for this skill (e.g., mcp__ts-patterns__topic), use them:

Present the content to the user. Do not show raw tool calls.

CLI mode (fallback)

Resolve the absolute path to scripts/run from this SKILL.md file’s directory. Use the absolute path in all commands — do not cd into the skill directory. In the examples below, <skill>/scripts/run is a placeholder for this absolute path.

To list all available topics: <skill>/scripts/run

Skill frontmatter

metadata: {"version"=>"1.0.0"} argument-hint: [topic] allowed-tools: Bash(scripts/run *) Read mcp__ts-patterns__topic mcp__ts-patterns__topics paths: **/*.ts