xiaohongshu
xiaohongshu
ln-634-test-coverage-auditor
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.
Full skill instructions
Specialized worker identifying missing tests for critical business logic.
Receives contextStore with critical paths classification, codebase structure, test file list.
Domain-aware fields (NEW):
domain_mode: "domain-aware" | "global" (optional, defaults to "global")current_domain: {name, path} when domain_mode="domain-aware"Example contextStore (domain-aware):
{
"tech_stack": {...},
"best_practices": {...},
"testFilesMetadata": [...],
"codebase_root": "/project",
"domain_mode": "domain-aware",
"current_domain": {
"name": "orders",
"path": "src/orders"
}
}
Parse context from contextStore
IF domain_mode == "domain-aware":
scan_path = codebase_root + "/" + current_domain.path
domain_name = current_domain.name
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:
critical_paths = count of critical paths
tested_paths = count of critical paths with tests
coverage_percentage = (tested_paths / critical_paths) * 100
score = coverage_percentage / 10 // 100% coverage = 10 score
score = max(0, min(10, score))
Global mode output:
{
"category": "Coverage Gaps",
"score": 6,
"critical_paths_total": 25,
"tested_paths": 15,
"untested_paths": 10,
"coverage_percentage": 60,
"findings": [
{
"severity": "CRITICAL",
"category": "Money",
"missing_test": "E2E: Payment with discount code",
"location": "services/payment.ts:processPayment()",
"priority": 25,
"justification": "Money calculation with discount logic — high risk of incorrect total",
"test_type": "E2E",
"effort": "M"
}
]
}
Domain-aware mode output (NEW):
{
"category": "Coverage Gaps",
"score": 7,
"domain": "orders",
"scan_path": "src/orders",
"critical_paths_total": 12,
"tested_paths": 8,
"untested_paths": 4,
"coverage_percentage": 67,
"findings": [
{
"severity": "CRITICAL",
"category": "Money",
"missing_test": "E2E: applyDiscount() with edge cases",
"location": "src/orders/services/order.ts:45",
"priority": 25,
"justification": "Discount calculation in orders domain — high risk of incorrect total",
"test_type": "E2E",
"effort": "M",
"domain": "orders"
},
{
"severity": "HIGH",
"category": "Data Integrity",
"missing_test": "Integration: orderTransaction() rollback",
"location": "src/orders/repositories/order.ts:78",
"priority": 18,
"justification": "Data corruption risk in orders domain",
"test_type": "Integration",
"effort": "M",
"domain": "orders"
}
]
}
domain_mode="domain-aware", scan ONLY scan_path production code (not entire codebase)domain field in each finding when domain-awareVersion: 3.0.0 Last Updated: 2025-12-23
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience