Ln 631 Test Business Logic Auditor
Audits business logic code for errors, inefficiencies, and adherence to standards using advanced AI analysis.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add ln-631-test-business-logic-auditor npx -- -y @trustedskills/ln-631-test-business-logic-auditor
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"ln-631-test-business-logic-auditor": {
"command": "npx",
"args": [
"-y",
"@trustedskills/ln-631-test-business-logic-auditor"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The Ln 631 Test Business Logic Auditor is a specialized AI agent worker designed to audit tests within a codebase, specifically focusing on business logic (Category 1). It identifies and flags tests that primarily validate framework or library behavior rather than the application's custom code. The skill calculates a compliance score (X/10) based on its findings and generates a detailed markdown report outlining identified issues and recommendations.
When to use it
This skill is useful in these scenarios:
- Ensuring test suites focus on validating core business logic, rather than framework implementation details.
- Identifying redundant or unnecessary tests that solely verify the behavior of underlying frameworks or libraries.
- Improving code quality by removing tests that don't contribute to verifying custom application logic.
- Calculating a compliance score for adherence to testing standards within a project.
Key capabilities
- Framework/Library Test Detection: Identifies tests validating Express, Fastify, Koa, Prisma, Mongoose, Sequelize, and TypeORM behavior.
- Two-Layer Detection Methodology: Employs a two-layered approach for identifying framework tests (scanning test files followed by code analysis).
- Compliance Score Calculation: Generates a compliance score (X/10) based on the number and severity of identified violations.
- Detailed Reporting: Creates a comprehensive markdown report including violation details, location (file:line), effort estimate (S/M/L), and recommendations.
Example prompts
Here are some example prompts you could use with an AI agent equipped with this skill:
- "Audit the business logic tests in my project located at
/path/to/codebase." - "Analyze the test suite for compliance with our testing standards, writing the report to
/output/directory." - “Run a business logic audit and tell me what the compliance score is.”
Tips & gotchas
- Mandatory Context: The skill requires a
contextStorecontainingtech_stack,testFilesMetadata,codebase_root, andoutput_dir. - Reference Files: You must load
shared/references/audit_worker_core_contract.mdandshared/references/two_layer_detection.mdfor proper operation. - Framework Integration Tests: The skill is designed to identify tests that only validate framework behavior; tests integrating custom code with frameworks should be kept.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.