← スキル一覧に戻る

typescript
by MuhammedAlkhudiry
⭐ 0🍴 0📅 2026年1月25日
SKILL.md
name: typescript description: TypeScript/JavaScript coding standards. Use when working on TS/JS code to ensure type safety, proper async handling, and clean code style.
TypeScript / JavaScript
Critical rules for TypeScript and JavaScript development.
Types & Safety
- Use strict TypeScript (
strict: true); avoidany,unknownonly when truly unknown - Prefer
interfacefor object shapes;typefor unions/intersections/utilities - No implicit
any; explicit return types on exported functions - Use
as constfor literals; avoid type assertions (as) unless unavoidable - Nullish: prefer
??over||; use optional chaining?.over manual checks
Code Style
constby default;letonly when mutation needed; nevervar- Destructure props/objects at function entry
- Arrow functions for callbacks; named functions for top-level/exported
- No dead code, unused imports, or commented-out blocks
Async & Error Handling
- Always
awaitpromises or explicitly handle them; no floating promises - Use try/catch for async; propagate errors with context
- Avoid
.then()/.catch()chains; prefer async/await
Modules & Imports
- Imports at file top, grouped: external → internal → types
- Prefer named exports; default exports only for pages/components where framework requires
- No circular imports
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です