fix-quality
Diagnose and repair a failing quality gate at its root instead of suppressing the finding.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- fix-quality
- description
- Diagnose and repair a failing quality gate at its root instead of suppressing the finding.
03 SKILL.md 正文
Fix a failing gate
- Read
AGENTS.md, then reproduce with the narrowest recipe rather than the whole gate.just checknames the recipe that failed; run that one alone. - Dispatch on which gate failed:
check-toolchain— cargo is not rustup's proxy, or rustup is missing. Put~/.cargo/binfirst onPATH; the pin inrust-toolchain.tomlis honoured only through that proxy. If it says the active toolchain must be the pin,RUSTUP_TOOLCHAINor arustup overrideoutranks the file, or the pin is missing: unset the variable or runrustup override unset, thenjust install-toolchain.lock-check— runjust lock, which reaches the network and so needs explicit authorization, and read the lockfile diff before accepting it.lint— a pre-commit hook failed. A hook named after a gate (fmt-check,toml-check,deps-unused,validate-docsforcheck-docs,validate-agentsforcheck-agents,check-specs,analyse-specs) goes to that gate's line below. For the rest (Markdown, typos, links, shell, workflows, secrets, whitespace), runjust fixfor what a fixer can repair, then fix the remainder by hand; a secret found byripsecretsis removed, never allowlisted.fmt-checkortoml-check— runjust fix; never hand-format to match.clippy— fix the code. A lint that is wrong for one item gets#[expect(lint, reason = "...")]on that item; a lint that is wrong for the crate is changed in the workspace lint table inCargo.tomlwith a comment saying why, never disabled at the call site withallow.metrics— lower the complexity, cohesion or coupling rustqual reports. Never raise a threshold inrustqual.toml. A version mismatch meansjust install-tools, a network recipe that needs explicit authorization, has not run in this worktree.effects— libpachinko reaches an effect directly. Put it behind a trait libpachinko defines, with a fake beside it, and its real implementation in pachinko. A failure on the fixture undertests/fixtures/effects-violationnames its cause; read it before touching a ban list. When the fixture's// ban:tags and a ban list (scripts/check-effects.shorcrates/libpachinko/clippy.toml) disagree, or a ban stays silent or fires twice, add or remove the break and its// ban:tag with the ban, and never weaken a break to quiet the probe. When nothing fired, a lint cap or-A warningsinRUSTFLAGS,CARGO_ENCODED_RUSTFLAGSor a cargo config'srustflagsis hiding every finding: remove it, not a ban. When the fixture did not compile, either a ban names an API unstable on the pinned toolchain or the fixture has an error. When a matcher missed a crate or a ban the probe saw, the defect is inscripts/check-effects.sh. A drift failure means the rootclippy.tomlchanged without its mirror incrates/libpachinko/clippy.toml.features— a feature that does not compile alone or in combination. Fix thecfg; a feature combination is never dropped from the powerset.test-doc— a doctest fails. Fix the example or the item it documents; doc examples are tests.coveragebelow the floor — add the missing test. Never lowercoverage_floorin theJustfile.doc— a missing doc comment or a broken intra-doc link;missing_docsis on and warnings are errors there.denyordeps-unused— a licence, a ban or an unused dependency; a new dependency is a decision recorded per decision 0007, andjust fixrunscargo shear --fix.check-docs— a frontmatter list that disagrees withdocs/manifest.ymlis usually list order; the comparison is order-sensitive.check-agents— a bridge under.claude/or.codex/has grown content, or a managed file is missing from the inventory.check-specsoranalyse-specs— hand to thespec-changeskill; a diagnostic is a regression and a finding cannot be waived.snapshots-check— a snapshot differs or a.snapfile is unreferenced. Runjust snapshots-review, accept only a change you can explain, and commit the diff.
- Distinguish an unreachable branch from an untested one. Defensive code no input can reach should be removed, not covered by a contrived test.
- Never disable a gate to make a run green. A suppression is a last resort: one rule, one line, with a stated reason.
- If a recipe changed the worktree, that is a defect in the recipe — checks are read-only. Fix the recipe.
- Run the narrow recipe, then
just checkto confirm nothing else moved.
04 同仓库更多 Skills
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.
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.
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.
spec-change
Change an Allium specification and carry the change through the tests and the implementation.
rust-change
Implement or review a change to either crate with the effects boundary, tests and documentation evidence the invariants require.
review-docs
Add or revise a handbook page so it satisfies the documentation contract and stays reachable.