Launch offer: use code LAUNCH20 for 20% off any single pack. See all kits

Convert Copilot Prompt Files (.prompt.md) to Skills Before Feb 2027

Published 2026-11-26 · 7 min read · by AgentKit Co

If your team keeps reusable Copilot prompts in .github/prompts/*.prompt.md, they are on a clock. VS Code's new Copilot harness (the default for new agent sessions) doesn't load prompt files at all. Only the older Local harness runs them, and VS Code's docs say it is deprecated and will be removed in February 2027. The fix is to turn each prompt file into an Agent Skill (.github/skills/<name>/SKILL.md). Skills still show up as /name slash commands.

We checked this on 2026-11-26 against VS Code's prompt files docs, migration guide, Agent Skills docs and the Copilot harness announcement (November 18, 2026). This is changing fast, so re-check the docs before a big migration.

Download free-copilot-prompt2skill.zip (MIT: prompt2skill.py converts a whole prompts folder, fixes relative links, lists the settings a skill can't keep and never overwrites a file; plus two example prompts and a 49-test test.sh)

python3 prompt2skill.py            # preview .github/prompts -> .github/skills
python3 prompt2skill.py --write    # write the skills

Why your prompt files stop working

Prompt file Skill
File .github/prompts/x.prompt.md .github/skills/x/SKILL.md
Runs in Local harness only (deprecated) Copilot harness, Local, Copilot CLI and other skills-compatible agents
Started by typing /x typing /x, or the agent picks it (unless you turn that off)
Can set agent, model, tools yes no
Extra files no scripts and examples in the skill folder

The docs put it plainly: Copilot harness sessions "do not load *.prompt.md files". Writing a new .prompt.md while in a Copilot session doesn't help either; it still won't run there. GitHub's own awesome-copilot collection already made the switch in February 2026, converting 142 prompts to skills (PR #761).

Option 1: VS Code's built-in migration

  1. In the Chat view, pick Copilot as the session target.
  2. Run Chat: Open Customizations from the Command Palette and select Migrations.
  3. Expand Convert Prompt to Skills for the workspace or your profile, tick the prompts and select Migrate.

What it keeps: the prompt's name, description, argument guidance (argument-hint) and body. It adds disable-model-invocation: true so the skill still runs only when you type the command. What it drops: agent, model and tools. VS Code lists those after migrating. If a prompt depended on them, the docs point you to Migrate with Agent (uses Copilot credits) or a custom agent.

The docs mark this migration as experimental. Commit first: in VS Code's July test plan for this feature, the migration removed the original prompt files after converting them (vscode#325431).

Option 2: the free script (no VS Code needed)

The built-in route is fine for a few files. The script is for when you want a reviewable diff, a CI-friendly dry run, or a repo you don't open in VS Code. It does the same mapping, plus the things that tend to break quietly:

  • Names. Skill names allow only lowercase letters, numbers and hyphens, up to 64 characters, and the folder must match. The docs warn that invalid names make a skill silently fail to load. New React form.prompt.md becomes new-react-form, and the script tells you the slash command changed.
  • Relative links. A link like [conventions](../instructions/api.instructions.md) worked from .github/prompts/. A skill sits one folder deeper, and the docs say skill paths are relative to SKILL.md, so the same link now points at nothing. The script rewrites Markdown links and #file: paths and reports any target that doesn't exist.
  • Dropped settings. It lists every agent, mode, model and tools value it can't carry over.
  • Prompt variables. ${input:formName}, ${selection} and ${file} are prompt-file syntax. The skills docs don't describe them, so the script flags each one for you to rewrite as a plain instruction ("use the text the user typed after the command"). It also flags #tool: references to check.
  • Safety. Dry run by default, never overwrites an existing SKILL.md, and stops if two prompts would become the same skill.

Example run on the two sample prompts in the zip:

PLAN  New React form.prompt.md -> .github/skills/new-react-form/SKILL.md
      ! name 'New React form' -> 'new-react-form' (skills allow only a-z, 0-9 and -), so /New React form becomes /new-react-form
      ! dropped model: GPT-5 (SKILL.md has no such field; ...)
      ! uses ${input:formName:LoginForm}: a VS Code prompt variable the skill docs don't describe; ...
      ! references #tool:codebase: check that tool exists in the Copilot harness
PLAN  review-api-security.prompt.md -> .github/skills/review-api-security/SKILL.md
      ! dropped agent: agent (SKILL.md has no such field; ...)
      ! dropped tools: ['search', 'codebase'] (SKILL.md has no such field; ...)
      ~ path ../instructions/api.instructions.md -> ../../instructions/api.instructions.md
      ~ path ../../docs/security-checklist.md -> ../../../docs/security-checklist.md

2 converted (dry run, add --write), 0 skipped, 0 errors

Other destinations: --dest .agents/skills (the Codex location, which VS Code's Copilot harness also accepts for workspace skills per the migration guide) or --dest ~/.copilot/skills for personal prompts. We tested the script on sample files on 2026-11-26. We did not run the output inside every VS Code build, so try a couple of converted skills before converting everything.

Before and after

---
name: review-api-security
agent: agent
description: Review a REST API implementation for common security risks
argument-hint: [API folder or file]
tools: ['search', 'codebase']
---
Review the REST API implementation identified by the user. ...
Follow [our API conventions](../instructions/api.instructions.md).

becomes .github/skills/review-api-security/SKILL.md:

---
name: review-api-security
description: Review a REST API implementation for common security risks
argument-hint: "[API folder or file]"
disable-model-invocation: true
---

Review the REST API implementation identified by the user. ...
Follow [our API conventions](../../instructions/api.instructions.md).

What to do with agent, model and tools

A skill can't pin a model or limit tools. If a prompt relied on that (say, a read-only review that must not edit files), put those settings in a custom agent in .github/agents/ and have the skill's instructions hand the work to that agent, or use Migrate with Agent. Don't just delete the tools line and hope: the migration FAQ says removing a whole tool restriction "is not an equivalent migration."

Should you let Copilot pick the skill on its own?

Converted skills keep disable-model-invocation: true, so they behave like the old prompts: they run only when someone types /name. Removing that line lets the agent load the skill whenever a request matches its description. That's handy for things like "run the tests", but for a shared repo, rewrite the description first so it says exactly when to use the skill, and agree on it with the team. A vague description means the skill loads when you don't want it.

A migration checklist

  1. Commit, so you can undo with git.
  2. Run python3 prompt2skill.py and read every ! line.
  3. Rename any prompt whose new name you don't like (add name:), then run with --write.
  4. Rewrite flagged ${...} variables as instructions and move needed agent/model/tools into a custom agent.
  5. In a new Copilot session, type / and check each skill appears, then run it on a small task and compare with the old prompt.
  6. Delete the .prompt.md files so you don't keep two copies.

FAQ

Are Copilot prompt files deprecated? Their runtime is. VS Code says prompt files run only in the Local harness, which is deprecated and will be removed in February 2027, and that new reusable workflows should be skills.

Do skills still work as slash commands? Yes. Type / and the skill's name. You can add context after it, like /review-api-security src/api.

Do I need to change copilot-instructions.md too? No. Instructions files are separate from prompt files. See copilot-instructions.md examples.

Will the skills work in other agents? Skills are an open standard, and VS Code's docs list Copilot CLI and the GitHub Copilot app as readers. Claude Code reads .claude/skills/ and Codex reads .agents/skills/, so use --dest for those. More in Agent Skills (SKILL.md) explained.

Your other Copilot files

Skills replace prompt files, but your always-on rules still live in .github/copilot-instructions.md and AGENTS.md. The free AGENTS.md generator builds both. The AI Coding Agent Config Kit adds AGENTS.md templates for 12 stacks, Copilot instruction files and prompts that audit them. We also publish 13 free skills you can copy. More: copilot-setup-steps.yml examples for the cloud agent's environment, copilot-instructions not working? and migrating Gemini CLI commands to skills.

AgentKit Co is not affiliated with GitHub or Microsoft.

AI Coding Agent Config Kit · $14 · 30-day refund

Copilot instructions and AGENTS.md for your stack

AGENTS.md templates for 12 stacks, a CLAUDE.md with .claude/rules, 8 Cursor .mdc rules, Copilot instructions and 12 prompts that draft, audit and trim them. No prompt-file or skill converter; the free script above covers that.

Not ready to buy? Get our free Agent Skills pack on Gumroad (pay what you want, $0 is fine; Gumroad asks for your email to deliver it). Get the free skills

Keep reading

Agent Skills (SKILL.md) Explained: Formats, Folders and SafetyWhat an Agent Skill is, how SKILL.md works, which folders Claude Code, Codex, Cursor and Copilot read, and how to write and vet one. Checked on 2026-10-17.5 min readAGENTS.md Examples: 7 Copy-Paste Files for Real Projects (2026)Seven AGENTS.md examples to copy: Next.js, Python API, Go, a monorepo with nested files, a global ~/.codex file, an override and review rules.8 min readWhat Is an AI Agent? Plain-English Guide for BeginnersWhat an AI agent is, how it differs from a chatbot or automation, and the four building blocks every agent has. No jargon.4 min read