用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill chunk-testing-gaps命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | chunk-testing-gaps |
| description | >- Use when this capability is needed. |
Perform mutation testing on the current codebase to find gaps in test coverage.
Perform mutation testing on this codebase. A mutation is a small, deliberate change to production code that mimics a realistic bug a human might introduce. A mutant is the resulting modified codebase. If the test suite catches the bug (tests fail), the mutant is killed. If tests still pass, the mutant survives — exposing a gap in test coverage.
The objective is to find as many surviving mutants as possible, prioritised by risk.
This prompt expects to be run in the context of a local clone of a VCS project. If that is not the case, stop and explain why you cannot proceed.
Before any testing, ensure local dependencies are running (docker compose up -d or equivalent). On compose failure, check whether containers from another project are occupying ports and kill them.
== ↔ !=, < ↔ <=), removed or inverted if branches, swapped switch/case fall-throughs, early returns removed or addedFocus mutations where test coverage is likely weakest. Look for these patterns:
Investigate the codebase and identify candidate mutations. Use subagents to parallelise discovery across packages, modules, or directories — one subagent per logical area.
Each mutation must be assigned a unique sequential number (e.g. MUT-001, MUT-002, ...).
Target density: aim for roughly 1 mutation per 50 lines of production code (e.g. ~1000 mutations for a 50k LOC codebase). This is a guideline, not a hard rule — dense areas may yield more, sparse areas fewer.
Time cap: if no new viable mutation has been identified for 3 minutes, stop discovery and proceed with what you have.
For each candidate, record:
For each candidate mutation:
chunk/mut-<NUMBER>-<short-kebab-description> (e.g. chunk/mut-042-remove-auth-check)../do, Taskfile, or whatever is configured). If the project has no local tooling, check CI config for what tools are used and attempt to run them locally. Do not install missing tools without prompting.-race -timeout 1m). If tests take longer than 1 minute, consider the mutation viable and move on.Batching: push surviving branches in batches (e.g. 10–20 at a time) rather than sequentially. Poll for CI results across the batch before pushing the next.
Cleanup: after a mutant is killed (locally or in CI), remove the worktree promptly to avoid disk/git overhead.
Once all CI pipelines have completed, produce a summary table:
| # | Mutation | File | Line | Branch Link | Status |
|---|---|---|---|---|---|
| MUT-001 | Inverted auth check | pkg/auth/verify.go | 42 | chunk/mut-001-invert-auth | Survivor |
| MUT-002 | Removed nil guard | pkg/api/handler.go | 118 | chunk/mut-002-rm-nil-guard | Killed (CI) |
Include links to the branch in the VCS for each mutation.
Attempt to determine whether the surviving mutants' code paths are exercised in production. Use any available observability tooling — Honeycomb, Datadog, or other connected MCP servers or CLIs.
Concrete approaches:
If no observability access is available, note this and skip to Stage 4.
Update the summary table with a Production Traffic column indicating: High (clear evidence of regular traffic), Low (occasional or indirect traffic), None found (no evidence), or Unknown (no observability access).
For each survivor, assess overall risk based on:
Assign a risk level: Critical, High, Medium, or Low.
Present the final summary table sorted by risk (highest first):
| # | Mutation | File | Line | Branch | Production Traffic | Risk | Rationale |
|---|---|---|---|---|---|---|---|
| MUT-001 | Inverted auth check | pkg/auth/verify.go | 42 | [link] | High | Critical | Auth bypass on a hot path, no test coverage |
| MUT-017 | Hardcoded timeout to 0 | pkg/worker/poll.go | 89 | [link] | Low | Medium | Would cause tight loop but only in batch worker |
Source: CircleCI-Public/chunk-cli — distributed by TomeVault.
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类