/tend-ci-runner:fix-a-bugfrom tend-ci-runner
Guides the process of writing a code fix for a bug, including reproduction, writing a failing test, and understanding root cause before attempting a fix.
Ships in tend-ci-runner. 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.
The gates every fix attempt clears, whichever workflow you are running.
/tend-ci-runner:propose-instructions if the fix edits a skill or instruction file./tend-ci-runner:push-commits before reviewing the fix for a push.Generally, have a failing test before writing a fix. A passing attempt does not establish that an intermittent failure is resolved; compare the failing conditions and continue the investigation.
Only attempt a fix if all of these hold:
A failed attempt, uncertain diagnosis, or unavailable local reproduction calls for further investigation. Use the evidence to choose and perform the next experiment that can distinguish the remaining explanations. Resume from earlier findings rather than repeating passing checks and leaving the same experiment for another session. A question about the mechanism is engineering work. For verification the current environment cannot perform, follow Who to ask when you can't do it yourself in /tend-ci-runner:ground-claims.
Scope a blocker you cannot clear, such as missing access, an external dependency or a product decision with no defensible default, to the work it prevents. Re-check a recorded blocker against current state. Continue separable investigation, and take an independently useful repair through a PR when it meets The local bar, even if it resolves only part of the issue. Keep unresolved work open with the evidence, the next diagnostic action, and what would enable it. Ask a person only for the specific access, external action, or product decision they own; address that request to the responsible person in this repository.
When the bug is about bot behavior (e.g., "bot didn't use links", "bot posted wrong format"), the root cause is often a skill/prompt compliance issue, not missing code. Before adding an instruction to a skill:
Instructions themselves go through /tend-ci-runner:propose-instructions, which covers where the rule lands and what it leaves out.
When a change turns a test red, merged or still in a pull request, the change and the behavior the test protects disagree, and the repair chooses between them. Weigh what it keeps of each:
The assertion is evidence about both, not authority: a change that deliberately moved the interface leaves the old test stale. Prefer a repair that keeps both: update the test whose expectation the change replaced, or fix the code so the change's intent holds without moving the interface further. Where no repair keeps both, revert the change, or the part of it at fault, rather than ship a behavior neither side chose.
A repair that reverts the change or gives up any of its intent needs an issue, so the change can return deliberately; so does a repair chosen where the evidence left the choice uncertain. Address it to the change's author; when a bot wrote the change, to the person who requested or merged it, or to a maintainer where no person did. Link both pull requests and say what the change intended, what conflicted and what the repair gave up, and leave the issue for that person to settle. The repair's description names each behavior it moved.
If the proposed change removes coverage for the failing scenario instead of restoring the assertion, stop. Smell patterns: a newly-added early-return at the top of the test (let Ok(_) = X else { return };, if !path.exists() { return; }), a fresh #[ignore], a newly-inserted skipIf / pytest.skip keyed on the failing condition. The fix belongs in production code or test setup, not in a guard that makes the test bail when the bug fires.
When a doc claim and the code disagree and which of the two is wrong is still an open question, the finding is that question. A test asserting the current output settles it without the authority to — it turns unspecified behavior into a pinned contract, so the eventual fix arrives looking like a regression. Report the discrepancy and let a maintainer say which side moves; write the test after that.
Failure groups can remain provisional while the mechanism is unknown. When reproduction or a shared repair establishes that several reports have one cause, consolidate their diagnostics under the existing repair owner and link the affected issues to that work. Verify each affected path before treating it as resolved. Similar error text or overlapping files alone do not establish shared ownership; a partial repair can leave a distinct cause to fix. Continue an unowned bot PR per /tend-ci-runner:continue-pr; give an active owner the new evidence rather than starting a parallel repair.
Fix the root cause, not the symptom. Confirm the reproduction test now passes, then review the change per Review the change before the push in /tend-ci-runner:push-commits. That targeted pass, a clean compile, and the review are the local bar. Leave the comprehensive suite to PR CI per Complete the task before ending the turn in /tend-ci-runner:run-tend; backgrounding a long suite before push risks ending the session while the result is still local.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub max-sixty/tend --plugin tend-ci-runner24 skills in this plugin
/act-in-other-reposAct in another repository. Use before filing an issue, commenting, or contributing anywhere other than this repo./check-requester-accessCheck a requester's access tier. Use when a request aims you at someone else's work — close, lock, label, revert, dismiss, push./code-reviewStructured second pass over a diff — correctness and cleanup angles, a verify pass, ranked findings returned to the caller./continue-prContinue an unfinished PR with no human author, including red CI and unresolved findings after a prior response or review./dismiss-approvalDismiss a standing bot approval. Use when you conclude that a PR the bot approved should not merge./ground-claimsGround a public claim in evidence. Use before claiming anything about a tool's behavior, an incident, or code you did not run.Other plugins' skills for the same job