flutter-triage
2
总安装量
1
周安装量
#69017
全站排名
安装命令
npx skills add https://github.com/justinmc/flutter-skills --skill flutter-triage
Agent 安装分布
amp
1
opencode
1
cursor
1
kimi-cli
1
codex
1
github-copilot
1
Skill 文档
Flutter Triage
This skill guides the agent in locating relevant PRs and issues for a specified team in Flutter and outputting them in a nicely formatted markdown file.
Workflow
1. Ask for Team Name
Start by asking the user which team they would like to triage for (e.g., “Framework”, “Engine”, “Design Languages”).
2. Fetch and Parse the Triage README
Once the user provides a team name:
- Load the triage README from the main Flutter repository, located at:
https://raw.githubusercontent.com/flutter/flutter/master/docs/triage/README.md. - Use the
scripts/parse_triage_readme.pyscript with the provided team name to find the team’s section and extract the URLs for their triage lists. - If no lists are found, inform the user. Otherwise, proceed to the next step.
3. Generate and output lists of PRs and issues via GitHub API
For each list name and URL extracted in the previous step:
- Convert to API URL: Transform the web URL into a GitHub API URL.
https://github.com/becomeshttps://api.github.com/repos/.- The query parameters (
?q=...) from the web URL should be used with thesearch/issuesendpoint of the GitHub API. - Example:
https://github.com/flutter/flutter/issues?q=...becomeshttps://api.github.com/search/issues?q=repo:flutter/flutter...
- Fetch Data: Use
curlwith theAccept: application/vnd.github.v3+jsonheader to fetch the JSON data. Handle pagination by following theLinkheader withrel="next"until all pages are fetched. - Combine and Parse:
- Use the
scripts/combine_json.pyscript to combine theitemsfrom all pages into a single JSON file. - Use the
scripts/parse_api_response.pyscript to parse the combined JSON file. This script will also format the output and append it to a specified output file. The script usage ispython parse_api_response.py <input_json_file> <output_section_title> <output_file_path>. The output file path should beflutter-triage/output/<team_name>.md, where<team_name>is the lowercase version of the team name provided by the user.
- Use the
- Section Heading: The
parse_api_response.pyscript takes the section title as an argument. Use the name of the list from the README as the title for each section.
Generating Urgency and Summary:
- Urgency: Assign “High” if the issue/PR has a “P0” label. Otherwise, assign “Medium”.
- Summary: Use the title of the issue/PR as the summary.
The final output should be a single markdown file in the flutter-triage/output/ directory, named after the team (e.g., framework.md). This file will contain a section for each triage list found in the README.