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.
Was der Skill vermittelt
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.
Funktionen
- 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
Überblick
- Herausgeber
- Prisma
- Tool
- Code-Review
Installation
Das Projekt dokumentiert keine Installationsschritte, die wir bestätigen konnten. Zur Anleitung des Projekts
MCP-Server und Skills können Code auf deinem Rechner ausführen und auf deine Daten zugreifen. Prüfe den Quellcode, bevor du etwas installierst.
Details
| Angabe | Wert | Quelle |
|---|---|---|
| Typ | Skill | |
| Tool | Code-Review | |
| Herausgeber | Prisma | Quelle |
| Offizieller Status | In der Dokumentation nicht angegeben | |
| Braucht API-Key oder Anmeldung | In der Dokumentation nicht angegeben | |
| Enthält Skripte | Nein | Quelle |
| Plattformen | In der Dokumentation nicht angegeben | |
| KI-Clients | In der Dokumentation nicht angegeben | |
| Lizenz | Apache-2.0 | Quelle |
| Preis | In der Dokumentation nicht angegeben | |
| Aktivität | Letzter Commit am 11. Nov. 202647.664 GitHub-SterneKeine Download-Daten verfügbar (nicht auf npm oder PyPI) | Quelle |
| Links | Repository Website |
Mehr von 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)
Auch zu finden unter: Code-Review
Quellen
- Skill-Datei (SKILL.md)github.com/prisma/orm10. Nov. 2026
- GitHub-Repositorygithub.com/prisma/orm · Belegt: Lizenz, Herausgeber, Aktivität11. Nov. 2026
- Ordner im Repository (no-bare-casts)github.com/prisma/orm · Belegt: Enthält Skripte10. Nov. 2026