Loading...
Loading...
Business Logic Focus audit worker (L3). Detects tests that validate framework/library behavior (Prisma, Express, bcrypt, JWT, axios, React hooks) instead of OUR code. Returns findings with REMOVE decisions.
npx skill4agent add levnikolaevich/claude-code-skills ln-631-test-business-logic-auditorcontextStore(express|fastify|koa).(use|get|post|put|delete|patch)(prisma|mongoose|sequelize|typeorm).(find|findMany|create|update|delete|upsert)(bcrypt|argon2).(hash|compare|verify|hashSync)(jwt|jsonwebtoken).(sign|verify|decode)(axios|fetch|got|request).(get|post|put|delete|patch)(useState|useEffect|useContext|useReducer|useMemo|useCallback)shared/references/audit_scoring.md{
"category": "Business Logic Focus",
"score": 7,
"total_issues": 12,
"critical": 0,
"high": 0,
"medium": 10,
"low": 2,
"checks": [
{"id": "framework_tests", "name": "Framework Tests Detection", "status": "failed", "details": "Found 6 tests validating Express/Fastify behavior"},
{"id": "orm_tests", "name": "ORM Library Tests", "status": "warning", "details": "Found 4 Prisma validation tests"},
{"id": "business_logic_coverage", "name": "Business Logic Coverage", "status": "passed", "details": "Core business logic properly tested"}
],
"findings": [
{
"severity": "MEDIUM",
"location": "auth.test.ts:45-52",
"issue": "Test 'bcrypt hashes password' validates library behavior, not OUR code",
"principle": "Business Logic Focus / Framework Testing",
"recommendation": "Delete test — bcrypt already tested by maintainers",
"effort": "S"
},
{
"severity": "MEDIUM",
"location": "db.test.ts:78-85",
"issue": "Test 'Prisma findMany returns array' validates ORM behavior, not OUR query logic",
"principle": "Business Logic Focus / ORM Testing",
"recommendation": "Delete test — Prisma already tested",
"effort": "S"
}
]
}shared/references/audit_scoring.mdshared/references/audit_output_schema.md