TypeScript Best Practices
SkillDev toolsEnforces TypeScript best practices and modern patterns
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the TypeScript Best Practices skill
What this skill tells your AI
The instructions your AI receives, as published by rohitg00/skillkit in packages/core/src/eval/__tests__/fixtures/good-skill/SKILL.md and read by ahel’s review.
When to Use
Use this skill when:
- Writing new TypeScript code
- Reviewing TypeScript pull requests
- Refactoring JavaScript to TypeScript
Triggers
Activated when editing .ts or .tsx files in the project.
Rules
Always
- Always use
constfor variables that won't be reassigned - Always use explicit return types on exported functions
- Always prefer
interfaceovertypefor object shapes
Never
- Never use
any— useunknowninstead - Never use
var— useconstorlet - Never ignore TypeScript errors with
@ts-ignore
Examples
// Good: explicit return type
export function calculateTotal(items: Item[]): number {
return items.reduce((sum, item) => sum + item.price, 0);
}
// Good: discriminated union
type Result<T> =
| { success: true; data: T }
| { success: false; error: Error };
Boundaries
- Do not modify
tsconfig.jsonwithout explicit permission - Do not add new dependencies without checking existing utilities
- Focus only on TypeScript patterns, not runtime behavior
Signals
- GitHub stars
- 1k
- Forks
- 143
- Last commit
- Jun 2026
Advanced
- Catalog kind
- skill
- Gateway key
typescript-best-practices-rohitg00- Source
- github.com/rohitg00/skillkit