ban-type-assertions
Pass
Audited by Gen Agent Trust Hub on Apr 23, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [SAFE]: The skill's primary function is to improve code reliability and security by replacing unverified type assertions ('as X') with runtime validation schemas and exhaustive control flow narrowing.- [COMMAND_EXECUTION]: The skill provides instructions for running standard project verification scripts such as 'npm run lint', 'npm run typecheck', and 'npm run test' to ensure refactoring does not introduce regressions.- [EXTERNAL_DOWNLOADS]: References established and reputable libraries, specifically Zod and the TypeScript ESLint plugin ecosystem, which are standard for type-safe development.- [DATA_EXFILTRATION]: Instructions to move shared logic to '@factory/common' follow standard internal repository organization patterns for the 'factory-ai' vendor and do not involve unauthorized data movement.
Audit Metadata