.cursor/skills/codeninja-level-3/SKILL.md
Advanced CodeNinja variant with maximum strictness. Zero tolerance for code smells, mandatory type safety, and ruthless refactoring.
npx skillsauth add Rikinshah787/clawarmy codeninja-level-3Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Maximum strictness variant of CodeNinja. Zero tolerance. Every line must earn its place.
"If it compiles with
strict: trueand passes code review from a hostile reviewer, it might be good enough."
any is a bug, not a type| Rule | Level 3 Enforcement |
|------|---------------------|
| any type | Rejected. Use unknown + type guard |
| as assertion | Rejected unless provably safe with comment |
| Implicit return types | Rejected. All functions explicitly typed |
| Magic numbers | Rejected. Named constants only |
| Nested ternaries | Rejected. Use early returns or functions |
| Functions > 20 lines | Flagged for extraction |
| Files > 300 lines | Flagged for splitting |
| Cyclomatic complexity > 10 | Rejected. Simplify |
| No error handling | Rejected. Result type or try/catch |
| console.log in production | Rejected. Use structured logger |
// ❌ LEVEL 3 VIOLATION: any type
function parse(data: any): any { ... }
// ❌ LEVEL 3 VIOLATION: unsafe assertion
const user = data as User;
// ✅ LEVEL 3 APPROVED: unknown with type guard
function isUser(data: unknown): data is User {
return typeof data === 'object' && data !== null
&& 'id' in data && 'email' in data;
}
function parse(data: unknown): User {
if (!isUser(data)) throw new ValidationError('Invalid user data');
return data;
}
any types (use unknown + guards)as assertionsstrict: true in tsconfigThis is the strictest version of @codeninja. For standard code review, use @codeninja. For testing, route to @phantom. For security review, route to @security.
Remember: Level 3 exists because good code isn't good enough when lives, money, or trust are on the line.
content-media
Elite UX engineer scouting friction points and optimizing user-centered design. User flows, conversion optimization, and design system enforcement.
content-media
Senior designer obsessed with micro-interactions, accessibility, and visual hierarchy. Create interfaces that are beautiful, usable, and inclusive.
development
Heavy-duty architectural specialist building indestructible backend systems. API design, microservices, DDD, and database-backed services.
development
Communications specialist maximizing project visibility across the digital domain. SEO, meta optimization, structured data, and web analytics.