/sdlc:error-report
Turn a plugin error into a GitHub issue with the full error context, and approve the text before the skill files it.
Why use it
A skill of the plugin fails, and the error looks like a defect of the plugin, not of your project.
A report by hand costs time: you copy the error, the step, the branch and the command into an issue.
This skill collects that context, writes the issue draft and shows the draft to you.
It files the issue in rnagrodzki/sdlc-plugin only after you answer yes two times.
Example
/sdlc:pr hits a pr_prepare tool error that looks like a plugin defect, and it starts this skill for you.
When a skill cannot start it, the skill gives you a line of this form, and you run the line:
/sdlc:error-report skill=<skill> step=<step> operation=<operation> error=<errorText> exitOrHttpCode=<code> errorType=<type>
In both cases you see these lines, and /sdlc:pr then continues with its own error handling:
- The offer:
This error may be worth tracking as a GitHub issue. Create one? (yes / no) - After
yes, the draft: the title, the labelstooling-errorandpr, the description, andCreate this issue? (yes / edit / cancel) - After the second
yes:GitHub issue created: #<number> — <url>
What you get
- A report with no copy work. The draft has the skill, the step, the operation, the full error text, the repository, the branch and a timestamp.
- Control of what is filed. The skill creates nothing until you accept the offer and then approve the full draft.
editchanges the text first. - No duplicate issues. When similar open issues exist, you can add the error as a comment to one of them.
- No offer for your own errors. The skill skips invalid input, HTTP 401, 403 and 404, a cancel and a lint-only failure without a question.
- A run that is not blocked. The skill adds the offer, then returns to the error handling of the calling skill.
More examples
Add the error to an open issue:
The skill prints Similar open issue(s) found: with a list, such as #42 — [plan] Task decomposition fails on empty specs.
Answer comment, pick the issue, and approve the comment text.
The skill prints Comment added to #<number> — <url> and creates no new issue.
Change the draft before the skill files it:
At Create this issue? (yes / edit / cancel), answer edit and say what to change.
The skill changes the title or the body and shows the draft again, until you answer yes or cancel.
Decline the report:
Answer no to the offer, or cancel to the draft.
The skill creates nothing, and the calling skill continues with its own error handling.
Reference
- Errors with and without an offer: the 6 kinds of error that get an offer, the 8 kinds that get none, and the 2 prerequisites.
- Issue and manual command: the fields of the manual command, the target repository, the title, the labels, the body, the comment and the failure messages.
Related skills
- /sdlc:harden: offers this skill when it classifies a failure as a plugin defect.
- /sdlc:execute: offers this skill after a task fails after 2 retries.
- /sdlc:commit: starts this skill for a
commit_applyerror that looks like a plugin defect. - /sdlc:pr: starts this skill for a
pr_prepareorpr_applyerror that looks like a plugin defect. - /sdlc:review: starts this skill for a tool-call crash, not for a user error.
- /sdlc:received-review: starts this skill when a reply to GitHub fails two times with a server error.