← スキル一覧に戻る

typescript-style
by jpoutrin
Claude Code Marketplace Plugin to dev like a pro in a multi-agent fashion
⭐ 4🍴 0📅 2026年1月22日
SKILL.md
name: typescript-style description: Automatic enforcement of TypeScript/JavaScript coding style, ESLint standards, type safety, and modern patterns. Use when writing TypeScript or React code to ensure strict type safety and modern ES2024+ patterns.
TypeScript/JavaScript Style Best Practices Skill
This skill enforces TypeScript strict mode, ESLint standards, and modern patterns for frontend development.
Core Standards
- Strict TypeScript: All strict flags enabled
- ESLint: Type-checked rules enabled
- No
any: Useunknownor proper types - Explicit returns: All functions typed
Naming Conventions
// Types/Interfaces: PascalCase
interface UserProfile { }
// Functions/variables: camelCase
function calculateTotal() { }
const userName = "john";
// Booleans: is/has/can/should prefix
const isLoading = true;
const hasPermission = false;
Type Definitions
// Prefer union types over enums
type Status = "pending" | "active" | "completed";
// Use as const for constant objects
const HttpStatus = {
Ok: 200,
NotFound: 404,
} as const;
// Discriminated unions
type Result<T> =
| { success: true; data: T }
| { success: false; error: Error };
React Patterns
// Typed props
interface ButtonProps {
label: string;
onClick: () => void;
disabled?: boolean;
}
// Typed hooks
const [isOpen, setIsOpen] = useState(false);
// Typed event handlers
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {};
Function Length Guidelines
- < 30 lines: Ideal
- 30-50 lines: Review for refactoring
- > 50 lines: Must be broken down
Anti-Patterns to Avoid
- Using
anytype - Missing return types
- Using
==instead of=== - Unhandled promises
- Magic numbers/strings
- Vague variable/function names
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です