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.
Install
npx skillscat add jimkrider/trip-sitter/trip-map Install via the SkillsCat registry.
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
- Documentation-Only Scope: Limit writes strictly to directory
README.mdblueprint files and top-level directory indexes. Do not alter functional source code, schemas, or tests. - 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.
- 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
- Enumerate active source, pipeline, schema, and configuration directories (excluding
.git/,.worktrees/,__pycache__/,node_modules/, and generated build output). - For small trees (
<= 5directories), inspect and draft sequentially in the current session. - For larger trees (
> 5directories), 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:
- Purpose & Boundary: One-paragraph plain-English mandate and explicit non-goals.
- Key Files & Public Interfaces: Compact table mapping each file to its role, entry points/CLI flags, and inputs/outputs.
- Invariants & Single-Writer Ownership: Non-negotiable data contracts, schemas, primary keys, and side-effect boundaries.
- 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.