Lang typescript

From ravnhq/ai-toolkit · View interactive version

Lang typescript is an AI agent skill from the GitHub repository ravnhq/ai-toolkit. TypeScript language patterns and type safety rules — strict mode, no any, discriminated unions. Use when writing TypeScript code, reviewing types, or enforcing type safety.

How to use this skill

Skill file

Principles

Rules

See rules index for detailed patterns.

Examples

Positive Trigger

User: "Replace unsafe any usage with discriminated unions in this module."

Expected behavior: Use lang-typescript guidance, follow its workflow, and return actionable output.

Non-Trigger

User: "Design REST route naming conventions for a new backend."

Expected behavior: Do not prioritize lang-typescript; choose a more relevant skill or proceed without it.

Troubleshooting

Skill Does Not Trigger

Guidance Conflicts With Another Skill

Output Is Too Generic

Workflow

  1. Identify whether the request clearly matches lang-typescript scope and triggers.
  2. Apply the skill rules and referenced guidance to produce a concrete result.
  3. Validate output quality against constraints; if gaps remain, refine once with explicit assumptions.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.