Slow tests drag down every change, but speed fixes can quietly test less. Your AI speeds them up and shows nothing was lost.
What happened
Cognition's customer story about Ramp says Devin refactors slow tests. It says a script compares test counts and covered lines before a pull request is shown. If the check fails, the pull request is blocked, and people review the ones that pass.
Download the .zip. In Settings, find Skills, choose Upload skill and pick the file. Code execution has to be turned on.
Claude Code
Run this in your terminal:mkdir -p ~/.claude/skills/speed-up-slow-tests-without-losing-coverage && curl -fsSL https://botcurrent.com/skills/speed-up-slow-tests-without-losing-coverage/SKILL.md -o ~/.claude/skills/speed-up-slow-tests-without-losing-coverage/SKILL.md
Codex
Run this in your terminal:mkdir -p ~/.agents/skills/speed-up-slow-tests-without-losing-coverage && curl -fsSL https://botcurrent.com/skills/speed-up-slow-tests-without-losing-coverage/SKILL.md -o ~/.agents/skills/speed-up-slow-tests-without-losing-coverage/SKILL.md
We check every skill file before we offer it. This one is the prompt above in skill form.
Passed Skill file is well formed
Passed Runs its own code or programs
Passed Connects to the internet from code
Passed Touches passwords, keys or private files
Passed Deletes or overwrites things in bulk
Passed Hidden or scrambled code
Passed Tries to override your instructions
Passed Invisible characters in the text
Passed Sends your data somewhere else
Passed Can pay or buy without asking you
Passed Downloads or installs other software
Passed Has a password or key written into it
Passed Asks for admin (sudo) rights
Files scanned: SKILL.md. Links to: botcurrent.com, devin.ai. Fingerprint: 304373cd1440. What we check
Tried it? Did it work for you?
Tell us what went wrong and we’ll fix the prompt: email us.
Votes count only if you allowed optional analytics.
What you'll get
A patch that speeds up your slowest tests, with test counts and coverage before and after.
You'll need
Your slowest tests and their run times
Your current test count and coverage report
How you run the suite
Before you switch it on
Acts with your OK
If you give this job to an agent that works in your accounts:
Access it needs
Your code repository and a terminal
Keep on “ask me first”
Sending or posting anything, paying or buying, sharing your address or ID, deleting anything
Heads up: Removing waits can make tests flaky. Run the new suite several times before you merge.
More details: full instructions, sources and safeguards
Before you begin
Require qualified review of evidence, scoped data access and separate human release approval.
Use this in your own AI tool
Copy the starter, then open your own AI tool.
Paste it with only the permitted inputs. Check privacy settings and tool compatibility first.
Review the draft and held questions. Any later action needs separate approval.
What you need
Supplied test timing and coverage summaries
Proposed diff or bottleneck descriptions
Owner-defined coverage and behavior invariants
Start here
01Identify supported bottlenecks and distinguish timing evidence from guesses.
02Map proposed changes to coverage and behavior risks.
03List meaningful comparison checks without profiling, executing tests or editing the repository.
Advanced prompt availability
Advanced prompt
No accepted companion is available for this record. The original material below retains its original status.
Technical setup & run design — optional
Starter
Separate short starter version composed-v1. Untested.
Advanced prompt
No accepted advanced companion is available. Legacy material remains in the original notes with its status.
Compatibility
Unknown; check the actual tool, account and permissions.
Run design
No reviewed run design. No runtime or schedule is activated by BotCurrent.
Setup and access
Proposed inputs
Name
Test-suite evidence
Owner
Maintainer
Minimum scope
Approved timings, test inventory and relevant code summaries
Quality check
Record environment and baseline version
Name
Preservation criteria
Owner
Quality owner
Minimum scope
Required assertions, coverage expectations and permitted refactors
Quality check
Separate speed goals from correctness requirements
Access and setup — proposed or unknown
Proposed minimum
Review fictional timing/coverage summaries and a proposed diff; no profiling, test execution or repository edits.
Compatibility unknowns
Current test tooling, coverage semantics, timing stability and runtime compatibility are unknown.
External actions requiring approval
Code changes, dependency updates, compute runs and pull-request creation requires scoped authorization and review.
Source evidence, attribution & limitations
Full source evidence
Vendor report · Coding orchestration
Original task title: Speed up slow tests without losing coverage
Editorial candidate. This is source-backed reporting or a documented workflow. BotCurrent has not independently tested this task. A proposed Canadian adaptation is not evidence of a Canadian deployment or compliance certification.
Editorial classification; no execution or compatibility test is implied.
No tool mapping reviewed for this task.
Source-backed example. Practical decision guidance is proposed and untested; this is not a full implementation guide.
The problem
Slow tests delay development, but performance changes can silently reduce what the suite checks.
Suggested task
Refactor slow tests and compare test counts and covered lines before proposing the change.
What you could produce
A test-performance pull request with coverage-preservation checks.
Where these suggestions come from
Core problem: Our interpretation of the task
Agent job: Our interpretation of the task
Expected output: Our interpretation of the task
Relevant job roles: Our interpretation of the task
Benefit type: Our interpretation of the task
Suggestions and their limits
Describes the task’s purpose and intended output; measured benefit, safe unsupervised operation and successful delivery are not established by this framing.
Editorial synthesis based on the linked source. This framing does not add evidence of successful delivery or results.
Before you try it · suggestions untested
Case-specific decision guidance and first checks are original proposals. The linked source supports the attributed task; this added guidance has not been executed.
An engineering team may want faster tests without losing confidence in what they check. A refactor can reduce runtime by accidentally skipping cases, weakening assertions or changing the environment in ways that make the comparison unfair.
This job could prepare a performance-change proposal with explicit preservation checks and review evidence. Keeping speed, test inventory and behavioral coverage separate helps reviewers avoid treating one favorable metric as proof that the suite remains equivalent.
Why an agent / simpler alternative
Useful judgment
Identify likely bottlenecks, propose bounded refactors and explain what evidence would be needed to assess preserved behavior.
Simpler alternative
Profile and adjust a small slow test manually when the cause is obvious.
Unsuitable when
The workflow would remove checks, weaken assertions or claim equivalent coverage from counts alone.
Expected deliverable and review checks
Proposed artifact
Refactor-plan candidate with baseline comparison, preservation checks and reasons to reject or hold a change.
Critical checks
Use comparable environments; inspect skipped tests and assertions; distinguish covered lines from adequate behavior testing; retain failed validations.
Missing output evidence
This overlay adds no new output inspection, execution or validation; consult the referenced canonical source outcome limits.
First check — proposed, unexecuted
Status
proposed_unexecuted
Synthetic fixture
Invent before/after summaries with a skipped case, unchanged count and different cache conditions; review the proposed evidence only.
Acceptance checks
Flag both comparability failures; infer no speedup or preserved correctness; run no tests.
Stop conditions
Stop if baseline comparability or essential assertion preservation is unresolved.
A test-performance pull request with coverage-preservation checks.
What you need: Source-named agent: Devin. Suggested inputs: Test-suite evidence; Preservation criteria. Review fictional timing/coverage summaries and a proposed diff; no profiling, test execution or repository edits. Workflow costs and current compatibility remain unverified.
Require qualified review of evidence, scoped data access and separate human release approval.
Vendor report. BotCurrent has not independently tested this workflow.
Related tasks
Suggestions share task wording or context; compatibility and execution remain unverified.
Allow optional analytics to help us improve BotCurrent? We use PostHog to see which pages and buttons people use, including recordings with anything you type hidden. Searches and saved items are excluded. Privacy details