github-ai-sync

Copies .github AI configuration folders and files between project directories.

Updated Aug 15, 2026
One-click install
npx skills add https://github.com/jacksonlee-tw/mystock-vue --skill github-ai-sync-jacksonlee-tw
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-ai-sync
Source: https://github.com/jacksonlee-tw/mystock-vue/tree/main/mystock-analysis/.github/skills/github-ai-sync
Command: npx skills add https://github.com/jacksonlee-tw/mystock-vue --skill github-ai-sync-jacksonlee-tw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Keeping AI assistant configurations consistent across multiple projects requires manually copying agents, hooks, instructions, prompts, skills, and copilot-instructions.md between .github directories, which is repetitive and error-prone. ## Core Features & Use Cases - Bulk AI Config Sync: Copies agents, hooks, instructions, prompts, skills folders and copilot-instructions.md from the current workspace to a target project's .github directory. - Cross-Platform Execution: Provides both PowerShell (Windows) and bash (Linux/macOS) commands for validation, copying, and post-sync verification. - Safe Defaults: Requires an explicit absolute target path, validates source and destination before copying, skips missing folders, and never deletes files in the target. - Use Case: You maintain AI agent definitions in a primary repository and want to push the same agent and instruction setup to a second project by simply providing its absolute path. ## Quick Start Sync my .github AI configuration to the project at C:\git_repos\my-other-project.

Frequently Asked Questions about github-ai-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync GitHub Copilot instructions between projects?▼

Provide the absolute path of the target project and the skill copies agents, hooks, instructions, prompts, skills, and copilot-instructions.md from the current workspace's .github directory into the target's .github directory using PowerShell or bash.

How to copy .github agent files to another repository?▼

Run the sync with the target repository's absolute path. The skill validates both paths, recursively copies each AI resource folder, and reports the synced file counts per folder in a summary table.

Does the sync delete files in the target .github directory?▼

No, the operation is overwrite-only. Files with the same name are replaced by source versions, but files existing only in the target are left untouched, and missing source folders are skipped.

What happens if I don't provide a target project path?▼

The skill will not guess or use a default path. It explicitly asks you to supply the target project's absolute path, such as C:\git_repos\my-project, before executing any copy operation.

Does this work on both Windows and macOS?▼

Yes, the skill includes equivalent command blocks for both platforms. Windows uses PowerShell with Copy-Item, while Linux and macOS use bash with cp -r, and both include path validation and result verification steps.