/toycrane-skills:triage-issuesfrom toycrane-skills
Triages issues from a configured tracker: investigates, requests human decisions only when needed, raises one PR per run, and reports results.
Ships in toycrane-skills. 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.
Read when SKILL.md points to them; scripts run unread.
This skill requires pr. Before doing any work, confirm it is installed.
When it is missing, stop and report it with its install command,
npx skills@latest add toy-crane/skills --skill pr, using the project's
package manager runner where it pins one.
Reduce the time a person spends deciding what to do with freely written issues.
Use the repository's ## Issue tracker section in AGENTS.md or CLAUDE.md
and its linked docs/issue-tracker.md. Read both agent files and use the first
section found; existing inline conventions work too. The convention supplies
the tracker, project/team, status and label mapping, issue operations, PR
links, and, when recorded, its Due date, Check issue, and Notifications
items. Do not guess those values from this skill or require the setup skill to
be installed. If the convention or its tool is unavailable, report the exact
missing operation without changing issues or source.
Triage handles each issue once, when it comes due. An issue without a due date
comes due when it arrives; an issue with one comes due on that date, read
through the convention's Due date item. When the request names an issue,
handle that issue alone. When it names none, take the convention's
not-yet-judged query across the configured scope, including Backlog: open
general issues with no Triage 요약 or spec section and none of the results a
triage run leaves behind. Leave out issues whose due date is still ahead. Take
issues whose due date has arrived first, earliest due date first, then issues
without one, oldest first. A convention with no Due date item treats every
issue as having none. Count at most three eligible issues inspected in one
run, and raise at most one PR. Continue to the next candidate after leaving an
information or decision request or a check result. Stop selecting PR-producing
work after the first PR.
Exclude issues with active work, the convention's review signal, or an open
linked PR, and issues named by an Issue: line in a spec folder on the default
branch; those wait for review or implementation. A PR links an issue when the
tracker links it or its body carries that issue's Issue: <tracker>:<id>
line. Do not filter by title. A review signal whose only linked PRs closed
unmerged is stale. Each run also takes the convention's stale-review query,
separately from new issues, to find open issues that still carry the review
signal with no open linked PR. For each, inspect the closed PRs' branches,
comments, and attempted changes, then return the issue to the convention's
non-active state, such as Backlog, when no active work remains. This cleanup
does not count toward the three issues. This clears the signal only; the issue keeps its
sections, so triage does not pick it up again. Reuse useful work rather than
creating a duplicate PR. A merged implementation PR follows the tracker close
or reconciliation path, not triage.
A waiting needs-info or needs-decision issue, or any issue an earlier run
already triaged, is not due again. A named issue in that state has been triaged:
report its current state and stop, unless the person explicitly asks for it to
be triaged again. Comments are evidence for the judgment, never a reason to
pick an issue up again. Whoever runs the skills decides when a waiting issue
continues after a person answers: through shape-idea when it is installed,
or by naming the issue and asking this skill to triage it again, which then
reads the answer as evidence and reaches one of the outcomes below.
Use the bundled claim helper with the issue's stable
<tracker>:<id> in the convention's ID form, the same value an Issue: line
carries. It conditionally
creates a remote Git claim ref, so assignment or a working label is never the
lock. A competing run skips the issue. Keep the returned SHA and secret token
in disposable run state, never in an issue, commit, PR, or log. Verify the claim
before each issue write, branch publication, and PR creation; renew it during
long work and use the new SHA. If ownership is lost, stop writing and report
the partial state. Release only the revision still owned by this run.
At every terminal outcome after claiming—including a question, disposition,
published PR, changed-issue skip, or failure—verify and release the current
owned revision. Finish the issue outcome before releasing; do not wait for an
open PR to merge. If ownership was lost, do not release another run's claim.
If release fails, report the held ref and retry path rather than assuming the
issue is available. Two-hour recovery is for interrupted runs only.
An interrupted claim older than two hours can be recovered only after reading
the issue's newest activity, branches, and PRs for the earlier attempt. Reuse
an existing artifact rather than duplicating it, then pass the observed SHA to
recover. If a worker may still be active, leave the claim in place. The helper
uses the repository's origin remote by default; verify that the convention's
repository and the selected remote are the same before claiming. If remote
refs cannot be created or conditionally updated, skip writes and report the
missing atomic claim capability. Do not replace it with a label or assignee.
Recheck eligibility after claiming and again before publishing an outcome. A newly opened PR or changed request can invalidate the planned action. Preserve existing dirty checkout work; use an isolated branch or worktree from the fetched remote default branch for a PR.
A check issue, one whose body carries the bounded check section described below, takes the check route instead. For every other issue, read the original report, attachments, comments, related issues, project context and decisions, current code and behavior, and any relevant runtime evidence. Choose the smallest outcome that actually resolves the request:
pr,
linking the original issue. Do not claim runtime proof from static checks.docs/specs/<slug>/spec.md as the implementation
contract and raise a spec PR. Record Issue: <tracker>:<id> for the
original issue beside the spec's source links, so PR creation reuses it
instead of creating another. Raise the spec PR through pr. Do not start
implementation in this triage run. An unmerged spec is a draft, and its PR
remains linked to the original issue.needs-info through the configured convention.needs-decision: explain the choice,
viable options and their consequences, the AI recommendation and its basis.
Produce or attach screenshots, short video, reproduction steps, comparisons,
logs, or running links when they help the person decide. Distinguish observed
evidence, inference, and unknowns. Check media for sensitive data before
sharing it. Ask in a comment where the person can reply.Raise either PR by invoking the pr skill with the branch, the base, the
issue ID this run triaged, and the verification evidence collected; it writes
the body, evidence, and issue links and hands back the PR URL. Later
reconciliation reads the links it leaves: an
Issue: <tracker>:<id> line
in the body, and the convention's closing reference only on the implementation
PR, whose verified diff delivers the direct implementation even without a spec
folder or Spec-Folder trailer. A spec PR carries no closing reference. Use
available specialized shaping, implementation, or verification skills when they
fit, but carry the outcome above even when those skills are absent.
Resolve technical choices from evidence; do not turn them into human questions.
Do not treat a speculative implementation as a clear small issue merely to
avoid writing a spec or asking about expected behavior.
A check issue asks whether a released change met its target. Its body carries a
section bounded by <!-- triage-issues:check:start --> and
<!-- triage-issues:check:end -->, written through the convention's Check issue item. It holds a Spec-Folder: docs/specs/<slug>/ line, the merged PR,
a Merge-Commit: line, the due date, and the spec's ## Post-release check content: the metric, the
pass criterion, the period, the measurement's file path in the spec folder,
and what to do when the criterion is not met.
Run the measurement exactly as the section names it, with the tool the
project provides for it. Read the file from the fetched default branch; when
the spec folder has since been retired, read it from the Merge-Commit:
revision, and say which revision the comment's result came from. Record the
result in a comment: the command or query run, when, and the values it
returned, copied as returned. When the measurement returns a pass or fail
value, report that value. Do not compute ratios, aggregate rows, or compare
values against the criterion yourself; when the measurement returns no
verdict, say so and leave the comparison to the person. Then set
needs-decision and offer the choices that follow from the section and the
returned values, such as
closing the check as met, carrying out its plan for an unmet target, or
measuring again later, with a recommendation that cites the returned values.
When the measurement file is missing, or no available tool can run it, record
exactly what is missing in a comment and set needs-info; do not substitute
another query or estimate a result. Either way, write the Triage 요약
section, so later runs leave the check alone. A check issue takes no PR route,
even when its section's plan describes a change.
Preserve the human report. Use the bundled
body section renderer on the freshly fetched body
to update only a clearly bounded Triage 요약 section
with confirmed facts, current state, and next action. Keep questions and human
answers in comments; fold settled answers into the summary. A spec PR also
adds a bounded spec section in that same issue, marked draft until merged.
The repository's spec.md is authoritative: render the issue section from it,
and refresh that section when the merged contract changes. Never hand-edit an
independent second spec. If a body edit or section boundary is ambiguous,
preserve it and ask only for the missing distinction.
Use the convention's body-update operation to re-read the latest body and
replace only the AI-managed section. Recheck the resulting body against the
human content read immediately before the write. A Git claim serializes agents,
not human edits; when the tracker provides no conditional body update, do not
claim an atomic preservation guarantee. Repair any observed loss of human
content from available revision evidence, or leave the outcome incomplete and
report the lost-edit risk. Every outcome writes the Triage 요약 section, which
marks the issue as triaged for later runs. Link PRs without closing the original issue on a spec PR. Once a spec
folder's Issue: line names this issue, merge, implement, PR creation, and
context maintenance reuse it by that ID and create no other issue.
After publishing either PR, clear triage and waiting labels and apply the
convention's review or in-progress signal. An open PR keeps the issue out of
later triage runs; if it closes unmerged, clear its review signal as above
when no other active work remains. After a spec-only PR merges, merge returns
its issue to the convention's non-active, ready-for-implementation state;
do not leave the PR review signal blocking implement.
Every run ends with one report as its final result: what this run left for a person, each with a link and a one-line description. List new decision requests, new information requests, PRs raised, and check results with their returned values, then blocked claims or failed writes with their exact retry path. When nothing needs a person, the report is one line saying so.
When the caller asks for a summary, add what has accumulated: issues waiting
on a decision, oldest wait first; checks whose due date falls within the next
seven days; and issues whose due date has passed and that still have no
Triage 요약 section after this run, such as those past the three-issue limit. Read these through the convention's queries and due dates. The
caller decides when a summary is wanted; this skill attaches no day or
interval to it.
When the convention's Notifications item names a method, send the same
report through it after the tracker writes, unless the report is the
one-line nothing-to-see result and no summary was requested. When the item is
missing or reads None, skip sending. A failed send never fails the run: add
the failure and its reason to the report the run returns. The tracker's
comments, labels or states, and managed sections are the record; a
notification is only a copy, and every step above works without one.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub toy-crane/skills --plugin toycrane-skills28 skills in this plugin
/add-env-keyGet a key the user must issue or supply, such as an API key, token, or password, into the project's .env file without the value passing through chat or the model's context. Opens the vendor's issuance page, collects the value through the secret-env mod's input pane when the session has it, and otherwise opens the file in the user's editor with the key line ready. Use when work needs such a key that the project does not have yet, or when the user asks to add, set, or put an API key or token into .env./add-stack-contextAudit and establish current agent context for the technologies that define a project's stack. Use when setting up a project for agent work, after selecting or adding a framework, library, developer tool, or hosted service, or when entering an existing project whose agent context has not been audited./audit-evalsAudit a project's LLM eval regression suite from its committed cell history, report cells whose most recent 10 trials all passed, checks with identical recent histories, cells that flip after graduating, and cells that always fail, then propose demoting the recently always-passing cells to the lower tier and apply only the demotions the user approves. Use when the user asks which eval cells still earn their run, why a regression run costs so much, or to slim, prune, or demote a regression suite./babysit-prWatch one open GitHub pull request through CI and review bots until it is ready to merge or needs a person, fixing confirmed findings and failing checks, answering and resolving review threads, and rerunning infrastructure flakes. Use when a pull request has just been opened or updated and its checks, bot review comments, or merge conflicts need answering, or when asked to babysit, watch, shepherd, or get a PR green or ready. Does not merge; `merge` and `implement` invoke it before merging or handing off./babysit-specsRevise active `docs/specs/SLUG/` specs so they match what has shipped since they were written. Use when earlier work has landed and queued specs may now rest on stale assumptions, acceptance criteria, constraints, terms, or prototypes, or when implementation reports a spec as stale before changing source. Takes one or more spec folders, or every folder under `docs/specs/` when none is named. Do not use to shape a new spec from a problem and direction, which belongs to `shape-idea`, or to reconcile durable project context and retire shipped folders, which belongs to `maintain-project-context`./build-prototypeBuild a complete dummy-data HTML prototype or a temporary comparison of up to three alternatives for a specific user situation. Use to settle a screen-based product before implementation or resolve a visual or interaction decision during shaping or prototype review. Do not use for production implementation or CLI, terminal, or voice interfaces.