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.
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, defaultworktree):worktree(parallel isolated Git worktrees with0%file overlap) orsequential(single-branch ordered execution when slices share files or Git worktrees are unavailable).
Execution Protocol
Step 1: Verify Two-Key Pre-Flight
- Confirm
PlanFilepasses Key 1 (python3 <plugin-root>/scripts/grounding_check.py --audit-doc <PlanFile> --repo-root <target-repo>). - Confirm zero unresolved
BLOCKERfindings remain fromtrip_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
- Create a dedicated Git worktree for each parallel slice (
git worktree add -B feat/<slice> .worktrees/<slice> HEAD). - 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. - Run deterministic validators and unit tests inside each slice before approving it for merge.
Step 4: Sequential Merge, Cleanup & Final Tiered Parity Audit
- Merge verified slices sequentially into the target branch, then remove worktrees (
git worktree remove+git worktree prune) and delete temporary slice branches. - 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. - Deliver a concise execution summary listing merged slices, exact test commands run, and final
PROOF/SYNCverification status.