AGENT SKILL

migrate-issues

migrate GitHub issues from one repository to another

License 许可
MIT
所属仓库
microsoft/vscode
最近更新
2026-11-13
Stars
★ 20w
Forks
4.4w

01 前言 Front Matter

name
migrate-issues
description
migrate GitHub issues from one repository to another
disable-model-invocation
true

03 SKILL.md 正文

Issue Migration Prompt

Use this prompt when migrating issues from one GitHub repository to another (e.g., from microsoft/vscode-copilot to microsoft/vscode).

Input Methods

You can specify which issues to migrate using any of these three methods:

Option A: GitHub Search Query URL

Provide a full GitHub issues search URL. All matching issues will be migrated.

https://github.com/microsoft/vscode-copilot/issues?q=is%3Aissue+is%3Aopen+assignee%3Ayoyokrazy

Option B: GitHub Search Query Parameters

Provide search query syntax for a specific repo. All matching issues will be migrated.

repo:microsoft/vscode-copilot is:issue is:open assignee:yoyokrazy

Common query filters:

  • is:issue / is:pr - Filter by type
  • is:open / is:closed - Filter by state
  • assignee:USERNAME - Filter by assignee
  • author:USERNAME - Filter by author
  • label:LABEL - Filter by label
  • milestone:MILESTONE - Filter by milestone

Option C: Specific Issue URL

Provide a direct link to a single issue. Only this issue will be migrated.

https://github.com/microsoft/vscode-copilot/issues/12345

Task

Target Repository: {TARGET_REPO}

Based on the input provided, migrate the issue(s) to the target repository following all requirements below.

Requirements

1. Issue Body Format

Create the new issue with this header format:

_Transferred from {SOURCE_REPO}#{ORIGINAL_ISSUE_NUMBER}_
_Original author: `@{ORIGINAL_AUTHOR}`_

---

{ORIGINAL_ISSUE_BODY}

2. Comment Migration

For each comment on the original issue, add a comment to the new issue:

_`@{COMMENT_AUTHOR}` commented:_

---

{COMMENT_BODY}

3. CRITICAL: Preventing GitHub Pings

ALL @username mentions MUST be wrapped in backticks to prevent GitHub from sending notifications.

✅ Correct: `@username` ❌ Wrong: @username

This applies to:

  • The "Original author" line in the issue body
  • Any @mentions within the issue body content
  • The comment author attribution line
  • Any @mentions within comment content
  • Any quoted content that contains @mentions

4. CRITICAL: Issue/PR Link Reformatting

Issue references like #12345 are REPO-SPECIFIC. If you copy #12345 from the source repo to the target repo, it will incorrectly link to issue 12345 in the target repo instead of the source.

Convert ALL #NUMBER references to full URLs:

✅ Correct: https://github.com/microsoft/vscode-copilot/issues/12345 ✅ Also OK: microsoft/vscode-copilot#12345 ❌ Wrong: #12345 (will link to wrong repo)

This applies to:

  • Issue references in the body (#12345 → full URL)
  • PR references in the body (#12345 → full URL)
  • References in comments
  • References in quoted content
  • References in image alt text or links

Exception: References that are already full URLs should be left unchanged.

5. Metadata Preservation

  • Copy all applicable labels to the new issue
  • Assign the new issue to the same assignees (if they exist in target repo)
  • Preserve the issue title exactly

5. Post-Migration

After creating the new issue and all comments:

  • Add a comment to the original issue linking to the new issue:
    Migrated to {TARGET_REPO}#{NEW_ISSUE_NUMBER}
    
  • Close the original issue as not_planned

Example Transformation

Original Issue Body (in microsoft/vscode-copilot):

I noticed @johndoe had a similar issue in #9999. cc @janedoe for visibility.

Related to #8888 and microsoft/vscode#12345.

Steps to reproduce:

1. Open VS Code
2. ...

Migrated Issue Body (in microsoft/vscode):

_Transferred from microsoft/vscode-copilot#12345_
_Original author: `@originalauthor`_

---

I noticed `@johndoe` had a similar issue in https://github.com/microsoft/vscode-copilot/issues/9999. cc `@janedoe` for visibility.

Related to https://github.com/microsoft/vscode-copilot/issues/8888 and microsoft/vscode#12345.

Steps to reproduce:

1. Open VS Code
2. ...

Note: The microsoft/vscode#12345 reference was already a cross-repo link, so it stays unchanged.

Checklist Before Migration

  • [ ] Confirm input method (query URL, query params, or specific issue URL)
  • [ ] Confirm target repository
  • [ ] If using query: verify the query returns the expected issues
  • [ ] Verify all @mentions are wrapped in backticks
  • [ ] Verify all #NUMBER references are converted to full URLs
  • [ ] Decide whether to close original issues after migration

04 同仓库更多 Skills

microsoft
microsoft/vscode

sweeper-query

Answer natural-language questions about the VS Code Sweeper's published issue index (index-<name>.json for microsoft/vscode and the enrolled family repos) — which issues are agent-ready to implement or plan, what the sweeper proposed for an assignee or area, whether the sweeper knows a report as a duplicate, the highest-value open bugs in a lane — and, for one issue, the review's full record (evidence with file citations, fix brief, proposed comment). Use ONLY when the request explicitly names the sweeper — "sweeper", "vscodesweeper", "sweeper-query", a sweeper verdict, record, brief or index, an agent-ready issue — or asks what "the sweeper" found, proposed or knows. Do NOT use for general questions about issues, duplicates, priorities or ranking that do not mention the sweeper. Read-only; discovery only.

★ 20w
microsoft
microsoft/vscode

update-skills

Create or update repository skills and instructions when major learnings are discovered during a session. Use when the user says "learn!", when a significant pattern or pitfall is identified, or when reusable domain knowledge should be captured for future sessions.

★ 20w
microsoft
microsoft/vscode

update-pr

Update the pull request for the current session. Use when the user wants to push new changes to an existing PR.

★ 20w
microsoft
microsoft/vscode

sync

Sync the current session branch with its upstream branch, or publish the current session branch to a remote. Use when the user asks to sync a branch, pull latest changes, rebase onto upstream, push current branch, publish branch, or set upstream.

★ 20w
microsoft
microsoft/vscode

sync-upstream

Update a stale session branch by rebasing onto the latest origin. Use when the upstream has moved significantly and the session needs to catch up, resolving conflicts by preserving upstream changes and adapting session work to fit.

★ 20w
microsoft
microsoft/vscode

merge

Merge changes from the topic branch to the merge base branch. Use when the user wants to merge their session's work back to the base branch.

★ 20w