|
| 1 | +--- |
| 2 | +name: summarise-ecosystem-results |
| 3 | +description: Use when asked to summarise or summarize ty ecosystem results for a Ruff PR, including from a PR number, PR URL, GitHub ecosystem-results comment, or full detailed HTML report. |
| 4 | +--- |
| 5 | + |
| 6 | +# Summarise Ecosystem Results |
| 7 | + |
| 8 | +Use this skill when asked to summarise ecosystem results for a Ruff PR with the `ty` label. |
| 9 | + |
| 10 | +## Find the Report |
| 11 | + |
| 12 | +Accept any of these inputs: |
| 13 | + |
| 14 | +- A PR number. |
| 15 | +- A GitHub PR URL. |
| 16 | +- A GitHub comment URL on a PR, such as `https://github.com/astral-sh/ruff/pull/25342#issuecomment-4525002693`. |
| 17 | +- A full detailed HTML ecosystem report URL. |
| 18 | + |
| 19 | +Determine the PR number first. If the user gave only a PR number, open `https://github.com/astral-sh/ruff/pull/<number>`. |
| 20 | + |
| 21 | +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. |
| 22 | + |
| 23 | +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. |
| 24 | + |
| 25 | +## Minimize in Parallel |
| 26 | + |
| 27 | +Before minimizing, load and apply the `minimizing-ty-ecosystem-changes` skill to each ecosystem change. |
| 28 | + |
| 29 | +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. |
| 30 | + |
| 31 | +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. |
| 32 | + |
| 33 | +Give each subagent a self-contained assignment: |
| 34 | + |
| 35 | +- The PR number, PR URL, ecosystem comment URL, and detailed HTML report URL. |
| 36 | +- The exact ecosystem changes assigned to that subagent. |
| 37 | +- The requirement to use the `minimizing-ty-ecosystem-changes` process rigorously. |
| 38 | +- The expected Markdown output format for each minimized change. |
| 39 | + |
| 40 | +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. |
| 41 | + |
| 42 | +## Collect Results |
| 43 | + |
| 44 | +After all subagents finish, collect their minimizations into one Markdown file at the repository root: |
| 45 | + |
| 46 | +```text |
| 47 | +PR_<number>_ECOSYSTEM_SUMMARY.md |
| 48 | +``` |
| 49 | + |
| 50 | +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. |
| 51 | + |
| 52 | +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. |
| 53 | + |
| 54 | +For each retained minimization, include: |
| 55 | + |
| 56 | +- The original project and report entry. |
| 57 | +- The diagnostic or behavior change on `main` versus the PR. |
| 58 | +- The minimized code. |
| 59 | +- The commands or comparison method used to verify the minimization. |
| 60 | +- Any source links needed to trace the example back to the PR comment or full report. |
| 61 | + |
| 62 | +Present `PR_<number>_ECOSYSTEM_SUMMARY.md` as the finished product. |
0 commit comments