What problem does it solve? Pipeline sub-windows running dev-story, code-review, or tasks-backfill repeatedly hit known traps: better-sqlite3 module resolution failures from the project root, hallucinated upsert-story.js CLI syntax, and direct SQL writes that bypass lifecycle invariants. This Skill codifies the correct conventions so sub-windows avoid these recurring errors. ## Core Features & Use Cases - DB Query/Write Golden Path: A priority matrix mandating MCP-first access (search_stories, add_context) with CLI fallback through .context-db/scripts wrappers, and explicit bans on raw SQL UPDATE against the stories table. - upsert-story.js CLI Cheatsheet: Documents the three modes (create, --merge with inline JSON, --merge with JSON file) including the required story-id positional argument and common failure patterns. - Anti-Pattern Catalog: 12 documented mistakes covering module paths, shell escaping, lifecycle invariant violations, and permission prompt handling, each with the correct alternative. - Use Case: A dev-story sub-window finishing implementation needs to set status to review; it consults this Skill, runs upsert-story.js with the correct three-argument merge syntax, then calls record-phase-timestamp.js instead of writing raw SQL. ## Quick Start Load the pipeline-subwindow skill before performing any database or CLI operation in a dev-story or code-review sub-window to get the correct MCP-first conventions and upsert-story syntax.