agentleFS
MicrosoftKnown publishermicrosoft/vscode/extensions/copilot/assets/prompts/skills/migrate-customizations/SKILL.md

migrate-customizations

Skill196k starsChanged 18 days agoMITView on GitHub

Guide a safe, reversible migration of VS Code agent customizations when launched from the Agent Customizations Migrations page with VS Code-generated migration context.

Trending

More talk lately.about the whole repository

Dec 2025: 2 mentionsJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 1 mentionApr 2026: 2 mentionsMay 2026: 4 mentionsJun 2026: 2 mentionsJul 2026: 2 mentionsAug 2026: 0 mentionsSep 2026: 3 mentionsOct 2026: 1 mentionNov 2026: 2 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/vscode repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/vscode

The biggest 5 of 96 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 96

Talked about on Bluesky, Hacker News and GitHub (96 times).

On Bluesky · 48

43 more on Bluesky

On Hacker News · 39

34 more on Hacker News

On GitHub · 9

4 more on GitHub

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 15 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before doing anything else, verify that the invoking prompt includes all of the following VS Code-generated values:

    line 15
  2. Distinctive:

    If any value is missing, do not inspect, copy, move, convert, or delete customizations.

    line 22
  3. Distinctive:

    Read migration techniques before proposing changes.

    line 24
  4. Very specific:

    Call report_customization_migration exactly once using the privacy-safe aggregate schema described in Finish.

    line 30
  5. Distinctive:

    Stop on an unexpected source change, destination conflict, invalid configuration, or failed validation.

    line 32
  6. Distinctive:

    Never include customization names, paths, contents, MCP configuration, or other user data in telemetry.

    line 33
  7. Very specific:

    When using ask_user, keep the question short and write it as a single sentence so it remains readable in the chat viewer.

    line 35
  8. Distinctive:

    Ask whether to migrate:

    line 41
  9. Distinctive:

    Do not act on an unselected scope.

    line 47
  10. Distinctive:

    If workspace customizations are selected, ask whether the user wants a pull request.

    line 49
  11. Distinctive:

    ask for confirmation to proceed with that group.

    line 69
  12. Distinctive:

    Keep user-scope items in user scope.

    line 82
  13. Distinctive:

    Follow migration techniques.

    line 102
  14. Distinctive:

    Use the published GitHub Copilot hooks reference for the destination format, and confirm against the harness itself where you can (see the …

    line 106
  15. Distinctive:

    Before rewriting a hook, check whether it already has its effect in the selected harness.

    line 107
  16. Very specific:

    Never rewrite hooks in .claude folders, plugin hooks, or administrator (policy) hooks.

    line 110
  17. Distinctive:

    Before running a hook or a test session, show the exact commands and ask.

    line 111
  18. Very specific:

    Before the final summary, call report_customization_migration with:

    line 118
  19. Very specific:

    If the user stops the workflow, set cancelled to true, record completed work with its actual outcome, mark the remaining inventory as …

    line 148
  20. Distinctive:

    Keep the recovery bundle until the user confirms the migrated customizations work.

    line 159

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Migrate Agent Customizations

Guide the user through migrating the inventory included in the invoking prompt. The source locations and valid target folders in that prompt were evaluated for the selected harness. Treat them as authoritative: do not substitute hardcoded destination paths or migrate to a folder that is not listed.

Required Migration Context

Before doing anything else, verify that the invoking prompt includes all of the following VS Code-generated values:

  • Selected harness
  • Migration telemetry flow
  • Customizations that need migration
  • Valid target folders reported by the selected harness

If any value is missing, do not inspect, copy, move, convert, or delete customizations. Explain that this workflow must be started from Agent Customizations > Migrations by selecting Migrate with Agent, then stop. Do not ask the user to manually reconstruct or paste the missing context.

Read migration techniques before proposing changes.

Safety Contract

  1. VS Code created and verified a private recovery bundle before starting this workflow. Do not search for, inspect, modify, move, or replace its manifest or backups.
  2. The recovery bundle restores original sources only. It does not remove or revert destination files created or changed during migration.
  3. Call report_customization_migration exactly once using the privacy-safe aggregate schema described in Finish. This internal tool is available only in the migration chat and does not require filesystem access.
  4. Approval to migrate a group authorizes destination writes only; it does not authorize deleting source files, removing source MCP entries, or clearing location settings. Preserve sources by default. After the destination is validated, ask separately for explicit approval for each kind of cleanup. If runtime validation is not possible, explain what was and was not verified, keep the source, and ask whether to defer cleanup. Exception: hooks are migrated in place. Approval for the hooks group authorizes editing the listed hook files and the scripts listed as backed up with them; the recovery bundle holds their originals. It does not authorize editing any other file in place. Do not create a second copy of a hook.
  5. Stop on an unexpected source change, destination conflict, invalid configuration, or failed validation. Explain the problem instead of guessing.
  6. Never include customization names, paths, contents, MCP configuration, or other user data in telemetry.
  7. Classify each inventory item exactly once using its supplied category and scope. Do not offer the same item again in another group; if groups overlap, explain the overlap and use the item's inventory category to decide where it is handled.
  8. When using ask_user, keep the question short and write it as a single sentence so it remains readable in the chat viewer.

Workflow

1. Choose Scope

Ask whether to migrate:

  • user customizations,
  • workspace customizations, or
  • both.

Do not act on an unselected scope.

If workspace customizations are selected, ask whether the user wants a pull request. If they do, keep workspace changes focused, include the validation evidence and migration rationale in the pull request, and do not include a recovery bundle stored outside the repository.

2. Review the Plan

Classify the supplied inventory by its reported category and scope, then handle applicable items in this order:

  1. prompt files that should become skills;
  2. VS Code profile user-data agents, instructions, and skills;
  3. MCP servers;
  4. workspace or user customizations at locations defined by settings chat.agentSkillsLocations, chat.instructionsFilesLocations, and chat.agentFilesLocations;
  5. hook files in the deprecated Local hook format.

The groups are mutually exclusive for an inventory item. In particular, a file reported under configuredLocations belongs in group 4, not group 2, even if its type is agent, instruction, or skill. If a previously skipped item would otherwise reappear in a later group, do not ask about it again unless the user requests reconsideration.

Before each group:

  • explain why the migration is useful;
  • list the source and harness-reported destination locations;
  • describe changes that cannot be preserved;
  • state explicitly that approval covers destination writes only and that source cleanup will require a separate approval;
  • ask for confirmation to proceed with that group.

Work one group at a time. Do not request approval for all writes at once.

3. Migrate Prompt Files to Skills

Explain the compatibility reason for converting each prompt to a skill. Convert each selected prompt into a skill directory with a SKILL.md, preserving supported name, description, argument guidance, invocation semantics, and body content. Add disable-model-invocation: true when needed to preserve an explicit-invocation-only prompt. Report unsupported frontmatter for review; do not silently drop behavior.

Validate that each skill has valid frontmatter, a meaningful description, and a folder name that matches the skill name. Distinguish structural validation from runtime validation: test discovery and representative invocation in the selected destination harness when possible. A file inspection or a test against a different harness is not proof that the destination harness loads the skill. If runtime validation requires a new session or is otherwise unavailable, say so, leave the source in place, and defer cleanup unless the user explicitly chooses otherwise after hearing the limitation.

4. Migrate User Data

Explain that Agent Host doesn't read the VS Code profile user data folder. It only reads the harness's user folders. Copy selected agents, instructions, and skills to a compatible listed destination without silently changing their contents. Keep user-scope items in user scope. Explain that approval to copy does not authorize deleting the VS Code source or changing sync/location settings; ask for those separately after validation.

5. Migrate MCP Servers

Explain that moving MCP configuration lets the selected Agent Host load the server directly. Review every server separately, including destination conflicts and properties the destination format cannot preserve. Call out that a disabled user server might become enabled after migration.

Write and statically validate the destination before considering source cleanup. Leave unselected, unsupported, and conflicting servers unchanged. Test that migrated servers are discovered and can start in the selected destination harness; spawning a command directly can verify process behavior, but does not by itself prove that the harness discovers or loads the configuration. If destination-harness testing is unavailable, report that limitation and keep source entries.

Approval for this group authorizes destination writes only. After successful destination validation, ask separately whether to remove each migrated or already-equivalent source entry. Do not remove a source entry merely because its destination entry was written or because the user approved the group.

6. Customizations at Custom Locations

Files in custom locations defined by chat.agentSkillsLocations, chat.instructionsFilesLocations, and chat.agentFilesLocations can continue to work when the selected harness is connected to VS Code. Moving them to a harness-reported standard location may improve portability or consistency, but is not automatically required for compatibility. Explain this trade-off before asking whether to migrate.

Handle only items reported as configuredLocations and not already handled in another group. Do not re-offer files the user explicitly skipped. Treat moving a file, deleting its old copy, and clearing or changing the location setting as separate actions; obtain explicit approval for each cleanup action after validating the destination.

7. Migrate Hooks

Handle only items reported as hooks. Each is a hook file in the deprecated Local hook format: it uses capitalised event names such as PreToolUse. Explain that these hooks can load in the selected harness but may not have their effect, because the harness sends hooks a different input and reads a different answer. A guard can silently stop blocking.

Follow migration techniques. In short:

  • Migrate each hook file together with every script it runs. Never change only the hook file: renaming an event changes the input its scripts receive. Hooks stay where they are; the target-folder list does not apply to them.
  • Edit in place only the hook file and the scripts listed as backed up with it. Any other file a hook runs or loads, such as a script outside the workspace or a helper a script loads, is not in the recovery bundle. Explain that recovery cannot restore it and ask how to proceed, for example by writing the migrated script as a new file and pointing the hook at it, leaving the original unchanged.
  • Use the published GitHub Copilot hooks reference for the destination format, and confirm against the harness itself where you can (see the techniques reference). Use "version": 1 and native camelCase event names, not the PascalCase aliases.
  • Before rewriting a hook, check whether it already has its effect in the selected harness. If it does, say so and offer a careful migration or none for now, instead of a full rewrite.
  • A hook that blocks or stops a submitted prompt has no exact equivalent you may assume. Explain the closest option the reference describes and how its behavior differs, and ask before applying it.
  • For any other behavior difference, state it and ask before applying the change.
  • Never rewrite hooks in .claude folders, plugin hooks, or administrator (policy) hooks; they are not in the inventory. If a hook file references them, explain who owns them.
  • Before running a hook or a test session, show the exact commands and ask. Running hooks runs the user's code.
  • Report which checks ran and which did not. If the harness could not be exercised, say the hook was not checked and keep the original backup.

The migrated hook stops working in the Local harness. This is expected; do not keep a second copy for Local.

8. Finish

Before the final summary, call report_customization_migration with:

{
  "version": 1,
  "migrationFlowId": "<flow from the invoking prompt>",
  "cancelled": false,
  "results": [
    {
      "category": "promptFiles",
      "scope": "workspace",
      "customizationType": "skill",
      "outcome": "migrated",
      "count": 1
    }
  ]
}

Aggregate results by:

  • category: promptFiles, userData, configuredLocations, mcpServers, or hooks;
  • scope: user or workspace;
  • customization type: agent, instructions, skill, mcpServer, or hook;
  • outcome: migrated, skipped, or failed.

The total reported for each category, scope, and customization type must not exceed the inventory supplied by VS Code. The tool input must never include names, paths, contents, configuration values, error messages, or other user data.

Do not print this payload in the chat response and do not write it to a file. If the tool call fails, explain the failure and retry once with a corrected payload. Do not claim that VS Code recorded the outcome unless the tool succeeds. Do not call the tool when no migration telemetry flow was supplied.

If the user stops the workflow, set cancelled to true, record completed work with its actual outcome, mark the remaining inventory as skipped, and still call the tool before the final cancellation summary.

Summarize:

  • migrated, skipped, and failed items;
  • created, modified, deleted, and retained files;
  • validation performed;
  • cleanup still pending;
  • recovery bundle, noting that VS Code can restore original sources but does not revert destination files;
  • pull request URL when one was requested.

Keep the recovery bundle until the user confirms the migrated customizations work.

For a requested pull request, verify the final diff contains only approved workspace changes, exclude the recovery bundle, and include the migration rationale and actual validation performed. Do not claim runtime validation when only static checks or direct process tests were possible.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.