Skip to content

chore(skills): parallelize /precheck with model-routed sub-agents#572

Merged
bakeb7j0 merged 1 commit into
mainfrom
chore/571-precheck-parallel-subagents
May 4, 2026
Merged

chore(skills): parallelize /precheck with model-routed sub-agents#572
bakeb7j0 merged 1 commit into
mainfrom
chore/571-precheck-parallel-subagents

Conversation

@bakeb7j0
Copy link
Copy Markdown
Contributor

@bakeb7j0 bakeb7j0 commented May 4, 2026

Summary

Restructures the /precheck skill procedure to run its four verification jobs in parallel sub-agents with explicit model selection, reducing wall-clock time and keeping tool results out of the main context window.

Changes

  • Procedure section restructured into 5 explicit steps: IBM gate (serial) → parallel batch → fix findings → checklist/notify → gate
  • Step 2 launches Jobs A–D in a single message as parallel Agent calls:
    • Job A: spec_validate_structure — Haiku (mechanical H2 section detection)
    • Job B: repo validation — Haiku (reads .claude-project.md for toolchain first, then probes)
    • Job C: trivy dependency scan — Haiku (run + parse JSON)
    • Job D: code-reviewer — Opus (confidence-calibrated quality gate, bounded diff scope)
  • Dependency Vulnerability Scan section updated to reference Job C result rather than repeating inline trivy instructions
  • Checklist, Notification, Sandbox Auto-Approval, and Rules sections unchanged

Linked Issues

Closes #571

Test Plan

  • ./scripts/ci/validate.sh — PASS (124 checks: shellcheck, shfmt, Python syntax, SKILL.md frontmatter, regression tests)
  • Trivy scan — PASS (0 HIGH/CRITICAL)
  • Code review (Opus) — 1 important finding fixed (Job B hardened to read .claude-project.md before blind-probing toolchain)

Restructures the /precheck procedure into explicit serial+parallel steps:
- Step 1: ibm() stays inline (one MCP call, hard stop on fail)
- Step 2: Jobs A–D fire in parallel as Agent calls in a single message
  - Job A: spec_validate (Haiku) — H2 section detection
  - Job B: repo validation (Haiku) — reads .claude-project.md for toolchain
  - Job C: trivy scan (Haiku) — run + parse JSON
  - Job D: code-reviewer (Opus) — confidence-calibrated quality gate
- Steps 3–5: fix findings, assemble checklist, notify, gate (unchanged)

Reduces wall-clock time from ~2-4 min serial to the longest single leg,
and keeps tool results out of the main context window.

Closes #571
@bakeb7j0 bakeb7j0 added this pull request to the merge queue May 4, 2026
Merged via the queue into main with commit bd9403a May 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(skills): parallelize /precheck with model-routed sub-agents

1 participant