Add a cherry-pick skill for copilot#8586
Conversation
Document the convention for cherry-pick PRs: cherry-pick commits (not PRs) using git cherry-pick -x, prefix PR titles with [Cherry-Pick], and make the PR description match the cherry-picked commit message verbatim so the squash-merge commit message is correct. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
This seems like a lot of text to add to every single prompt. I think this might be something we'd want to do as a skill. But really I think we don't need much more than "Use |
Per review feedback, trim the cherry-pick guidance to the essentials: use git cherry-pick -x and keep git's default commit message, dropping the topic-branch and verbatim-description boilerplate that added too much text to every prompt. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Per review feedback, move the cherry-pick convention out of .github/copilot-instructions.md (which is injected into every prompt) and into an on-demand skill at .github/skills/cherry-pick/SKILL.md. The skill is auto-discovered from the repo and only loaded when relevant, keeping it out of unrelated prompts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Swapped to a skill. Confirmed locally that it loads automatically on copilot startup |
Drop the topic-branch and squash-merge boilerplate from the skill body since the agent already knows those steps; keep only the non-obvious conventions (git cherry-pick -x, keep git's default message, [Cherry-Pick] title prefix). The descriptive frontmatter is retained so the skill still triggers reliably. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds a cherry-pick skill at
.github/skills/cherry-pick/SKILL.md.Rather than putting the convention in
.github/copilot-instructions.md(which is injected into every prompt), a skill is auto-discovered from the repo and only loaded on demand when a cherry-pick is actually being done. The skill captures:git cherry-pick -xso the source SHA is recorded in git's standard format.[Cherry-Pick].Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com