.agents/skills/summarise-ecosystem-results/SKILL.md
Use this skill when asked to summarise ecosystem results for a Ruff PR with the ty label.
Accept any of these inputs:
https://github.com/astral-sh/ruff/pull/25342#issuecomment-4525002693.Determine the PR number first. If the user gave only a PR number, open https://github.com/astral-sh/ruff/pull/<number>.
Find the ty ecosystem-results comment on the PR. Search PR comments for terms such as "ecosystem", "full report", "HTML report", and "detailed report". From that comment, open the linked full detailed HTML report.
Use the PR comment as the change list and the full detailed HTML report as the source of detailed evidence. When the report includes exact project revisions, use those revisions rather than current upstream checkouts.
Before minimizing, load and apply the minimizing-ty-ecosystem-changes skill to each ecosystem change.
If possible, use subagents to parallelize this work. Decide how to batch changes so the overall task finishes as quickly as possible while still allowing each subagent to work methodically. Reasonable batching strategies include grouping related changes by project, diagnostic code, suspected cause, or report section, while keeping large groups split enough to avoid one slow subagent blocking the whole task.
If subagents are not available, batch the minimization work manually and minimize the batches sequentially. Keep batches small enough that each pass can still be checked carefully.
Give each subagent a self-contained assignment:
minimizing-ty-ecosystem-changes process rigorously.Each subagent should proceed methodically through all assigned changes. If a subagent moves on to a new change and that change appears very similar to one it has already minimized, it may skip the new change, but it must record why the skipped change appears to demonstrate the same behavior.
After all subagents finish, collect their minimizations into one Markdown file at the repository root:
PR_<number>_ECOSYSTEM_SUMMARY.md
Remove minimizations that appear to demonstrate the same behavior change. Prefer the smallest and clearest minimized reproducer, especially one that is single-file and has fewer imports.
At the top of the file, add prose summarising the distinct behavior changes demonstrated by the retained minimizations. Then include the retained minimizations with enough detail for a reader to understand and reproduce them.
For each retained minimization, include:
main versus the PR.Present PR_<number>_ECOSYSTEM_SUMMARY.md as the finished product.