用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nirecom/agents --skill sweep-tests命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Edit source code for the current task. Delegates editing and lint/typecheck/self-repair to a subagent.
Plan and write test cases with high reasoning effort. Test iteration runs in a subagent to minimize confirmations.
Conduct a decision-tree interview with the user to lock in requirements, motivation, scope, and non-goals before planning.
基于 SOC 职业分类
正在显示 SKILL.md
| name | sweep-tests |
| description | Removes stale and orphaned test files (deletes by default; --dry-run previews). |
| user-invocable | true |
| model | sonnet |
Retires test files whose # Tests: targets are gone. A flagless run deletes; --dry-run reports only.
STE-1. Run bash "$AGENTS_CONFIG_DIR/bin/audit-tests.sh" [--dry-run] [--apply] [--stale-months N] [--offline] [--format text|json] [--fix-headers] — issue-specific scope.
STE-2. Run bash "$AGENTS_CONFIG_DIR/bin/audit-tests-common.sh" [--dry-run] [--apply] [--stale-months N] [--offline] [--format text|json] [--fix-headers] — scope:common.
STE-3. Run bash "$AGENTS_CONFIG_DIR/bin/audit-tests.sh" --dup-groups — corpus-wide # Tests: duplicate-group inventory. Pass no other flag.
# Tests: path is gone.SKIP_DELETE_ISSUE_ACTIVE, SKIP_DELETE_METADATA_UNAVAILABLE, or SKIP_DELETE_AMBIGUOUS_REF; the file stays listed and on disk.CANDIDATE:/ORPHAN: lines while MALFORMED_HEADER:/NO_TESTS_HEADER: lines are present means the survival axis is clear and repair still remains on the header axis.tests/<stem>/ folder are retired as one unit.--dry-run suppresses every write: no deletion, no header rewrite.--apply is an explicit synonym of the flagless default; both scripts accept it.--fix-headers reports format-invalid tokens (FIX_A:/FIX_B:) without rewriting; add --apply to rewrite # Tests: headers in-place (atomic, exec-bit preserved). Multi-paren tokens are excluded from auto-rewrite (SKIP_APPLY_MULTI_PAREN).--fix-headers --dry-run is report-only as well; no file is ever touched.--offline skips GitHub API calls; candidates are still reported and deletion of issue-referencing files is held.--stale-months N (default 3) moves the delete-time staleness boundary only.--dup-groups is read-only; combining it with explicit --apply, --fix-headers, or --format json exits 2.--dup-groups covers the whole corpus and emits the same TSV from either entrypoint, so call one.skip rows by reason; they never join a group.key and files are escaped; the decoding rule is in the bin/lib/test-dup-group.sh header.