lang-typescript
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 do I install this agent skill?
npx skills add https://github.com/ravnhq/ai-toolkit --skill lang-typescriptIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides comprehensive guidelines and best practices for writing type-safe TypeScript code, focusing on strict mode, asynchronous patterns, and module management. No security risks or malicious behaviors were detected.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
7/7 files flagged
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
Principles
- Enable strict mode — no implicit any, strict null checks
- Prefer discriminated unions over type assertions
- Use
unknownoverany— narrow with type guards
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
- Error: The skill is not selected when expected.
- Cause: Request wording does not clearly match the description trigger conditions.
- Solution: Rephrase with explicit domain/task keywords from the description and retry.
Guidance Conflicts With Another Skill
- Error: Instructions from multiple skills conflict in one task.
- Cause: Overlapping scope across loaded skills.
- Solution: State which skill is authoritative for the current step and apply that workflow first.
Output Is Too Generic
- Error: Result lacks concrete, actionable detail.
- Cause: Task input omitted context, constraints, or target format.
- Solution: Add specific constraints (environment, scope, format, success criteria) and rerun.
Workflow
- Identify whether the request clearly matches
lang-typescriptscope and triggers. - Apply the skill rules and referenced guidance to produce a concrete result.
- Validate output quality against constraints; if gaps remain, refine once with explicit assumptions.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/ravnhq/ai-toolkit/lang-typescript">View lang-typescript on skillZs</a>