Build overview

From marcoemrich/agentic_coding_lab · View interactive version

Build overview is an AI agent skill from the GitHub repository marcoemrich/agentic_coding_lab. Generates an experiment-overview snapshot of all research questions under research/reports/. Invoke when a new point-in-time report across all RQs should be produced.

How to use this skill

Skill file

/build-overview — produce an experiment-overview snapshot

You produce a frozen, publishable research report from the current state of every findings.md under research/questions-claude/, research/questions-opencode/, research/questions-cross/, and research/workflow-dev/. The snapshot lands as a new file under research/reports/experiment-overview-YYYY-MM-DD.md.

Core principle

findings.md = living document, growing list of status-tagged findings.

Snapshot = frozen, table-heavy report at a point in time.

Both exist in parallel. The snapshot is not written from memory — it is filled in from an auto-generated skeleton.

Prerequisites

Required on $PATH for the Markdown snapshot (steps 1–5):

Only needed when the user asks for a PDF (step 6):

If a PDF was requested and one of its tools is missing, finish the Markdown snapshot and report which tool is unavailable so the user can install it — do not treat it as a failure of the whole run.

Lifecycle (6 steps)

Step 1 — generate the skeleton

Bash:

./experiments/generate-snapshot-skeleton.py

The script writes to /tmp/snapshot-skeleton-YYYY-MM-DD.md. It auto-fills:

Wherever you must fill in content, a <!-- TODO Claude: ... --> marker is left in place. Everything else is static skeleton content — do not edit it during synthesis. Concretely: Author / Repository / AI Disclosure blocks, all §1 / §2 / §3 / §7 / §8 tables and prose, and the workflow-mechanics block must stay byte-identical to what the skeleton produced.

Step 2 — read the skeleton + every findings.md

Read the skeleton (/tmp/snapshot-skeleton-YYYY-MM-DD.md) and every findings.md under research/questions-claude/*/, research/questions-opencode/*/, research/questions-cross/*/, and research/workflow-dev/*/ (skip dirs starting with _). Note for each RQ the current findings with their statement and data values.

open-questions.md (when present) does not go into the snapshot — those are internal backlog items for future batches, not publishable state.

Step 3 — fill in the synthesis sections (except Key Findings)

Replace every <!-- TODO Claude: ... --> marker with real content — except the ## Key Findings TODO, which is handled interactively in step 4. Never leave any other TODO marker in place.

Style requirements:

Honesty rule: If an RQ has no robust findings in the current setup, do not invent something — say plainly "the current data base does not yield a robust finding" and use the synthesis to explain what is missing.

Step 4 — propose Key Findings, let the human select

This is the only interactive step. Do not silently write the Key Findings — propose candidates and let the user pick.

  1. From everything you read in step 2, draft 5–7 candidate main findings that have the largest cross-RQ practical impact for a practitioner ("what should I take away?"). Each candidate carries: a bold-sentence title, 1–3 sentences with concrete numbers (verification_pct, cognitive_max, tokens), and a one-line practical consequence.
  2. Present the candidates as a numbered list in chat, plus a short "why these and not others" line. Do not name workflow versions like v6.1-hybrid in the Key Findings — workflows are not yet introduced at that early point in the document. Describe by mechanism instead ("hybrid workflow with skill-based red/green in shared context + isolated refactor subagent").
  3. Use the question tool (multiSelect: true) to let the user pick 3–5 of the candidates. Accept "Other" answers as additions.
  4. After the user has chosen, write the selected findings — verbatim with their bold titles and the practical-consequence line — into the ## Key Findings block, replacing the TODO marker. Order the chosen findings by descending practical impact (most actionable first).

Step 5 — write the file

Take the date from the skeleton header (line 3: Stand: YYYY-MM-DD.) and write to:

research/reports/experiment-overview-YYYY-MM-DD.md

Then verify with Glob or Read that:

  1. The file exists
  2. No <!-- TODO --> markers remain
  3. All current findings from the findings.md files are referenced somewhere in the RQ sections (number + statement)
  4. Each RQ section carries the overview table from its findings.md before the **Findings**: list
  5. No status tags (⚠️ bedingt, ✅ stabil) and no references to old studies / archive snapshots in the published snapshot

Step 6 — generate the PDF (on request only)

The Markdown file is the deliverable and the source of truth. Do not build a PDF unless the user asks for one — report PDFs are gitignored (research/reports/*.pdf) because they are large binary derivatives that bloat the repo and diff as noise. Anyone can rebuild one from the committed .md at any time with the snippet below.

When the user does ask, convert the Markdown snapshot to a PDF sibling via pandoc → Chromium headless:

SNAP=research/reports/experiment-overview-YYYY-MM-DD
pandoc "$SNAP.md" -o "$SNAP.html" --standalone --self-contained \
  --metadata title="Experiment-Overview YYYY-MM-DD" \
  --css=experiments/snapshot-style.css
google-chrome --headless --no-sandbox --disable-gpu --no-pdf-header-footer \
  --print-to-pdf="$SNAP.pdf" "file://$(pwd)/$SNAP.html" 2>/dev/null
rm "$SNAP.html"

The stylesheet (experiments/snapshot-style.css) is checked in so every regeneration uses the same A4 layout, page-break rules (tables may span pages, individual rows stay intact, header repeats), and typography. The intermediate HTML is throwaway.

A harmless Failed to load module: …libgiolibproxy.so or VAAPI version is too old warning from Chromium can be ignored — they don't affect PDF output.

PDF verification. After generation, sanity-check the output:

pdfinfo "$SNAP.pdf" | grep -E "Pages|Page size|Page rot"

Expected: Pages ≥ 5, Page size ≈ 595 x 842 pts (A4), Page rot = 0. If any of these are off (e.g. zero pages, landscape page size, non-zero rotation), the PDF is broken — report it instead of pretending it worked.

Report at the end in 1–2 sentences the output path (.md, plus the .pdf and its page count if one was requested) and any notable coverage gaps ("RQ-X is currently below min_replicates").

Style template

research/reports/experiment-overview-v2-2026-05-04.md shows the target table density and section ordering. Read it for orientation before starting step 3. Adopt the table style and tone — not the specific numbers (those come from the current findings.md).

Write each prose paragraph as a single unwrapped line. Do not hard-wrap flowing text at 80/100 characters. Many Markdown renderers — including the one this repo's reports are read in — run with breaks: true, where a single newline becomes a visible line break instead of collapsing into flowing text. A source-wrapped paragraph then renders as ragged short lines with breaks mid-sentence. The published reports in research/reports/ all follow the one-line-per-paragraph convention (paragraphs run 400–1200 characters); match it. This applies only to prose — tables, headings, list items, blockquotes and code blocks keep their own line structure.

Check before publishing, and compare against an existing report rather than a fixed threshold:

python3 - <<'PY'
import pathlib
for f in sorted(pathlib.Path('research/reports').glob('experiment-overview-*.md')):
    p=[l for l in f.read_text().splitlines()
       if l.strip() and not l.startswith(('|','#','-','>','_','*','`',' '))]
    if p: print(f'{f.name:42s} prose lines={len(p):4d}  max={max(map(len,p)):5d}')
PY

A new snapshot with several hundred short prose lines where its predecessors have a few dozen long ones is hard-wrapped and needs a reflow. To fix, join consecutive prose lines into one per paragraph while leaving every |, #, >, list-marker and fenced-code line untouched — then re-verify the structure counts (RQ sections, table rows, 🏆, list items) are unchanged, and grep for accidentally glued words.

What is deliberately NOT part of your output

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.