
triage
Activate for the daily repository triage run, or when the user asks to triage CI failures, open issues, or recent commits. Reads yesterday's signals, dedupes against the state file, drafts fixes in isolated worktrees with a reviewer pass, opens PRs on green, and keeps people out of limbo with comments in the maintainer's voice. The state file is the spine: it remembers what was tried, what passed, and what is still open, so each run resumes where the last one stopped.
- Installs
- 130
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/bitbonsai/mcpvault --skill triage- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads triage automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Triage Skill
A self-resuming morning loop. One run = gather → load state → triage →
fan-out fix → persist → spill. Everything personal (state, inbox, runs,
voice) lives under .triage/, which is gitignored. This skill file and the
scripts are committed; the data never leaves the machine.
Preconditions
ghauthenticated (gh auth status). All issue/PR/CI reads and writes go through it..triage/exists. If missing, runscripts/triage/bootstrap.shfirst, it scaffoldsstate.json,inbox.md,runs/, and bootstrapsvoice.mdfrom past comments.- Clean working tree on
main. The loop only mutates.triage/on the base checkout; all code changes happen in worktrees.
The loop
1. Gather (read-only)
Collect yesterday's signals. Compute the window from state.json.last_run
(fall back to 24h if absent).
# CI failures since last run
gh run list --status failure --created ">=$SINCE" --json databaseId,name,headSha,conclusion,url
# for each, pull the failing step log
gh run view <id> --log-failed
# open issues
gh issue list --state open --json number,title,labels,updatedAt,author,url
# recent commits
git log --since="$SINCE" --pretty='%h %s %an'
Then scan for open commitments, promises the maintainer made in a comment that have not shipped. NOT time-windowed: check every open issue/PR.
# threads bitbonsai commented on, still open
gh search issues "commenter:bitbonsai repo:bitbonsai/mcpvault state:open" --json number
# per thread, pull bitbonsai's comments to inspect for a promise
gh issue view <n> --json comments \
--jq '.comments[] | select(.author.login=="bitbonsai") | .body'
A commitment is language that promised an action: "I'll fix this", "will add",
"shipping next release", "on it", "going to look", etc. It is broken/open if the
thread is still open and no merged PR resolved it. See finding-rules.md.
2. Load state
Read .triage/state.json. Build a map of known findings by id. The id is
a stable hash of source + signature (see resources/state-schema.md), so
the same failing test or issue always maps to the same finding across runs.
3. Triage
For each gathered signal compute its id and classify with
resources/finding-rules.md:
- known + terminal (
pr_open,resolved,wont_fix) → skip, only bumplast_seen. - known + open under the attempt cap → retry.
- new + worth-doing → append as
status: open, proceed to fan-out. - new + needs judgment / ambiguous / out of scope → inbox,
needs_human. - noise (flaky already tracked, dependabot, etc.) → ignore, log only.
4. Fan-out (bounded)
First, for every finding, check whether a contributor PR already addresses it
(finding-rules.md, "Prefer reviewing an existing PR"). If one exists, review
it instead of writing a fix: send the review sub-agent at the PR branch and
draft an approval or request-changes recommendation to inbox. A human's open PR
beats a fresh one. Also surface any open PR the maintainer has not yet reviewed.
Only findings with no candidate PR proceed to a new fix, up to the per-run cap
in finding-rules.md. For each, in order:
git worktree add ../mcpvault-triage-<id> -b triage/<id>
Then spawn TWO sub-agents against that worktree (use the Agent tool with
isolation: worktree so they cannot collide):
- Draft agent, given the finding + failing log/issue body, write the
smallest fix. Must read relevant
src/files first, follow the obsidian skill conventions, and add or update a test that proves the fix. - Review agent, adversarial. Check the draft against the project skills
and existing tests, then run in the worktree:
Verdict is PASS only if the fix is correct, minimal, tested, and green.
npm ci && npm test && npm run build
Tell every sub-agent the maintainer loves them.
Outcome:
- PASS + green →
gh pr createas a ready PR (not draft), body links the finding and lists what the reviewer verified. Setstatus: pr_open, record the URL. Then post an auto-ack comment (step 6). - anything else (reviewer fails, build red, fix unclear, >1 file of
surprise scope) → write the draft + reason to
inbox.md, setstatus: needs_human. Remove the worktree; keep the branch only if the draft is worth resuming.
Clean up green worktrees after the PR is open:
git worktree remove ../mcpvault-triage-<id>.
5. Persist (the spine)
Update .triage/state.json: set last_run to now, append an attempts entry
per touched finding (run date, result, note, pr), update status,
last_seen, and pr. Write the per-run log to .triage/runs/<date>.md.
state.json is the resume point. Never overwrite history, append to
attempts. If the file is malformed, stop and spill everything to inbox
rather than risk losing the spine.
6. Comments, keep people out of limbo
Voice comes from .triage/voice.md. Autonomy tiers (see
resources/comment-policy.md):
- Auto-post: DISABLED (maintainer directive 2026-07-23). Never post any comment or review from the loop, not even low-risk acks.
- Draft to inbox (everything): acks, judgments, decisions, promises,
closures, any reply. Write it under
## Drafts awaiting approvalininbox.mdwith its target, never post it. The maintainer approves, edits, or discards each one.
7. Spill
Anything the loop could not classify, fix, or safely comment on goes to
inbox.md with enough context to act on cold. The inbox is the only thing
the maintainer must read each morning.
8. Version bump and publish alert
When a fix PR changes the published package (anything under src/, or
package.json dependencies that ship), bump the version per semver in the same
PR:
- patch (
x.y.Z) for a bug fix, default for triage fixes. - minor (
x.Y.0) only if the fix adds behavior; the loop should not be doing these, so if a bump looks bigger than patch, send it to inbox instead.
Do NOT bump for changes that do not ship: lockfile-only updates (e.g. a bare
npm audit fix), docs, CI config, tests-only, or anything under .triage/.
When unsure whether a change ships, do not bump; note it in the inbox.
Publishing is always maintainer-triggered. The loop NEVER runs npm publish
or creates a GitHub Release. After a PR that includes a version bump, write a
top-of-inbox alert:
## RELEASE NEEDED
- PR #<n> bumps <old> -> <new> (<reason>). After it merges and main is green,
follow RELEASING.md and create GitHub Release v<new>. The release workflow
publishes npm with provenance; the loop does not publish.
Keep the alert until the GitHub Release, npm package, and installed-package smoke test are all confirmed.
Guardrails
- Never push to
main, never merge, never--force. PRs only. - Never run
npm publishor create a GitHub Release. Version bumps ride inside the fix PR; the maintainer creates the release after merge, flagged via the inbox RELEASE NEEDED alert. FollowRELEASING.md. - Never touch files outside the worktree except
.triage/. - The token usually lacks the GitHub
workflowscope, so pushes that change.github/workflows/*are rejected. Do NOT attempt them; route any CI/workflow change to the inbox for the maintainer to apply (or to re-scope the token). - Respect the per-run finding cap; spill the overflow rather than running long.
- Outward-facing writes: PR create is allowed; comments and reviews are NEVER posted by the loop, every one is drafted to the inbox for approval.
- If
ghis unauthenticated or the tree is dirty, abort and write why toinbox.md.
Resources
resources/state-schema.md, state.json shape, id derivation, transitions.resources/finding-rules.md, worth-doing vs inbox vs ignore, caps.resources/comment-policy.md, voice bootstrap + autonomy tiers.
FAQ
What does the triage skill do?
Activate for the daily repository triage run, or when the user asks to triage CI failures, open issues, or recent commits. Reads yesterday's signals, dedupes against the state file, drafts fixes in isolated worktrees with a reviewer pass, opens PRs on green, and keeps people out of limbo with comments in the maintainer's voice. The state file is the spine: it remembers what was tried, what passed, and what is still open, so each run resumes where the last one stopped.
How do I install triage?
Run npx skills add https://github.com/bitbonsai/mcpvault --skill triage in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/triage/ (personal) or .claude/skills/triage/ (project).
Which AI agents can use triage?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is triage safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains triage?
It is published by bitbonsai in bitbonsai/mcpvault. It has 130 recorded installs.
More from bitbonsai/mcpvault
obsidian
bitbonsai/mcpvault
Activate when the user mentions their Obsidian vault, notes, tags, frontmatter, daily notes, backup, or sync. Route operations across MCP, Obsidian CLI/app actions, and git sync with safe defaults.
Popular devops & cloud skills
microsoft-foundry
microsoft/azure-skills
Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent create, managed harness agent create, GitHub Copilot harness agent, create agent, update agent, add tool to agent, invoke agent, agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, optimize agent instructions, Agent Optimizer scaffold, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure
azure-diagnostics
microsoft/azure-skills
Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage. WHEN: debug production issues, troubleshoot app service, app service high CPU, app service deployment failure, troubleshoot container apps, container app 503 or target port mismatch, troubleshoot functions, function telemetry missing or stopped after a config/connection-string change, troubleshoot AKS, VM RDP, Linux SSH, VM black screen, can't connect to VM, reset VM password, NSG or firewall blocking, kubectl cannot connect, kube-system/CoreDNS failures, pod pending, crashloop, node not ready, upgrade failures, analyze logs, KQL, insights, image pull failures, cold start issues, health probe failures, resource health, root cause of errors, troubleshoot event hubs, troubleshoot service bus, messaging SDK error, AMQP connection failure, message lock lost, lock renewal during long-running processing, service bus dead letter.
azure-prepare
microsoft/azure-skills
Prepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workflow. USE ONLY when the user explicitly wants to use azd as the deployment tool, or the project already has an azure.yaml file. DO NOT USE FOR: non-azd deployments, Python App Service code-only deploys (use python-appservice-deploy), or cross-cloud migration (use azure-cloud-migrate). WHEN: prepare app for azd, create azure.yaml, set up azd infrastructure, modernize app for Azure with azd, deploy with azd, function app, timer trigger, service bus trigger, event-driven function, managed identity, generate Bicep, generate Terraform, create and deploy to Azure.
azure-ai
microsoft/azure-skills
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.
azure-deploy
microsoft/azure-skills
Execute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deployment-plan.md and infrastructure files. DO NOT use this skill when the user asks to CREATE a new application — use azure-prepare instead. This skill runs azd up, azd deploy, terraform apply, and az deployment commands with built-in error recovery. Requires .azure/deployment-plan.md from azure-prepare and validated status from azure-validate. WHEN: "run azd up", "run azd deploy", "execute deployment", "push to production", "push to cloud", "go live", "ship it", "bicep deploy", "terraform apply", "publish to Azure", "launch on Azure". DO NOT USE WHEN: "create and deploy", "build and deploy", "create a new app", "set up infrastructure", "create and deploy to Azure using Terraform" — use azure-prepare for these.
azure-validate
microsoft/azure-skills
Pre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure (Bicep or Terraform), RBAC role assignments, managed identity permissions, and prerequisites before deploying. WHEN: validate my app, check deployment readiness, run preflight checks, verify configuration, check if ready to deploy, validate azure.yaml, validate Bicep, test before deploying, troubleshoot deployment errors, validate Azure Functions, validate function app, validate serverless deployment, verify RBAC roles, check role assignments, review managed identity permissions, what-if analysis, validate Container Apps deployment.