Bug triage

From gabrielmoreira/agent-skills-mirror · View interactive version

Bug triage is an AI agent skill from the GitHub repository gabrielmoreira/agent-skills-mirror. Help clarify human bug reports, search for duplicates, and gather diagnostic evidence separately from a concise issue draft.

How to use this skill

Skill file

Bug triage

Help the reporter describe what they observed and add useful evidence. A short human

observation is enough to report a bug; reproduction, logs, and a diagnosis are optional.

Use this skill for reports from chat, an existing issue, or a local user.

Clarify the observation

Read the available report, screenshots, and follow-ups first. Preserve the original

reporter's words and attribution, including when someone else relays their report.

Don't infer a GitHub username from a chat display name.

Ask only questions that would materially clarify the symptom, a few at a time. Don't

repeat questions already answered or turn these suggestions into required fields:

If a screenshot is unavailable, accept a description. If the reporter cannot remember

steps or reproduce the problem, preserve that uncertainty and proceed with what is

known. Never invent steps or make the reporter diagnose the bug before accepting it.

Keep the report and investigation separate

Draft a specific symptom-based title and a short body, normally one paragraph or a few

bullets. Include only details supplied directly by the human: their observation,

expected behavior, steps, frequency, environment, and impact when they provided them.

Light editing for clarity is fine; preserve meaning and uncertainty. Omit empty

sections and unnecessary background. Do not add agent-inferred impact, root cause,

confidence scores, or proposed fixes to the report.

Example human report:

After I switched projects, the terminal stayed blank. I expected to see the session

prompt. It happened twice today on macOS; I don't know how to reproduce it reliably.

Keep agent-discovered information separate from the human report and label it

Agent-collected evidence, even when it confirms the report. Include only relevant

excerpts and:

checkout commit, so another person can interpret the result.

the finding. Distinguish the reporter's environment from a separate test build.

explicitly; don't present a code-path guess as a confirmed cause.

If no useful evidence is available, deliver the human report alone. Never pad it with

speculation or claim a reproduction succeeded when it didn't.

Gather relevant evidence

Use diagnostics that fit the symptom, within the user's requested scope. Prefer

read-only checks against the affected installation. Don't restart sessions, upgrade

AO, change live data, or alter the user's checkout just to collect evidence.

AO uses a Go daemon and an Electron/React frontend. Read docs/architecture.md for

current boundaries and locate actual files with rg before citing code. Do not rely

on the old TypeScript implementation or assume which runtime backs a session.

Before trusting diagnostics, identify the AO executable and affected daemon. A PATH

lookup may resolve to a legacy install. Check the executable's version and status,

and the configured run file/data directory (AO_RUN_FILE / AO_DATA_DIR when set).

The primary daemon normally uses loopback port 3001; port alone does not establish

which version or installation is affected. Consult the installed CLI help for commands.

For local-daemon evidence, use the affected binary's --version and status --json;

status reads existing state without starting the daemon. For a known affected session,

use session get <id> --json and keep only fields relevant to the symptom. If the

daemon is unavailable, record its status or error and mark session evidence unavailable.

Record app and CLI versions separately from daemon identity. Health probes provide no

daemon release version; dev alone or missing build metadata does not identify the

source. Label source findings approximate when the affected build cannot be matched.

Do not run doctor or agent ls as routine evidence collectors: doctor writes files

and checks remote authentication; agent listing triggers readiness checks.

remote-host status --show-password prints the pairing password; run status

without that flag. Desktop status refresh may start

a replacement daemon; prefer the CLI status check or already available evidence.

Collect only what helps explain this symptom:

| Symptom | Potential evidence |

| --- | --- |

| UI rendering or interaction | Screenshot/recording, relevant console errors, affected view |

| Session or terminal state | Affected session's daemon state, relevant log excerpt, runtime details |

| Daemon or CLI failure | Version/status, exact command and error, relevant daemon logs |

| Persisted state mismatch | Relevant rows and schema from a read-only SQLite query |

Locate logs for the affected process rather than assuming ~/.ao/daemon.log is current.

The daemon logs to $AO_DATA_DIR/daemon.log; that older file only covers keep-alive

launches. Record missing evidence instead of enabling logging just to create it.

Use the daemon API/CLI for state first. If database evidence is needed, discover the

actual database location and schema, open it read-only, and select only relevant rows

and columns. Never attach an entire database, broad log dump, or Electron profile

folder, which also holds browser cookies and storage. Redact tokens,

credentials, private prompts, and unrelated personal or repository data from every

artifact, including screenshots. Keep diagnostic artifacts under ~/.ao and out of

Git commits. Preserve evidentiary content when redacting, and verify that unrelated

content did not change. Share a useful excerpt rather than a wall of output.

Redaction masks known patterns only; review the exact draft and artifacts before

sharing.

Try a safe reproduction when practical, recording the build actually tested. Failure

to reproduce does not invalidate the human report. Code tracing or dependency research

is optional when it can add concrete evidence. Keep findings in the separate evidence.

Check for duplicates

Resolve AO's canonical repository name before searching. GitHub issue and PR searches

can return empty results for a former owner even when repository API requests redirect.

Use the resolved name, not the reporter's project repository. Search open and closed

issues and related PRs using the symptom or exact error:

if ao_triage_repo=$(gh api repos/OrchestratorInc/agent-orchestrator --jq .full_name) && [ -n "$ao_triage_repo" ]; then
  gh issue list --repo "$ao_triage_repo" --state all --search '<symptom or error>' --limit 100
  gh pr list --repo "$ao_triage_repo" --state all --search '<symptom or error>' --limit 100
else
  printf '%s\n' 'Repository lookup failed; duplicate search skipped.' >&2
fi

Include the searched repository and candidates considered in the separate evidence.

Try useful symptom synonyms or a shorter error fragment when needed.

Read likely matches before calling a report a duplicate. If one matches, give the

reporter its link and draft only their new observation for a comment, with evidence

attached separately. If a closed issue appears to have regressed, explain that to the

reporter rather than silently treating it as resolved. If repository lookup or either

search fails or is unavailable, say which part could not be checked. Empty, truncated,

or failed searches do not prove there is no duplicate; continue preparing the report.

Preserve attribution and submission scope

A local coding agent may help draft and gather attachments. Existing authorization

still applies; triage alone is not permission to publish.

For an existing issue, preserve its human body and attribution. Add evidence separately

when authorized. Don't rewrite the report into an investigation narrative.

When authorized to publish, include useful collected evidence before finishing. Use a

clearly labeled comment or attachment, whichever fits the evidence. If evidence cannot

be published, state the exact blocker and provide its local path. Never invent

attachment URLs or create asset branches to host diagnostics. Keep the report body

limited to human details. Apply only existing, relevant labels; don't add

priority/confidence prose just to fill a template.

Finish with the concise draft (or issue link if submitted), any duplicate link, and

attachment paths/links. Do not automatically file an issue, implement a fix, push a

PR, or spawn a worker. Follow the user's requested scope and the repository's normal

contribution workflow if they separately ask for implementation.

The bundled scripts/push_fix_to_github.py is a legacy fix publisher, not a triage step.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.