agentleFS
nmarques93nmarques93/jira-triage-skills/skills/ci-triage/SKILL.md

ci-triage

Skill0 starsChanged 4 months agoMITView on GitHub

Scans open Customer Investigation tickets in a Jira project, classifies each as KB-answerable / bug-cluster / standalone-bug / docs-gap / needs-investigation, cross-references the product KB and existing open tickets, and posts a structured AI Triage comment on each. Idempotent — skips tickets already triaged.

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. 5throck/ai-workspace-standards★ 16same name
    2. syndicalt/zaxy★ 16same name
    3. wannanbigpig/ai-engineering-collaboration★ 2same name
    4. F0Rextasy/ci-triage★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If --kb-url was provided, search it for articles matching the ticket's symptom.

    line 63
  2. Distinctive:

    If results are returned, fetch the full content of each candidate article and verify that it directly addresses the specific question or …

    line 66
  3. Very specific:

    Do not classify a ticket as KB-answerable based on a search result title alone — the article content must actually answer the customer's …

    line 68
  4. Very specific:

    If no --kb-url is provided, or if the KB search or fetch fails, skip check A entirely and note the skip in the triage comment.

    line 80
  5. Very specific:

    Search open tickets in the same project for bugs or investigations with overlapping keywords.

    line 84
  6. Distinctive:

    Before posting any comments, display a summary of all proposed comments to the user:

    line 107
  7. Distinctive:

    If the user says no, stop.

    line 124
  8. Distinctive:

    Keep reasoning factual and specific.

    line 147
  9. Distinctive:

    After processing all tickets, output a brief summary:

    line 153
  10. Distinctive:

    If a KB search fails or times out, skip check A and note the skip in the comment.

    line 174
  11. Distinctive:

    If Jira returns an error when posting a comment, log the failure and continue.

    line 175
  12. Distinctive:

    After triage completes, the orchestrator may trigger:

    line 181

“Common” is measured: kept by at least 6 in 10 of the 3 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

CI Triage

Fetch open Customer Investigation tickets from a Jira project, classify each one, and post a structured triage comment. Designed to run on-demand before sprint planning or whenever the support queue needs a priority pass.

This skill is idempotent: it will never post more than one triage comment per ticket. It only acts on open tickets. It never modifies ticket fields — comments only.


Arguments

/ci-triage <PROJECT> [--kb-url <KB_URL>] [--issue-type <TYPE>]

Examples:
  /ci-triage MYPROJ
  /ci-triage MYPROJ --kb-url https://support.example.com
  /ci-triage MYPROJ --issue-type "Support Request"
  • PROJECT — Jira project key (required)
  • --kb-url — Base URL of your product knowledge base (optional, enables KB check)
  • --issue-type — Jira issue type to target (default: "Customer Investigation")

Step 1 — Fetch open CI tickets

Query Jira for open tickets matching the configured issue type in the given project:

project = <PROJECT>
AND issuetype = "<TYPE>"
AND status NOT IN (Done, Closed, "Won't Fix", Duplicate)
ORDER BY created DESC

Fetch fields: summary, description, status, priority, comment, created. Limit: 50 tickets per run. Use nextPageToken for pagination if needed.


Step 2 — Guard: skip already-triaged tickets

For each ticket, scan existing comments for the string AI Triage. If found, skip this ticket entirely — it has already been classified.


Step 3 — Classify each ticket

For each ticket, perform three checks in parallel:

A. KB check — fetch and verify, do not assume

If --kb-url was provided, search it for articles matching the ticket's symptom. Use the ticket summary and first 200 words of description as the search query.

If results are returned, fetch the full content of each candidate article and verify that it directly addresses the specific question or behaviour the customer reported. Do not classify a ticket as KB-answerable based on a search result title alone — the article content must actually answer the customer's question.

For each article read, make an explicit determination:

FindingClassification impact
Article directly and fully answers the customer's questionKB-answerable — include article link in comment
Article covers the topic but is missing the specific detailDocumentation gap — note what is missing
Article exists but is outdated or contradicts current behaviourDocumentation gap — note the discrepancy
No relevant article foundDo not classify as KB-answerable; proceed to B and C

If no --kb-url is provided, or if the KB search or fetch fails, skip check A entirely and note the skip in the triage comment.

B. Existing bug check Search open tickets in the same project for bugs or investigations with overlapping keywords. If 2 or more other open tickets describe the same symptom, mark as a bug-cluster and record the related ticket keys.

C. Classification

Assign one of the following:

ClassificationCriteria
KB-answerableA KB article was fetched and verified to directly answer the customer's question. No engineering needed.
Bug — [cluster name]2+ open tickets share the same root cause. Name the cluster by symptom (e.g. "login timeout", "export not working").
Bug — standaloneConfirmed reproduced by support, no similar open ticket found.
Documentation gapBehaviour is correct but the KB article is missing, incomplete, or outdated. Docs update needed, not a code fix.
Needs investigationInsufficient evidence to classify confidently. May be a product limitation or edge case.

Assign confidence: High (clear evidence), Medium (likely but not confirmed), Low (speculative — flag for human review, do not trigger downstream skills).


Step 4 — Preview and confirm before posting

Before posting any comments, display a summary of all proposed comments to the user:

Ready to post triage comments to Jira?

<PROJECT>-XXXX: [Classification] | Confidence: [High/Medium/Low]
  → [1-sentence summary of reasoning]

<PROJECT>-YYYY: [Classification] | Confidence: [High/Medium/Low]
  → [1-sentence summary of reasoning]

... (list all N tickets)

Post these N comments? (yes/no)

Wait for explicit confirmation before calling addCommentToJiraIssue on any ticket. If the user says no, stop. If the user asks to modify a comment, update it and re-display before confirming.


Step 4a — Post triage comment

Post a comment on each confirmed ticket using this format:

🤖 **AI Triage** _(AI-generated · testing phase)_ | [Classification] | Confidence: [High/Medium/Low]

[1–2 sentence reasoning. What evidence supports this classification?]

**Related tickets:** [keys, if cluster] — omit line if not applicable
**KB reference:** [link and article title, if KB-answerable] — omit line if not applicable

**Recommended action:** [One concrete next step for support or engineering]

---
_This comment was generated automatically. The AI triage system is in a testing phase — please treat classifications as a starting point, not a final verdict._

Keep reasoning factual and specific. Do not speculate beyond what the ticket describes.


Step 5 — Report

After processing all tickets, output a brief summary:

  • Total tickets scanned
  • Skipped (already triaged)
  • KB-answerable
  • Bug clusters identified (list cluster names and ticket keys)
  • Standalone bugs
  • Documentation gaps
  • Needs investigation
  • Comments posted

Guardrails

  • Never act on tickets with status Done, Closed, Won't Fix, or Duplicate.
  • Never post more than one triage comment per ticket (check Step 2).
  • Never edit existing comments, transition ticket status, or change any fields.
  • Never classify as KB-answerable without fetching and reading the article content.
  • For Low confidence classifications, post the comment but do not trigger any downstream skills (ci-enrich, ci-link-tickets, ci-autofix).
  • If a KB search fails or times out, skip check A and note the skip in the comment.
  • If Jira returns an error when posting a comment, log the failure and continue.

Downstream skills

After triage completes, the orchestrator may trigger:

ConditionNext skill
Ticket is thin (missing repro steps, expected/actual behaviour, or confirmed repro)ci-enrich
Ticket is Bug — [cluster] with confidence Highci-link-tickets
Ticket is bug, High confidence, confirmed repro, single-service scopeci-autofix

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.