Bug Scrub Workflow

Automate end-to-end triage of torch-xpu-ops issues into reports and action items.

1|3|Updated Feb 28, 2025
One-click install
npx skills add https://github.com/daisyden/ai_for_validation --skill bug-scrub-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Bug Scrub Workflow
Source: https://github.com/daisyden/ai_for_validation/tree/main/opencode/issue_triage/.claude/skills/bug_scrub
Command: npx skills add https://github.com/daisyden/ai_for_validation --skill bug-scrub-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires PyGithub, pyyaml, pandas, openpyxl.

What problem does it solve?

Bug Scrub Workflow provides a structured, end-to-end process to triage and resolve issues in the torch-xpu-ops project, turning raw issue data into an actionable root-cause report and a prioritized AR set.

Core Features & Use Cases

  • Phase-based pipeline: Prepare Data, Analyze CI Results, Analyze Issues, Collect AR, and Generate Reports, all integrated in a single workbook.
  • Automated AR synthesis and owner assignment, with live PR-state checks and case existence validation.
  • Continuous deliverables: updated result/torch_xpu_ops_issues.xlsx, bug_scrub.md, and optional bug_scrub.html, with a separate 5b HTML report for UX.

Quick Start

Run the Bug Scrub workflow end-to-end on your Issues workbook to produce ARs and a narrative bug scrub report.

Frequently Asked Questions about Bug Scrub Workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate bug triage for torch-xpu-ops issues?

Automated bug triage for torch-xpu-ops uses a structured workflow to extract issues, analyze CI results, categorize them, and assemble actionable root-cause reports. It processes raw issue data through a phase-based pipeline to generate prioritized AR sets.

What is the best way to generate a bug scrub report from GitHub issues?

Generating a bug scrub report involves synthesizing GitHub issues and CI analysis into a shared Excel workbook. The workflow outputs an updated bug_scrub.md file and an optional HTML report, providing a narrative summary of the triage process.

Can I use Excel workbooks to track CI analysis and PR status for bug triage?

Excel workbooks can track CI analysis and PR status for bug triage by operating as a shared data store across multiple workflow phases. The process validates live PR states and case existences directly within the workbook.

Do I need PyGithub and pandas to run an automated bug scrub workflow?

PyGithub and pandas are required dependencies to run the automated bug scrub workflow, alongside pyyaml and openpyxl. These libraries facilitate issue extraction from GitHub repositories and structured data manipulation for report generation.

What are the limitations of using a phase-based pipeline for issue triage?

Phase-based issue triage pipelines are limited by their strict adherence to a canonical JSON schema and phase-specific governance rules. This ensures consistency and auditability across the five phases but requires strict compliance to maintain reproducibility.

How does the bug scrub workflow assign owners for action requests?

The bug scrub workflow assigns owners for action requests through automated AR synthesis. It validates case existence and performs live PR-state checks to ensure accurate owner assignment within the generated triage reports.