agentleFS
mrsixwmrsixw/jenkins-ops-skill/SKILL.md

jenkins-ops

Skill0 starsChanged 7 days agoApache-2.0View on GitHub

Operate Jenkins controllers with a strict capability-aware fallback chain. Prefer any configured Jenkins MCP server, fall back to the Jeeves CLI, and use Jenkins HTTP APIs only as a last resort. Use for jobs, builds, console logs, queues, nodes or agents, artifacts, pipeline stages, replays, rebuilds, cancellations, and build triggers on any Jenkins instance.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. ligenjian001-ai/agent-skills★ 8same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. About 0 are common, 16 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If multiple controllers remain plausible, ask which one to use.

    line 17
  2. Distinctive:

    Use the [repository context guide][repo-context] for CI and controller discovery.

    line 20
  3. Distinctive:

    Use the highest available tier that supports the current operation:

    line 24
  4. Distinctive:

    Do not choose a lower tier because it is shorter, faster, or more familiar.

    line 30
  5. Distinctive:

    Use Jeeves only after Tier 1 is unavailable for the operation.

    line 67
  6. Distinctive:

    Verify availability and inspect the installed command surface:

    line 69
  7. Very specific:

    Check the relevant group help, such as jeeves job --help or jeeves build --help.

    line 77
  8. Very specific:

    Prefer an existing named profile or the JEEVES_URL, JEEVES_USER, and JEEVES_TOKEN environment variables.

    line 78
  9. Distinctive:

    Never print a token, place it in command-line arguments, or store it in a Jeeves profile.

    line 79
  10. Distinctive:

    Do not install Jeeves or change profiles unless the user explicitly requests that local change.

    line 80
  11. Distinctive:

    If Jeeves is absent, report the [public releases page][jeeves-releases] as the setup path and continue to Tier 3 when it is configured and …

    line 82
  12. Distinctive:

    Use HTTP only after both higher tiers are unavailable for the operation.

    line 88
  13. Very specific:

    Prefer JENKINS_URL, JENKINS_USER, and JENKINS_TOKEN environment variables.

    line 90
  14. Very specific:

    Keep TLS verification enabled.

    line 91
  15. Distinctive:

    Prefer API tokens. Modern Jenkins versions normally exempt API-token-authenticated requests from CSRF crumbs.

    line 92
  16. Distinctive:

    Use form data or URL encoding for parameters instead of interpolating untrusted values into a URL.

    line 94
  17. Distinctive:

    If no tier has the required capability and valid access, stop with an actionable summary of what is missing.

    line 98
  18. Distinctive:

    Run read-only operations immediately when the controller is unambiguous.

    line 102
  19. Very specific:

    Read the [safety guide][safety-guide] before triggering, rebuilding, replaying, cancelling, changing local configuration, or using a raw …

    line 106
  20. Distinctive:

    Check status with the highest available tier for that follow-up operation.

    line 113
  21. Distinctive:

    If dispatch outcome is uncertain, report that uncertainty and inspect the queue/build history.

    line 116

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Jenkins Ops

Operate one Jenkins controller at a time and apply the fallback chain separately to every requested operation.

Establish the Target

  1. Confirm Jenkins is the relevant CI system. Inspect the repository for a Jenkinsfile, Jenkins configuration, and other CI configuration when the request is ambiguous.
  2. Resolve the controller from, in descending confidence order:
    • A controller, URL, MCP server, or Jeeves profile named by the user.
    • A Jenkins URL or controller identifier in repository configuration.
    • An unambiguous configured Jenkins MCP server, JEEVES_PROFILE, or JENKINS_URL/JEEVES_URL value.
  3. If multiple controllers remain plausible, ask which one to use. Never guess the target of a mutation.
  4. Identify the exact operation and whether it is read-only, mutating Jenkins, or changing local Jeeves configuration.

Use the repository context guide for CI and controller discovery.

Enforce the Fallback Chain

Use the highest available tier that supports the current operation:

  1. Jenkins MCP
  2. Jeeves CLI
  3. Jenkins HTTP API

Do not choose a lower tier because it is shorter, faster, or more familiar. Using a lower tier for one capability gap does not waive MCP-first behaviour for later operations.

A tier is unavailable for an operation only when one of these conditions is established:

  • The runtime exposes no matching tool or executable.
  • A single safe health or read probe establishes a connection or authentication failure.
  • The exposed inputs and descriptions do not cover the required capability.
  • The authenticated identity lacks permission for that operation.

State the reason before falling back. Do not repeatedly probe a known outage. Treat an uncertain result from a mutating call as potentially successful and never retry it automatically.

Tier 1: Jenkins MCP

Inspect the tools surfaced by the current runtime for Jenkins MCP servers. MCP namespaces and tool names vary, so match by server and tool descriptions rather than assuming a prefix, fixed tool count, or exact names.

  1. Select the MCP server associated with the resolved controller. Ask if multiple servers remain ambiguous.
  2. Prefer a read-only identity or status tool as the health/auth probe. If neither exists, use the smallest read-only tool needed for the request. An error that names anonymous as the principal means the request reached Jenkins unauthenticated: treat it as an authentication failure for the whole server, not a permission gap on one tool. Treat a successful anonymous identity the same way when the request needs an authenticated user, such as attributing builds to them, or another tier has credentials for the controller.
  3. Match the operation to the MCP capability before declaring a gap:
IntentRequired MCP capability
Check access or healthIdentify the user or read controller status
Discover jobsList, fetch, or search jobs
Inspect a buildRead build metadata, changes, SCM data, or test results
Read logsFetch, search, or stream console output
Inspect queuesList queue items or fetch a queue item
Inspect agentsList nodes or read node health and launcher details
Start or repeat workTrigger, rebuild, or replay a build
Cancel workCancel a queue item or running build
Retrieve outputsList or download artifacts, or read Pipeline stages
  1. Combine MCP read tools when that satisfies the operation. Fall back only for the missing operation, not the whole session.

See the MCP capability guide for runtime discovery and common capability mappings.

Tier 2: Jeeves CLI

Use Jeeves only after Tier 1 is unavailable for the operation.

  1. Verify availability and inspect the installed command surface:

    command -v jeeves
    jeeves --version
    jeeves --no-update-check --help
  2. Check the relevant group help, such as jeeves job --help or jeeves build --help. Do not assume a command exists from the version string alone.
  3. Prefer an existing named profile or the JEEVES_URL, JEEVES_USER, and JEEVES_TOKEN environment variables. If only JENKINS_URL, JENKINS_USER, and JENKINS_TOKEN exist, pass their values to the corresponding Jeeves variables for that invocation without persisting them.
  4. Never print a token, place it in command-line arguments, or store it in a Jeeves profile. If no usable authentication is configured, request it or continue only when Tier 3 has independently configured credentials.
  5. Do not install Jeeves or change profiles unless the user explicitly requests that local change.

If Jeeves is absent, report the public releases page as the setup path and continue to Tier 3 when it is configured and capable.

See the Jeeves reference for current commands, structured output, and version-sensitive behaviour.

Tier 3: Jenkins HTTP API

Use HTTP only after both higher tiers are unavailable for the operation. Require an explicit controller URL and usable authentication; never infer credentials.

  • Prefer JENKINS_URL, JENKINS_USER, and JENKINS_TOKEN environment variables.
  • Keep TLS verification enabled. Use a user-provided CA bundle for private certificate authorities; never add curl -k or --insecure.
  • Prefer API tokens. Modern Jenkins versions normally exempt API-token-authenticated requests from CSRF crumbs; handle a crumb only when the controller requires one.
  • Reuse exact job and build URLs returned by Jenkins, MCP, or Jeeves. For folders, encode each item name and insert /job/ between path segments.
  • Use form data or URL encoding for parameters instead of interpolating untrusted values into a URL.

See the HTTP API reference for last-resort recipes.

If no tier has the required capability and valid access, stop with an actionable summary of what is missing. Do not improvise a fourth access path or weaken authentication or TLS settings.

Apply Safety Gates

Run read-only operations immediately when the controller is unambiguous. Before a mutation that the user has not already authorised, confirm the controller, job, action, and parameters once for that exact scope.

Require explicit user direction before changing Jeeves profiles or persistent defaults. Never treat broad authorisation as permission for another controller or unrelated job.

Read the safety guide before triggering, rebuilding, replaying, cancelling, changing local configuration, or using a raw HTTP POST.

Verify Mutations

After a mutation:

  1. Capture any queue item, build number, or URL returned by the call.
  2. Check status with the highest available tier for that follow-up operation.
  3. Account for concurrent builds when a trigger does not return a build number.
  4. Report the final known state and canonical Jenkins URL.
  5. If dispatch outcome is uncertain, report that uncertainty and inspect the queue/build history. Do not re-trigger automatically.

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.