Agent Skill · Currents

collect-evidence

Show that work you implemented actually works, or demo it, from tests that ran in CI via Currents — a trace API link whose trace summary, filmstrip and accessibility snapshots read inside a comment, plus screenshots, attachments and videos. Use when asked to "collect evidence", "prove it works", "show me it works", "demo the feature", "capture a before/after", or to attach proof of a change to a PR, issue, ticket, or status update. Evidence comes from CI runs retrieved through the Currents MCP tools or REST API, not from a local run.

Provider: Currents Path in repo: collect-evidence/SKILL.md

Skill body

Collect Evidence

Show that a change works, from the artifacts a CI run already produced. The output is a comment on a pull request, ticket or status update: what changed, the evidence for it, and links anyone can open.

Use this when the work is done and someone needs to see it. To fix a test that is failing, use fix-failing-tests instead. To prove a change that no test covers, drive the browser yourself — that is browser-evidence.

Do not capture evidence locally: CI runs in a clean, reproducible environment, its artifacts are stored and shareable, and this works without a local browser.

Evidence Use for Where it comes from
Trace summary What the test did and where it broke currents-create-evidence-links → digest
Filmstrip / animation The whole attempt in one image the same link
Accessibility snapshot A before/after diff two screenshots cannot show the same link, snapshots/<t>?format=aria
Screenshot Visual state, before/after UI comparison page.screenshot() attached to the test
Text/JSON attachment CLI output, API responses, computed values, diffs testInfo.attach()
Video Multi-step flows, interactions Playwright/Cypress video recording

Rules

Read a run CI already produced; never wait for one

If the run you need has not finished, say what you are waiting for and stop — “the run on this branch is still going; ask me again once CI finishes”. Coming back is the person’s job.

A lookup by branch returns the most recent completed run, so a run still going does not come back as an error: you get the previous run instead. Check the manifest’s commitSha against the commit you meant. currents-get-runs with the branch filter is what shows a run in progress (RUNNING, or FAILING).

The failing run is the “before”

Whatever CI recorded while the bug was live is the before; the run on the branch that fixes it is the after. Do not push the broken code again to manufacture one: it spends a CI run on code you have already fixed.

When there is no failing run, say so and lead with the after. The after then carries the claim on its own: the test that would catch the bug, and what it captured.

A passing run has almost nothing to show

Under the usual retain-on-failure, a test that passes leaves no trace and no video, so the after half is screenshots and attachments. Lead the comment with the failing run — the trace summary, filmstrip and snapshots all come from there.

Collect both halves in one sitting

Cleanup takes a passing test’s artifacts first — seven days after the run on production, sooner if the organization shortened its retention — while a failed test’s stay until the bucket lifecycle or an expiry policy reaches them. Come back a week later and the half that is gone is the after.

Requirements

Workflow

1. Capture what you want to show, if nothing does yet

A test that already exercises the change needs nothing here. Otherwise write or extend one that captures the artifact at the moment it is visible; references/instrumentation.md has the Playwright and Cypress snippets and the reporter configuration. Then push it and stop — the evidence exists once CI has run.

Rules that make retrieval and pairing work later:

2. Collect the manifest

  1. currents-get-projects if the projectId is unknown.
  2. currents-get-test-evidence with projectId + branch (or ciBuildId, or a known runId), plus spec/testTitle/testStatus filters to narrow the output.
  3. The result is a manifest: per test its testId, under the instanceId of the spec it ran in, with signed URLs grouped as screenshots, videos, traces, attachments, plus the run’s status, commitSha and dashboardUrl.

One call per run, and both runs in the same sitting.

Signed URLs expire. Download as you go:

curl -sL -o after-order-summary.png "<signed url>"

If currents-get-test-evidence is unavailable, compose primitives: currents-find-run → currents-get-run-details (specs → instanceId) → currents-get-spec-instance (artifact arrays live in results), or REST: GET /runs/find, GET /runs/{runId}, GET /instances/{instanceId}.

Call currents-create-evidence-links with the instanceId and testId from the manifest, and ttlSeconds up to seven days when the link goes somewhere people come back to — the default is 24 hours. It serves the highest attempt that has a trace: under retain-on-failure that is the failure, but under trace: 'on' every attempt has one and the default is the passing retry, so pass the failing attempt’s attempt from the manifest as attemptIndex (it reads null for a test that did not retry, so omit it there). A retried test reads as passed in the manifest whatever its earlier attempts did, so a second trace on it is the only sign anything failed. A trace uploaded as a named attachment rather than as a Playwright trace is found by that name alone — pass it as artifactName. It returns the link and the URLs onto it, none of which need a Currents login:

curl -sL "<digest url>"

Do not download trace.zip to put it in a comment — nobody opens one from there.

attachments/error-context is Playwright’s own failure summary — the accessibility tree at the moment of failure, which the runner computed in the live page rather than from the snapshot. Read it before reconstructing anything yourself. currents-get-context for the same test links it too, and the video the trace carries; pass it the same attempt, or it answers for the latest one.

4. Assemble and present

Troubleshooting

Work with this as data

Every skill here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for agent skills

4 MCP tools reach this
  • find_skillsBrowse and filter every skill in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This skill
curl "https://apis.io/api/v1/skills/collect-evidence"
All agent skills
curl "https://apis.io/api/v1/skills?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.