agentleFS
google-labs-codegoogle-labs-code/jules-sdk/.agents/skills/fleet-triage/SKILL.md

fleet-triage

Skill137 starsChanged 8 months agoApache-2.0View on GitHub

Cognitive triage of fleet audit findings. Read issue content, evaluate labeling accuracy, and determine open/close/dispatch/relabel actions for fleet-managed issues. Use when triaging undispatched issues or reviewing audit scan results.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 7 are distinctive, and 4 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.

  • 4

    Very specific

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

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

    After running fleet audit scan and seeing cognitive findings

    line 13
  2. Very specific:

    Before running fleet dispatch to prevent wasting sessions on non-actionable issues

    line 14
  3. Distinctive:

    When asked to triage, clean up, or review fleet issues

    line 15
  4. Distinctive:

    Update the triage artifact with decisions.

    line 51
  5. Distinctive:

    Read the body. Evaluate:

    line 61
  6. Distinctive:

    Is there actionable code work?: Look for "Files to modify:", "Proposed Implementation", specific code paths

    line 63
  7. Distinctive:

    Should it be dispatched?: Only if there's concrete code work with clear acceptance criteria

    line 66
  8. Distinctive:

    After all decisions are recorded, present the triage artifact to the user for review.

    line 72
  9. Very specific:

    Create a persistent artifact at triage-<repo>.md:

    line 87
  10. Distinctive:

    Check if the described code changes already exist in main

    line 122
  11. Very specific:

    Check if a similar PR was merged without Fixes #N

    line 123

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Fleet Triage

Cognitive triage of fleet-managed issues. The audit scan surfaces findings deterministically; you make the judgment calls.

When to Use

  • After running fleet audit scan and seeing cognitive findings
  • Before running fleet dispatch to prevent wasting sessions on non-actionable issues
  • When asked to triage, clean up, or review fleet issues

Core Principle

Tools are evidence, you are expertise. The scan tells you what exists. You read the content and decide what to do.

Process

Phase 1: Build a Lightweight Index

Pull all open issues as a summary table. Do NOT read issue bodies yet.

gh issue list --repo <owner>/<repo> --state open --limit 50 \
  --json number,title,labels,milestone

Classify each issue into buckets by title and labels alone:

BucketSignalTypical Action
InsightTitle contains [Insight], [Fleet Insight], or label fleet-insightLikely close — informational only
AssessmentTitle contains [Assessment], or label fleet-assessmentEvaluate — may be actionable or stale
ExecutionTitle contains [Fleet Execution], label fleet without insight/assessmentLikely dispatch — has code work
AmbiguousMixed signals or unlabeledNeeds deep dive (Phase 3)

Record the index in a triage artifact (see Triage Artifact).

Phase 2: Batch Triage from Index

For Insight and Assessment buckets, you can often decide without reading the body:

  • Duplicate insights (same title pattern, sequential numbers like "Update 2", "Update 3", "Update 4") → Close older duplicates, keep latest
  • Insights with no milestone → Likely orphaned, close
  • Assessments with linked PRs → Check if PR is merged; if so, close

Update the triage artifact with decisions.

Phase 3: Deep Dive (One at a Time)

For Ambiguous or Execution issues only:

gh issue view <N> --repo <owner>/<repo>

Read the body. Evaluate:

  1. Is there actionable code work? Look for "Files to modify:", "Proposed Implementation", specific code paths
  2. Is it stale? Has the work already been done by another PR? Check linked PRs
  3. Are the labels accurate? Does an "Execution" issue actually describe an insight?
  4. Should it be dispatched? Only if there's concrete code work with clear acceptance criteria

Record your decision in the triage artifact before moving to the next issue.

Phase 4: Apply Decisions

After all decisions are recorded, present the triage artifact to the user for review. Then apply:

# Close issues
gh issue close <N> --repo <owner>/<repo> --comment "Closing: <reason>"

# Relabel
gh issue edit <N> --repo <owner>/<repo> --remove-label fleet --add-label fleet-insight

# Dispatch (only confirmed actionable issues)
fleet dispatch --owner <owner> --repo <repo>

Triage Artifact

Create a persistent artifact at triage-<repo>.md:

# Triage: <owner>/<repo>

## Summary
- Total open: N
- Reviewed: N
- Close: N | Keep: N | Dispatch: N | Relabel: N

## Decisions

| # | Title | Labels | Decision | Reason |
|---|-------|--------|----------|--------|
| 194 | [Fleet Insight] Coverage | fleet, fleet-insight | CLOSE | Insight, no code action |
| 141 | [Fleet Execution] Update Enums | fleet, fleet-assessment | DEEP DIVE | Mixed labels, need to read body |

Token Management

  • Never load all 25 issue bodies at once — each body can be 500-2000 tokens
  • Process one deep dive at a time, record decision, then move on
  • The triage artifact survives context resets — pick up where you left off
  • For batch closes, use gh issue close in a single command per issue

Common Patterns

Duplicate Detection

Fleet analyzers often create duplicate insights across runs. Look for:

  • Sequential "Update N" suffixes (keep only the latest)
  • Same title with different numbers
  • Same objective described in different words

Stale Assessment Detection

An assessment may have been addressed by a PR that didn't reference the issue:

  • Check if the described code changes already exist in main
  • Check if a similar PR was merged without Fixes #N

Mislabeled Issues

The analyzer sometimes labels insights as fleet (execution-worthy) when they're informational:

  • Body says "No source changes" → should be fleet-insight, not fleet
  • Body says "N/A - This is an Insight report" → not dispatchable

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.