/circleci:circleci-smarter-testing-onboardingfrom circleci
Onboards a project onto CircleCI Smarter Testing by configuring test suites, replacing raw test steps with `circleci testsuite run`, validating with doctor, and enabling credit-charged features like test impact analysis and dynamic splitting.
Ships in circleci. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Testsuite replaces a raw test command with circleci testsuite run "<suite name>". A suite defined in .circleci/test-suites.yml is used as written. A suite that isn't defined there runs a default suite for the test runner detected from the project files, so many projects need no test-suites.yml at all. This skill gets a suite onboarded and doctor-clean, checks the free features work, then enables whichever credit-charged features the user asks for. It covers onboarding only, not running or debugging an already onboarded suite.
Always start with:
circleci testsuite doctor "<suite name>" --json
Doctor's action_items say exactly what's wrong and how to fix it. Apply the fix, rerun doctor, repeat until checks all pass. Never run the project's raw test command or the YAML's discover/run directly to validate — always go through doctor.
test-suites.yml — doctor checks the default suite for that runner, and a next step offers circleci testsuite generate to customize it. Keep the default when it runs the tests the way the project does. Compare it with the existing test step (raw npm test/pytest/go test, or legacy circleci tests split/circleci tests run), printing it with circleci testsuite generate "<suite name>" --dry-run. If the project needs different flags, environment or scripts, run generate without --dry-run to write the suite to test-suites.yml, then base its discover/run on the existing step rather than inventing a new one.--runner=<runner> on doctor, and keep the same flag on the CI step. Or generate the suite with --template=<runner> so CI doesn't depend on detection.--template=<runner> from doctor's action item, then adapt discover/run to the project's real test command.file attribute per test case. Fix at the source, e.g. JEST_JUNIT_ADD_FILE_ATTRIBUTE=true for jest-junit, or --override-ini=junit_family=xunit1 for pytest.next_steps about test impact analysis, dynamic test splitting, or auto-rerun until the user has chosen features below.Once doctor is clean: replace the old test step in .circleci/config.yml with circleci testsuite run "<suite name>", and remove now-redundant legacy test-split steps. Test results are uploaded either by a store_test_results job step pointed at the directory of outputs.junit, or by options: store-test-results: true in test-suites.yml, which replaces that step. Use one or the other, never both. Default and generated suites already set store-test-results: true, so remove the job's store_test_results step for those results.
Smarter Testing has free features, which come with onboarding, and credit-charged features, which the user opts into. The full list is in the Smarter Testing overview.
Make sure these work once doctor is clean, and tell the user they have them:
parallelism set on the test job, tests are split across the nodes using timing data from previous runs. Needs no option; check the job's parallelism is kept when replacing the old test step.circleci testsuite run.store_test_results or options: store-test-results: true, as above.Local runs are free. In CI, these count test atoms toward the plan's monthly allowance, with a charge above it of 3,000 credits per 100,000 test atoms:
| Plan | Test atoms included per month |
|---|---|
| Free | 1,000 |
| Performance | 10,000 |
| Scale | 100,000 |
Each circleci testsuite run in a CI job with any of them enabled counts its discovered test atoms once, however many are enabled and whatever the parallelism. Running the suite locally never costs anything, even though test impact analysis and auto-rerun apply to local runs too; dynamic test splitting and dynamic parallelism only apply in CI. Tell the user both before they choose.
Ask the user which of these they want (don't assume any):
analysis command in the suite.For each feature the user wants:
test-suites.yml, so if the suite isn't defined there yet, write it first with circleci testsuite generate "<suite name>". Then apply the options: snippet from doctor's next_steps (test-impact-analysis: true, dynamic-test-splitting: true, max-auto-rerun: <0-10>).file-mapper when atoms aren't files, missing job parallelism for splitting) and repeat until clean.testsuite run during setup:
circleci testsuite run "<suite name>" --analyze-tests=impacted
Once test impact analysis is enabled and seeded, recommend the user replace their everyday local test command (npm test, pytest, go test, etc.) with circleci testsuite run "<suite name>", which selects only the tests their changes impact, same as CI. Running the suite from then on, including when to fall back to --local, is owned by circleci-smarter-testing-run.
circleci testsuite doctor "<suite name>" is the only command that executes tests during setup, except the one-time seed step and the dev-loop recommendation above.test-suites.yml — use contexts/env vars. Don't commit local impact data under .circleci/.circleci-cli, other config/caching/workspace work to circleci-config, and CI failures after a doctor-clean config to circleci-builds.Remove extraneous files created during setup. Report the free features in place, which credit-charged features were enabled, files changed, the final doctor output, and any blocked prerequisites.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
circleci, test-suite-setup, ci-migration, test-runner-config
9 skills in this plugin
/circleci-buildsDiagnose and fix failing CircleCI builds quickly and safely. Use when users ask to investigate failed CircleCI jobs, triage flaky pipelines, identify root causes from logs, and implement minimal fixes in configuration, test setup, or build-related code paths./circleci-cliDay-to-day CircleCI from the terminal with the circleci CLI — authenticate, validate config before you commit, watch the run your push triggered, review pipeline/workflow/job status, print a failure report for your latest failed run in one command, read job logs and failed tests, list a project's flaky tests, list or download every artifact in a run in one command, and rerun/cancel/trigger. Use when a developer asks to authenticate CLI access, check their build or pipeline status, watch a run after pushing, see why CI failed, read job output/logs, find failing tests, list flaky tests, download build outputs such as a coverage report, rerun failed jobs, cancel or re-trigger a run, validate a config change locally, or look up a project's environment variables, contexts, triggers or pipeline definitions. For first-time project connection / pipeline-definition setup use the onboarding skill; for the diagnose-and-fix methodology on a failing build use circleci-builds./circleci-configOptimize CircleCI configuration for speed, reliability, and maintainability. Use when users ask to improve `.circleci/config.yml`, reduce CI runtime, tune caching/workspaces/parallelism, remove pipeline waste, or fix flaky pipeline behavior caused by configuration choices./debug-ci-failuresDebug CircleCI build failures, analyze test results, and identify flaky tests. Use when the user says "debug CI", "why is CI failing", "fix CI failures", "find flaky tests", "what broke in CI", "check CircleCI", or asks about failing pipelines or build errors./circleci-deploy-setupSet up, audit, or regenerate CircleCI deploy markers, deploy and rollback pipelines, and release validation in a repository. Use when a user wants to onboard a project to deploys, releases, deploy markers, smart deployments, release validation or auto-rollback; when they ask what deploy setup a repo already has or whether it is complete; when they want to regenerate or upgrade an existing deploy.yml, rollback.yml, or marker setup; or when they ask to replicate the Deploys setup wizard locally. Covers config generation, verification, pipeline registration, and wiring validation webhooks from Datadog, Grafana, Prometheus, Alertmanager, or any tool that can POST to a URL. For first-time project connection and basic pipeline setup use the onboarding skill./onboardingAgent-driven onboarding guide for CircleCI. Walks a user through the full setup journey: account creation, organization selection or creation, GitHub App connection, project creation, pipeline definition + trigger, and iterating a config file until it passes. Everything is done from the terminal with the circleci CLI — never send the user to the web app for something a command can do. Use this skill whenever a user says "onboard to CircleCI", "set up CircleCI", "get started with CircleCI", "connect my repo to CircleCI", "create a CircleCI project", or asks for help with any early CircleCI setup step. Also trigger if the user has a new repo and wants CI running on it. For day-to-day work on an already-connected project (watch a run, read failing logs, rerun) use the circleci-cli skill instead.npx claudepluginhub circleci-public/skills --plugin circleciOther plugins' skills for the same job