← Back to list

typescript-best-practice
by xiaoland
⭐ 0🍴 0📅 Jan 12, 2026
SKILL.md
name: typescript-best-practice description: TypeScript best practices and patterns for writing clean, type-safe, and maintainable code. Use when implementing TypeScript code, refactoring for better type safety, or teaching TypeScript patterns. license: Apache-2.0 compatibility: TypeScript 4.5+ metadata: author: xiaoland version: "1.0" related-skills: "code-smell-checker, dev-vue-component"
TypeScript Best Practices
When to use this skill
Use this skill when you need to:
- Implement TypeScript code following best practices
- Refactor JavaScript to TypeScript
- Improve type safety and code maintainability
- Choose between different TypeScript patterns
- Teach or explain TypeScript best practices
- Review code for TypeScript anti-patterns
Instructions
- Identify the pattern: Which best practice applies to your situation?
- Apply the pattern: Follow the code examples provided
- Verify types: Ensure TypeScript infers the correct types
- Test usage: Confirm autocomplete and type checking work as expected
Best Practices
- Use
as constInstead of Enums: read at as-const-pattern
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon