BotCurrent
← Back to examples

Build & debugFrom the makerActs with your OK

Speed up slow tests without losing coverage

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.

Source: Cognition and named customer · devin.ai · Tool: Devin

Copy this prompt

Paste it into ChatGPT, Claude or Gemini, fill in the [brackets] and add your files. It only drafts. You decide what to send or change.

Use it often? Save it as a skill

Add this job to Claude or Codex once, and your agent knows how to do it without you pasting the prompt each time. Text only, no code.

Download for Claude (.zip)View the skill file

How to add it
Claude app or claude.ai
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

More about skills, and open-source skills we checked

Security scanClear13 of 13 checks passed

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

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

  1. Copy the starter, then open your own AI tool.
  2. Paste it with only the permitted inputs. Check privacy settings and tool compatibility first.
  3. 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

  1. Identify supported bottlenecks and distinguish timing evidence from guesses.
  2. Map proposed changes to coverage and behavior risks.
  3. List 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

  1. Name

    Test-suite evidence

    Owner

    Maintainer

    Minimum scope

    Approved timings, test inventory and relevant code summaries

    Quality check

    Record environment and baseline version

  2. 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
  1. Review fictional timing/coverage summaries and a proposed diff; no profiling, test execution or repository edits.

Compatibility unknowns
  1. Current test tooling, coverage semantics, timing stability and runtime compatibility are unknown.

External actions requiring approval
  1. 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.

Original source

https://devin.ai/customers/ramp

Attributed to: Cognition and named customer

Vendor report
Original action type
coding_agent_orchestration
What the source reports
Devin refactors slow tests. A validation script compares test counts and covered lines before surfacing a PR.
Source outcome limits
Actions and outcomes are attributed vendor claims, not an independent reproduction or an execution guarantee.
Evidence attribution caveat
Actions and outcomes are attributed vendor claims, not an independent reproduction or an execution guarantee.
Source approval description
Failed validation blocks the PR from review; humans review surfaced changes.
Named tools
Devin; test-count and coverage validation scripts
Model or version
Unknown
Publication date
Unknown
Source last checked
2026-10-14
Demonstrated in Canada
Unknown
Canadian availability
Unknown
Proposed Canadian adaptation
Proposed: use scoped Canadian development environments, non-sensitive test data and a reviewed resource budget.
Recommended approval boundaries
Require qualified review of evidence, scoped data access and separate human release approval.
Technical specification & detailed checks
Detailed steps and output format

At a glance

Suggested result
A test-performance pull request with coverage-preservation checks.Suggested; untested.
Tool
DevinSource-named; check current access.
Suggested inputs
Test-suite evidence; Preservation criteriaProposed; access notes below.
Human review
Require qualified review of evidence, scoped data access and separate human release approval.Suggested boundaries; source approvals below.
Setup notes
Review fictional timing/coverage summaries and a proposed diff; no profiling, test execution or repository edits.Guide notes; proposed setup untested.
Cost
Workflow cost not established. Check current tool pricing, setup and human review costs before trying it.No measured cost or time added.
Content depth
Source-linked example · suggestions untestedDepth does not establish successful execution.
Check source evidence and limits ↓

Function and scope

Software engineering · Single task

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.

Read the attributed source evidence and original caveats below ↓

Why use this

  1. 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.

  2. 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
  1. 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
  1. Flag both comparability failures; infer no speedup or preserved correctness; run no tests.

Stop conditions
  1. Stop if baseline comparability or essential assertion preservation is unresolved.

Tasks: Build & debugResearch & discovery

Useful for: Software developer

Editorial relevance from the title and source-supported actions; not evidence of the operator’s occupation.
DevinIndependent testing: No
Failure handling, costs and limits

Failure signals and proposed responses

  1. Signal

    A test disappears while total count stays similar

    Why it matters

    An added trivial case can mask lost coverage

    Proposed response

    Compare test identities and assertions, not totals alone.

  2. Signal

    A warm-cache run is compared with a cold baseline

    Why it matters

    The apparent improvement may not reflect the change

    Proposed response

    Define consistent measurement conditions.

Effort and cost — unknown

Setup work
  1. Define baseline and preservation evidence.

Ongoing review
  1. Maintainers review actual results and the diff before accepting changes.

Unknowns
  1. Timing variance, coverage adequacy, refactoring effort and compute costs are unknown.

Limits

  1. A comparison plan cannot establish faster execution, equivalent coverage or unchanged software behavior.

Original task overview & interpretation

Vendor report

Speed up slow tests without losing coverage

Slow tests delay development, but performance changes can silently reduce what the suite checks.

Suggested result

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.