Skills / verify-pipeline

/sdlc:verify-pipeline

Find why a CI check failed on your pull request and get a proposed fix, or a minimal applied fix, in one command.

Run it in Claude Code

/sdlc:verify-pipeline
Starts from
With /sdlc:verify-pipeline. --pr <number> or --logs <path-or-string> is required. /sdlc:ship runs it when a CI poll fails under automation.mode: auto.
Ends with
After Step 5 prints the instructions line, or after Step 4 prints the verdict line when no list runs. A config error at Step 1b stops the run with no verdict line.
Asks you
Nothing in Steps 1 to 4. An instruction asks only when its question flags allow it.
After a stop
none

What it does, step by step

  • You act
  • Always runs
  • Optional or conditional

/sdlc:verify-pipeline

Find why a CI check failed on your pull request and get a proposed fix, or a minimal applied fix, in one command.

Why use it

A CI check fails on your pull request. You open the run, search the log and decide what kind of failure it is. /sdlc:verify-pipeline reads the failure log, puts the failure in a category and gives you a diagnosis with a suggested patch. With --auto, it edits the source files for a lint failure, a test failure or a type error. You commit and push the fix. The skill never does, unless a follow-up instruction of your config asks for it.

Example

A CI check failed on pull request 42. Ask for the cause:

/sdlc:verify-pipeline --pr 42

The skill finds the first failed check with gh pr checks, reads its failure log and puts the failure in 1 of 7 categories. Then it prints one JSON line, the verdict. Without --auto, the verdict for a log that the skill found is always a proposal:

  • "status":"proposal": the skill changed no file.
  • "summary": the diagnosis.
  • "suggestedPatch": the fix, as a diff or as text.

When the skill finds no log (no --pr and no --logs, no failed check, or gh not authenticated), it prints an abort verdict, with or without --auto.

What you get

  • No search for the log. With --pr alone, the skill finds the first failed check and gets its failure log with gh.
  • The kind of failure, named. Each log gets 1 of 7 categories: lint, test-failure, type-error, build-error, dependency, infra or unknown.
  • A small fix, not a refactor. With --auto, the skill makes the minimal edit for a lint, test-failure or type-error failure.
  • Control of your git history. The skill never runs git commit, git push or git tag, and it changes no file outside the project root. A follow-up instruction of your config is the one exception to both rules.
  • CI fixes inside a ship run. /sdlc:ship runs the skill when its CI poll fails under automation.mode: auto, then commits a fix that the skill applied.

More examples

Let the skill apply the fix:

/sdlc:verify-pipeline --pr 42 --auto

For a lint, test-failure or type-error failure, the skill edits the source files. The verdict is fix-applied, with the changed files in filesChanged. The edit stays in your working tree with no commit. Each other category gets a proposal.

Classify a log that you already have:

/sdlc:verify-pipeline --logs build-output.log

The skill reads the log from the file. A value that is not a file path is the log text itself.

Reference

  • Flags and verdicts: the 4 flags, the source of the log, the 7 categories, the 3 verdict lines, the stop reasons, the ship run, the limits and the follow-up instructions.
  • Follow-up instructions: the [instructions] config, the merge rule, the question rules and the summary line.
  • /sdlc:pr: opens the pull request whose CI checks this skill analyzes.
  • /sdlc:ship: polls CI in its opt-in verify-pipeline step and runs this skill when the poll fails.
  • /sdlc:commit: commits the fix after a fix-applied verdict. In a ship run, ship runs it for you.