test-velocity
Skill0 starsChanged 13 days agoMITView on GitHub
Engineer trustworthy, exceptionally fast software test feedback from project inception through large-suite optimization. Use when designing test architecture, writing nontrivial tests, diagnosing slow suites, tuning test selection, caching, CI and parallelism, or coordinating tests across coding agents. Do not use for trivial edits or to replace required integration, security, browser, hardware, or release verification with mocks.
In this repository11 other files it gives its agents.
- anti-sloprushSkill
- architecture-guardSkill
- futurequakeSkill
- game-studioSkill
- gauntlet-loopSkill
- geometric-designSkill
- intent-modeSkill
- openspec-workflowSkill
- seo-aiseoSkill
- video-watchSkill
- visual-outputSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 13 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Use the smallest applicable mode.
- Distinctive: line 25
Evidence over hype: Never promise 10x or 100x.
- Distinctive: line 28
Deterministic by construction: Prefer injected clocks, seeded randomness, controlled scheduling, stable fixtures and isolated state.
- Distinctive: line 37
Read AGENTS.md and repo-specific docs, test scripts, workflows, coverage rules, release requirements, and prior regression history.
- Distinctive: line 58
Prefer a pure deterministic domain core with explicit adapters around clocks, RNG, network, files, persistence and platform services.
- Distinctive: line 73
Use correct incremental rebuilds, targeted change-impact selection and appropriate parallelism.
- Distinctive: line 74
Use trusted local or remote caching for deterministic matching inputs.
- Distinctive: line 78
Always compare one controlled intervention against the previous baseline.
- Distinctive: line 97
run the original regression cases and required gates.
- Distinctive: line 98
run new or modified tests against deliberately defective behavior or mutation tests when feasible, so assertions are demonstrated to fail.
- Distinctive: line 112
test tiers and exact required verification gates.
- Distinctive: line 114
before/after cold, warm and affected-run times for equivalent scope.
- Distinctive: line 117
Do not claim the skill itself enforces CI.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test Velocity
Maximize time to a trustworthy verdict, not speed at any cost. A fast suite that misses regressions is a failed optimization.
Modes and activation
- Blueprint: New project or subsystem. Establish testable architectural seams, verification tiers, deterministic interfaces, and measurement budgets before implementation.
- Author: While writing features and regression tests. Select high-signal tests and make them cheap without weakening requirements.
- Rescue: Existing oversized or slow suite. Measure, identify dominant costs, propose and verify improvements against the unchanged correctness contract.
- Fleet: Multiple agents or CI workers. Coordinate deduplication, shard isolation, resource budgets, and shared verified cache.
Use the smallest applicable mode. If no real repository is available, produce a proposed blueprint with no invented baseline or executable claims.
Optional companions: architecture-guard for ownership/seams; gauntlet-loop for integrated behavioral verification; futurequake when empirical changeability matters. Follow existing repository and OpenSpec authority. This skill does not overrule them.
Non-negotiable invariants
- Correctness first. Preserve externally observable behavior and the ability to detect the original defect. Never delete, skip, weaken, or silently rewrite tests to meet a speed target.
- Evidence over hype. Never promise 10x or 100x. Differentiate cold, warm, incremental, selected, and complete uncached timings. Report conditions and variability.
- No false green. Selected or cached tests are not equivalent to a complete suite unless the repo's validated gate explicitly defines and proves that equivalence. Unknown impact expands verification, never shrinks it.
- Real boundaries still get tested. Pure-core or contract tests complement but never replace required database, OS, network, browser, GPU, device, authorization, payment, and end-to-end checks.
- Deterministic by construction. Prefer injected clocks, seeded randomness, controlled scheduling, stable fixtures and isolated state. Forbid reliance on test order and unspecified global mutable state.
- Cache only validated purity. Key results by relevant source, transitive dependencies, toolchain and lockfile, config, flags, environment, runtime/platform, and fixture inputs. Invalidate on missing inputs; do not cache nondeterministic, secret-sensitive, externally stateful or flaky work as trusted PASS.
- Concurrency safely. Parallelize independent tests; give workers isolated resources, database namespaces, ports, files and service instances. Measure contention and memory pressure. Do not turn races into passing tests.
- Do not install global tooling, change security gates, use paid CI, trigger expensive cloud runs, or modify unrelated suites without authorization. Preserve local user work.
Workflow
1. Discover the actual verification contract
Read AGENTS.md and repo-specific docs, test scripts, workflows, coverage rules, release requirements, and prior regression history. Enumerate test frameworks and workloads. Record exact ref, environment, platform, CPU, available resources, tool versions and command lines where accessible.
For Blueprint, classify architectural risks and write a test plan before code. For Rescue, first collect a baseline without changing test behavior. For Author, establish what a correct failure would look like before implementing tests.
2. Profile the wall clock, not just test function runtime
Distinguish:
- dependency resolution and build/compile;
- collection/discovery and process startup;
- test logic;
- fixture creation, database/network/filesystem calls;
- wall-clock waits, sleeps, retries and polling;
- teardown, logging/reporters, browser/device launch;
- queued jobs, CI overhead, serialization and agent contention.
Measure representative cold complete, warm complete, and edit-affected feedback separately. Where practical, repeat matched commands and report medians, spread, test count, relevant runner/cache state and flaky failures. Baselines without executed commands are hypotheses only.
Read measurement contract.
3. Establish cheap, meaningful execution seams
Prefer a pure deterministic domain core with explicit adapters around clocks, RNG, network, files, persistence and platform services. Test business invariants through direct functions/state machines when possible, without starting the entire application. Do not simulate so much that the test proves only the mock.
Design tiers:
- Micro: pure unit, parser/state-transition, table-driven, property-based and metamorphic tests; target immediate local feedback.
- Component/contract: real module APIs, protocol schemas, boundary behavior and focused persistence or service behavior.
- Integration: real external adapters under isolated controlled environments.
- End-to-end/system: real UI/device, critical workflows, production-like wiring and release concerns where applicable.
Favor high-value test oracles, boundary cases and invariant coverage over massive case counts. Where safe, run thousands of input cases in one process rather than repeating expensive global setup. Property/fuzz tests must record seeds and reproduce counterexamples.
4. Optimize in descending order of impact
- Eliminate unnecessary work (duplicate test execution, excessive setup, actual waiting).
- Share immutable fixtures; isolate mutable fixtures.
- Move pure logic out of expensive runtimes when the production architecture permits it.
- Use correct incremental rebuilds, targeted change-impact selection and appropriate parallelism.
- Use trusted local or remote caching for deterministic matching inputs.
- Profile algorithmic/memory bottlenecks within tests only after larger overhead is addressed.
- Tune reports, fixture sizes and tools without sacrificing diagnostic detail or assertion strength.
Always compare one controlled intervention against the previous baseline. If a 'speedup' only moved a critical check out of the measured set, label it a change in verification scope, not equivalent acceleration.
5. Make the verification matrix explicit
Define project-specific gates, not universal invented time limits:
- edit loop: affected tests + cheap invariant checks;
- pull request: affected suites, contract/integration coverage for changed boundaries, static analysis and mandatory security/regression gates;
- merge/release: repo-defined comprehensive verification (full uncached where required);
- recurring: complete matrix including slow E2E, platform variants, fuzzing and flake detection as justified.
Cross-cutting changes (toolchain, shared configuration, schemas, core contracts), missing graph edges, unknown dependencies and suspected flaky tests should conservatively expand scope. Never classify a skipped job as PASS. Independently validate test-impact selection against periodic full-suite results and track misses.
6. Fleet mode
Represent each test execution with its exact source revision, command, environment and immutable inputs. De-duplicate identical authorized work across agents, schedule CPU and memory budgets, shard by measured duration, and isolate side-effectful workers. Cache artifacts/results only with provenance and trustworthy keys. If an agent's result is stale or inputs differ, rerun. Keep centrally enforced full-verification gates separate from fast exploratory verdicts.
7. Verify the optimization
Before claiming success:
- run the original regression cases and required gates;
- run new or modified tests against deliberately defective behavior or mutation tests when feasible, so assertions are demonstrated to fail;
- examine skipped, deselected, retried and quarantined counts;
- compare identical verification scope under matched conditions;
- record correctness risks and any CI gates not executed.
A local test run cannot certify coverage of unsupported platforms or external providers.
Output contract
Deliver one concise Test Velocity Plan / Evidence Record:
- repo, ref, mode, risk and execution environment;
- observed commands and baseline timing split (or explicitly 'not measured');
- bottlenecks ordered by measured contribution;
- selected architectural changes and rejected alternatives;
- test tiers and exact required verification gates;
- change-selection/cache invalidation and fallback rules;
- before/after cold, warm and affected-run times for equivalent scope; also test counts and flakiness;
- what was actually run, remaining risk, and next highest-value action.
Do not claim the skill itself enforces CI. Only working project configuration, executed checks and logs constitute enforcement.
See stack recipes and measurement contract.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

