no-bare-casts
100 / 100 · Low risk
Fine to try.
Writing `as` in TypeScript or TSX production code, modifying a file that contains a bare `as` cast, silencing a type error with a cast, encountering `as unknown as`, or reviewing a cast site.
What this skill can do
We found nothing in the files we read that matches our rules. That does not prove the skill is safe: see the limits of static scanning.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'no-bare-casts' ] || [ -L ~/.agents/skills/'no-bare-casts' ]; then echo 'A skill folder named no-bare-casts already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/modem-dev/ossrules' "$d" && git -C "$d" checkout --quiet '9625409b6c20077e1d92909e15e800608a85a776' -- 'public/files/prisma/skills-contrib/no-bare-casts' && mkdir -p ~/.agents/skills && cp -R "$d"/'public/files/prisma/skills-contrib/no-bare-casts' ~/.agents/skills/'no-bare-casts' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'no-bare-casts' ~/.claude/skills/'no-bare-casts' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/modem-dev/ossrules/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-07 | 9625409 | 100 |