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

Before trusting the output, verify the script sees every RQ subtree. RQ_TREES in generate-snapshot-skeleton.py is a hardcoded list. When a new subtree appears under research/ (a new harness family, a new question class), the script silently omits it — no warning, no error, just a smaller snapshot. Cross-check the RQ count against the filesystem before proceeding:

# every dir with a README.md carrying an `id:` is an RQ
find research -mindepth 2 -maxdepth 2 -name README.md | xargs grep -l '^id:' | wc -l
./experiments/generate-snapshot-skeleton.py 2>&1 | grep 'RQs:'

If the two numbers disagree, add the missing subtree to RQ_TREES and regenerate — do not hand-patch the skeleton. (This bit in 2026-07: questions-pi/ and questions-cursor-cli/ were missing, which would have dropped 3 RQs and 140 runs from the report.)

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

Wherever Claude 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:

```bash

grep -c '^#### ' <snapshot> # reported RQs

python3 -c "import re,sys;print(sum(int(m) for m in re.findall(r'_Data basis: (\d+) runs',open(sys.argv[1]).read())))" <snapshot>

```

Derive all three axes from the data, never from this skill's prose. The scope is the fastest-drifting part of the whole document — each new harness or provider family silently invalidates it. Read the actual values before writing:

```bash

grep -n 'npm install -g' experiments/docker/Dockerfile # harness pins

ls -d research/questions-*/ # harness families with RQs

grep -h '^\smodel' research/questions-/*/README.md | sort -u | head -40

```

A stale scope is worse than a vague one: it tells readers the study is narrower than it is, and it reads as sloppiness precisely to the readers who check. (This bit in 2026-07: the skill still prescribed "only Claude Code CLI, only Anthropic models" while the data already spanned four harnesses and a dozen third-party models.)

Do the same for the HITL framing — it is the one scope limit that never drifts, and it is worth more than one sentence. Several documented correctness losses are failure modes a single human question would catch (premature self-termination, incomplete test lists, mis-guessed CLI contracts). Say so: the numbers bound unattended autonomy, they are not a ceiling for supervised use.

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.

Attribution rule: Never credit a bundled workflow's outcome to a single one of its factors without the counter-cell check above. Correctness and code-quality are driven by different levers here (spec/test-phase vs. refactor cadence); a sentence that fuses them ("TDD makes it both correct and clean") is the default failure mode. Keep the two outcomes — and their causes — separate.

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.

Always ask — and always offer both continuity and novelty. The selection is the user's call every single time; never write the Key Findings from your own judgement, and never treat the previous snapshot as auto-approved. The question you put to the user must contain two clearly separated groups:

Label each candidate as carried-over or new when presenting, so the user can weigh continuity against novelty deliberately.

For each carried-over finding, re-verify every number against the current findings.md rather than copying it forward. Values shift as cells grow — in 2026-07 the Example-Mapping effect widened from "+48–64 pp" to "+48–76 pp" because one cell had grown to n=9. Where a carried sentence mixes katas or workflows in a way the numbers do not support, fix it while carrying it and say so. A carried-over finding whose numbers no longer support it is a finding in its own right — report that to the user rather than silently dropping or softening it.

  1. From the previous snapshot plus everything you read in step 2, assemble 5–7 candidates — at least two of them new (see above). Each candidate carries: a bold-sentence title, 1–3 sentences with concrete numbers (verification_pct, cognitive_max, tokens), and a one-line practical consequence. Apply the counter-cell + attribution checks (step 3) to every candidate — Key Findings are where a wrong causal attribution does the most damage. A catchy title may name a factor ("strict TDD improves quality"), but the body must name the isolated lever (the enforced refactor cadence, not the TDD label) and must not let a correctness lever and a quality lever bleed into one claim.
  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 AskUserQuestion (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. Keep the previous snapshot's ordering for carried-over findings (readers and the deck know them in that order); place genuinely new ones by descending practical impact.
  5. Open the block with a one-sentence TLDR framing that names the through-line, then "N key findings from the M research questions — Details in §4, Cross-RQ-Synthese in §5". Key Findings are read by people who will read nothing else; the framing sentence is what they take away if they stop after it. Make it state the actual structure of the result (e.g. that two levers drive two different outcomes), not a generic "TDD works".

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.

Why Chromium and not WeasyPrint: earlier iterations used WeasyPrint, optionally with Ghostscript re-serialization. Both produced technically valid PDFs (pdfinfo confirms A4 portrait, rotation=0), but VS Code's built-in PDF preview (vscode-pdf, PDF.js-based) consistently rendered the content rotated 90° inside otherwise portrait pages. Chromium's --print-to-pdf writes PDFs through Skia/PDFium — the same lineage that PDF.js was forked from — so PDF.js-based viewers render them reliably. All other viewers (Browser, evince, okular, pdftoppm) handle Chromium output equally well. Chromium also packs the content denser (typically ~40% fewer pages than WeasyPrint for the same snapshot).

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.