Makes time-dependent tests deterministic by injecting a controllable time source instead of reading the wall clock. Covers libraries like freezegun, Sinon fake timers, and Clock.fixed.
Code that calls Date.now(), time.time(), or datetime.now() directly
reads a value that changes every run, so any test over it is a coin flip near
a boundary and silently wrong across a daylight-saving shift. The fix is not
sprinkling sleeps or widening tolerances: it is making time an input you
control, then pinning it to the exact instant the test cares about.
Clock interface, a now: () -> datetime callable, or a
constructor argument. Production wires the real clock, tests wire a fake.
A function that closes over the global module clock cannot be frozen from
the outside.@freeze_time("2026-03-08T12:00:00Z")), Sinon fake timers
(sinon.useFakeTimers), or Clock.fixed(instant, zone) on the JVM. Set
one explicit instant per test so the assertion reads against a literal you
can see, not "roughly today".clock.tick(30_000),
frozen.move_to(...)) and assert the effect fired. A real sleep(30)
makes the suite slow and still races; a controlled tick is instant and
exact.ZoneInfo("America/New_York")), never a fixed -05:00, so the
rules travel with the data.now(, today(, Date.now, time.time: any
hit that is not the injected source is a hole.This covers making time deterministic in a test, not scheduling or cron correctness in production, which needs its own integration coverage. Follow the clock abstraction a project already has rather than introducing a second one.
What SKILL.md sets; muted values are Claude Code's defaults
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job