/jenkins:ci-diagnosefrom jenkins
Fetches the console log of a failing Jenkins build, identifies the root cause, and explains what went wrong. Use this when a build is red and you want a fast diagnosis.
Ships in jenkins. 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.
If the user provided a job name (e.g. /ci-diagnose my-service), use it directly.
If the user provided a job name and build number (e.g. /ci-diagnose my-service 42), use both.
If neither was given, ask: "Which Jenkins job are you looking at, and which build number (or should I check the last build)?"
Call get_job_status with the job name to get the last build number and its result (if no build number was specified).
If a specific build number was provided, call get_build_status with the job name and build number.
Call get_console_log with the job name and build number.
Limit the log to the most relevant portion — look for lines containing ERROR, FAILED, Exception, exit code, or BUILD FAILURE.
Analyse the console output and identify:
Structure your response as:
### CI Diagnosis — <job-name> #<build-number>
**Status**: <FAILURE / ABORTED / etc.>
**Root cause**: <one-sentence summary>
**Details**:
<explanation of what went wrong and why>
**Suggested fix**:
<concrete next step — e.g. "update the dependency", "re-run the flaky test", "check the env var X">
If the build is not failing (status is SUCCESS), say so and skip the diagnosis.
If relevant, offer to fetch:
get_test_results — to see which tests failedget_pipeline_stages — to see which pipeline stage brokeget_build_changes — to correlate with recent commitsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kud/claude-plugins --plugin jenkins4 skills in this plugin
/build-watchTriggers a Jenkins build and watches it until completion, streaming status updates. Use this when you want to kick off a build and get notified when it's done./queue-inspectShows what is currently in the Jenkins build queue and lets you cancel queued items. Use this when builds are stuck waiting or you want to drain the queue./stop-buildStops a running Jenkins build. Use this to abort a build that is stuck, triggered by mistake, or no longer needed.Other plugins' skills for the same job