optimize

optimize is a skill for Claude Code, Codex from ffroliva/gflow-cli. It costs 100 tokens per session (2,208 once invoked), scanned A, original, MIT.

A guide for making a Go project's tests and continuous integration runs faster without reducing what they check. Continuous integration automatically builds and tests changes in a shared code service.

In plain words
What is it for?
Use it to speed up local tests, CI runs, and live end-to-end tests through measurement, parallel workers, sharding, rebalancing, or reusable test environments.
Why use it?
It helps find whether test work, worker limits, ordering, browser setup, or repeated waits is causing slow feedback while keeping the same tests and assertions.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: mentions Claude Code; mentions Codex; built for aider.

Good fit Use it to speed up local tests, CI runs, and live end-to-end tests through measurement, parallel workers, sharding, rebalancing, or reusable test environments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ffroliva/gflow-cli/optimize
About the project

gflow-cli is a command-line tool and MCP server that automates Google Flow, a service for creating videos and images with Google's Veo, Omni, Nano Banana, and Imagen models. It is for users of Claude Code, Claude Desktop, Cursor, VS Code, Codex, MCP clients, or a terminal who want to generate media through their signed-in Google Flow account. The catalogue entries provide commands, skills, instructions, MCP configurations, and a plugin for using gflow-cli from these agent environments.

ffroliva/gflow-cli · 1,223 stars · on GitHub · ffroliva.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ffroliva/gflow-cli --skill optimize
Clone the repo
git clone --depth 1 https://github.com/ffroliva/gflow-cli

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/ffroliva/gflow-cli/optimize/github.svg)](https://agentmods.dev/skills/ffroliva/gflow-cli/optimize)
Your own site
<a href="https://agentmods.dev/skills/ffroliva/gflow-cli/optimize"><img src="https://agentmods.dev/badge/skills/ffroliva/gflow-cli/optimize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for optimize

Your own site · 80×15
<a href="https://agentmods.dev/skills/ffroliva/gflow-cli/optimize"><img src="https://agentmods.dev/badge/skills/ffroliva/gflow-cli/optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,208 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00100 $0.02208
Opus 5.5 $0.00040 $0.00883
Sonnet 5.5 $0.00020 $0.00442
Haiku 4.5 $0.00010 $0.00221

Measured 17d ago against content hash 8806ea198ca3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

optimize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/optimize/SKILL.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/gflow:optimize [ci | local | e2e] — test and CI speed

gflow reverse-engineers a black box, so its quality rests on running tests often: the offline suite on every commit and the live e2e suite on every change to a Flow surface. A slow loop is a quality problem, because slow tests get run less. This skill is how speed work is done here.

Targets (owner rules):

  • CI: 3-5 minutes wall time per run, on PRs and pushes to develop. Outside that range, optimise before other work.
  • Local offline suite: 3 minutes (the global test SLA).
  • Live e2e: as close to the slowest single generation as parallelism allows. An image takes about 1-2 minutes and a video 2-4 in Flow itself; that is the floor for a test that generates. Everything around it (browser launch, page load, fixed waits, running tests one after another) is ours to remove.

The rule that does not bend: never weaken

A speed change never skips, deselects, xfails or marks a test slow to get it out of the run; never loosens or deletes an assertion or shrinks a test's data; never raises a timeout to hide a wait. Every test that ran before still runs, and still checks the same thing.

What is allowed and expected here, unlike in a generic speed rule: adding workers (-n), adding shards, rebalancing shards, and cloning profiles for e2e. gflow's e2e time is mostly model latency we cannot remove, so running tests concurrently is the main lever, not a dodge. When a single test is itself slow, cut its cost first; parallelism hides a cost, it does not remove it.

The protocol

  1. Measure the wall clock and its critical path. Never guess, never --durations alone (it cannot tell setup from a wait from code under test).
    • CI: gh run list --workflow CI --json databaseId,createdAt,updatedAt,event -L 20 for wall time per run; gh run view <id> --json jobs for each job's start and end. Separate queue time (waiting for a runner) from run time.
    • Local / e2e: run with --junitxml=<dir>/report.xml, then rank files by share of their worker: python -m scripts.ci.pytest_speed rank <dir> --root . (config: pytest-speed.toml).
  2. Name what dominates, in one sentence, with the number: "the critical path is shard 2/3 at 2m40s, 70 s more than the others", "e2e is 106 tests x ~32 s run one at a time".
  3. Pick the lever from the table below that removes that cost. One lever per change.
  4. Prove it with a red test when the change is to a test or fixture (the speed fix must not change what the test checks), and A/B it: at least 3 runs before and 3 after on the same machine or runner class. One run each is noise.
  5. Record the before/after numbers and the decision in the PR body, and in the active plan's decision log when there is one.

Read the full file on GitHub · 104 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago First seen · 104 lines · 100 tokens per session scan A 8806ea198ca3

Subscribe to this mod's changes

optimize is a skill published in the GitHub repository ffroliva/gflow-cli (1,223 stars, last pushed today), licensed MIT. It adds 100 tokens to every session and 2,208 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-13.

Related

optimize compared with skills from other repositories

optimize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
optimizeffroliva/gflow-cliSkill1.2ktodayMITA100Claude Code, Codex
canary-executionapp-vitals/shipwrightSkill16todayMITA125Claude Code
verifyHmbown/CodeWhaleSkill41kyesterdayMITA25Claude Code, Codex
webapp-testingHmbown/CodeWhaleSkill41kyesterdayMITA32Claude Code, Codex
e2e-testingthedaviddias/Front-End-ChecklistSkill75k1mo agoMITA38Claude Code, Codex
winui-ui-testingmicrosoft/winappCliSkill1.4ktodayMITA74Claude Code
testing-and-cigreenpau/caddy-securitySkill2.3k13d agoApache-2.0A50Codex