ai-dev-tools-sync
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAI Dev Tools Sync
AI开发工具同步
Synchronize Claude Code and GitHub Copilot configurations to maintain feature parity.
同步Claude Code和GitHub Copilot的配置,以保持功能一致性。
Summary
概述
Goal: Synchronize Claude Code and GitHub Copilot configurations to maintain feature parity across both AI development tools.
| Step | Action | Key Notes |
|---|---|---|
| 1 | Identify change scope | Skills, prompts, agents, instructions, or workflows |
| 2 | Map equivalents | Claude SKILL.md <-> Copilot prompt.md, etc. |
| 3 | Apply changes | Update both platforms' config files |
| 4 | Verify parity | Ensure both tools have matching capabilities |
Key Principles:
- Claude skills live in , Copilot prompts in
.claude/skills/.github/prompts/ - Copilot auto-reads Claude skills — avoid duplication where possible
- Agents are shared in for both platforms
.github/agents/
目标: 同步Claude Code和GitHub Copilot的配置,确保这两款AI开发工具的功能保持一致。
| 步骤 | 操作 | 关键说明 |
|---|---|---|
| 1 | 确定变更范围 | 技能、提示词、Agent、指令或工作流 |
| 2 | 映射等效项 | Claude的SKILL.md <-> Copilot的prompt.md等 |
| 3 | 应用变更 | 更新两个平台的配置文件 |
| 4 | 验证一致性 | 确保两款工具的功能匹配 |
核心原则:
- Claude的技能存储在,Copilot的提示词存储在
.claude/skills/.github/prompts/ - Copilot会自动读取Claude的技能——尽可能避免重复配置
- Agent共享存储在,供两个平台使用
.github/agents/
When to Use
使用场景
Activate this skill when:
- User asks to update Claude Code or Copilot setup
- User wants to add/modify skills, prompts, agents, or instructions
- User wants both tools to work similarly
- User asks about AI dev tool configuration
在以下场景中激活该技能:
- 用户要求更新Claude Code或Copilot的设置
- 用户需要添加/修改技能、提示词、Agent或指令
- 用户希望两款工具的功能保持一致
- 用户咨询AI开发工具的配置问题
Quick Reference
快速参考
| Claude Code | GitHub Copilot | Location |
|---|---|---|
| SKILL.md | SKILL.md | |
| skills/*/SKILL.md | prompts/*.prompt.md | |
| agents/*.md | agents/*.md | |
| workflows/*.md | - | |
| CLAUDE.md | copilot-instructions.md | Root + |
| - | instructions/*.md | |
| - | chatmodes/*.chatmode.md | |
| Claude Code | GitHub Copilot | 存储位置 |
|---|---|---|
| SKILL.md | SKILL.md | |
| skills/*/SKILL.md | prompts/*.prompt.md | |
| agents/*.md | agents/*.md | |
| workflows/*.md | - | |
| CLAUDE.md | copilot-instructions.md | 根目录 + |
| - | instructions/*.md | |
| - | chatmodes/*.chatmode.md | |
GitHub Copilot Features Catalog
GitHub Copilot功能目录
Complete catalog of GitHub Copilot customization features (as of 2026).
GitHub Copilot自定义功能完整目录(截至2026年)。
Configuration Files
配置文件
Repository-Level (.github/
)
.github/仓库级配置(.github/
)
.github/| File/Folder | Purpose | Format |
|---|---|---|
| Global instructions for all Copilot interactions | Markdown |
| Path-scoped instructions with | Markdown + YAML |
| Reusable prompts (slash commands) | Markdown + YAML |
| Agent definitions | Markdown + YAML |
| Agent skills with bundled resources | Markdown + YAML |
| Custom chat personalities | Markdown + YAML |
| Master agent routing file | Markdown |
| 文件/文件夹 | 用途 | 格式 |
|---|---|---|
| 所有Copilot交互的全局指令 | Markdown |
| 带 | Markdown + YAML |
| 可复用提示词(斜杠命令) | Markdown + YAML |
| Agent定义 | Markdown + YAML |
| 附带资源的Agent技能 | Markdown + YAML |
| 自定义聊天个性 | Markdown + YAML |
| Agent路由主文件 | Markdown |
Also Supported (Backward Compatibility)
兼容旧版本的配置
- - Copilot auto-reads Claude skills
.claude/skills/ - - Copilot reads if present
CLAUDE.md - - Gemini CLI format
GEMINI.md
- - Copilot会自动读取Claude的技能
.claude/skills/ - - Copilot会读取该文件(如果存在)
CLAUDE.md - - Gemini CLI格式
GEMINI.md
Feature Details
功能详情
Custom Instructions (copilot-instructions.md
)
copilot-instructions.md自定义指令(copilot-instructions.md
)
copilot-instructions.mdRoot instructions auto-included in every request.
markdown
undefined根目录指令会自动包含在每个请求中。
markdown
undefinedProject Guidelines
项目指南
- Use TypeScript for all new files
- Follow BEM naming for CSS classes
undefined- 所有新文件使用TypeScript编写
- CSS类遵循BEM命名规范
undefinedPath-Scoped Instructions (.github/instructions/
)
.github/instructions/路径范围指令(.github/instructions/
)
.github/instructions/Apply to specific file patterns via :
applyToyaml
---
applyTo: "src/Services/**/*.cs"
excludeAgent: ["code-review"] # Optional: exclude specific agents
---通过应用到特定文件模式:
applyToyaml
---
applyTo: "src/Services/**/*.cs"
excludeAgent: ["code-review"] # 可选:排除特定Agent
---Backend C# Guidelines
后端C#开发指南
Use PlatformValidationResult for validation...
undefinedUse PlatformValidationResult for validation...
undefinedPrompts (.github/prompts/
)
.github/prompts/提示词(.github/prompts/
)
.github/prompts/Reusable via in chat:
/prompt-nameyaml
---
mode: agent # Optional: agent, chat, edit
---在聊天中通过调用:
/prompt-nameyaml
---
mode: agent # 可选:agent、chat、edit
---Debug this issue
调试此问题
- Analyze the error
- Find root cause
- Propose fix
undefined- 分析错误信息
- 定位根本原因
- 提出修复方案
undefinedAgent Skills (.github/skills/
)
.github/skills/Agent技能(.github/skills/
)
.github/skills/Folder structure with SKILL.md + bundled resources:
skills/my-skill/
├── SKILL.md
├── scripts/
├── references/
└── assets/包含SKILL.md及关联资源的文件夹结构:
skills/my-skill/
├── SKILL.md
├── scripts/
├── references/
└── assets/Chat Modes (.github/chatmodes/
)
.github/chatmodes/聊天模式(.github/chatmodes/
)
.github/chatmodes/Custom chat personalities with tool restrictions:
yaml
---
name: security-reviewer
tools: ["read", "grep", "glob"] # Restrict tools
---带工具限制的自定义聊天个性:
yaml
---
name: security-reviewer
tools: ["read", "grep", "glob"] # 限制可用工具
---Security Review Mode
安全审查模式
Focus only on security vulnerabilities...
undefined仅关注安全漏洞...
undefinedAgents (.github/agents/
)
.github/agents/Agent(.github/agents/
)
.github/agents/Specialized agent definitions:
yaml
---
name: frontend-developer
description: UI/UX implementation specialist
---专业化的Agent定义:
yaml
---
name: frontend-developer
description: UI/UX实现专家
---Frontend Developer Agent
前端开发Agent
Specializes in React, TypeScript, CSS...
undefined专注于React、TypeScript、CSS...
undefinedSync Patterns
同步模式
Patterns for keeping Claude Code and GitHub Copilot configurations synchronized.
保持Claude Code和GitHub Copilot配置同步的模式。
Skill Sync
技能同步
Both platforms support skills in . Copilot also reads .
.github/skills/.claude/skills/Best Practice: Create skills in for maximum compatibility.
.github/skills/.github/skills/my-skill/
├── SKILL.md # Both platforms read
├── scripts/ # Executable scripts
├── references/ # Progressive disclosure docs
└── assets/ # Templates, images两个平台均支持中的技能。Copilot还会读取中的内容。
.github/skills/.claude/skills/最佳实践: 在中创建技能,以获得最大兼容性。
.github/skills/.github/skills/my-skill/
├── SKILL.md # 两个平台均可读取
├── scripts/ # 可执行脚本
├── references/ # 渐进式披露文档
└── assets/ # 模板、图片Prompt/Command Sync
提示词/命令同步
| Claude Code | GitHub Copilot |
|---|---|
| |
Invoked via | Invoked via |
Sync Strategy:
- Create in (both read)
.github/prompts/ - Or maintain duplicates if behavior differs
| Claude Code | GitHub Copilot |
|---|---|
| |
通过 | 通过 |
同步策略:
- 在中创建(两个平台均可读取)
.github/prompts/ - 如果行为不同,则维护两份配置
Instructions Sync
指令同步
| Claude Code | GitHub Copilot |
|---|---|
| |
| Single file | Multi-file with |
Sync Strategy:
- Keep core rules in both files
- Use for path-scoped rules (Copilot-specific)
.github/instructions/ - Reference detailed docs from both files
| Claude Code | GitHub Copilot |
|---|---|
| |
| 单文件形式 | 支持applyTo规则的多文件形式 |
同步策略:
- 在两个文件中保留核心规则
- 使用配置路径范围规则(Copilot专属)
.github/instructions/ - 在两个文件中引用详细文档
Agent Sync
Agent同步
Both platforms read .
.github/agents/*.mdSingle Source: Maintain agents in only.
.github/agents/两个平台均读取。
.github/agents/*.md单一数据源: 仅在中维护Agent配置。
.github/agents/Workflow Sync
工作流同步
Claude has workflow orchestration. Copilot uses chat modes.
| Claude Workflow | Copilot Equivalent |
|---|---|
| Sequential agent chains | Chat mode switching |
| |
Claude支持工作流编排,Copilot使用聊天模式。
| Claude工作流 | Copilot等效功能 |
|---|---|
| 顺序Agent链 | 聊天模式切换 |
| |
Decision Matrix
决策矩阵
| Feature | Location | Reason |
|---|---|---|
| Skills | | Maximum compatibility |
| Prompts | | Both platforms read |
| Agents | | Shared location |
| Instructions | Both files | Platform-specific nuances |
| Workflows | | Claude-specific |
| Chat Modes | | Copilot-specific |
| 功能 | 存储位置 | 原因 |
|---|---|---|
| 技能 | | 最大兼容性 |
| 提示词 | | 两个平台均可读取 |
| Agent | | 共享存储位置 |
| 指令 | 两个文件 | 平台特定差异 |
| 工作流 | | Claude专属 |
| 聊天模式 | | Copilot专属 |
Common Sync Tasks
常见同步任务
Add New Skill
添加新技能
bash
mkdir -p .github/skills/new-skillbash
mkdir -p .github/skills/new-skillCreate SKILL.md with frontmatter
创建带前置元数据的SKILL.md
Add references/ and scripts/ as needed
根据需要添加references/和scripts/
undefinedundefinedAdd New Prompt
添加新提示词
bash
undefinedbash
undefinedCreate in .github/prompts/ for both platforms
在.github/prompts/中创建,供两个平台使用
touch .github/prompts/new-prompt.prompt.md
undefinedtouch .github/prompts/new-prompt.prompt.md
undefinedUpdate Core Instructions
更新核心指令
- Edit
CLAUDE.md - Edit
.github/copilot-instructions.md - Keep essential rules in sync
- 编辑
CLAUDE.md - 编辑
.github/copilot-instructions.md - 保持核心规则同步
Add Path-Scoped Instructions (Copilot)
添加路径范围指令(Copilot专属)
bash
undefinedbash
undefinedCopilot-specific feature
Copilot专属功能
touch .github/instructions/backend-cqrs.instructions.md
touch .github/instructions/backend-cqrs.instructions.md
Add applyTo: "src/Services/**/Command.cs"
添加applyTo: "src/Services/**/Command.cs"
undefinedundefinedSync Process
同步流程
Step 1: Understand Current Setup
步骤1:了解当前配置
Read these files to understand current configuration:
.claude/workflows/orchestration-protocol.md
.claude/workflows/primary-workflow.md
.github/copilot-instructions.md
.github/AGENTS.md
CLAUDE.md读取以下文件以了解现有配置:
.claude/workflows/orchestration-protocol.md
.claude/workflows/primary-workflow.md
.github/copilot-instructions.md
.github/AGENTS.md
CLAUDE.mdStep 2: Research Latest Features
步骤2:研究最新功能
Search web for:
- "GitHub Copilot features setup 2026"
- "GitHub Copilot custom instructions agents skills prompts"
- "GitHub Copilot agent mode workspace context"
See the GitHub Copilot Features Catalog section above for the full feature catalog.
搜索以下内容:
- "GitHub Copilot features setup 2026"
- "GitHub Copilot custom instructions agents skills prompts"
- "GitHub Copilot agent mode workspace context"
可参考上方的GitHub Copilot功能目录获取完整的功能信息。
Step 3: Identify Sync Opportunities
步骤3:识别同步机会
Compare capabilities and identify gaps:
- Skills missing in one platform
- Inconsistent prompt/instruction behavior
- Agent definitions that differ
对比功能差异,找出需要同步的内容:
- 某一平台缺失的技能
- 不一致的提示词/指令行为
- 存在差异的Agent定义
Step 4: Implement Changes
步骤4:实施变更
For each change:
- Skills: Create in both and
.claude/skills/.github/skills/ - Prompts: Create in both and
.claude/skills/.github/prompts/ - Instructions: Update both and
CLAUDE.md.github/copilot-instructions.md - Agents: Update (shared by both)
.github/agents/
针对每一项变更:
- 技能:在和
.claude/skills/中同时创建.github/skills/ - 提示词:在和
.claude/skills/中同时创建.github/prompts/ - 指令:更新和
CLAUDE.md.github/copilot-instructions.md - Agent:更新(两个平台共享)
.github/agents/
Compatibility Notes
兼容性说明
- Copilot reads automatically (backward compatibility)
.claude/skills/ - Both read
.github/prompts/*.prompt.md - Both read
.github/agents/*.md - Both read in root or
AGENTS.md.github/ - Both support path-based instruction files via in frontmatter
applyTo
- Copilot会自动读取(向后兼容)
.claude/skills/ - 两个平台均读取
.github/prompts/*.prompt.md - 两个平台均读取
.github/agents/*.md - 两个平台均读取根目录或中的
.github/AGENTS.md - 两个平台均支持通过前置元数据中的配置基于路径的指令文件
applyTo
Sources
参考来源
IMPORTANT Task Planning Notes
重要任务规划说明
- Always plan and break many small todo tasks
- Always add a final review todo task to review the works done at the end to find any fix or enhancement needed
- 始终将任务拆分为多个小的待办项
- 始终在最后添加一个最终审核待办项,用于检查已完成的工作,找出需要修复或优化的内容