JimKrider

trip-draft

Draft a grounded engineering, documentation, or quantitative specification section-by-section with human decision checkpoints and deterministic standards compliance, producing design_spec.md.

JimKrider 0 Updated 18h ago
GitHub

Install

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

Install via the SkillsCat registry.

SKILL.md

Grounded Specification Drafting (/trip-draft)

Run this skill to turn an approved concepts_brief.md (or raw notes) into a crisp, verifiable specification (design_spec.md) built to pass both Key 1 deterministic checks and Key 2 blind review on the first run.

Applicable Standards

Load the matching standard(s) from ../../../resources/standards/ before drafting:

Execution Protocol

Step 1: Verify Ground Truth Before Writing

Before citing any file path, script, CLI flag, schema column, or existing pipeline in the draft, verify it directly against the repository on disk. Never invent placeholder paths or unverified formulas.

Step 2: Enforce Deterministic Authoring Rules

Every section of design_spec.md must obey:

  1. Zero LLM Mental Math: Every calculated metric, ratio, or benchmark specifies its exact deterministic script, query, or reproducible command and primary data source (As_Of_Date vintage).
  2. Zero Stubs: Ban TBD, TODO, FIXME, and PLACEHOLDER tokens; if a decision is unresolved, pause and ask the human before continuing.
  3. Clean Tables & Concise Prose: Avoid cramming multiple unrelated numbers into one slash-separated table cell, keep paragraphs concise (<= 120 words), and follow key tables with 2-4 scannable bold-lead-in takeaways.
  4. Explicit Ownership, Security & Rollback: Name the single writer for every persisted store, define trust/auth boundaries, and specify exact verification commands and rollback steps.

Step 3: Section-by-Section Checkpoints

Draft design_spec.md iteratively in logical blocks (Overview & Non-Goals -> Data/Model Contracts & Provenance -> Architecture, Security & Ownership -> Verification & Rollback), pausing briefly after major trade-offs for user alignment.

Step 4: Self-Run Key 1 Pre-Check & Handoff

  1. Run python3 <plugin-root>/scripts/grounding_check.py --audit-doc design_spec.md --repo-root <target-repo> (../../../scripts/grounding_check.py relative to this skill) and fix any deterministic Key 1 failures immediately.
  2. Hand back the file link and recommend running /trip-check design_spec.md to execute the blind 5-channel audit.