What the skill does
testsprite agent install writes a verification-loop skill file into your repository. Once the file is in place, your coding agent discovers that this project is TestSprite-tested and knows exactly how to drive the full loop on its own:
- Describe a behavior as a plan file and create a test.
- Trigger a real cloud run and wait for the verdict.
- On failure, pull one self-consistent bundle — failing step, DOM snapshots rendered as text, root-cause hypothesis, and recommended fix target.
- Edit the code and replay cheaply — no credits for a verbatim FE rerun.
agent install reads and writes only to your filesystem. It makes no network requests and requires no credentials.
Install the skill
| Flag | Description |
|---|---|
--target <t> | Agent target: claude, cursor, cline, antigravity, codex. Comma-separated or repeated. Prompts if omitted in a terminal. |
--dir <path> | Project root to write the skill into (default: current directory). |
--force | Overwrite an existing skill file. A .bak backup is kept. For codex, replaces only the managed section — your other AGENTS.md content is preserved. |
If the destination file already exists and differs from the current skill, the install is blocked until you pass
--force. The original is always backed up as <filename>.bak.Supported agents
| Target | Status | Mode | Landing path |
|---|---|---|---|
claude | GA | own-file | .claude/skills/testsprite-verify/SKILL.md |
antigravity | experimental | own-file | .agents/skills/testsprite-verify/SKILL.md |
cursor | experimental | own-file | .cursor/rules/testsprite-verify.mdc |
cline | experimental | own-file | .clinerules/testsprite-verify.md |
codex | experimental | managed-section | AGENTS.md |
For
codex, the skill is written as a managed section inside AGENTS.md. Your existing content in that file is not modified — only the TestSprite section is added or updated.Listing targets
To see all supported targets, their current status, and where the skill lands:One-shot onboarding
testsprite init configures your API key and installs the skill in a single step — the recommended path when you’re setting up a project for the first time.
init chains auth configure → auth whoami → agent install and prints a unified summary.
Installation
The full onboarding walkthrough, including the non-interactive (
--from-env --yes) form for CI bootstrap.How the agent uses it
Once the skill file is in place, a coding agent like Claude Code picks it up automatically when it enters your project. It knows to:- Create a test from a plan you or the agent authors — describing the behavior in intent terms, not driver code.
- Run it against the live app and wait for a pass/fail verdict.
- On failure, pull the failure bundle — one consistent artifact with everything needed to diagnose and fix.
- Fix the code, then rerun as a cheap verbatim replay.
Where to Go Next
Quickstart
Walk through the full create → run → fix loop end-to-end
CI/CD
Gate your pipeline on TestSprite results
Running Tests
All flags and modes for triggering and waiting on runs
Command Reference
Full flag reference for every command