Add a skills for adding changelog entries and updating package versions#9781
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces two new AI skill definitions for managing changelog entries and package versions within the DevTools repository. The review identified that both new Markdown files are missing the required copyright headers. Additionally, there are concerns regarding the consistency of changelog header levels and version suffixes compared to existing packages, as well as a need for a rule to prevent published packages from depending on unpublished ones.
|
|
||
| When adding changelog entries to published packages (`devtools_shared`, `devtools_app_shared`, and `devtools_extensions`), follow these rules: | ||
|
|
||
| - **Check Publication State**: Never add an entry to an already published version (e.g. `# 12.1.0`). You MUST check which versions are published on pub.dev (e.g., at `https://pub.dev/packages/<package_name>/versions`) before determining section headers! If a version is not yet published, it should be suffixed with the next numeric `-wip` tag (e.g., `## 0.5.1-wip`) or follow the existing convention in the file, such as `(not released)`. You should also match the existing header level (H1 or H2) used for versions in that file. Avoid generic placeholder headers like `# WIP`! |
There was a problem hiding this comment.
Should we direct the agent to https://pub.dev/api/packages/<package> instead? Not sure if this is better or worse honestly. cc @jonasfj is there a way to filter that response to only the latest version?
There was a problem hiding this comment.
Will address as a follow up pending @jonasfj's response.
Co-authored-by: Jacob MacDonald <jakemac@google.com>
Co-authored-by: Jacob MacDonald <jakemac@google.com>
…ns (flutter#9781) * Add a skill for adding changelog entries to DevTools packages * Add skill for updating package versions that is used from the changelog skill * add exception for copyright requirement * address comments * Update .agents/skills/adding-changelog-entries/SKILL.md Co-authored-by: Jacob MacDonald <jakemac@google.com> * Update .agents/skills/adding-changelog-entries/SKILL.md Co-authored-by: Jacob MacDonald <jakemac@google.com> * whitespace --------- Co-authored-by: Jacob MacDonald <jakemac@google.com>
Adds skills to update package version numbers and add Changelog entries for published devtools packages: devtools_shared, devtools_app_shared, devtools_extensions.
Tests: not required for skills content. Skills validated through dart_skills_lint
Fixes #9778, #9780
Pre-launch Checklist
General checklist
///).Issues checklist
contributions-welcomeorgood-first-issuelabel.contributions-welcomeorgood-first-issuelabel. I understand this means my PR might take longer to be reviewed.Tests checklist
AI-tooling checklist
Feature-change checklist
release-notes-not-requiredlabel or left a comment requesting the label be added.packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md.If you need help, consider asking for help on Discord.