agentleFS
encoreshaoencoreshao/encore-skills/skills/triage-issue/SKILL.md

triage-issue

Skill2 starsChanged 16 days agoMITView on GitHub

Use when replying to comments on a GitLab issue, or when an issue has comments that might tag you or be waiting on your reply as assignee — figures out which comments genuinely need a response, drafts each reply grounded in the codebase, and posts after you confirm

46 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use prd-to-plan, prd-to-issues and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • HK-hubSkill

    prd-to-plan

    Turn a PRD into a multi-phase implementation plan using tracer-bullet vertical slices, saved as a local Markdown file in ./plans/. Use when user wants to break down a PRD, create an implementation plan, plan phases from a PRD, or mentions "tracer bullets".

    Also in 11 projects that use this

  • kennethkeimSkill

    prd-to-issues

    Break a PRD into independently-grabbable GitHub issues using tracer-bullet vertical slices. Use when user wants to convert a PRD to issues, create implementation tickets, or break down a PRD into work items.

    Also in 13 projects that use this

  • simo97Skill

    request-refactor-plan

    Use this skill when user wants to create a refactor plan.

    Also in 12 projects that use this

  • kennethkeimSkill

    write-a-prd

    Create a PRD through user interview, codebase exploration, and module design, then submit as a GitHub issue. Use when user wants to write a PRD, create a product requirements document, or plan a new feature.

    Also in 13 projects that use this

  • simo97Skill

    design-an-interface

    Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice".

    Also in 11 projects that use this

  • AnasX7Skill

    scaffold-exercises

    Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.

    Also in 6 projects that use this

  • +1 more from kennethkeim
  • +3 more from simo97

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If there's nothing needing a reply, say so and stop — don't invent a reason to post.

    line 51
  2. Distinctive:

    Don't draft from the issue text alone.

    line 55
  3. Distinctive:

    If there's no local codebase available, say so in the draft instead of guessing

    line 59
  4. Distinctive:

    Never add sections, disclaimers, or "let me know if you have questions" filler the comment didn't ask for.

    line 68
  5. Distinctive:

    Wait for the user to approve, edit, or reject it.

    line 77
  6. Distinctive:

    Don't post a "clearly needs reply" draft just because it's clearly needed — clear only means you're confident in the content, not that you …

    line 85

“Common” is measured: kept by at least 6 in 10 of the 45 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Triage Issue

Reads an issue and its comment thread, figures out which comments genuinely need a reply from you, grounds the reply in the actual codebase (not guesswork), drafts it in your own voice, and shows it to you — every time, no exceptions — before anything gets posted.

Input

  • Issue number (#42) with project alias or path, or a GitLab URL
  • A local clone of the relevant repo, if you want the reply grounded in current code (optional — skip Step 3 if there's no codebase)
GITLAB="$HOME/.claude/skills/gitlab-config/scripts/gitlab_api.py"
python $GITLAB whoami                            # confirm your username once per session
python $GITLAB sync-project <project>             # once per project — builds the team/user directory
python $GITLAB sync-issue <project> <number>      # issue + full comment thread, merged into the cache

See gitlab-config skill for first-time setup and the local-memory cache it maintains.

Steps

1. Fetch the issue and comments

Use sync-issue, not get-issue — same API call, but it merges onto whatever's already cached for this issue instead of discarding it, so any comment you've already handled (see Step 4) stays marked. It returns the issue plus every note in notes[], oldest-last. Each note has author, body, system (true = GitLab-generated, e.g. "assigned to @x" — never needs a reply), and created_at.

Resolve @mentions and author names against the cached team directory (gitlab_cache.py get-users <instance>) instead of guessing from the raw GitLab username — it's already built from sync-project and every issue you've synced.

2. Decide which comments need your reply

Walk the notes in chronological order (reverse the array first — GitLab returns newest-first). Skip system notes, anything you authored, and any note id already listed in the cached _notes.replied_note_ids (see Step 4 — you've handled it in a prior run). For everything else, a comment needs your reply if:

  • It @mentions your username directly, or
  • You're the assignee, it asks a direct question or requests an action, and no later comment from you addresses it

Then classify what's left — this only shapes how you present the draft in Step 4, it never decides whether you ask first, because you always ask first:

SignalVerdict
Explicit @you mention with a clear question/request, nothing from you after itClearly needs reply — present the draft as ready to send
Directed at you but vague, or tags several people with no clear owner, or looks like it might already be resolved elsewhere (linked commit/MR, later comment)Ambiguous — present the draft plus your reasoning for why it's unclear

If there's nothing needing a reply, say so and stop — don't invent a reason to post.

3. Ground the reply in the codebase

Don't draft from the issue text alone. For each comment needing a reply:

  • A quick lookup (one file, one symbol) — grep it yourself inline
  • A real investigation (spans multiple files, root cause unclear, need to trace a call chain or check recent commits/MRs) — dispatch an agent (e.g. an Explore subagent) to do it. Keeps this skill's main thread on triage and drafting, not spelunking
  • Confirm current behavior before claiming it's fixed, broken, or unchanged
  • If there's no local codebase available, say so in the draft instead of guessing

4. Draft, then always confirm before posting

Match the reply's length and format to the comment it answers — don't run every reply through the same template.

  • A one-line question ("is this fixed?") gets a one-line answer ("Yes, fixed in prod — see abc1234."). Padding a yes/no into paragraphs is wrong, not thorough.
  • A multi-part question or a request with several asks gets a structured reply (short intro + bullets), one point per ask — no more.
  • A comment that's really a status update or FYI, not a question, may not need prose at all — a link or a single confirming line is enough.
  • Never add sections, disclaimers, or "let me know if you have questions" filler the comment didn't ask for.
  • Any reply carrying more than one fact — a status update, a multi-part answer, anything mixing "done" with "still open" or "needs input" — always goes out as markdown with clear paragraph structure: bold labels or ### headers plus bullets per fact, never one dense run-on paragraph. Split it the way examples/backfill-status-reply.md does: what's confirmed/done under its own heading, what's still open under another, so a reader can skip straight to the part they need. This doesn't relax the one-line-answer rule above — a genuinely single-fact reply still stays one line.
  • Pick the heading to match what actually happened, not a fixed template. If something's genuinely done, it goes under "What's done" / "What remains". If a fix was tried and didn't work, or the reply is reporting a real blocker, don't file that under "What remains" — give it its own Problem / Blocked on heading stating what failed and why, so the reader isn't misled into thinking it's just an open follow-up.

Write it in the assignee's own voice — first person, like they'd actually type it, not a templated support-ticket reply. Match their tone from their own earlier comments in the thread (direct vs. casual, how much context they usually give). Personalized doesn't mean less accurate: state what's true, cite the file/commit/behavior you actually checked in Step 3, and don't oversell or hedge past what you confirmed.

Never post without an explicit go-ahead — for both verdicts, every time:

  1. Show the draft, labeled by its Step 2 verdict (ready to send / ambiguous + why).
  2. Wait for the user to approve, edit, or reject it.
  3. Only after approval:
    python $GITLAB post-issue-comment <project> <number> "<reply>"
    CACHE="$HOME/.claude/skills/gitlab-config/scripts/gitlab_cache.py"
    python $CACHE annotate-issue <instance> <project_id> <number> replied_note_ids '[<note_id>, ...]'

Don't post a "clearly needs reply" draft just because it's clearly needed — clear only means you're confident in the content, not that you skip confirmation.

5. Report

Summarize: what's drafted and waiting on your approval (show each draft), and what was skipped and why (already answered, system note, no reply needed). Nothing here should say "posted" unless the user already approved it in this session.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.