/circleci:circlecifrom circleci
Patterns for invoking the CircleCI CLI (circleci) from agents. Use when investigating CI on a project that uses CircleCI — failed jobs, pipeline runs, step output, workflows, env vars — or whenever the `circleci` command is needed. Covers structured output, project and org targeting, and the `circleci api` fallback.
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.
The circleci CLI must be installed and authenticated. If circleci is not
found, give the user installation instructions but do not install it yourself:
# If the older stable CLI is installed, remove it first
brew uninstall circleci
brew install circleci-public/circleci/circleci@next
Authenticate with circleci auth login, or set CIRCLECI_TOKEN. Note that
these commands require v1.x of the CLI (the agent-friendly rewrite) — the older
stable CLI does not have circleci run, circleci job, or --json.
circleci already does the right thing in non-TTY contexts: it skips the pager,
strips ANSI color, and errors out fast with a helpful message instead of
prompting (e.g. must provide --title and --body when not running interactively).
You don't need to defensively set CIRCLECI_PAGER or pass --no-pager (no such
flag exists).
Human output from circleci is markdown-formatted. If you want structured data:
--json for structured output.--json once to print the data, then analyze and pick what you need.--jq '<expr>' for filtering without piping through a separate jq.circleci infers the project from the cwd's git remotes.
Pass --org <VCS>/<ORG> to override the resolved CWD repo, where VCS is gh / bb / circleci.
circleci run subcommands are the starting point.
circleci run get --json: --branch <branch> will get you the most recent run for the current branch.circleci job output list <job-id> --json: will get you all job attributes and steps with ANSI-stripped output.circleci job get <job-id> --json: will get you the job attributes, and step info without output.circleci job output get <job-id> --json: --step-num <step-id> will get you the ANSI-stipped output for a specific step.circleci api for anything --json doesn't exposeSometimes useful data isn't on the typed commands.
circleci api 'projects/{project-id}' or
circleci api 'runs?filter[project_id]={project-id}' - note the
{project-id} placeholder is filled in for you when run from a repo
with detected remotes; pass them literally if you want determinism.circleci auth me prints the active host(s), user, and which env var (if
any) is being honored.circleci auth me --json is supported.PAGER is honored.NO_COLOR is honored.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub breakroom/claude-code-plugins --plugin circleci