agentleFS
herohuaherohua/skills/bug-report/SKILL.md

bug-report

Skill1 starsChanged 3 months agoMITView on GitHub

Refresh an ADO bug report dashboard. Queries Azure DevOps for open bugs, regenerates an HTML dashboard with summary tiles, charts, and categorized bug tables, then opens it in the browser. Optionally fetches bug comments to detect priority/category discrepancies and suggests categories for uncategorized bugs. Invoke with /bug-report [refresh]

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-engine, playtest-report and 10 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.
  • CoralGameSkill

    setup-engine

    Configure the project's game engine and version. Pins the engine in CLAUDE.md, detects knowledge gaps, and populates engine reference docs via WebSearch when the version is beyond the LLM's training data.

    Also in 7 projects that use this

  • CoralGameSkill

    playtest-report

    Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.

    Also in 6 projects that use this

  • cenconq25Skill

    asset-spec

    Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.

    Also in 5 projects that use this

  • cenconq25Skill

    create-control-manifest

    Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.

    Also in 5 projects that use this

  • +3 more from CoralGame
  • +5 more from cenconq25

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 12

    Very specific

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

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

    Look for config.json in the current working directory.

    line 14
  2. Very specific:

    If config.json is not found, use AskUserQuestion to gather:

    line 37
  3. Very specific:

    Read config.json first to get the values, then run these steps sequentially:

    line 59
  4. Very specific:

    If title_contains is empty or not set, skip the CONTAINS line entirely.

    line 78
  5. Very specific:

    If query_tag is set, include the Tags CONTAINS line to filter by tag.

    line 79
  6. Very specific:

    Run with (note: output path is scripts/ado_bugs.json, NOT ado_bugs.json in the working dir):

    line 81
  7. Very specific:

    If a stale ado_bugs.json exists in the working dir root from older skill versions, delete it to avoid confusion.

    line 86
  8. Very specific:

    After scripts/generate_report.py runs, check if any bugs are still in the "Uncategorized" category.

    line 112
  9. Very specific:

    Read ado_bugs.json to find bugs that have no [xxx] title prefix and didn't match any keyword category

    line 114
  10. Very specific:

    Comment discrepancy detection: If ado_comments_analysis.json is present, bugs with discrepancies show an orange warning icon.

    line 126
  11. Very specific:

    If extra_tag is configured, bugs with that tag are also added to the extra_tag_category

    line 131
  12. Very specific:

    If the user asks to change the report format, edit scripts/generate_report.py directly.

    line 142

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

ADO Bug Report Skill

Generate and refresh an HTML bug report dashboard from Azure DevOps work items. Configuration is driven by config.json co-located with the script in the working directory.

Configuration

Look for config.json in the current working directory. It contains:

{
  "ado_org": "https://dev.azure.com/<org>",
  "ado_project": "<project>",
  "area_path": "<area\\path>",
  "product_name": "<display name>",
  "title_contains": "<title filter>",
  "query_tag": "",
  "excluded_states": ["Closed", "Resolved"],
  "extra_tag": "",
  "extra_tag_category": "",
  "category_keywords": {},
  "ado_pat_env": "ADO_PAT"
}
  • title_contains (optional): If empty or missing, the CONTAINS clause is omitted from the WIQL query — all bugs under the area path are returned.
  • query_tag (optional): If set, adds AND [System.Tags] CONTAINS '<query_tag>' to the WIQL query to filter bugs by tag.
  • category_keywords (optional): Override/extend the built-in keyword→category mapping used for auto-suggesting categories on uncategorized bugs. Keys are category names, values are lists of keywords.
  • ado_pat_env (optional): Name of the environment variable holding an ADO Personal Access Token. Defaults to "ADO_PAT". Used by scripts/fetch_comments.py.

If config.json is not found, use AskUserQuestion to gather:

  • ADO org URL (e.g. https://dev.azure.com/myorg)
  • ADO project name
  • Area path
  • Product/display name
  • Title filter text (for CONTAINS clause)

Then create config.json from the answers before proceeding.

Project Layout

config.json lives in the working directory. All data files (ado_bugs.json, ado_comments_analysis.json, bug_report.html) live in the scripts/ subdirectory — that is where generate_report.py reads from and writes to. Always write the ADO query output into scripts/ado_bugs.json, never into the working directory root, or the report will silently use stale data.

  • config.json — Configuration: ADO org, project, area path, product name, extra tag, keywords, PAT env (working dir)
  • scripts/generate_report.py — Main script: reads config.json + scripts/ado_bugs.json (+ optional scripts/ado_comments_analysis.json) → writes scripts/bug_report.html
  • scripts/fetch_comments.py — Fetches ADO work item comments and detects priority/category discrepancies; reads/writes from scripts/
  • scripts/ado_bugs.json — Raw ADO query output (refreshed each run)
  • scripts/ado_comments_analysis.json — Comment discrepancy analysis (generated by scripts/fetch_comments.py)
  • scripts/bug_report.html — Generated HTML report

Refresh Steps

Read config.json first to get the values, then run these steps sequentially:

Step 1: Query ADO

Build the WIQL dynamically from config values. The template is:

SELECT [System.Id], [System.Title], [System.State], [Microsoft.VSTS.Common.Priority], [Microsoft.VSTS.Common.Severity], [System.AssignedTo], [System.CreatedDate], [System.Tags]
FROM workitems
WHERE [System.WorkItemType] = 'Bug'
  AND [System.Title] CONTAINS '<title_contains>'   ← OMIT this line if title_contains is empty/missing
  AND [System.Tags] CONTAINS '<query_tag>'          ← OMIT this line if query_tag is empty/missing
  AND [System.State] <> '<excluded_state_1>'
  AND [System.State] <> '<excluded_state_2>'
  AND [System.AreaPath] UNDER '<area_path>'
ORDER BY [Microsoft.VSTS.Common.Priority] ASC

Conditional clauses:

  • If title_contains is empty or not set, skip the CONTAINS line entirely.
  • If query_tag is set, include the Tags CONTAINS line to filter by tag.

Run with (note: output path is scripts/ado_bugs.json, NOT ado_bugs.json in the working dir):

az boards query --wiql "<WIQL>" --org <ado_org> --project <ado_project> --output json > scripts/ado_bugs.json

If a stale ado_bugs.json exists in the working dir root from older skill versions, delete it to avoid confusion.

Step 1.5: Fetch comments and detect discrepancies (optional)

Requires ADO authentication — either set the $ADO_PAT env var (or whichever env var ado_pat_env specifies), or ensure az login is active.

python scripts/fetch_comments.py

This fetches comments for all bugs in ado_bugs.json and produces ado_comments_analysis.json. If this step fails (e.g. no auth), the report still works — discrepancy data is optional.

Step 2: Generate HTML

python scripts/generate_report.py

Step 3: Open report

start "" scripts/bug_report.html

Step 4: LLM category suggestions (if uncategorized bugs remain)

After scripts/generate_report.py runs, check if any bugs are still in the "Uncategorized" category. If so:

  1. Read ado_bugs.json to find bugs that have no [xxx] title prefix and didn't match any keyword category
  2. Analyze each bug's title and tags
  3. Suggest a category for each uncategorized bug
  4. Print the suggestions for the user (advisory only — do NOT auto-modify ADO)

Report Features

  • Summary tiles: Total bugs, Categories, P0+P1 count, Active count, Extra tag count, Comment Discrepancies count
  • Bar charts: Bugs by Category, State, Priority
  • Collapsible category sections with bug tables (ID link, title, state, priority, extra tag icon, discrepancy warning, assignee, created date)
  • Expand All / Collapse All controls
  • Keyword-suggested categories: Bugs without [xxx] prefixes get auto-categorized by keyword matching. These show with a "(suggested)" label in the report.
  • Comment discrepancy detection: If ado_comments_analysis.json is present, bugs with discrepancies show an orange warning icon. Hovering reveals details (who suggested what vs. current value).

Categorization Logic

  1. Categories are extracted from [xxx] prefixes in bug titles (excluding [<title_contains>])
  2. If extra_tag is configured, bugs with that tag are also added to the extra_tag_category
  3. Bugs without any [xxx] prefix are scored against keyword categories. If a match is found (score >= 1), the bug is placed in that category with a "(suggested)" label.
  4. Bugs with no prefix and no keyword match go to Uncategorized
  5. Within each category, bugs are sorted by created date descending (newest first)

After Refresh

Report the total bug count, category count, suggested categorization count, and discrepancy count to the user.

Modifying the Report

If the user asks to change the report format, edit scripts/generate_report.py directly. The script reads config.json and ado_bugs.json, then produces bug_report.html. After editing, re-run steps 2 and 3.

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.