ln-633-test-value-auditor by levnikolaevich/claude-code-skills
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-633-test-value-auditor路径说明: 文件路径(
shared/、references/、../ln-*)是相对于技能仓库根目录的。如果在当前工作目录中未找到,请定位此 SKILL.md 文件所在的目录,然后向上返回一级以找到仓库根目录。如果缺少shared/目录,请通过 WebFetch 从https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}获取文件。
专门用于为每个测试计算有用性分数的辅助工作者。
必读: 加载 shared/references/audit_worker_core_contract.md。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
接收包含以下内容的 contextStore:tech_stack、testFilesMetadata、codebase_root、output_dir。
必读: 加载 shared/references/two_layer_detection.md 以了解检测方法。
shared/templates/audit_worker_report_template.md 在内存中构建完整的 Markdown 报告,通过单次 Write 调用写入 {output_dir}/633-test-value.mdUsefulness Score = Business Impact (1-5) × Failure Probability (1-5)
| 分数 | 影响 | 示例 |
|---|---|---|
| 5 | 关键 | 金钱损失、安全漏洞、数据损坏 |
| 4 | 高 | 核心流程中断(结账、登录、注册) |
| 3 | 中 | 功能部分损坏、用户体验下降 |
| 2 | 低 | 轻微用户体验问题、界面错误 |
| 1 | 微不足道 | 界面问题、对用户无影响 |
| 分数 | 概率 | 指标 |
|---|---|---|
| 5 | 非常高 | 复杂算法、新技术、许多依赖项 |
| 4 | 高 | 多个依赖项、并发、边缘情况 |
| 3 | 中 | 标准 CRUD、框架默认值、既定模式 |
| 2 | 低 | 简单逻辑、成熟的库、简单操作 |
| 1 | 非常低 | 简单赋值、框架生成、不可能出错 |
| 分数范围 | 决策 | 操作 |
|---|---|---|
| ≥15 | KEEP | 测试有价值,保留它 |
| 10-14 | REVIEW | 考虑 E2E 是否已覆盖此场景 |
| < 10 | REMOVE | 删除测试,不值得维护成本。例外: 针对已知错误的回归防护 → KEEP。覆盖关键业务规则(支付、认证)的测试 → REVIEW |
Test: "processPayment calculates discount correctly"
Impact: 5 (Critical — money calculation)
Probability: 4 (High — complex algorithm, multiple payment gateways)
Usefulness Score = 5 × 4 = 20
Decision: KEEP
Test: "validateEmail returns true for valid email"
Impact: 2 (Low — minor UX issue if broken)
Probability: 2 (Low — simple regex, well-tested library)
Usefulness Score = 2 × 2 = 4
Decision: REMOVE (likely already covered by E2E registration test)
Test: "login with valid credentials returns JWT"
Impact: 4 (High — core flow)
Probability: 3 (Medium — standard auth flow)
Usefulness Score = 4 × 3 = 12
Decision: REVIEW (if E2E covers, remove; else keep)
流程:
KEEP (≥15):
REVIEW (10-14):
REMOVE ( <10):
常见的低价值测试 ( <10):
必读: 加载 shared/references/audit_worker_core_contract.md 和 shared/references/audit_scoring.md。
根据有用性分数映射严重性:
必读: 加载 shared/references/audit_worker_core_contract.md 和 shared/templates/audit_worker_report_template.md。
将报告写入 {output_dir}/633-test-value.md,并设置 category: "Risk-Based Value" 和检查项:usefulness_score, remove_candidates, review_candidates。
返回摘要给协调器:
Report written: docs/project/.audit/ln-630/{YYYY-MM-DD}/633-test-value.md
Score: X.X/10 | Issues: N (C:N H:N M:N L:N)
注意: 有用性分数 >=15 (KEEP) 的测试不包含在发现项中——仅报告问题。
必读: 加载 shared/references/audit_worker_core_contract.md。
必读: 加载 shared/references/audit_worker_core_contract.md。
{output_dir}/633-test-value.md(原子性单次 Write 调用)shared/references/audit_output_schema.md版本: 3.0.0 最后更新: 2025-12-23
每周安装数
153
仓库
GitHub 星标数
245
首次出现
2026年1月24日
安全审计
安装于
claude-code141
cursor138
gemini-cli137
codex137
opencode137
github-copilot132
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. Ifshared/is missing, fetch files via WebFetch fromhttps://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}.
Specialized worker calculating Usefulness Score for each test.
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
Receives contextStore with: tech_stack, testFilesMetadata, codebase_root, output_dir.
MANDATORY READ: Load shared/references/two_layer_detection.md for detection methodology.
shared/templates/audit_worker_report_template.md, write to {output_dir}/633-test-value.md in single Write callUsefulness Score = Business Impact (1-5) × Failure Probability (1-5)
| Score | Impact | Examples |
|---|---|---|
| 5 | Critical | Money loss, security breach, data corruption |
| 4 | High | Core flow breaks (checkout, login, registration) |
| 3 | Medium | Feature partially broken, degraded UX |
| 2 | Low | Minor UX issue, cosmetic bug |
| 1 | Trivial | Cosmetic issue, no user impact |
| Score | Probability | Indicators |
|---|---|---|
| 5 | Very High | Complex algorithm, new technology, many dependencies |
| 4 | High | Multiple dependencies, concurrency, edge cases |
| 3 | Medium | Standard CRUD, framework defaults, established patterns |
| 2 | Low | Simple logic, well-established library, trivial operation |
| 1 | Very Low | Trivial assignment, framework-generated, impossible to break |
| Score Range | Decision | Action |
|---|---|---|
| ≥15 | KEEP | Test is valuable, maintain it |
| 10-14 | REVIEW | Consider if E2E already covers this |
| < 10 | REMOVE | Delete test, not worth maintenance cost. Exception: regression guards for known bugs → KEEP. Tests covering critical business rules (payment, auth) → REVIEW |
Test: "processPayment calculates discount correctly"
Impact: 5 (Critical — money calculation)
Probability: 4 (High — complex algorithm, multiple payment gateways)
Usefulness Score = 5 × 4 = 20
Decision: KEEP
Test: "validateEmail returns true for valid email"
Impact: 2 (Low — minor UX issue if broken)
Probability: 2 (Low — simple regex, well-tested library)
Usefulness Score = 2 × 2 = 4
Decision: REMOVE (likely already covered by E2E registration test)
Test: "login with valid credentials returns JWT"
Impact: 4 (High — core flow)
Probability: 3 (Medium — standard auth flow)
Usefulness Score = 4 × 3 = 12
Decision: REVIEW (if E2E covers, remove; else keep)
Process:
KEEP (≥15):
REVIEW (10-14):
REMOVE ( <10):
Common low-value tests ( <10):
MANDATORY READ: Load shared/references/audit_worker_core_contract.md and shared/references/audit_scoring.md.
Severity mapping by Usefulness Score:
MANDATORY READ: Load shared/references/audit_worker_core_contract.md and shared/templates/audit_worker_report_template.md.
Write report to {output_dir}/633-test-value.md with category: "Risk-Based Value" and checks: usefulness_score, remove_candidates, review_candidates.
Return summary to coordinator:
Report written: docs/project/.audit/ln-630/{YYYY-MM-DD}/633-test-value.md
Score: X.X/10 | Issues: N (C:N H:N M:N L:N)
Note: Tests with Usefulness Score >=15 (KEEP) are NOT included in findings -- only issues are reported.
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
{output_dir}/633-test-value.md (atomic single Write call)shared/references/audit_output_schema.mdVersion: 3.0.0 Last Updated: 2025-12-23
Weekly Installs
153
Repository
GitHub Stars
245
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
claude-code141
cursor138
gemini-cli137
codex137
opencode137
github-copilot132
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
33,600 周安装