Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/dipro-vn/dipro-ai-boost --skill typescript-utility-typesコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SKILL.md を表示中
SOC 職業分類に基づく
| name | typescript-utility-types |
| description | null |
Category: typescript · Status: 🟢 Active
Khi cần biến đổi type sẵn có thay vì khai báo lại từ đầu.
Pick/Omit để lấy/loại field từ type gốc, giữ liên kết khi gốc đổi.Partial/Required cho update payload hoặc bắt buộc toàn bộ field.Record<K, V> cho map/dictionary có key cố định.ReturnType/Parameters để suy kiểu từ hàm có sẵn, tránh khai báo trùng.interface User { id: string; name: string; email: string; role: Role; }
type UserPreview = Pick<User, "id" | "name">;
type UserUpdate = Partial<Omit<User, "id">>;
type UsersByRole = Record<Role, User[]>;
type ApiUser = ReturnType<typeof fetchUser>;
Good: Partial<Omit<User, "id">> cho payload update; Record<Role, User[]> cho nhóm.
Avoid: Khai báo lại UserUpdate thủ công, lệch khi User thay đổi field.