JimKrider

trip-build

Transition a Two-Key approved spec into isolated Git-worktree execution slices (0% file overlap) via trip-builder, run deterministic verification per slice, and perform a final PROOF + SYNC completeness audit.

JimKrider 0 Updated 13h ago
GitHub

Install

npx skillscat add jimkrider/trip-sitter/agents-skills-trip-build

Install via the SkillsCat registry.

SKILL.md

Isolated Worktree Execution (/trip-build)

Run this skill only after a specification or implementation plan has passed /trip-check (GROUNDED -- TWO-KEY GO) or received explicit human authorization to build.

Inputs

  • PlanFile (required): Approved specification or implementation plan conforming to implementation-plan.md.
  • Mode (optional, default worktree): worktree (parallel isolated Git worktrees with 0% file overlap) or sequential (single-branch ordered execution when slices share files or Git worktrees are unavailable).

Execution Protocol

Step 1: Verify Two-Key Pre-Flight

  1. Confirm PlanFile passes Key 1 (python3 <plugin-root>/scripts/grounding_check.py --audit-doc <PlanFile> --repo-root <target-repo>).
  2. Confirm zero unresolved BLOCKER findings remain from trip_check_report.md (unless the user explicitly waives them).

Step 2: Partition Into 0%-Overlap Slices

Delegate to trip-builder to map every file creation and modification into disjoint ownership slices:

  • Verify no file path appears in more than one concurrent slice.
  • Record each slice's exact target files, branch name (feat/<slice>), and deterministic test command before spawning workers.

Step 3: Isolated Tiered Execution & Per-Slice Gate

  1. Create a dedicated Git worktree for each parallel slice (git worktree add -B feat/<slice> .worktrees/<slice> HEAD).
  2. Route mechanical/config/doc slices to fast, low-cost models (flash / haiku) and complex logic/concurrency slices to reasoning models (pro / sonnet), executing edits strictly inside each slice's worktree.
  3. Run deterministic validators and unit tests inside each slice before approving it for merge.

Step 4: Sequential Merge, Cleanup & Final Tiered Parity Audit

  1. Merge verified slices sequentially into the target branch, then remove worktrees (git worktree remove + git worktree prune) and delete temporary slice branches.
  2. Dispatch read-only trip-proof (pro / sonnet) and trip-sync (flash / haiku) over the final merged repository to confirm zero broken references, zero manifest mismatches, and zero cross-surface drift.
  3. Deliver a concise execution summary listing merged slices, exact test commands run, and final PROOF / SYNC verification status.