migrating-prompts-to-skills

migrating-prompts-to-skills is a skill for Claude Code, Codex from SebastienDegodez/copilot-instructions. It costs 37 tokens per session (3,410 once invoked), scanned B, original, Apache-2.0.

A guide for converting prompt or instruction files into reusable SKILL.md files for coding agents. It covers how to decide whether the documentation should become a skill and how to validate the result.

In plain words
What is it for?
Use it when migrating .prompt.md or .instructions.md files, especially when you need to check their structure and test the conversion before release.
Why use it?
It prevents instructions from being reorganized into a reusable skill before their format, audience, scope, and usefulness are clear.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it when migrating .prompt.md or .instructions.md files, especially when you need to check their structure and test the conversion before release.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sebastiendegodez/copilot-instructions/migrating-prompts-to-skills
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SebastienDegodez/copilot-instructions --skill migrating-prompts-to-skills
Clone the repo
git clone --depth 1 https://github.com/SebastienDegodez/copilot-instructions

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for migrating-prompts-to-skills

README.md
[![agentmods](https://agentmods.dev/badge/skills/sebastiendegodez/copilot-instructions/migrating-prompts-to-skills/github.svg)](https://agentmods.dev/skills/sebastiendegodez/copilot-instructions/migrating-prompts-to-skills)
Your own site
<a href="https://agentmods.dev/skills/sebastiendegodez/copilot-instructions/migrating-prompts-to-skills"><img src="https://agentmods.dev/badge/skills/sebastiendegodez/copilot-instructions/migrating-prompts-to-skills/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for migrating-prompts-to-skills

Your own site · 80×15
<a href="https://agentmods.dev/skills/sebastiendegodez/copilot-instructions/migrating-prompts-to-skills"><img src="https://agentmods.dev/badge/skills/sebastiendegodez/copilot-instructions/migrating-prompts-to-skills.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,410 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 89
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Data Exfiltration · line 89
    Code scans file system directories looking for sensitive files. This could be reconnaissance for credential theft.
    Fix: Remove unnecessary filesystem scanning. If file access is needed, use explicit, scoped paths. Avoid reading ~/.ssh, ~/.aws, or credential directories.
  • medium Excessive Agency · line 338
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.03410
Opus 5.5 $0.00015 $0.01364
Sonnet 5.5 $0.00007 $0.00682
Haiku 4.5 $0.00004 $0.00341

Measured 3mo ago against content hash ac37d09785ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

migrating-prompts-to-skills scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

ls -la ~/.claude/skills/ # or your skill directory
skills/migrating-prompts-to-skills/SKILL.md · 358 lines

How it starts

The opening of the file, as written. The whole thing — 358 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migrating Prompts to Skills

Overview

Migrating existing prompt/instruction documentation to SKILL format requires testing before shipping, not "structure and refine later." Skills are discoverable documentation—format ambiguities and scoping decisions compound downstream.

When to Use

SYMPTOMS that trigger this skill:

  • You have working .prompt.md or .instructions.md documentation
  • You want to convert it to SKILL.md reusable format
  • You're uncertain about: structure choices, what to keep/delete, frontmatter rules, or who will use this

When NOT to use:

  • File is project-specific (keep in copilot-instructions.md)
  • Content is <200 words and too narrow (doesn't warrant skill status)
  • You already know your target audience exactly (not guessing)

The Iron Rule

DO NOT migrate under time pressure or without clarity on:

  1. Exact frontmatter format (read agentskills.io spec FIRST)
  2. Who will use this (skill creator? prompt author? specific domain?)
  3. Why this deserves skill status (will it solve recurring problems?)

Violate this = 70% confidence at ship time. Unacceptable.

RED Phase: Validate Before Deciding

Step 1: Read Frontmatter Specs

REQUIRED: Verify YAML format against these rules (non-negotiable):

# ✅ VALID frontmatter
---
name: skill-name-lowercase-kebab-case
description: Use when [specific trigger in third person] and [target audience/context]
---

# RULES (no exceptions):
# - name: letters, numbers, hyphens ONLY (no underscores, spaces, parentheses)
# - description: MUST start with "Use when"
# - description: maximum 500 characters total
# - description: Include specific triggers/symptoms (NOT workflow recap)
# - description: Use third person (injected into system prompt)
# - No other fields (no keywords, category, version, etc.)

Why these rules matter:

  • name parsed as file directory reference → special chars break lookups
  • description read by Claude to decide IF loading skill is necessary → workflow summaries cause skip loading the full skill
  • Third person = works in system prompt injection

Read the full file on GitHub · 358 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 358 lines · 37 tokens per session scan B ac37d09785ed

Subscribe to this mod's changes

migrating-prompts-to-skills is a skill published in the GitHub repository SebastienDegodez/copilot-instructions (199 stars, last pushed 23d ago), licensed Apache-2.0. It adds 37 tokens to every session and 3,410 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

migrating-prompts-to-skills compared with skills from other repositories

migrating-prompts-to-skills next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
migrating-prompts-to-skillsSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0B37Claude Code, Codex
mcpmanagedcode/dotnet-skillsSkill52716d agoMITA123Claude Code, Codex
semantic-kernelmanagedcode/dotnet-skillsSkill52716d agoMITA116Claude Code, Codex
aspnet-coremanagedcode/dotnet-skillsSkill52716d agoMITA122Claude Code, Codex
graphify-dotnetmanagedcode/dotnet-skillsSkill52716d agoMITA125Claude Code, Codex
winformsmanagedcode/dotnet-skillsSkill52716d agoMITA122Claude Code, Codex
webgpu-threejs-tslmanagedcode/dotnet-skillsSkill52716d agoMITA78Claude Code, Codex