Stats
Actions
Tags
React/TypeScript基本実装ルール。早期return、型定義、不変性、命名規則、エラーハンドリング、非同期処理などのコーディング規約を定義。TypeScriptコードを新規作成・修正する際に参照すること。
How this skill is triggered — by the user, by Claude, or both
Slash command
/typescript-rules-plugin:coding-standardsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- 早期returnでネストを浅くする
type / interface を使用{} を付ける(ワンライナー禁止)&&, ||)や三項演算子(? :)を2つ以上チェーンしない。複雑な条件は意図を表す名前の関数に切り出すconst/readonly、イミュータブルな更新any は原則禁止(必要な場合も局所化し unknown からの絞り込み)union type を優先as const を活用@param、例外を投げる場合は @throws、戻り値がある場合は @returns も必須async/await を優先try/catch は使わない(関数内での乱用を禁止)Result<T, E> / Either / 判別可能union)useEffect の依存配列は正確に保つnpx claudepluginhub dio0550/d-market-typescript --plugin typescript-rules-pluginEnforces TypeScript strict mode, ESLint rules, type safety, React patterns, naming conventions, and function length guidelines. Useful for writing or reviewing TypeScript/JavaScript frontend code.
Defines React + TypeScript component and hook standards including structure rules, custom hook guidelines, and performance memoization patterns.
Validate TypeScript/React code against style and architectural conventions