AGENT SKILL

review-change

Review a change in this repository against its invariants, specifications, tests, and documentation contract.

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
review-change
description
Review a change in this repository against its invariants, specifications, tests, and documentation contract.

03 SKILL.md 正文

Review a change

  1. Read AGENTS.md and the specification module the change touches. Review the whole diff, not the summary of it.
  2. Check the nine invariants in AGENTS.md one at a time: specs decide behaviour; libpachinko performs no effect itself; Send + Sync + 'static, Clone, Debug and #[non_exhaustive] on every public type; no unsafe; pachinko depends on libpachinko, never the reverse; pedantic clippy with expect only; the coverage floor intact; Cargo.lock the pin with caret ranges and --locked; no dependency without the decision-0007 note.
  3. Check the change against the specification it implements. A rule, guard or threshold decided in code rather than in docs/specs/ is a finding even when the behaviour looks right.
  4. Check the test evidence. A test that only asserts a function was called is not evidence; a test that supplies values through a fake and asserts what the library did with them is. A public item without a doctest that asserts is a finding.
  5. Check the boundaries. libpachinko reaches the clock, randomness, the filesystem, the network, the environment and threads only through its own traits; the real implementations live in pachinko; no test replaces a trait with a global or a thread-local. Run just effects, and read libpachinko's diff for a direct std::fs, std::time, std::env, std::net, std::process or std::thread call that its std-API bans miss: one newer than the list in crates/libpachinko/clippy.toml, or one behind another target's cfg, a mix of features, cfg(not(clippy)) or a custom cfg.
  6. Check documentation ownership. A durable fact belongs on the page that owns its topic in docs/manifest.yml, added there rather than restated.
  7. Check scope. Unrelated refactors, new dependencies and speculative abstractions are findings in themselves.
  8. Report findings by severity with file:line, what breaks, and the smallest fix. Run just check before concluding.

04 同仓库更多 Skills

BiscuitBin
BiscuitBin/pachinko

witness

Independently witness that an Allium loop's convergence claim is true and was reached honestly. Use when the user wants to verify a loop's self-report, confirm tests really pass and no generated test was weakened, produce a convergence certificate or witness record, gate CI on a trustworthy signal, or check that an autonomous run did not cheat its way to green.

★ 0
BiscuitBin
BiscuitBin/pachinko

weed

Weed the Allium garden. Find where Allium specifications and implementation code have diverged, and help resolve the divergences. Use when the user wants to check spec-code alignment, compare specs against implementation, audit for spec drift or violations, sync specs with code or code with specs, or verify whether the implementation matches what the spec says.

★ 0
BiscuitBin
BiscuitBin/pachinko

tend

Tend the Allium garden. Use when the user wants to write, edit, update, add to, improve, clarify, refine, restructure, fix or migrate Allium specs. Covers adding entities, rules, triggers, surfaces and contracts, fixing syntax or validation errors, renaming or refactoring within specs, migrating specs to a new language version, and translating requirements into well-formed specifications. Pushes back on vague requirements.

★ 0
BiscuitBin
BiscuitBin/pachinko

spec-change

Change an Allium specification and carry the change through the tests and the implementation.

★ 0
BiscuitBin
BiscuitBin/pachinko

rust-change

Implement or review a change to either crate with the effects boundary, tests and documentation evidence the invariants require.

★ 0
BiscuitBin
BiscuitBin/pachinko

review-docs

Add or revise a handbook page so it satisfies the documentation contract and stays reachable.

★ 0