Install any skill in seconds. Free to start, no credit card required.
Get Started Free →shinpr/typescript-rules
React/TypeScript frontend development rules including type safety, component design, state management, and error handling.
Passed 20 of 23 test cases with the skill, and 20 of 23 without it.
1 fixed19 passed either way2 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
TypeScriptでユーザーを作成する処理を作成してください。引数として名前、メールアドレス、ロールの3つの値を個別の位置引数として受け取る関数を提案します。規約に合わせて定義してください。
| Checked | Without skill | With skill |
|---|---|---|
| Combines three parameter inputs into a single object parameter | Missed | Passed |
The instructions your model reads when the skill loads.
プロジェクト規約を適用する前に、tsconfig、ランタイム・フレームワーク設定、lint・format設定、パスエイリアス、package scripts、代表的なモジュールを確認する。設定または確立済みのパターンに裏付けられたルールだけをプロジェクト固有として扱う。限られたパターンから導いた結論には推測であることを明記する。競合する規約によって公開契約、ランタイムの振る舞い、エラー境界が変わる場合は作業を止め、必要な情報源またはユーザー判断を具体的に示す。
データフローでの型安全性
入力層(unknown) → 型ガード → ビジネス層(型保証) → 出力層(シリアライズ)
Backend固有の型シナリオ:
unknownで受け、型ガードで検証unknown、バリデーション後に型確定unknownとして受け取り、根拠のある型アサーションが必要な場合は、その境界を所有するアダプター内に限定するPartial<T>を使用し、Vitestが設定されている場合にのみ型付きのvi.fn<[Args], Return>()を使用するクラス使用の判断基準
// 関数とinterface
interface UserService { create(data: UserData): User }
const userService: UserService = { create: (data) => {...} }
関数設計
// オブジェクト引数
function createUser({ name, email, role }: CreateUserParams) {}
test cases passed, vs 20 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.