Commit 81accb1
authored
feat: add custom github-issue-triage skill with local dashboard (a2ui-project#1758)
## Summary
This change introduces a custom `a2ui-issue-triage` developer skill to automate the triage of GitHub issues in the A2UI repository. It provides a complete workflow and local web-based dashboard for oncall engineers to review, refine, and bulk-apply AI-suggested priorities, labels, assignees, and responses. Additionally, it integrates all developer skills unit tests into the GitHub Actions CI pipeline.
## Changes
* **Custom `a2ui-issue-triage` Developer Skill (`.agents/skills/a2ui-issue-triage/`)**:
* `SKILL.md`: Outlines the 4-step triage workflow (fetch, analyze/suggest, dashboard, apply).
* `references/triage_criteria.md`: Defines authorative classification rules for priorities (`P0`-`P3`), components, and response templates.
* `scripts/fetch_issues.py`: Retrieves open repository issues lacking priority labels via the GitHub CLI.
* `scripts/suggest_triage.py`: Generates initial triage recommendations (priority, component labels, suggested assignee, draft response) using heuristics.
* `scripts/launch_dashboard.py` & `assets/triage_dashboard.html`: Implements a local HTTP server and rich web dashboard to allow interactive review and refinement of suggestions.
* `scripts/apply_triage.py`: Bulk-applies approved triage decisions (labels, assignments, comments, closing status) to GitHub.
* **Test Coverage**:
* Added unit tests next to their respective scripts: `test_apply_triage.py`, `test_fetch_issues.py`, `test_launch_dashboard.py`, and `test_suggest_triage.py`.
* **Dynamic Skills Test Runner**:
* `scripts/run_skills_tests.py`: Automatically discovers and executes unit tests for all developer skills under `.agents/skills/` in clean, isolated subprocesses.
* **CI/CD Integration (`.github/workflows/python_ci.yml`)**:
* Added a new `skills` job running the dynamic test runner.
* Configured workflow path triggers to run the job on any changes to `.agents/skills/**` or `scripts/run_skills_tests.py`.
* **Custom `natural-writing` Skill (`.agents/skills/natural-writing/`)**:
* `SKILL.md`: Formulates guidelines and rules for writing natural, clear, and factual descriptions.
## Impact & Risks
* **No Production Code Impact**: These changes are purely developer-facing tools and repository CI automation. They do not affect the compiled production code of the A2UI library or its SDKs.
* **GitHub CLI Dependency**: The fetch and apply scripts rely on a working local installation of the GitHub CLI (`gh`) authenticated with repository write access.
## Testing
* **Unit Tests**:
* Created 31 unit tests covering all scripts, achieving high code coverage.
* All tests pass locally and are integrated to run automatically in CI.
* To run the tests locally, run: `python3 scripts/run_skills_tests.py` from the repository root.1 parent 3115be0 commit 81accb1
16 files changed
Lines changed: 3894 additions & 1 deletion
File tree
- .agents/skills
- a2ui-issue-triage
- assets
- references
- scripts
- natural-writing
- .github/workflows
- samples/client/lit
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
0 commit comments