global-prompts-sync
Global Prompts Sync
Overview
This skill synchronizes prompt files from the prompts/ directory to both GitHub Copilot and OpenCode global configuration directories:
- agents: Agent definition files
- rules: Instruction/rules files
- commands: Command prompt files
Directory Structure
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)
Target Directories
GitHub Copilot
All files are synced to:
- Windows:
/mnt/c/Users/<USERNAME>/AppData/Roaming/Code/User/prompts - File naming conventions:
- agents:
*.agent.md - rules:
*.instructions.md - commands:
*.prompt.md
- agents:
OpenCode
Files are synced to separate directories:
- agents:
~/.config/opencode/agent/or/mnt/c/Users/<USERNAME>/.config/opencode/agent/ - rules:
~/.config/opencode/AGENTS.md(merged from all rules files, front matter removed) - commands:
~/.config/opencode/command/or/mnt/c/Users/<USERNAME>/.config/opencode/command/
Usage
To synchronize prompts to both GitHub Copilot and OpenCode:
python3 {path}/scripts/sync_prompts.py
The script will:
- Detect the environment (WSL/Windows)
- Determine the Windows username
- Sync agents, rules, and commands to GitHub Copilot directories
- Sync agents, rules (merged), and commands to OpenCode directories
- Handle file naming conventions for each editor
- Report the status of each operation
Options
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
Adding Prompts
- Agents: Add
.mdfiles toprompts/agents/ - Rules: Add
.mdfiles toprompts/rules/ - Commands: Add
.mdfiles toprompts/commands/
The script will automatically handle naming conventions for each target editor.
Special Rules Processing
For OpenCode, multiple rule files are merged into a single AGENTS.md file:
- Front matter (YAML) is removed from each file
- Files are concatenated in alphabetical order
- A single
AGENTS.mdis created in OpenCode's config directory
More from atman-33/skills
dnd-kit-implementation
Guide for implementing sortable and droppable components using dnd-kit library. Use this skill when building React applications that require drag-and-drop functionality with both container reordering (useSortable) and item dropping (useDroppable) capabilities, such as Kanban boards, file management systems, or playlist editors.
39tech-article-humanizer
Transform technical article drafts or source materials into human-like, high-quality Japanese technical articles. Use this skill when the user wants to generate, rewrite, or humanize technical articles (especially about TypeScript, JavaScript, React, or frontend topics) following specific human-writing patterns and style guidelines. Triggers include requests like "記事を人間風に", "tech article を生成", "humanize this article", or providing article source materials.
4agent-memory
Use this skill when the user asks to save, remember, recall, or organize memories. Triggers on phrases like 'remember this', 'save this', 'note this', 'what did we discuss about...', 'check your notes', 'clean up memories'. Also use proactively when discovering valuable findings worth preserving.
2react-router-v7-app
Implements React Router v7 app structure, routing patterns, and component templates. Use when creating or modifying React Router v7 applications to ensure consistent folder structure, data loading patterns, and component architecture.
2pr-assistant
Analyzes git changes and assists with creating comprehensive pull requests. Use when user wants to create a PR, review changes before PR, or needs help drafting PR descriptions. Triggers on phrases like 'create PR', 'make a pull request', 'draft PR description', 'what changed in this branch', 'prepare PR'.
1openspec-bulk-archive-change
Archive multiple completed changes at once. Use when archiving several parallel changes.
1