用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill migrate-agents-to-copilot-instructions命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | migrate-agents-to-copilot-instructions |
| description | | Use when this capability is needed. |
Use this skill to convert repository guidance from AGENTS.md files into GitHub Copilot custom instruction files without losing scope or intent.
For exact file names, supported locations, and official syntax, read references/github-copilot-instructions.md before writing the target files.
Map guidance by scope instead of copying file-for-file blindly:
.github/copilot-instructions.md..github/instructions/NAME.instructions.md.AGENTS.md files unless the user explicitly asks you to remove them.Why: GitHub Copilot combines repository-wide instructions with matching path-specific instructions, but AGENTS.md files still matter in some Copilot surfaces and other agent ecosystems.
AGENTS.mdCLAUDE.md or GEMINI.md if present.github/copilot-instructions.md.github/instructions/**/*.instructions.mdapplyTo globAGENTS.md.github/copilot-instructions.md with the broad guidance that should apply across the repository..github/instructions/*.instructions.md for scoped guidance.applyTo pattern matches the intended files and does not accidentally overreach.Usually migrate these to .github/copilot-instructions.md:
Usually migrate these to .github/instructions/*.instructions.md:
When a nested AGENTS.md lives under path/to/subtree/, default to an applyTo glob like:
---
applyTo: "path/to/subtree/**"
---
If the content clearly targets a narrower subset, use a tighter glob instead, such as:
"packages/api/**/*.ts""docs/**/*.md""services/payments/**/*""src/**/*.test.ts,src/**/*.spec.ts"Do not copy agent-specific behavior literally when it does not make sense as a Copilot repository instruction.
Prefer these transformations:
applyTo.Be cautious with instructions that are only meaningful for a specific agent runtime, such as:
For those cases, either:
AGENTS.md, or.github/copilot-instructions.md.github/instructions/NAME.instructions.md.instructions.md suffix.applyTo.excludeAgent only when the instructions should be ignored by either code-review or coding-agent.Template:
---
applyTo: "path/to/subtree/**"
---
# Subtree guidance
- Keep these instructions concise and local to the matching files.
- Mention local conventions, validation rules, or architectural constraints.
Optional exclusion:
---
applyTo: "docs/**"
excludeAgent: "code-review"
---
AGENTS.md files overlap, preserve the intent with multiple scoped instruction files and narrower globs.AGENTS.md contains both global and subtree-local guidance, split it rather than forcing everything into one target file.When you complete a migration, provide:
.github/copilot-instructions.md.github/instructions/*.instructions.md filesAGENTS.mdSource: ekroon/agent-skills — distributed by TomeVault.