ci: initial sync with canonical/copilot-collections
Metadata
Current evaluation
Merged PR #6196, adding generated Copilot instructions and skills from canonical/copilot-collections plus weekly CI that opens update PRs for new releases.
Resolution: closed resolved
Reason: PR #6196 was approved and merged into Snapcraft. It introduced the initial generated collection sync and a weekly release-check workflow.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Initial sync with [canonical/copilot-collections](https://github.com/canonical/copilot-collections).
Also adds a CI job from copilot-collections that runs once a week, checks for new releases, and creates a PR if there's been an update.
The `.github/skills/` and `.github/instructions/` are generated by copilot-collections. Feel free to read through them, but the contents shouldn't be modified here.
### Q & A
**Why Snapcraft?**
Snapcraft is a good proving ground because it gets a fair amount of activity and I review most PRs.
**Can I use these instructions locally?**
Yes. For Copilot CLI, they're loaded automatically for Snapcraft.
If you want them to work for other projects, then ensure your local copy of Snapcraft has these instructions and run `export COPILOT_CUSTOM_INSTRUCTIONS_DIRS=<path-to-snapcraft>`.
`/instructions` in copilot CLI will show you what's been loaded.
**Will we add this to all our repos?**
Likely, depending on how this trial goes.
**Does it improve the reviews?**
I think so, but you can judge that yourself. Here's the same doc change [with](https://github.com/canonical/snapcraft/pull/6194) and [without](https://github.com/canonical/snapcraft/pull/6195) the instructions.
Copilot reviews on GH are a bit annoying because they only leave so many comments per review, so you have to do many iterations. They aren't that deterministic either.
Here are a few comments that are based on the custom instructions
<img width="636" height="192" alt="image" src="https://github.com/user-attachments/assets/28c9ebec-bc94-45ff-acb6-c4d4ecd298f3" />
<img width="636" height="192" alt="image" src="https://github.com/user-attachments/assets/85f97765-e0f4-49f2-b749-885307e16c34" />
<img width="636" height="192" alt="image" src="https://github.com/user-attachments/assets/24560756-a530-4f05-bc5e-724709230a67" />
---
- [x] I've followed the [contribution guidelines](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md).
- [x] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/).
- [x] I've successfully run `make lint && make test`.
- [ ] I've added or updated any relevant documentation.
- [ ] In documents I changed, I [added a meta description](https://canonical-starflow.readthedocs-hosted.com/how-to/add-a-page-meta-description/) if one was missing.
- [ ] I've updated the relevant release notes.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #6196, adding generated Copilot instructions and skills from canonical/copilot-collections plus weekly CI that opens update PRs for new releases. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #6196, syncing generated Copilot instructions and skills from canonical/copilot-collections and adding weekly CI to open update PRs for new releases. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged initial sync with canonical/copilot-collections, adding generated GitHub instructions and skills. Introduces a weekly CI job to detect upstream releases and auto-create update PRs. Approved and merged. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged initial sync with canonical/copilot-collections. Adds a weekly CI job to update .github/skills/ and .github/instructions/ from tagged releases. Maintainer confirmed the workflow and agreed to skip full tests for .github changes. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2663 ci: initial sync with canonical/copilot-collections | charmcraft | merged | Merged as b7f3752d, adding .copilot-collections.yaml, 7 instruction + 6 skill files, a weekly sync workflow, and pre-commit/Prettier exclusions. Later bumped to v0.13.0 (#2683), v0.15.0 (#2807), v0.18.0 (#2815). | |
| #327 ci: initial sync with canonical/copilot-collections | imagecraft | merged | Merged PR #327 as commit 82bd946, adding an experimental 21-file Copilot collections sync based on canonical/snapcraft#6196. | |
| #381 build: Add copilot instructions and collections | craft-store | merged | Merged PR #381 as commit e65a086, adding Copilot instructions and collections while retaining older collection versions for updater updates. | |
| #6191 [experimental] ci: test copilot reviews | snapcraft | closed | Experimental Copilot-review test branch was closed unmerged; the production Copilot-collections sync shipped in merged PR #6196. | |
| #2796 ci: give copilot collections job the right perms | charmcraft | merged | Merged PR charmcraft#2796 (commit 9f3567e6), adding contents and pull-requests write permissions to the copilot collections update workflow, replicating canonical/snapcraft#6352. | |
| #1655 ci: add copilot-collections config | craft-parts | merged | Merged PR #1655 as d576ad00, updating Copilot Collections configuration and granting the update workflow the required permissions. | |
| #1208 chore: update Copilot collections to v0.20.0 | craft-application | closed | Automated Copilot collections bump to v0.20.0; PR approved, ShellCheck config updated to skip .github/skills, and merged. | |
| #1161 chore: update Copilot collections to v0.19.0 | craft-application | merged | Merged PR canonical/craft-application#1161 bumping Copilot collections to v0.19.0; merged as commit 9a80904e after approval with all CI checks green. |