with one click
sync-to-copilot
// [AI & Tools] Use when you need to sync Claude Code knowledge to GitHub Copilot instructions.
// [AI & Tools] Use when you need to sync Claude Code knowledge to GitHub Copilot instructions.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | sync-to-copilot |
| version | 2.0.0 |
| description | [AI & Tools] Use when you need to sync Claude Code knowledge to GitHub Copilot instructions. |
| tags | ["ai-tools","sync","copilot","github-copilot","workflow","configuration"] |
Purpose: Keep Copilot instructions in sync with Claude Code workflows, dev rules, and project-reference docs.
Architecture (Two-Tier):
.github/copilot-instructions.md — Project-specific (always loaded by Copilot)
.github/instructions/common-protocol.instructions.md — Generic protocols (applyTo: **/*)
.github/instructions/{group}.instructions.md — Per-group (applyTo: file patterns)
What gets synced:
Usage:
/sync-to-copilot
Script: .claude/scripts/sync-copilot-workflows.cjs
Be skeptical. Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence percentages (Idea should be more than 80%).
Trigger this skill when:
.claude/workflows.json.claude/docs/development-rules.mddocs/project-reference/docs/copilot-registry.jsonnode .claude/scripts/sync-copilot-workflows.cjs
This generates:
.github/copilot-instructions.md — project-specific with registry summaries.github/instructions/common-protocol.instructions.md — generic protocols.github/instructions/{group}.instructions.md — per-group instruction files.github/common.copilot-instructions.md if it existsAfter the script runs, the AI MUST ATTENTION enrich the generated instruction files:
For each per-group instruction file in .github/instructions/:
docs/project-reference/*.md source file## section headings from the source fileFor .github/copilot-instructions.md:
docs/copilot-registry.json → projectInstructions.goldenRules still match CLAUDE.mddocs/copilot-registry.jsonFor docs/copilot-registry.json:
summary field accurately describes the current file contentdocs/project-reference/*.md filesCheck that:
.github/copilot-instructions.md contains project-specific content.github/instructions/common-protocol.instructions.md contains protocols + workflow catalogcommon.copilot-instructions.md file remainsWhen enriching per-group instruction files, follow this pattern for each doc entry:
## [Doc Title](relative/path)
**Summary:** One-line summary from registry.
**Key Sections:**
- Section 1 Name
- Section 2 Name
- Section 3 Name
- ...
> **READ** `docs/project-reference/filename.md` when: trigger description
Rules:
## level headings from the source file (not ### or deeper)whenToRead field(~59KB - read relevant sections)| File | Type | Content |
|---|---|---|
.github/copilot-instructions.md | Project-specific | TL;DR + project-reference index + READ prompts |
.github/instructions/common-protocol.instructions.md | Generic (applyTo: **/*) | Prompt protocol + workflow catalog + dev rules |
.github/instructions/backend-csharp.instructions.md | Backend (applyTo: **/*.cs) | Backend doc summaries + READ prompts |
.github/instructions/frontend-angular.instructions.md | Frontend (applyTo: **/*.ts,**/*.html) | Frontend doc summaries + READ prompts |
.github/instructions/styling-scss.instructions.md | Styling (applyTo: **/*.scss,**/*.css) | Styling doc summaries + READ prompts |
.github/instructions/testing.instructions.md | Testing (applyTo: **/*Test*/**,...) | Testing doc summaries + READ prompts |
.github/instructions/project-reference.instructions.md | Cross-cutting (applyTo: **/*) | General project doc summaries + READ prompts |
Copilot can't enforce protocols like Claude Code hooks:
Benefits:
Solution: Ensure you're running from project root
Solution: Add entries to docs/copilot-registry.json, then re-run script
Solution: Run this skill — AI will read files and update summaries
/ai-dev-tools-sync — Broader Claude/Copilot sync (skills, prompts, agents)/sync-copilot-workflows — Workflow-only sync (subset of this skill).claude/scripts/sync-copilot-workflows.cjsdocs/copilot-registry.json.claude/workflows.json, .claude/docs/development-rules.md.github/copilot-instructions.md.github/instructions/*.instructions.mdSync Claude Code knowledge to GitHub Copilot instructions. Two-tier output: project-specific + common protocol.
AI Mistake Prevention — Failure modes to avoid on every task:
Check downstream references before deleting. Deleting components causes documentation and code staleness cascades. Map all referencing files before removal. Verify AI-generated content against actual code. AI hallucinates APIs, class names, and method signatures. Always grep to confirm existence before documenting or referencing. Trace full dependency chain after edits. Changing a definition misses downstream variables and consumers derived from it. Always trace the full chain. Trace ALL code paths when verifying correctness. Confirming code exists is not confirming it executes. Always trace early exits, error branches, and conditional skips — not just happy path. When debugging, ask "whose responsibility?" before fixing. Trace whether bug is in caller (wrong data) or callee (wrong handling). Fix at responsible layer — never patch symptom site. Assume existing values are intentional — ask WHY before changing. Before changing any constant, limit, flag, or pattern: read comments, check git blame, examine surrounding code. Verify ALL affected outputs, not just the first. Changes touching multiple stacks require verifying EVERY output. One green check is not all green checks. Holistic-first debugging — resist nearest-attention trap. When investigating any failure, list EVERY precondition first (config, env vars, DB names, endpoints, DI registrations, data preconditions), then verify each against evidence before forming any code-layer hypothesis. Surgical changes — apply the diff test. Bug fix: every changed line must trace directly to the bug. Don't restyle or improve adjacent code. Enhancement task: implement improvements AND announce them explicitly. Surface ambiguity before coding — don't pick silently. If request has multiple interpretations, present each with effort estimate and ask. Never assume all-records, file-based, or more complex path.
Critical Thinking Mindset — Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence >80% to act. Anti-hallucination: Never present guess as fact — cite sources for every claim, admit uncertainty freely, self-check output for errors, cross-reference independently, stay skeptical of own confidence — certainty without evidence root of all hallucination.
MUST ATTENTION apply critical thinking — every claim needs traced proof, confidence >80% to act. Anti-hallucination: never present guess as fact.
MUST ATTENTION apply AI mistake prevention — holistic-first debugging, fix at responsible layer, surface ambiguity before coding, re-read files after compaction.
IMPORTANT MUST ATTENTION break work into small todo tasks using TaskCreate BEFORE starting
IMPORTANT MUST ATTENTION search codebase for 3+ similar patterns before creating new code
IMPORTANT MUST ATTENTION cite file:line evidence for every claim (confidence >80% to act)
IMPORTANT MUST ATTENTION add a final review todo task to verify work quality
[TASK-PLANNING] Before acting, analyze task scope and systematically break it into small todo tasks and sub-tasks using TaskCreate.