.claude/skills/ln-634-test-coverage-auditor/SKILL.md
Coverage Gaps audit worker (L3). Identifies missing tests for critical paths (Money 20+, Security 20+, Data Integrity 15+, Core Flows 15+). Returns list of untested critical business logic with priority justification.
npx skillsauth add cbbkrd-tech/jl-finishes ln-634-test-coverage-auditorInstall 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.
Paths: File paths (
shared/,references/,../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.
Specialized worker identifying missing tests for critical business logic.
MANDATORY READ: Load shared/references/task_delegation_pattern.md#audit-coordinator--worker-contract for contextStore structure.
Receives contextStore with: tech_stack, testFilesMetadata, codebase_root.
Domain-aware: Supports domain_mode + current_domain (see audit_output_schema.md#domain-aware-worker-output).
Parse context — extract fields, determine scan_path (domain-aware if specified)
ELSE:
scan_path = codebase_root
domain_name = null
Identify critical paths in scan_path (not entire codebase)
scan_path for money/security/data keywordsscan_path (not codebase_root)Grep(pattern="payment|refund|discount", path=scan_path)Check test coverage for each critical path
Collect missing tests
domain: domain_name (if domain-aware)Calculate score
Return JSON with domain metadata
domain and scan_path fields (if domain-aware)What: Any code handling financial transactions
Examples:
/payment, processPayment())calculateDiscount(), applyPromoCode())calculateTax(), getTaxRate())processRefund(), /refund)generateInvoice(), createBill())convertCurrency())Min Priority: 20
Why Critical: Money loss, fraud, legal compliance
What: Authentication, authorization, encryption
Examples:
/login, authenticate())/refresh-token, refreshAccessToken())/forgot-password, resetPassword())checkPermission(), hasRole())validateApiKey())Min Priority: 20
Why Critical: Security breach, data leak, unauthorized access
What: CRUD operations, transactions, validation
Examples:
createUser(), deleteOrder(), updateProduct())withTransaction())runMigration())checkDuplicateEmail())Min Priority: 15
Why Critical: Data corruption, lost data, inconsistent state
What: Multi-step flows critical to business
Examples:
Min Priority: 15
Why Critical: Broken user flow = lost customers
Process:
payment, refund, discount, tax, price, currencyauth, login, password, token, permission, encrypttransaction, validation, migration, constraintFor each critical path:
Severity by Priority:
For each missing test:
MANDATORY READ: Load shared/references/audit_scoring.md for unified scoring formula.
Severity mapping by Priority:
Return JSON to coordinator:
{
"category": "Coverage Gaps",
"score": 6,
"total_issues": 10,
"critical": 3,
"high": 4,
"medium": 2,
"low": 1,
"checks": [
{"id": "line_coverage", "name": "Line Coverage", "status": "passed", "details": "85% coverage (threshold: 80%)"},
{"id": "branch_coverage", "name": "Branch Coverage", "status": "warning", "details": "72% coverage (threshold: 75%)"},
{"id": "function_coverage", "name": "Function Coverage", "status": "passed", "details": "90% coverage (threshold: 80%)"},
{"id": "critical_gaps", "name": "Critical Gaps", "status": "failed", "details": "3 Money flows, 2 Security flows untested"}
],
"domain": "orders",
"scan_path": "src/orders",
"findings": [
{
"severity": "CRITICAL",
"location": "src/orders/services/order.ts:45",
"issue": "Missing E2E test for applyDiscount() (Priority 25, Money flow)",
"principle": "Coverage Gaps / Money Flow",
"recommendation": "Add E2E test: applyDiscount() with edge cases (negative discount, max discount, currency rounding)",
"effort": "M"
},
{
"severity": "HIGH",
"location": "src/orders/repositories/order.ts:78",
"issue": "Missing Integration test for orderTransaction() rollback (Priority 18, Data Integrity)",
"principle": "Coverage Gaps / Data Integrity",
"recommendation": "Add Integration test verifying transaction rollback on failure",
"effort": "M"
}
]
}
Note: domain and scan_path fields included only when domain_mode="domain-aware".
domain_mode="domain-aware", scan ONLY scan_path production code (not entire codebase)domain field in each finding when domain-awareshared/references/audit_scoring.mdshared/references/audit_output_schema.mdVersion: 3.0.0 Last Updated: 2025-12-23
testing
When the user wants to plan a content strategy, decide what content to create, or figure out what topics to cover. Also use when the user mentions "content strategy," "what should I write about," "content ideas," "blog strategy," "topic clusters," or "content planning." For writing individual pieces, see copywriting. For SEO-specific audits, see seo-audit.
development
When the user wants to create competitor comparison or alternative pages for SEO and sales enablement. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' or 'competitive landing pages.' Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. Emphasizes deep research, modular content architecture, and varied section types beyond feature tables.
development
Write B2B cold emails and follow-up sequences that get replies. Use when the user wants to write cold outreach emails, prospecting emails, cold email campaigns, sales development emails, or SDR emails. Covers subject lines, opening lines, body copy, CTAs, personalization, and multi-touch follow-up sequences.
development
When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' or 'involuntary churn.' This skill covers voluntary churn (cancel flows, save offers, exit surveys) and involuntary churn (dunning, payment recovery). For post-cancel win-back email sequences, see email-sequence. For in-app upgrade paywalls, see paywall-upgrade-cro.