total-review — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited total-review (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
The complete pre-PR quality gauntlet. Runs every review skill in increasing cost order, halts on critical findings, emits beads for the rest, and iterates the heavy phases up to twice. The local-iterating cousin of /ultrareview.
/clean-code alone/verify-task instead/review-pr/ultrareview is the cloud multi-agent version; this skill ends by suggesting itThis is a synthesis layer. It calls existing skills, it does not reimplement them.
| Skill | Role in this gauntlet |
|---|---|
/clean-code | Phase 1 — auto-fix lint/format |
/verify-task | Phase 2 — requirements + test coverage |
/code-review | Phase 3 — cheap reuse/quality cleanup (formerly /simplify) |
/pedantic-review | Phase 4 — craft critique |
/review | Phase 5 — built-in correctness review |
/security-review | Phase 6 — security audit (any finding halts) |
/second-opinion | Phase 7 — tiered external review (single → panel) |
/ultrareview | Suggested next step after the gauntlet — deeper cloud-agent pass |
/ready-to-merge | Suggested next step after /create-pr — post-PR merge gate |
/total-review # Branch vs main, full sequence
/total-review --uncommitted # Uncommitted changes only
/total-review --skip-external # Skip /second-opinion phases (cost cap)
/total-review --no-iterate # Single pass through analytical phases
/total-review --pr <N> # Run against an existing PRA critical finding halts the gauntlet immediately: emit a P0 bead, report, and stop. Do not proceed to later phases. Restart from Phase 1 after fixing the halt finding (re-run normally — there is no resume mode).
Critical means any of:
/verify-task or make test)/security-review (no exceptions — every security finding halts)/pedantic-review, or a blocking-severity finding from /review or /second-opinion (these phases label findings explicitly — only that top tier halts).env, credentials, API keys grep)/verify-task (requirement not met, not just under-tested)Everything else — including Should Fix (P1) pedantic findings, generic correctness bugs, partial coverage, style preferences, and individual second-opinion suggestions — goes onto the bead pile for the final report. P1 is heavy enough to track but not heavy enough to stop the gauntlet.
Extract from the arguments:
branch (default), uncommitted, or pr (with PR number)bd create, render all findings in the final report onlyConfirm context, then snapshot the scope so later phases compare against a fixed SHA even if new commits land mid-run:
git status --porcelain
git rev-parse --abbrev-ref HEAD
SCOPE_HEAD=$(git rev-parse HEAD)
SCOPE_BASE=$(git merge-base origin/main HEAD 2>/dev/null || echo main)
git log --oneline ${SCOPE_BASE}..${SCOPE_HEAD}Record SCOPE_BASE and SCOPE_HEAD once at Phase 0 and use git diff ${SCOPE_BASE}..${SCOPE_HEAD} for every subsequent phase. Do not re-read HEAD between phases — the gauntlet reviews a frozen scope, not a moving target.
For --uncommitted scope, snapshot the staged+unstaged diff once into /tmp/total-review-scope.patch and re-use it across phases.
If --pr <N>, set the scope to that PR. Phases 1–3 (clean-code, verify-task, code-review) mutate the working tree, so they require a checkout of the PR branch:
git status --porcelain empty) and no unrelated branch is checked out — run gh pr checkout {N} and proceed normally through all phases.gh pr diff {N} and gh pr view {N}, and run Phases 4–9 against that diff. Note the skip in the final report.Never run Phases 1–3 against the current checkout when --pr <N> points at a different branch — that would mutate the wrong tree.
If there are no changes in scope, stop with a friendly message.
Skill /clean-codeclean-code auto-fixes mechanical issues and must exit zero warnings/errors. If it can't reach a clean state, halt — downstream tools assume a lint-clean tree.
First, check whether the scope contains any code files — files outside *.md, *.txt, docs/, LICENSE, and other pure-documentation paths:
git diff --name-only ${SCOPE_BASE}..${SCOPE_HEAD} | grep -vE '\.(md|txt|rst)$|^docs/|^LICENSE' | head -1If empty (markdown / docs / config only) → skip Phase 2 with a note: "Phase 2 skipped — diff contains no code files." verify-task has nothing meaningful to verify against a docs-only diff.
Otherwise:
Skill /verify-taskRead the verification report carefully. Map outcomes:
/verify-task says | Action here |
|---|---|
| Verdict: Ready to commit | Continue |
| Test failure | Critical — halt |
| Requirement not met | Critical — halt |
| Partial test coverage | Add to bead pile (priority 2), continue |
| Tests not needed | Continue |
If halted, emit a P0 bead and stop.
Apply the same code-files-in-scope check as Phase 2. If the diff is docs-only, skip Phase 3 with a note: "Phase 3 skipped — diff contains no code files." /code-review is a code reuse/quality scan and has no signal on prose.
Otherwise:
Skill /code-review/code-review (formerly /simplify) auto-applies cheap reuse/quality improvements. Treat any prompt-before-apply suggestions as findings — apply them inline only if mechanical and safe, otherwise queue as a P2 bead. An effort level can be passed (e.g. /code-review high) if a deeper pass is wanted, but the default is appropriate for this phase.
After this phase, re-run make clean-code if any edits were applied (a cheap sanity check that auto-fixes didn't reintroduce lint).
Skill /pedantic-reviewParse findings by tier:
Do not auto-apply pedantic fixes — the value of pedantic-review is the user making the call. Emit beads, don't edit code.
/review)Skill /reviewParse the output:
/security-review)Skill /security-reviewAny non-empty finding here is critical. Emit P0 bead per finding, halt the gauntlet. Re-runs after fixing must come back clean before continuing.
If /security-review returns clean, continue.
If --skip-external is set, jump to Phase 9.
First, check whether the scope has a reviewable PR:
gh pr view --json number 2>/dev/nullBranch with an open PR → invoke the review mode:
Skill /second-opinion review-pr --agent codexNo PR (test run on main, unpublished branch, --uncommitted scope) → fall back to ask mode, feeding the diff as the question body:
Skill /second-opinion ask "Review this diff as a critical PR reviewer. Focus on internal contradictions, under-specified behaviour, wrong commands or paths, and silent failure modes. Be terse, severity-tagged. Diff follows:\n\n<diff>" --agent codexNever call `codex exec` directly from this skill. The /second-opinion skill handles CLI invocation, stdin, and quoting safely; bypassing it risks shell-quoting hangs (e.g. backtick-laden diffs in $(cat patch) substitutions).
Parse findings either way:
After this phase, decide whether to iterate (Phase 8) or proceed to the wide panel (Phase 9).
Iterate only if all of:
--no-iterate was not passedAskUserQuestion — "Apply fixes for these findings now and re-run analytical phases?")If iterating, jump back to Phase 1 (re-lint the new state) and proceed through Phase 7 again. The second pass should converge — if new critical findings appear in pass 2 that didn't exist in pass 1, halt and report (the change introduced regressions).
If not iterating, proceed to Phase 9.
If --skip-external is set, jump to Phase 10.
Same PR-detection as Phase 7. Branch with an open PR:
Skill /second-opinion review-pr --agent allNo PR (fall back to ask mode):
Skill /second-opinion ask "Review this diff for consensus. Focus on issues not yet caught by /pedantic-review, /review, /security-review, and a prior Codex pass. Be terse, severity-tagged. Diff follows:\n\n<diff>" --agent allThis runs Claude + Codex + Gemini in parallel. The purpose is consensus, not new criticism — the code should already be clean. Treat any finding here as:
If multiple agents agree on a critical finding, halt — that's a strong signal something is genuinely wrong.
Render a single readout. Quiet success — only show sections that have content.
## Total Review — {branch | PR #N | uncommitted}
**Outcome**: ✅ All clear | ⚠️ Bead pile ready | ❌ Halted at Phase {N}
**Passes**: {1 or 2}
**External phases**: {ran | skipped}
### Halt reason _(omit if not halted)_
{Phase, finding, bead id created}
### Bead pile _(omit if empty)_
| Bead | Priority | Source phase | Summary |
|------|----------|--------------|---------|
| {id} | P{0–3} | {phase} | {one line} |
### Auto-applied fixes _(omit if none)_
- {file:line} — {what clean-code/code-review changed}
### Next steps
- {recommended action based on outcome}Recommended next steps by outcome:
/create-pr to open the PR. Optionally /ultrareview for a deeper cloud-agent pass before requesting human review."/next to pick), then re-run /total-review. Or open PR now and address beads as follow-ups if the pile is low-priority only."/total-review to restart from Phase 1. The full re-run is intentional — cheap phases stay cheap, and any new lint/test fallout from the fix gets caught."Default behaviour: use bd create for every finding that isn't fixed inline:
bd create --title="<short title>" \
--type=<bug|task> \
--priority=<0|1|2|3> \
--description="<finding details + source phase + file:line refs>"Conventions:
bug for correctness/security/test failures, task for cleanups/refactors/style.[total-review] so they're easy to find later.Skip bead emission entirely in any of these cases — render findings inline in the final report instead, under a "Findings" section grouped by source phase:
--inline-findings flag was passed (e.g. utility / skills / docs repos where beads add noise)bd is not available in the repo (which bd fails).beads/ missing and no bd initialised)In all three cases the final report grows a "Findings" section; halts still print but reference a finding number rather than a bead id.
| Phase | Auto-fix? |
|---|---|
| 1 — clean-code | Yes — that's its job |
| 2 — verify-task | No — never modifies code |
| 3 — code-review | Yes for mechanical; prompt for behavioural |
| 4 — pedantic-review | No — emit beads only |
| 5 — review | No — emit beads only |
| 6 — security-review | No — emit beads only (and halt) |
| 7, 9 — second-opinion | No — emit beads only |
After any auto-fix, re-run lint (make clean-code) to confirm a clean tree before proceeding.
--continue.--skip-external for cost control. Local phases are not skippable — they're the floor.--skip-external or fixing the auth, then continue without external phases.npm run lint, make lint); if none exist, skip Phase 1 with a warning.gh pr checkout {N}) before running phases that need a working tree, or fall back to diff-only phases (skip 1–3, run 4–9 on the diff).~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.