/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
--pralone, the skill finds the first failed check and gets its failure log withgh. - The kind of failure, named. Each log gets 1 of 7 categories:
lint,test-failure,type-error,build-error,dependency,infraorunknown. - A small fix, not a refactor. With
--auto, the skill makes the minimal edit for alint,test-failureortype-errorfailure. - Control of your git history. The skill never runs
git commit,git pushorgit 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:shipruns the skill when its CI poll fails underautomation.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.
Related skills
- /sdlc:pr: opens the pull request whose CI checks this skill analyzes.
- /sdlc:ship: polls CI in its opt-in
verify-pipelinestep and runs this skill when the poll fails. - /sdlc:commit: commits the fix after a
fix-appliedverdict. In a ship run, ship runs it for you.