stability-experiment

stability-experiment is a skill for Claude Code from Bonifatius94/myscrape. It costs 67 tokens per session (482 once invoked), scanned A, original, MIT.

A repeatable method for finding why a web scraper becomes unreliable or gets rate-limited. It tests one possible cause at a time under controlled conditions.

In plain words
What is it for?
Use it to investigate intermittent search or fetch failures in myscrape-go, test request spacing or headers, and confirm changes with the full benchmark stack.
Why use it?
It helps distinguish a real code or service problem from a temporary rate limit that simply expired. It also favors slower, stable requests over attempts to bypass restrictions.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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.

agentmods
npx agentmods add skills/bonifatius94/myscrape/stability-experiment
Any agent
npx skills add Bonifatius94/myscrape --skill stability-experiment
Clone the repo
git clone --depth 1 https://github.com/Bonifatius94/myscrape

Made for: Claude Code.

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 stability-experiment

README.md
[![agentmods](https://agentmods.dev/badge/skills/bonifatius94/myscrape/stability-experiment.svg)](https://agentmods.dev/skills/bonifatius94/myscrape/stability-experiment)
Your own site
<a href="https://agentmods.dev/skills/bonifatius94/myscrape/stability-experiment"><img src="https://agentmods.dev/badge/skills/bonifatius94/myscrape/stability-experiment.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 482 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00067 $0.00482
Opus 5 $0.00034 $0.00241
Sonnet 5 $0.00013 $0.00096
Haiku 4.5 $0.00007 $0.00048

Measured 5d ago against content hash 2b5f2f92c76f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

stability-experiment 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 5d 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.

.claude/skills/stability-experiment/SKILL.md · 36 lines

What it actually says

Running a stability experiment

This is the method that established the operating point (specs/EXPERIMENTS.md). Reuse it; don't improvise.

Tool

  • go run ./cmd/bench — runs the query set through the full httpx stack (cache
    • per-host rate limit + retry) and reports ratelimit_rate. The gate passes only when it's 0. For isolating an endpoint, a few raw http.Gets at a fixed spacing are enough — the point is controlled, attributable observation.

The method (in order)

  1. Check the persistence confound FIRST. Measure how long a rate-limit lasts before any comparative test. If it persists for hours, back-to-back runs aren't attributable to code — a "fix" may just be a lapsed limit. Probe isolated requests over time right after a limited run; proceed only if recovery is short (minutes — which is what the reference found for DDG).
  2. Isolate one variable (spacing, UA, endpoint, headers) — change exactly one.
  3. Prefer slowing down over evasion. Stability over throughput is the rule. Longer intervals / more jitter before anything clever; never proxies/CAPTCHA (out of scope — the honest fallback is a keyed API).
  4. Validate on the full stack (cmd/bench), not just an isolated probe.
  5. Keep the gate aligned with the strategy — if you pace deliberately, the gate must expect the pace, not flag it.
  6. Bake the proven operating point into config defaults.

Documenting (required)

Summarize the finding in specs/EXPERIMENTS.md (Hypothesis · Setup · Observations · Results · Insight) and log the resulting decision via log-decision. Stop when the gate passes with margin — not when it's theoretically optimal.

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. 5d ago First seen · 36 lines · 67 tokens per session scan A 2b5f2f92c76f

Subscribe to this mod's changes

stability-experiment is a skill published in the GitHub repository Bonifatius94/myscrape (1 stars, last pushed 10d ago), licensed MIT. It adds 67 tokens to every session and 482 once invoked, about $0.0003 per session on Opus 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-08-31.