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.
What the skill teaches
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.
Capabilities
- 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
About
- Publisher
- Prisma
- Tool
- Code review
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Code review | |
| Publisher | Prisma | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | Apache-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 202647,664 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
More from Prisma
1 server · 24 skills
- prisma-8 (Skill)
- prisma-cli (Skill)
- prisma-client-api (Skill)
- prisma-compute (Skill)
- prisma-driver-adapter-implementation (Skill)
- prisma-mongodb-upgrade (Skill)
Also listed under: Code review
Sources
- Skill file (SKILL.md)github.com/prisma/ormNov 10, 2026
- GitHub repositorygithub.com/prisma/orm · Backs: Licence, Publisher, ActivityNov 11, 2026
- Folder in the repository (no-bare-casts)github.com/prisma/orm · Backs: Includes scriptsNov 10, 2026