measure-before-you-fix
Skill by garrytan
Measure before you fix is a read-only triage skill for slow, stale and timeout alerts from gbrain. It times the named step with a stopwatch and checks alert thresholds before any timeout or code change.
Install measure-before-you-fix
Built from the published package, never by AI.
git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.claude/skills && cp -r /tmp/gbrain/skills/measure-before-you-fix ~/.claude/skills/measure-before-you-fixRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gbrain/skills/measure-before-you-fix ~/.gemini/antigravity-cli/skills/measure-before-you-fixAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install measure-before-you-fix in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Measure before you fix is a skill for triaging temporal alerts, such as stale data, timeouts, freshness warnings, wedged jobs and hours-behind lag. It targets alerts from gbrain doctor, autopilot, sync and cron monitors. Before any timeout is raised, threshold is changed or pipeline is rewritten, the skill asks for a stopwatch measurement of the specific step the alert names.
The skill compares measured durations against the timeouts in the wrapper and against the authoritative warn and fail lines in gbrain doctor. It separates a step that needs more time from one that is wedged, because those have opposite fixes. It is read-only and produces a measurement verdict that sizes any later fix. It is written for operators and engineers who run gbrain sync and monitoring jobs.
Written from the project's SKILL.md and checked against it.
What it can do
- Measure the suspect stepTimes the specific source or entity an alert names, such as gbrain sync --source source-a.
- Compare measured and budgeted timeGreps timeout settings in the wrapper and call site to compare against the measured duration.
- Check alert thresholdsCompares a monitor's alert line with the gbrain doctor warn and fail lines before calling the system unhealthy.
- Classify the alertSeparates a false page on a healthy system, needing more time, a wedged step and a genuine regression.
- Produce a measurement verdictOutputs a structured verdict that records the claim, measured duration, budget, thresholds and proposed fix.
What you need
- gbrain CLI with doctor, sync and sources commands
Try asking
- Sync for source-a keeps timing out. Measure it before changing any timeout.
- Our freshness alert says the data is 14h stale. Check it against gbrain doctor.
- Is this monitor paging at a threshold below the doctor's warn line?
Good to know
- Read-only: it changes no timeouts, thresholds or code.
- Routing to this skill is a harness convention, not a mechanical guarantee.
- Covers gbrain surfaces such as doctor, autopilot, sync and cron monitors.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/measure-before-you-fix/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB -
routing-eval.jsonl1 KB
Alternatives to measure-before-you-fix
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
measure-before-you-fix: common questions
When should I use measure before you fix?
Use it when an alert claims something is slow, stale, timed out or wedged, before you raise a timeout, change a threshold or rewrite a pipeline.
Does this skill change my timeouts or thresholds?
No. The source says it is read-only and changes no timeouts, thresholds or code. It produces a verdict that sizes the fix, which is a separate change.
How does it tell needing more time from being wedged?
The verdict explicitly distinguishes the two because they have opposite fixes. The gbrain sync stall watchdog keys on forward progress rather than elapsed time.
How do I install measure-before-you-fix?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is measure-before-you-fix free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is measure-before-you-fix safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to measure-before-you-fix?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
