Skip to content

Mariomarquezt/multi-flow-skills / skills/sliced-review

sliced-review

Flagged

Review a whole codebase with several models by cutting it into small file-listed slices ordered by blast radius, then triage every finding with three judges, and optionally fix. Use when the user asks to review or audit a whole project or repo with other models, wants a second opinion on a codebase, wants a review split into slices or tiers, has a whole-repo review that died on credits, or wants a check before a launch or handover. Modes (`3`, `5`, `8`, `fast`, `fix …`, `fix fast …`, `fix only`, `report`, `no wrap`) are in the body. Not for a plan before code exists (/grill-me-codex, /codex-review) or a single diff, branch or PR (/code-review).

references/templates/prepass.sh

View on GitHub
#!/usr/bin/env bash
# prepass.sh <repo> <out.md> — cheap tool pass before any model runs (v2.7).
# Runs gitleaks (secrets, values redacted) and osv-scanner (known-vulnerable dependencies) on the
# repo and writes a short Markdown summary. Paste it into the x02-release slice brief: models are
# bad at recalling CVEs, tools are not. A tool that is not installed is written as NOT RUN, never
# skipped silently. Prints no secret values: only rule id, file and line.
set -u
REPO="${1:?usage: prepass.sh <repo> <out.md>}"; OUT="${2:?usage: prepass.sh <repo> <out.md>}"
TMP="$(mktemp -d)"
{
  echo "## Tool pre-pass — $(date '+%Y-%m-%d %H:%M %Z') — commit $(git -C "$REPO" rev-parse --short HEAD 2>/dev/null || echo n/a)"
  echo
  echo "### Secrets (gitleaks, working tree)"
  if command -v gitleaks >/dev/null; then
    gitleaks dir "$REPO" --redact --no-banner -l error -f json -r "$TMP/gl.json" >/dev/null 2>&1
    python3 - "$TMP/gl.json" "$REPO" <<'EOF'
import json, os, sys
try:
    rows = json.load(open(sys.argv[1]))
except Exception:
    rows = []
print(f"{len(rows)} finding(s)." if rows else "No findings.")
for r in rows[:50]:
    f = os.path.relpath(r.get("File", ""), sys.argv[2]) if r.get("File") else "?"
    print(f"- {r.get('RuleID')}: {f}:{r.get('StartLine')}")
if len(rows) > 50:
    print(f"- … {len(rows) - 50} more")
EOF
  else
    echo "NOT RUN: gitleaks is not installed."
  fi
  echo
  echo "### Dependencies with known vulnerabilities (osv-scanner)"
  if command -v osv-scanner >/dev/null; then
    osv-scanner scan source -r "$REPO" --format markdown 2>/dev/null | head -80 || true
  else
    echo "NOT RUN: osv-scanner is not installed. Dependency CVEs were NOT checked by a tool."
  fi
} > "$OUT"
rm -rf "$TMP"
echo "pre-pass written: $OUT"
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 196kUpdated Claude CodeCodexVerifiedInstall