test-audit
Writing/changing/reviewing/sweeping tests: reject duplicate or implementation-coupled proof; remove test-only production seams.
- License 许可
- MIT
- 所属仓库
- carterdea/dots
- 最近更新
- 2026-11-15
- Stars
- ★ 4
- Forks
- 3
01 前言 Front Matter
- name
- test-audit
- description
- Writing/changing/reviewing/sweeping tests: reject duplicate or implementation-coupled proof; remove test-only production seams.
02 资源文件 6
- 参考文档CAMPAIGN.md5.7 KB
- 许可证LICENSE1.1 KB
- 参考文档PROVENANCE.md2.3 KB
- 参考文档references/audit.md3.4 KB
- 参考文档references/boundaries.md2.3 KB
- 参考文档references/proof.md2.2 KB
03 SKILL.md 正文
Test Audit
- Authoring gates every new/changed test.
- For an audit request, start read-only and report findings. Edit or remove tests only when the task authorizes those changes.
- Follow the target repository's instructions and package manager; examples in upstream campaign notes are illustrative.
- Source, license, and portability changes: provenance.
- Audits: remove low-value proof in coherent owner batches; never chase deletion counts.
- Whole-subsystem campaign: read CAMPAIGN.md first.
Authoring gate
Before adding test, answer:
- Protected observable behavior, invariant, or independent contract?
- Credible regression that makes it fail?
- Why existing proof misses it? Each contract: one primary owner at strongest boundary. Another layer needs distinct transport/lifecycle risk. Extend tables/shared fixtures; consolidate repeated setup.
- Export, flag, wrapper, injection hook with no production caller needed? Move proof to real boundary instead.
- Use boundary and cost guide.
- Regressions must fail pre-fix for intended reason, pass after repair; report unavailable baseline proof.
- One owner regression covers bug; never replay at every crossed layer.
- Behavior-preserving refactors should not break test.
Junk patterns
- Reject self-comparisons, copied inventories, source greps, implementation/call-shape assertions, duplicate contracts, test-only seams, subject-generated expected values, mocks supplying asserted behavior.
- Fixtures must not fabricate owner receipts/order or claim persistence path never writes.
- Negative controls must fail at intended guard; names must match exercised behavior.
- Auditing candidates: use full checklist.
Retention bar
- Keep independent API, SDK, protocol, config, migration, storage, security, platform, default, prompt-byte, generated-language, package, release, architecture, observable-ordering contracts. Static/slow ≠ disposable.
- Source inspection must survive identifier-only refactors and guard independent user-facing contract.
- Baseline failures may be bugs to repair, not tests to delete.
Audit and validation
- Before audit edit: read candidate evidence and workflow; inspect full owners/callers/history; record remaining proof before deletion.
- Delete obsolete production seams with tests; never optimize for deletion counts.
- Follow proof policy; preserve active test runs; run owner/sibling proof + changed checks; then autoreview.
- Report causes, retained contracts, proof/cost, production versus test LOC, follow-ups. Commit/push/land only with task authority.
04 同仓库更多 Skills
untangle-codebase
Untangle a whole codebase in one pass, so agents working in it read less per change, break less without noticing, and debug faster.
write-swift
How to write modern Swift well — modeling with value types, Swift 6 data-race safety and approachable concurrency (@concurrent, main-actor-by-default, actors, task groups), protocols and generics (some vs any), API design, performance and ARC, Swift Testing, macros, and the modern language features agents don't know about yet. Use when writing, reviewing, or migrating Swift, or when a concurrency error, a hang, a data race, a retain cycle, or a performance problem needs fixing.
stageshow
Build faux product UI that looks like a real product, as a still illustration or an animated demo with a cursor. Browser and app windows, dashboards, phones, notifications, terminals, bento grids and cursor walkthroughs, framed, masked and cropped the way a marketing page, feature card or docs hero needs them. Use whenever someone wants a fake or mocked UI, a product demo or walkthrough animation, a hero or feature-card illustration of an app, a product shot in the style of a polished marketing site, or an animated cursor doing things in an interface, even if they never say "faux UI". React and plain CSS.
review-animations
Reviews animation and motion code against a high craft bar derived from Emil Kowalski's design engineering philosophy. Default to flagging; approval is earned.
remove-animations
Find the animations an interface doesn't need and remove them — motion on keyboard actions, high-frequency surfaces, functional data, and decoration with no purpose — then clean up what they leave behind. Edits code, but only to subtract; it never adds or retunes motion. Use when the user says the app "feels slow", "has too much animation", "feels over-animated", wants to "tone down the motion", or asks what animations to remove. For finding places that should animate, use find-animation-opportunities; for fixing animations that should stay, use improve-animations or review-animations.
improve-animations
Survey a codebase's animation and motion code as a senior motion advisor, then produce a prioritized audit and self-contained implementation plans for other agents (or cheaper models) to execute. Read-only on source code — it plans improvements, it does not apply them. Use when the user asks to "improve the animations", "audit the motion", "make this app feel better", or wants a roadmap of animation fixes rather than a review of a single diff.