plugins/jenkins/skills/ci-diagnose/SKILL.md
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.
npx skillsauth add kud/claude-plugins ci-diagnoseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 commitstools
Shows your Trakt watchlist, recently watched, and upcoming releases. Use this to get a quick overview of your watch queue and activity.
testing
Checks in to a movie or episode you're about to watch on Trakt. Use this when you start watching something.
documentation
Reads the revu review export (revu-review.md) or autosave (.revu.json) from the current directory, presents the annotated diff comments for AI review discussion, then asks whether to delete the export file.
data-ai
Searches your Raindrop.io bookmarks by keyword, tag, or collection. Use this to find a saved link.