agentleFS
flurdyflurdy/agent-skills/skills/circleci-status/SKILL.md

circleci-status

Skill9 starsChanged 3 months agoMITView on GitHub

Check CircleCI build status and failed job logs for the current GitHub repository. Use when asked whether CircleCI is green, failing, pending, or when needing CircleCI job logs.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check the latest CircleCI pipeline/workflow status for the current GitHub repository, with optional failed job logs.

    line 14
  2. Distinctive:

    Always run the helper scripts fresh.

    line 40
  3. Very specific:

    If ---CIRCLECI-STATUS--- is NO_TOKEN, say:

    line 67
  4. Very specific:

    If GitHub status includes CircleCI contexts with target_url, include links for failing/pending contexts.

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CircleCI Status

Check the latest CircleCI pipeline/workflow status for the current GitHub repository, with optional failed job logs.

Authentication

  • Basic GitHub commit status/check-run summaries use gh when authenticated.
  • CircleCI pipeline/workflow/job details use CIRCLECI_TOKEN when already set, otherwise secret-api-key lookup circleci "$SECRET_API_KEY_PROJECT".
  • CircleCI project slug is derived from origin: gh/{owner}/{repo}.

Store the token once and expose only its non-secret project selector:

secret-api-key store circleci flurdy
export SECRET_API_KEY_PROJECT=flurdy

Usage

/circleci-status          # Summarise latest status for current branch/HEAD
/circleci-status logs     # Show latest failed job logs for current branch
/circleci-status main     # Summarise latest CircleCI pipeline for branch main
/circleci-status logs main

Instructions

Always run the helper scripts fresh; never reuse prior status output.

Status mode

For no argument, or an argument other than logs, run:

~/.agents/skills/circleci-status/scripts/status.sh {optional-branch-or-ref}

Rollout watchers may pass a second exact revision argument. In that mode the helper selects only the matching branch pipeline and uses the same revision for GitHub status/check fallbacks:

~/.agents/skills/circleci-status/scripts/status.sh {branch} {sha}

Render:

## CircleCI status — {repo} `{branch}`

- GitHub commit status: {state}
- GitHub check runs: {counts by conclusion/status}
- CircleCI: {workflow statuses or token-missing note}

If ---CIRCLECI-STATUS--- is NO_TOKEN, say:

CircleCI API details unavailable: configure SECRET_API_KEY_PROJECT and its CircleCI key. GitHub commit/check status above may still show CircleCI's reported state.

If GitHub status includes CircleCI contexts with target_url, include links for failing/pending contexts.

Logs mode

For logs as the first argument, run:

~/.agents/skills/circleci-status/scripts/logs.sh {optional-branch}

Render:

## CircleCI logs — {repo} `{branch}`

| Job | Status | Number |
|-----|--------|--------|

Then include the tail or relevant failure portion of ---LOGS---. Keep output concise; prefer the final failing command/error block over dumping thousands of lines. If no token is configured, explain that logs require a CircleCI key for SECRET_API_KEY_PROJECT.

Failure handling

  • NO_GIT_REPO: say this must be run inside a GitHub-backed git repo.
  • NO_TOKEN: show GitHub status if available, and explain how to configure the project keyring lookup.
  • CircleCI API errors: report the error and fall back to GitHub commit/check status when present.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.