agentleFS
obendidiobendidi/skills/skills/lab/SKILL.md

lab

Skill2 starsChanged 5 days agoMITView on GitHub

Tier 3 empirical research, hard-bug diagnosis, and autonomous optimization loop. Use when the user says "tier 3", "lab", "deep lab", "autoresearch", "research loop", "overnight lab", or "spike", or when investigating flaky tests, regressions, or hard bugs whose root cause stays unclear after a quick check.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use addskill, apply-firmware and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ryanportfolioSkill

    addskill

    Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.

    Also in 6 projects that use this

  • ryanportfolioSkill

    apply-firmware

    Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.

    Also in 6 projects that use this

  • +10 more from ryanportfolio

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Rawest source & real instruments: run on raw logs, traces, or representative dev inputs rather than pre-digested summaries (never the …

    line 31
  2. Distinctive:

    No harness, no theories: if you cannot build a runnable signal, stop, list what you tried, and ask the user for traces, fixtures, or access.

    line 34
  3. Very specific:

    Adversarial cross-check: run review (or a fresh read-only subagent / council seat from a different provider than the winner) checking for …

    line 49
  4. Distinctive:

    Hard stop: stop once a verified result clears the threshold or the round cap hits.

    line 62
  5. Very specific:

    Delete throwaway worktrees, scratch scripts/state, and [DEBUG-...] logs.

    line 69

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Lab (Tier 3)

Falsification-driven loop for uncharted problems, hard bugs, and performance or accuracy optimization. Runs beat opinions: never theorize or debate what a fast experiment can measure.

Modes

  • Standard (lab, spike, hard bugs — default): 2–3 rounds for hard bugs, flakes, and localized regressions. Run Steps 1–6 below directly.
  • Deep / Autoresearch (deep lab, autoresearch, research loop, overnight lab, open-ended metric goals): Load references/deep-loop.md before Step 1 for $LAB_DIR state, 3-angle Phase 0 survey, multi-round lab/<slug> evolution, stall-breaker, and non-stop rules.

1. Question card & budget

Inherit any ambition Reframed Brief or finished grill-me decisions (map raw inputs/instruments to Gate 0 and outside judge to Signal/Step 6 holdout). State in ≤8 lines before fanning out:

  • Decision: what choice or fix this informs.
  • Signal: the exact metric or red/green symptom and acceptance threshold.
  • Control: base commit SHA and baseline measurement.
  • Write scope: choose one before Gate 0:
    • read-only (required in Plan mode or explicit read-only asks): stop after read-only recon/profiling and propose the harness + experiment plan for approval — do not create branches, commit fixtures, or edit files.
    • benchmark-only: run Gate 0 + isolated experiments, then stop with verified findings and clean up scratch worktrees (skip Step 6 promotion).
    • experiment + promote: run full loop through Step 6 clean promotion.
  • Budget: defaults are max 3 concurrent delegates, max 2–3 rounds (8 rounds in Deep mode), and zero paid compute (get explicit approval before paid GPU/cloud spend).

2. Gate 0 — Harness & noise floor first

Build or name one fast, runnable command (failing test, replay script, curl, benchmark, profiler, or telemetry query) and run it on the control before generating hypotheses:

  • Red-capable & calibrated: fails on the exact symptom or prints METRIC=<value> deterministically. For flakes, raise repro rate with stress/loops first; for noisy timing/ML benchmarks, run 2–3× on control to record the noise floor (±δ) and require candidates to beat control beyond ±δ.
  • Rawest source & real instruments: run on raw logs, traces, or representative dev inputs rather than pre-digested summaries (never the promotion holdout), and use real field instruments (profiler, solver, statistical test, simulator) instead of toy proxies.
  • Minimised, shared & locked: strip unrelated steps until every piece is load-bearing. Commit new tests/fixtures on a working branch as the control SHA (or keep external replay scripts in shared scratch by absolute path); workers may never edit tests, fixtures, tolerances, or the eval harness.
  • Redacted: scrub secrets (<REDACTED>) before showing commands or outputs.
  • No harness, no theories: if you cannot build a runnable signal, stop, list what you tried, and ask the user for traces, fixtures, or access.

3. Diverge in isolated worktrees

Generate 3–5 falsifiable hypotheses (If X, changing Y produces Z) rooted in the underlying mechanism and hard invariants — include at least one structural change alongside incremental tweaks. Show the ranked list to the user (don't block if they are AFK or in Deep mode).

Isolate each experiment from the committed control (or current frontier commit in Deep mode):

  • Multi-provider / worktree harnesses: select seats per council § Seats (fallback: 1 flagship per distinct provider at high effort) and launch parallel worktrees (delegate_task with isolation: "worktree" in T3 Code; Agent with isolation: "worktree" in Claude Code). Give each seat a distinct hypothesis (never duplicate prompts).
  • Single-provider fallback: state single-provider mode explicitly and test distinct hypotheses via fresh subagent worktrees or sequential git worktree checkouts from the same base SHA.
  • Pass the exact eval command and require a ≤15-line reply: hypothesis, commit/diff summary (+added/-removed), command run, raw output/numbers, and lesson learned.

4. Verify & cross-examine

  • Never trust self-reported numbers: the coordinator re-runs viable candidates' exact command in ranked order against the control baseline and verifies tests/fixtures/harness were untouched.
  • Simplicity tie-breaker: discard complex special-case diffs that only move the metric within ±δ; prefer code-deleting simplifications at equal metric.
  • Adversarial cross-check: run review (or a fresh read-only subagent / council seat from a different provider than the winner) checking for benchmark-overfitted hotfixes, reward hacking, and broken callers.
  • Kill losers fast: cancel or discard branches that miss the threshold or stall (e.g. task_cancel in T3 Code).

5. Experiment ledger & stop rules

Track every run in one compact table:

| # | Hypothesis | Change (+/−) | Metric vs control | Verdict |
  • Change one variable per run; tag temporary debug logs [DEBUG-<id>] so one grep cleans them all.
  • Pivot cap: in Standard mode, if 2 consecutive runs fail to move the metric beyond ±δ, stop and re-frame the bottleneck and baseline assumptions with the user (in Deep mode, run the automated stall-breaker in references/deep-loop.md first).
  • Hard stop: stop once a verified result clears the threshold or the round cap hits. "Inconclusive" with verified numbers is a valid outcome.

6. Clean promotion

For benchmark/read-only runs, stop after reporting verified numbers and clean up scratch worktrees. When promotion is in scope, a winning spike only proves the approach:

  1. Re-implement the winner minimally on a clean branch with a regression test at the real call-site seam (if no seam exists, report that architectural gap).
  2. Re-run the original un-minimised Gate 0 suite or promotion holdout check to prove generalization.
  3. Delete throwaway worktrees, scratch scripts/state, and [DEBUG-...] logs.
  4. State the proven cause and measured result in the commit or PR description; ship through pr only when asked.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.