JimKrider

trip-map

Partition an undocumented or evolving codebase into parallel read-only scouts to generate contract-focused directory README.md blueprints documenting public interfaces, invariants, boundaries, and verification commands.

JimKrider 0 Updated 13h ago
GitHub

Install

npx skillscat add jimkrider/trip-sitter/trip-map

Install via the SkillsCat registry.

SKILL.md

Grounded Codebase Blueprinting (/trip-map)

Run this skill to create or refresh concise, contract-oriented README.md blueprints across repository directories so both human engineers and blind grounding agents have an accurate map of system boundaries.

Core Guardrails

  1. Documentation-Only Scope: Limit writes strictly to directory README.md blueprint files and top-level directory indexes. Do not alter functional source code, schemas, or tests.
  2. Ground-Truth Verification: Every exported function, CLI flag, schema column, invariant, and test command documented must be verified directly against actual files in that directory.
  3. Zero Prose Walls: Structure every blueprint with scannable tables and bold-lead-in takeaways per architecture-spec.md.

Execution Protocol

Step 1: Inventory & Partition Directory Tree

  1. Enumerate active source, pipeline, schema, and configuration directories (excluding .git/, .worktrees/, __pycache__/, node_modules/, and generated build output).
  2. For small trees (<= 5 directories), inspect and draft sequentially in the current session.
  3. For larger trees (> 5 directories), partition non-overlapping subtrees and dispatch read-only scout subagents in parallel on the fast, low-cost tier (flash / haiku) to extract directory contracts without burning frontier reasoning tokens.

Step 2: Contract Blueprint Schema

Every generated or updated directory README.md must document strictly four sections:

  1. Purpose & Boundary: One-paragraph plain-English mandate and explicit non-goals.
  2. Key Files & Public Interfaces: Compact table mapping each file to its role, entry points/CLI flags, and inputs/outputs.
  3. Invariants & Single-Writer Ownership: Non-negotiable data contracts, schemas, primary keys, and side-effect boundaries.
  4. Verification Commands: Exact copy-paste test and linter commands that validate the directory.

Step 3: Key 1 Verification & Handoff

Run python3 <plugin-root>/scripts/grounding_check.py --audit-doc <README.md> --repo-root <target-repo> (../../../scripts/grounding_check.py relative to this skill) on every generated blueprint to guarantee zero broken relative links, zero TBD stubs, and clean formatting, then report the updated file index.