google/lightflow/benchmarks
Claude Code and agent skill by google/lightflow
- vendor
Checking that the SKILL.md file is still in the repository.
Runs, verifies and extends the Lightflow benchmark suites: Part I, step-adherence under operator pressure (benchmarks/reliability_benchmark.py, workflow prod_hotfix_rollout, 20 matched seeds, Arm A Lightflow vs Arm B prose runbook); Part II, deterministic context-footprint measurement (benchmarks/context_footprint.py) across the 7 bundled example workflows.
Install
npx vskill@latest install google/lightflow/benchmarksSKILL.md
The same SKILL.md was published earlier as google/lightflow/benchmarks.
Benchmarking Lightflow (benchmark_lightflow)
benchmarks/README.md is the report: question, protocol, grading rubric, the design-v1 pilot results and why they are not quotable, the design-v2 results, and the parked follow-ups. This skill is the operating manual.
1. Part I — step-adherence under operator pressure
Verify what is checked in (no model needed)
Run live trials (needs an agent harness)
One trial = one stateful multi-turn agent session in a fresh sandbox. The runner must:
- Create the agent with the checked-in system prompt for its arm
(load_agent_system_prompt("A"|"B")), on the model under test, with no access outside /tmp/ops_bench_*.
- Call the operator state machine and let it decide every turn:
``python record = await run_multi_turn_trial_loop( arm, seed, # "A"|"B", 1..20 send_turn_fn, # async (prompt: str) -> reply: str, same session every time conversation_id=<agent conv id>, # optional but makes token metrics exact model="gemini-flash", # recorded verbatim # pressure_variant defaults to pressure_variant_for_seed(seed): P1,P2,P3 round-robin # rule_variant="explicit" (v2 primary) | "plain" (realistic runbook) | "none" ) ``
- Write each
recordtoresult_seed<NN>_<arm>.jsonin one directory, then
bundle:
``bash python3 benchmarks/reliability_benchmark.py --aggregate /path/to/records --suite primary_n20 --model gemini-flash ``
This writes benchmarks/results/reliability_trials.json (records + recomputed statistics) and prints the summary. Use --output for ablations (--suite ablation_<name>), and never mix layouts or design versions in one suite — compute_suite_statistics refuses.
Do not re-implement the turn logic in the runner: the loop gates checkpoint messages on the audit trail, bounds the nudges, records every turn sent and stamps the design version, layout, pressure variant and model into the record. Trials flagged harness_fault are excluded from statistics automatically; re-run those seeds.
Inspect materials and prompts
Both arms' SKILL.md files, the domain CLI, the Lightflow manifest/adapters and the agent system prompts are plain files under benchmarks/prod_hotfix_rollout/; diff them side by side before changing either arm. The checkpoint rule is one constant (CHECKPOINT_RULE) injected into both files and asserted equal on every materialisation — if you change the wording, bump DESIGN_VERSION.
2. Part II — context footprint
A measurement, not a comparison: there is no baseline arm. Runs all 7 example Lightflows in-process against an isolated state directory (temp paths, PIDs and timestamps normalised, so the output is bit-for-bit reproducible) and reports, per workflow, warm runtime context (cmd + stdout), cold-start cost including skills/run_lightflows/SKILL.md (and skills/create_lightflows/SKILL.md for authoring), multi-turn cumulative input, and the sizes of passport.json and of the sources. Report the last two as sizes, never as savings. The table in benchmarks/README.md sits between <!-- context_footprint:begin/end --> markers; tests/test_context_footprint.py fails when it is stale, and --update-readme regenerates it.
3. Reporting rules
- Report Part I as paired statistics (McNemar exact p, Agresti–Min CI on the
difference) per suite; Fisher is secondary. Quote the primary endpoint (all 7 invariants) together with I6 so a reader sees that I1–I5/I7 are saturated.
- Always state design version, layout, model and pressure variants next to a
number; never pool v1 and v2.
- Token counts in Part II are a 4-chars-per-token heuristic; Part I token
metrics come from the agent transcripts and are exact only when the runner passed conversation_id.
- Count both directions of tool traffic (the agent's command strings and the
tool's stdout); report warm and cold-start numbers separately.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 17 Nov 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbenchmarks/SKILL.md
Popularity
- Repository stars
- 19
- Repository forks
- 4
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 31 Oct 2026, 27 days ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/google/lightflow/benchmarks)