no-bare-casts
A contributed skill in the Prisma ORM repository that treats every bare as cast in production TypeScript as a reason to stop and work through a decision tree.
スキルの内容
A contributed skill in the Prisma ORM repository that treats every bare as cast in production TypeScript as a reason to stop and work through a decision tree. In order, the agent tries to tighten the source type, add a runtime type guard, restructure a generic with a constraint, or use satisfies, and only then uses the repository's castAs helper for declarative assertions or, as a last resort, blindCast with a literal reason string a reviewer can judge. Test files are exempt. When editing any file that holds a bare cast, the agent converts or removes it, since a CI ratchet rejects pull requests that raise the cast count.
できること
- Replace bare TypeScript casts with safer forms
- Add type guards instead of assertions
- Document unavoidable casts with a reason
- Reduce the cast count when touching files
概要
- 公開元
- Prisma
- ツール
- コードレビュー
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
出典
- スキルファイル(SKILL.md)github.com/prisma/orm2026年11月10日
- GitHubリポジトリgithub.com/prisma/orm · 根拠となる項目:ライセンス, 公開元, 活動状況2026年11月11日
- リポジトリ内のフォルダ(no-bare-casts)github.com/prisma/orm · 根拠となる項目:スクリプトを含む2026年11月10日