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

ci-enrich

Skill0 starsChanged 4 months agoMITView on GitHub

Scans open Customer Investigation tickets for thin descriptions and posts a structured comment asking support to fill in missing details before engineering picks up the ticket. Idempotent — skips tickets already enriched.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    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:

    Use judgment: a very short description (under 60 words) with no structure is thin even if it technically contains all five fields.

    line 73
  2. Distinctive:

    Before posting any comments, display a summary of all proposed enrichment requests:

    line 80
  3. Distinctive:

    If the user says no, stop.

    line 94
  4. Distinctive:

    Keep the tone helpful, not critical.

    line 136
  5. Distinctive:

    After processing all tickets, output a brief summary:

    line 142
  6. Distinctive:

    If Jira returns an error when posting a comment, log the failure and continue — do not retry more than once per ticket.

    line 157
  7. Distinctive:

    If a ticket description is empty or unparseable, treat it as thin and post the comment.

    line 159

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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 Enrich

Scan open Customer Investigation tickets for missing diagnostic information and post a structured enrichment request on any that are too thin for engineering to act on.

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


Arguments

/ci-enrich <PROJECT> [--issue-type <TYPE>]

Examples:
  /ci-enrich MYPROJ
  /ci-enrich MYPROJ --issue-type "Support Request"
  • PROJECT — Jira project key (required)
  • --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:

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

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


Step 2 — Guard: skip already-processed tickets

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

Also skip any ticket that already has an AI Triage comment classifying it as KB-answerable — those do not need engineering input.


Step 3 — Evaluate ticket quality

Score each ticket against the following checklist. A ticket is thin if it is missing two or more of these:

FieldWhat to look for
Steps to reproduceA numbered list of steps that lead to the problem. Vague prose ("it doesn't work") does not count.
Expected behaviourAn explicit statement of what should happen.
Actual behaviourAn explicit statement of what is happening instead.
Environment / accountAn identifier for the affected account, environment, or tenant.
Confirmed reproA statement that a support team member reproduced the issue. A "Replicated by Support" field that says "No", is blank, or is absent counts as missing.

A ticket with four or five fields present is sufficient — skip it. A ticket with three or fewer is thin — post the enrichment comment.

Use judgment: a very short description (under 60 words) with no structure is thin even if it technically contains all five fields.


Step 4 — Preview and confirm before posting

Before posting any comments, display a summary of all proposed enrichment requests:

Ready to post enrichment comments to Jira?

<PROJECT>-XXXX: missing [field1, field2]
<PROJECT>-YYYY: missing [field1, field3, field4]

... (list all N thin 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 skip or modify a specific comment, update accordingly and re-display before confirming.


Step 4a — Post enrichment comment

For each confirmed thin ticket, post a comment in this format. Replace [MISSING_FIELDS] with a plain-English list of only the fields that are actually missing — do not mention fields that are already present.

🤖 **AI Enrich** _(AI-generated · testing phase)_ | Needs more details before engineering pickup

Hi team — this ticket is missing some information that engineering will need to investigate.
Could you add the following before escalating?

**Missing:**
[MISSING_FIELDS as a bullet list]

**Template to fill in:**

**Steps to reproduce:**
1.
2.
3.

**Expected behaviour:**
[What should happen]

**Actual behaviour:**
[What is happening instead]

**Confirmed reproduced by support:** Yes / No
If yes, include any relevant account identifiers or links.

Once these are filled in, engineering can pick this up without back-and-forth.

---
_This comment was generated automatically. The AI enrichment system is in a testing phase — if this request seems off, please ignore it and flag for review._

Keep the tone helpful, not critical. Do not imply the ticket is poorly written.


Step 5 — Report

After processing all tickets, output a brief summary:

  • Total tickets scanned
  • Skipped (already enriched)
  • Skipped (KB-answerable)
  • Skipped (sufficient detail)
  • Enrichment comments posted (list ticket keys)

Guardrails

  • Never act on tickets with status Done, Closed, Won't Fix, or Duplicate.
  • Never post more than one enrichment comment per ticket (check Step 2).
  • Never edit existing comments, transition ticket status, or change any fields.
  • If Jira returns an error when posting a comment, log the failure and continue — do not retry more than once per ticket.
  • If a ticket description is empty or unparseable, treat it as thin and post the comment.

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.