Agent skill
prompt-converter
Convert between Claude Code command markdown files (*.md) and GitHub Copilot prompt files (*.prompt.md). Use when porting custom prompts or CLI commands between ecosystems.
Install this agent skill to your Project
npx add-skill https://github.com/arisng/github-copilot-fc/tree/main/skills/prompt-converter
SKILL.md
Prompt Converter
This skill automates the bidirectional conversion between Claude Code .md command files and Copilot .prompt.md files, ensuring metadata and instructions are correctly mapped.
Environment Detection
Before executing any operations, the skill defines the skills_source path:
import os
skills_source = os.path.expanduser('~/.copilot/skills') if os.name == 'nt' else os.path.expanduser('~/.copilot/skills')
Workflow
- Analyze Source: Read the source file (Claude
.mdor Copilot.prompt.md) to extract metadata (name, description, agent, tools) and instruction content. - Map Metadata:
- Claude to Copilot: Convert frontmatter keys, ensuring
name,description, andagent(default: 'agent') are present. - Copilot to Claude: Convert frontmatter to Claude's expected format (often simpler description/tools).
- Claude to Copilot: Convert frontmatter keys, ensuring
- Transform Content:
- Adjust template variables (e.g.,
\$ARGUMENTSin Copilot). - Ensure markdown structures are preserved.
- Adjust template variables (e.g.,
- Execute Conversion: Use the provided script to perform the transformation.
bash
python {skills_source}/prompt-converter/scripts/convert_prompt.py --src "my-command.md" --to copilot - Verify: Confirm the new file exists in the target directory (e.g.,
prompts/for Copilot).
Principles
- Metadata Integrity: Preserve as much context as possible during mapping.
- Target Specifics: Use
${input:...}for Copilot parameters and$ARGUMENTSfor CLI inputs where appropriate. - Idempotency: Converting back and forth should result in minimal structural drift.
Usage
Convert Claude to Copilot
python scripts/convert_prompt.py --src path/to/claude.md --to copilot -o ./prompts
Convert Copilot to Claude
python scripts/convert_prompt.py --src path/to/copilot.prompt.md --to claude -o ./claude-commands
Resources
scripts/
convert_prompt.py: Core logic for conversion.
templates/
copilot.prompt.md.template: Boilerplate for Copilot prompts.claude.md.template: Boilerplate for Claude commands.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
openspec-propose
Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
openspec-archive-change
Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
openspec-explore
Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
openspec-apply-change
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
fleet
Multi-iteration parallel subagent orchestrator for Kimi Code CLI with streamlined observability, automated documentation, and atomic commits. Use when orchestrating complex work across multiple subagents, enabling parallel execution, or when explicitly requesting fleet mode with '/flow:fleet'. Integrates diataxis documentation and git-atomic-commit workflow.
github-pages-deploy
Deploy a static HTML file or static site directory to GitHub Pages. Use when the user wants a durable GitHub-hosted URL for a static page, diagram, report, or generated site, and can provide GitHub authentication via GITHUB_TOKEN or GH_TOKEN.
Didn't find tool you were looking for?