[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A5WCR9FNFSYW97KSGAGHWY":3,"skill-same:01M7A5WCR9FNFSYW97KSGAGHWY":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7A5WCR9FNFSYW97KSGAGHWY","experiment",null,"Run a disciplined change → measure → decide experiment loop for any change, especially agent\u002Fprompt\u002Fharness tuning. Use when the user wants to test whether a change actually improves something, A\u002FB two approaches, run rollouts, tune a prompt\u002Fskill\u002Fsystem-prompt, or decide keep-vs-revert with evidence rather than vibes. For agent or Claude-performance work, drive the real agent through the index TUI Python harness (tui.harness.Claude) so runs are live-visible on the dashboard, run several rollouts, compare against a baseline, and keep the change only if it measurably wins.","harivansh-afk\u002Floom-index-e2e","harivansh-afk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F73809867?v=4","01M7A5RBDGB0YMBHVWXCS0VYE7","hari","01M7A5RBEKV38Y878XPTCR4SJ3",0,"MIT","https:\u002F\u002Fgithub.com\u002Fharivansh-afk\u002Floom-index-e2e\u002Fblob\u002Fmain\u002Fskills\u002Fexperiment\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: experiment\ndescription: >\n  Run a disciplined change → measure → decide experiment loop for any change,\n  especially agent\u002Fprompt\u002Fharness tuning. Use when the user wants to test\n  whether a change actually improves something, A\u002FB two approaches, run\n  rollouts, tune a prompt\u002Fskill\u002Fsystem-prompt, or decide keep-vs-revert with\n  evidence rather than vibes. For agent or Claude-performance work, drive the\n  real agent through the index TUI Python harness (tui.harness.Claude) so runs\n  are live-visible on the dashboard, run several rollouts, compare against a\n  baseline, and keep the change only if it measurably wins.\n---\n\n# Experiment: change one thing, measure it, keep it only if it wins\n\nMost \"improvements\" are unverified guesses. This skill is the loop that turns a\nguess into a result: **change one thing, roll it out, compare against the\nbaseline, and keep it only if the evidence says it helped.** It applies to\nanything you can observe (a prompt tweak, a config flag, an algorithm swap), and\nit is the *required* loop for anything that touches agent or Claude performance,\nwhere outputs are stochastic and \"it looks better\" is almost always noise.\n\nThe discipline is the point. One change at a time, a stated observable, more than\none rollout, and an honest keep-or-revert decision at the end.\n\n## The loop\n\n1. **Hypothesis + observable.** Write down, before touching anything, what you\n   expect to improve and *how you will see it*. The observable must be concrete:\n   a pass\u002Ffail criterion, a count, a latency, a token total, a yes\u002Fno on a\n   behavior appearing. \"Feels smarter\" is not an observable. If the change\n   produces no observable difference, stop: it is not testable, say so.\n2. **Baseline first.** Measure the current behavior *before* the change, with the\n   same task and the same number of rollouts you will use after. Keep the raw\n   results. Without a baseline you cannot attribute anything.\n3. **One change.** Make exactly one change. Two changes at once means you cannot\n   say which one mattered (or whether they cancelled).\n4. **Roll out.** Run the trial. For anything stochastic (any LLM\u002Fagent output),\n   one run is noise: run N (3-5, more for subtle effects) and look at the rate,\n   not a single sample.\n5. **Compare + decide.** Put the after-results next to the baseline. Decide:\n   - ✅ **keep**: it reliably wins and the win is attributable to the change.\n   - ❌ **revert**: no improvement, or it regressed. Revert now, do not leave a\n     change that did not earn its place.\n   - 🤔 **inconclusive**: flaky or partial. Report the rate, do not pretend.\n6. **Record.** One line: hypothesis, observable, baseline vs after (with rate),\n   decision. This is what makes the next experiment cheaper and stops the same\n   idea being re-litigated. File an issue if the result is worth a wider audience.\n\n> Sibling skill: **prompt-eval** answers \"did the new behavior take effect at\n> all\" (a fresh agent loads the prompt and the behavior emerges). **experiment**\n> answers the next question: \"is it actually *better* than what we had.\" Use\n> prompt-eval to confirm the change is live, then experiment to decide if it\n> wins. Apply the change (e.g. `home-manager switch` for a global skill\u002Fprompt)\n> before measuring, or you are testing the old version.\n\n## Testing agents: drive the real TUI, never `claude -p`\n\nWhen the thing under test is Claude (or Codex) performance, do **not** evaluate\nwith a headless `claude -p` and do **not** wrangle `tmux`. Use the index TUI\nPython harness. It spawns the *real* agent TUI in a PTY, so the session is live\non the web dashboard (`nix run .#dashboard`) exactly like a human's: you and\nthe user watch the current state, attach, and interrupt. An experiment you can\nwatch beats a black box you can only diff, and the harness gives clean,\nprogrammatic prompt\u002Fawait\u002Fread so rollouts are a `for`-loop or an `asyncio.gather`.\n\nThe harness is Playwright for an agent REPL (`tui.harness`): `Claude.launch()`,\n`agent.prompt()`, `agent.run()`, `agent.wait_for_idle()`, `expect(agent)`. It\nhandles the fiddly bits (onboarding gates, submit races, quiescence-based \"turn\ndone\" detection). See `packages\u002Ftui\u002Ftui-py\u002FREADME.md` for the full surface.\n\n### One rollout\n\n```python\nfrom tui.harness import Claude\n\nasync with await Claude.launch(cwd=\"\u002Fpath\u002Fto\u002Frepo\") as agent:\n    reply = await agent.run(\"your representative task here\", timeout=180)\n    print(reply)                       # the parsed answer\n    (await agent.screenshot()).to_html()  # colored screen artifact for the writeup\n```\n\n### A\u002FB with N rollouts each (the real shape)\n\nScore every run against the observable, then compare rates. Use a fresh agent\nper run so context does not leak between trials. Run them concurrently.\n\n```python\nimport asyncio\nfrom tui.harness import Claude\n\nTASK = \"a neutral task that should surface the behavior\"\n\ndef scores(reply: str) -> bool:           # YOUR observable, made concrete\n    return \"expected-marker\" in reply\n\nasync def one_run(cwd: str) -> bool:\n    async with await Claude.launch(cwd=cwd) as agent:\n        return scores(await agent.run(TASK, timeout=180))\n\nasync def rate(cwd: str, n: int = 5) -> float:\n    results = await asyncio.gather(*(one_run(cwd) for _ in range(n)))\n    return sum(results) \u002F len(results)\n\nbaseline = await rate(\"\u002Frepo-before\")     # or: before applying the change\nafter    = await rate(\"\u002Frepo-after\")      # after the one change\nprint(f\"baseline {baseline:.0%} vs after {after:.0%}\")\n```\n\nA change that moves the rate from 2\u002F5 to 3\u002F5 is 🤔, not ✅: the sample is tiny.\nRaise N before you celebrate a small delta.\n\n### Stepwise control + assertions\n\n```python\nfrom tui.harness import Claude, expect\n\nasync with await Claude.launch(cwd=\"\u002Frepo\") as agent:\n    await agent.prompt(\"do the thing\")\n    await expect(agent).to_be_idle(timeout=180)      # turn finished\n    await expect(agent).to_contain_text(\"done\")      # observable met (auto-retries)\n    transcript = await agent.content()               # full session text\n```\n\n## Match the conditions to reality\n\n- **Same model as production.** Default to Opus 4.8 (`\u002Fmodel`), the tier real\n  sessions use. A weaker model drops soft conventions and confounds the result.\n- **Same model on both sides.** Baseline and candidate must run the same model,\n  or you are measuring a model effect and blaming the change.\n- **Neutral tasks, don't lead the witness.** Use a task a real user would ask\n  that should organically trigger the behavior. Do not quote the rule or ask\n  \"do you follow X\" unless you are only checking that an instruction loaded.\n- **Isolate the variable.** Fresh agent (or clean cwd) per rollout, one change,\n  baseline captured the same way. If you cannot A\u002FB, say the effect is\n  unattributed instead of implying causation.\n\n## Reporting\n\nState it plainly with the rate and a real sample:\n\n- ✅ **keep** — reliably better, attributable. Baseline X\u002FN → after Y\u002FN.\n- ❌ **revert** — no gain or a regression (and you reverted it).\n- 🤔 **inconclusive** — flaky\u002Fpartial, rate stated, next step named.\n\nAlways paste at least one real sampled output so the verdict rests on an\nobservation, not a vibe. If a promising change came out 🤔, the result is \"need\nmore N\" or \"need a sharper observable,\" not \"ship it.\"\n","# Experiment: change one thing, measure it, keep it only if it wins\n\nMost \"improvements\" are unverified guesses. This skill is the loop that turns a\nguess into a result: **change one thing, roll it out, compare against the\nbaseline, and keep it only if the evidence says it helped.** It applies to\nanything you can observe (a prompt tweak, a config flag, an algorithm swap), and\nit is the *required* loop for anything that touches agent or Claude performance,\nwhere outputs are stochastic and \"it looks better\" is almost always noise.\n\nThe discipline is the point. One change at a time, a stated observable, more than\none rollout, and an honest keep-or-revert decision at the end.\n\n## The loop\n\n1. **Hypothesis + observable.** Write down, before touching anything, what you\n   expect to improve and *how you will see it*. The observable must be concrete:\n   a pass\u002Ffail criterion, a count, a latency, a token total, a yes\u002Fno on a\n   behavior appearing. \"Feels smarter\" is not an observable. If the change\n   produces no observable difference, stop: it is not testable, say so.\n2. **Baseline first.** Measure the current behavior *before* the change, with the\n   same task and the same number of rollouts you will use after. Keep the raw\n   results. Without a baseline you cannot attribute anything.\n3. **One change.** Make exactly one change. Two changes at once means you cannot\n   say which one mattered (or whether they cancelled).\n4. **Roll out.** Run the trial. For anything stochastic (any LLM\u002Fagent output),\n   one run is noise: run N (3-5, more for subtle effects) and look at the rate,\n   not a single sample.\n5. **Compare + decide.** Put the after-results next to the baseline. Decide:\n   - ✅ **keep**: it reliably wins and the win is attributable to the change.\n   - ❌ **revert**: no improvement, or it regressed. Revert now, do not leave a\n     change that did not earn its place.\n   - 🤔 **inconclusive**: flaky or partial. Report the rate, do not pretend.\n6. **Record.** One line: hypothesis, observable, baseline vs after (with rate),\n   decision. This is what makes the next experiment cheaper and stops the same\n   idea being re-litigated. File an issue if the result is worth a wider audience.\n\n> Sibling skill: **prompt-eval** answers \"did the new behavior take effect at\n> all\" (a fresh agent loads the prompt and the behavior emerges). **experiment**\n> answers the next question: \"is it actually *better* than what we had.\" Use\n> prompt-eval to confirm the change is live, then experiment to decide if it\n> wins. Apply the change (e.g. `home-manager switch` for a global skill\u002Fprompt)\n> before measuring, or you are testing the old version.\n\n## Testing agents: drive the real TUI, never `claude -p`\n\nWhen the thing under test is Claude (or Codex) performance, do **not** evaluate\nwith a headless `claude -p` and do **not** wrangle `tmux`. Use the index TUI\nPython harness. It spawns the *real* agent TUI in a PTY, so the session is live\non the web dashboard (`nix run .#dashboard`) exactly like a human's: you and\nthe user watch the current state, attach, and interrupt. An experiment you can\nwatch beats a black box you can only diff, and the harness gives clean,\nprogrammatic prompt\u002Fawait\u002Fread so rollouts are a `for`-loop or an `asyncio.gather`.\n\nThe harness is Playwright for an agent REPL (`tui.harness`): `Claude.launch()`,\n`agent.prompt()`, `agent.run()`, `agent.wait_for_idle()`, `expect(agent)`. It\nhandles the fiddly bits (onboarding gates, submit races, quiescence-based \"turn\ndone\" detection). See `packages\u002Ftui\u002Ftui-py\u002FREADME.md` for the full surface.\n\n### One rollout\n\n```python\nfrom tui.harness import Claude\n\nasync with await Claude.launch(cwd=\"\u002Fpath\u002Fto\u002Frepo\") as agent:\n    reply = await agent.run(\"your representative task here\", timeout=180)\n    print(reply)                       # the parsed answer\n    (await agent.screenshot()).to_html()  # colored screen artifact for the writeup\n```\n\n### A\u002FB with N rollouts each (the real shape)\n\nScore every run against the observable, then compare rates. Use a fresh agent\nper run so context does not leak between trials. Run them concurrently.\n\n```python\nimport asyncio\nfrom tui.harness import Claude\n\nTASK = \"a neutral task that should surface the behavior\"\n\ndef scores(reply: str) -> bool:           # YOUR observable, made concrete\n    return \"expected-marker\" in reply\n\nasync def one_run(cwd: str) -> bool:\n    async with await Claude.launch(cwd=cwd) as agent:\n        return scores(await agent.run(TASK, timeout=180))\n\nasync def rate(cwd: str, n: int = 5) -> float:\n    results = await asyncio.gather(*(one_run(cwd) for _ in range(n)))\n    return sum(results) \u002F len(results)\n\nbaseline = await rate(\"\u002Frepo-before\")     # or: before applying the change\nafter    = await rate(\"\u002Frepo-after\")      # after the one change\nprint(f\"baseline {baseline:.0%} vs after {after:.0%}\")\n```\n\nA change that moves the rate from 2\u002F5 to 3\u002F5 is 🤔, not ✅: the sample is tiny.\nRaise N before you celebrate a small delta.\n\n### Stepwise control + assertions\n\n```python\nfrom tui.harness import Claude, expect\n\nasync with await Claude.launch(cwd=\"\u002Frepo\") as agent:\n    await agent.prompt(\"do the thing\")\n    await expect(agent).to_be_idle(timeout=180)      # turn finished\n    await expect(agent).to_contain_text(\"done\")      # observable met (auto-retries)\n    transcript = await agent.content()               # full session text\n```\n\n## Match the conditions to reality\n\n- **Same model as production.** Default to Opus 4.8 (`\u002Fmodel`), the tier real\n  sessions use. A weaker model drops soft conventions and confounds the result.\n- **Same model on both sides.** Baseline and candidate must run the same model,\n  or you are measuring a model effect and blaming the change.\n- **Neutral tasks, don't lead the witness.** Use a task a real user would ask\n  that should organically trigger the behavior. Do not quote the rule or ask\n  \"do you follow X\" unless you are only checking that an instruction loaded.\n- **Isolate the variable.** Fresh agent (or clean cwd) per rollout, one change,\n  baseline captured the same way. If you cannot A\u002FB, say the effect is\n  unattributed instead of implying causation.\n\n## Reporting\n\nState it plainly with the rate and a real sample:\n\n- ✅ **keep** — reliably better, attributable. Baseline X\u002FN → after Y\u002FN.\n- ❌ **revert** — no gain or a regression (and you reverted it).\n- 🤔 **inconclusive** — flaky\u002Fpartial, rate stated, next step named.\n\nAlways paste at least one real sampled output so the verdict rests on an\nobservation, not a vibe. If a promising change came out 🤔, the result is \"need\nmore N\" or \"need a sharper observable,\" not \"ship it.\"\n",{"name":5,"description":7},"main","bed3e79e169c9952618f13b255bbe21164bd8bc1","skills\u002Fexperiment","https:\u002F\u002Fgithub.com\u002Fharivansh-afk\u002Floom-index-e2e","https:\u002F\u002Fgithub.com\u002Fharivansh-afk","hari.cafe","2026-08-05 23:54:30",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add harivansh-afk\u002Floom-index-e2e --skill experiment",{"tool":37,"command":38},"bunx","bunx skills add harivansh-afk\u002Floom-index-e2e --skill experiment",{"tool":40,"command":41},"pnpm","pnpm dlx skills add harivansh-afk\u002Floom-index-e2e --skill experiment","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fharivansh-afk\u002Floom-index-e2e\u002Fblob\u002Fmain\u002Fskills\u002Fexperiment\u002FSKILL.md",true,[],[46,53,60,67,74,80],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7A62MBAXZSSHSTKTJF9M9T0","pdf-processing","Extract text and tables from PDF files","https:\u002F\u002Fgithub.com\u002Fharivansh-afk\u002Floom-index-e2e\u002Fblob\u002Fmain\u002Fviews\u002Fhome-manager\u002Ftests\u002Fmodules\u002Fprograms\u002Fopencode\u002Fskills-bulk\u002Fpdf-processing\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7A62K1VTVFVSPV9V49PKK4N","git-release","Create consistent releases and changelogs","https:\u002F\u002Fgithub.com\u002Fharivansh-afk\u002Floom-index-e2e\u002Fblob\u002Fmain\u002Fviews\u002Fhome-manager\u002Ftests\u002Fmodules\u002Fprograms\u002Fopencode\u002Fskills-bulk\u002Fgit-release\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7A62HPD2TYCNA8MSV4PRGRP","data-analysis","Help analyze datasets and results","https:\u002F\u002Fgithub.com\u002Fharivansh-afk\u002Floom-index-e2e\u002Fblob\u002Fmain\u002Fviews\u002Fhome-manager\u002Ftests\u002Fmodules\u002Fprograms\u002Fopencode\u002Fskill-dir\u002Fdata-analysis\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7A62G35PP698FP9TEZWYZ3V","release-notes","Draft release notes from commits and merged pull requests.","https:\u002F\u002Fgithub.com\u002Fharivansh-afk\u002Floom-index-e2e\u002Fblob\u002Fmain\u002Fviews\u002Fhome-manager\u002Ftests\u002Fmodules\u002Fprograms\u002Fgithub-copilot-cli\u002Fskills\u002Frelease-notes\u002FSKILL.md",[],[],{"skillNo":75,"name":62,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7A62EJX21A1E72WR5CX6W3M","Summarize structured outputs and highlight regressions.","https:\u002F\u002Fgithub.com\u002Fharivansh-afk\u002Floom-index-e2e\u002Fblob\u002Fmain\u002Fviews\u002Fhome-manager\u002Ftests\u002Fmodules\u002Fprograms\u002Fgithub-copilot-cli\u002Fskills\u002Fdata-analysis\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7A62DC2X7X7AYFPF1DG2NBC","skill-one","Example skill for tests.","https:\u002F\u002Fgithub.com\u002Fharivansh-afk\u002Floom-index-e2e\u002Fblob\u002Fmain\u002Fviews\u002Fhome-manager\u002Ftests\u002Fmodules\u002Fprograms\u002Fcodex\u002Fskills-dir\u002Fskill-one\u002FSKILL.md",[],[]]