agentsclimarketplace

Testing in production

Skill Amey-Thakur/AI-SKILLS/skills/testing/testing-in-production

Verify changes against real traffic without risking users, using canaries, shadow traffic, and feature gates with automatic rollback. Use when a behavior cannot be trusted from staging alone and needs production load or data to prove out.From its SKILL.md

Install
npx -y skills add Amey-Thakur/AI-SKILLS --skill testing-in-production

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 23 days oldThe repository was created 23 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.8 KB, 574 tokens by cl100k_base, as published. Nobody here has run it

Testing in production

Some failures only appear under real traffic: the query plan that degrades at production data volume, the input distribution no fixture captured, the integration that behaves differently against the live dependency. Staging cannot reproduce them, so the choice is to learn from an outage or to verify in production on purpose, with guardrails. Done right, real traffic validates the change while a switch keeps the blast radius small.

Method

  1. Gate every new path behind a flag defaulting off. Ship the code dark, then enable it for internal users, then a small cohort, on a flag you can flip without a deploy. The flag is the kill switch: turning it off must fully restore the old path.
  2. Canary before full rollout. Route a small percentage, start at 1 to 5, to the new version and compare its error rate and latency against the baseline over the same window. Promote only when the canary holds its SLO.
  3. Automate the abort. Define the rollback trigger before you roll: error rate above threshold, latency regression, a spike in a key business metric. Wire it to revert automatically, because a human watching a dashboard will miss the two-minute window.
  4. Shadow traffic for read-heavy changes. Mirror real requests to the new code path, compare its responses against production's, and discard its output. This exercises real inputs at zero user impact, as long as the shadow path performs no writes.
  5. Never let a test path mutate real data. Shadow and canary writes go to a sandbox or are suppressed; dark reads are safe, dark writes are not. A verification run that corrupts a user's record has failed no matter what it measured.
  6. Probe continuously with synthetics. Run scripted transactions (login, core action, checkout) against production on a schedule so a regression surfaces from your own probe, not from the first angry customer.

Litmus tests

  • Can you disable the new path in seconds without a deploy?
  • Is the rollback trigger defined and automated, not left to someone watching graphs?
  • Does any production verification write real user data, and if so, why is that safe?

Boundaries

This is verification under live traffic, which assumes solid pre-merge testing beneath it: unit, integration, and smoke coverage still gate the deploy. Flag lifecycle and cleanup belong to feature-flags-hygiene, and the alerting that watches a rollout to alerting-design. High-risk domains like payments or medical may forbid production experiments outright: honor that.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,851. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.