Como usar
- Copie o comando e verifique o pacote antes de instalar no seu ambiente de agente.
- Consulte no original as ferramentas, credenciais e ambientes necessários.
- Descreva os dados de entrada e a entrega esperada; confira a saída com as fontes.
npx skills add https://github.com/contentful/skill-kit --skill ts-patternsAntes de começar
- A instalação não inclui assinatura de modelo, franquia API ou acesso aos seus arquivos.
- Estrelas e instalações indicam atividade, não um teste independente de qualidade ou segurança.
Renderizado do repositório de origem, preservando títulos, exemplos, código, tabelas, links e imagens.
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:
- Call
topicsto list available reference topics. - Call
topicwith a topic name to retrieve its content.
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.
<skill>/scripts/run topic generics— Generics cheat sheet — constraints, conditional types, mapped types, infer<skill>/scripts/run topic discriminated-unions— Discriminated unions — type narrowing with literal discriminants<skill>/scripts/run topic builder-pattern— Builder pattern — fluent APIs with type accumulation<skill>/scripts/run topic error-handling— Error handling — Result types, custom errors, exhaustive matching
To list all available topics: <skill>/scripts/run





