Smarter testing

From fanfan-de/anybox · View interactive version

Smarter testing is an AI agent skill from the GitHub repository fanfan-de/anybox. Onboard onto CircleCI Smarter Testing (testsuite) with `.circleci/test-suites.yml`, config wiring, `circleci run testsuite`, and `--doctor` until checks pass. Use for Smarter Testing, testsuite, test-suites YAML, test impact analysis, dynamic test splitting, auto rerun failed tests, or migrating raw

How to use this skill

Skill file

CircleCI Smarter Testing

Overview

Beta (Discuss). Create or adjust .circleci/test-suites.yml, wire it into CI, and validate with --doctor until checks pass. Let doctor diagnose YAML, command, JUnit, and testsuite errors before adding extra guidance.

Doctor command (required)

The testsuite CLI uses Bubble Tea and must run with a TTY. When iterating with --doctor, the agent must always run this exact command (substitute the suite name only):

script -q /dev/null circleci run testsuite "<suite name>" --doctor

Do not modify this command: no pipes, tail, redirects, backgrounding, or truncation.

Scope: testsuite setup and validation. Not legacy circleci tests run / timings-only JUnit tuning → circleci-config (test-results-and-splitting.md). Primary doc: Getting started.

Lazy references: read only what the task needs—do not load every reference file up front.

Inputs To Gather

Workflow

  1. Inspect — runner, layout, existing CI; reuse documented test commands; run testsuite from the test root (no cd in YAML).
  2. Baseline — .circleci/test-suites.yml with name, discover, run, outputs.junit (see runners.md).
  3. Doctor — run the exact command above; apply its guidance; repeat until pass.
  4. Local vs CI — Local needs CLI + testsuite plugin (brew install circleci/tap/circleci-testsuite on macOS; binaries on Linux/WSL). CI uses circleci run testsuite on executors + ci-and-junit.md.
  5. Optional features — only if asked; see optional-features.md; doctor after each change.
  6. Verify — full circleci run testsuite "<suite name>"; optional TIA/rerun checks per docs.

Guardrails

Reference map

Output Contract

Provide:

  1. Runner, working directory, files changed, commands run (--doctor and follow-ups).
  2. What to commit and open items (beta access, blocked prerequisites).
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.