Synchronizes prompt files (agents, rules, commands) from the skill's prompts directory to both GitHub Copilot and OpenCode global configuration directories. Use when the user wants to update their AI editor prompt libraries.
This skill synchronizes prompt files from the prompts/ directory to both GitHub Copilot and OpenCode global configuration directories:
global-prompts-sync/
├── SKILL.md
├── scripts/
│ └── sync_prompts.py
└── prompts/
├── agents/ # Agent files (*.agent.md for Copilot, *.md for OpenCode)
├── rules/ # Instruction files (*.instructions.md for Copilot, merged into AGENTS.md for OpenCode)
└── commands/ # Command files (*.prompt.md for Copilot, *.md for OpenCode)
All files are synced to:
/mnt/c/Users/<USERNAME>/AppData/Roaming/Code/User/prompts*.agent.md*.instructions.md*.prompt.mdFiles are synced to separate directories:
~/.config/opencode/agent/ or /mnt/c/Users/<USERNAME>/.config/opencode/agent/~/.config/opencode/AGENTS.md (merged from all rules files, front matter removed)~/.config/opencode/command/ or /mnt/c/Users/<USERNAME>/.config/opencode/command/To synchronize prompts to both GitHub Copilot and OpenCode:
python3 {path}/scripts/sync_prompts.py
The script will:
Run with specific targets:
# Sync to GitHub Copilot only
python3 scripts/sync_prompts.py --target copilot
# Sync to OpenCode only
python3 scripts/sync_prompts.py --target opencode
# Sync to both (default)
python3 scripts/sync_prompts.py
.md files to prompts/agents/.md files to prompts/rules/.md files to prompts/commands/The script will automatically handle naming conventions for each target editor.
For OpenCode, multiple rule files are merged into a single AGENTS.md file:
AGENTS.md is created in OpenCode's config directory