| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
docs(repo): add a test-audit skill with an authoring gate and an audit mode (#6890) ## Problem Nothing limits test growth, and agents write a test for nearly every change. The rules against low-value tests live as prose in the "Test quality" section of `AGENTS.md`, which agents skim past when they add or review tests. ## Change - Adds `.agents/skills/test-audit/SKILL.md`, which loads whenever a test is written, changed or reviewed. It includes: - **Authoring gate:** four questions a new test must answer before it's added. - **Level rule:** one primary test per contract, at the strongest boundary that can reach it. - **Junk-pattern checklist:** fitted to our Effect layers, handler integration tests and `runSupabase()` e2e, including real-time waits on production timeouts. - **Retention bar and regression-test rule.** - **Read-only audit mode:** a retain / fix / consolidate / delete ledger with one evidence line per mark. - "Test quality" in `AGENTS.md` points to the skill and drops the redundant-coverage bullet, which the skill now covers. - `.claude/skills/` holds one symlink per repo skill (`effect`, `test-audit`) into `.agents/skills/`, so Claude Code discovers them automatically and Codex keeps reading `.agents/skills`. `.gitignore` now ignores `.claude/*` except `.claude/skills`, and local state such as worktrees and settings stays ignored. A new skill in `.agents/skills` needs a matching symlink. | 2 天前 |