cokit-cli 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FAQ.md +102 -0
- package/LICENSE +32 -0
- package/QUICK-START.md +37 -0
- package/README.md +110 -0
- package/bin/cokit.js +4 -0
- package/docs/cokit-comprehensive-mapping-guide.md +937 -0
- package/docs/cokit-slides.md +205 -0
- package/docs/cokit-team-presentation.md +319 -0
- package/docs/migration-guide.md +120 -0
- package/docs/project-roadmap.md +257 -0
- package/package.json +35 -0
- package/plans/260106-1102-cokit-implementation/phases/phase-01-cli-tool.md +151 -0
- package/plans/260106-1102-cokit-implementation/phases/phase-02-repo-level-templates.md +198 -0
- package/plans/260106-1102-cokit-implementation/phases/phase-03-user-level-skills.md +219 -0
- package/plans/260106-1102-cokit-implementation/phases/phase-04-prompt-files.md +328 -0
- package/plans/260106-1102-cokit-implementation/phases/phase-05-documentation.md +166 -0
- package/plans/260106-1102-cokit-implementation/plan.md +130 -0
- package/plans/260106-1102-cokit-implementation/research/researcher-01-copilot-skills-spec.md +182 -0
- package/plans/260106-1102-cokit-implementation/research/researcher-02-copilot-instructions-prompts.md +201 -0
- package/plans/reports/code-reviewer-260106-1718-phase2-repo-templates.md +184 -0
- package/plans/reports/code-reviewer-260106-1728-phase3-review.md +486 -0
- package/plans/reports/code-reviewer-260106-1742-phase4-prompts.md +235 -0
- package/plans/reports/code-reviewer-260106-1753-phase5-docs.md +275 -0
- package/plans/reports/docs-manager-260106-1217-phase1-completion.md +45 -0
- package/plans/reports/docs-manager-260106-1734-phase3-skills.md +108 -0
- package/plans/reports/docs-manager-260106-1746-phase4-prompt-files.md +75 -0
- package/plans/reports/project-manager-260106-1734-SUMMARY.md +354 -0
- package/plans/reports/project-manager-260106-1734-phase3-completion.md +257 -0
- package/plans/reports/project-manager-260106-1734-phase3-to-phase4-transition.md +274 -0
- package/plans/reports/project-manager-260106-1734-phase4-kickoff.md +343 -0
- package/plans/reports/project-manager-260106-1734-project-status.md +355 -0
- package/plans/reports/project-manager-260106-1746-phase4-completion.md +249 -0
- package/plans/reports/project-manager-260106-1746-phase4-deliverables.md +350 -0
- package/plans/reports/project-manager-260106-1804-project-complete.md +297 -0
- package/plans/reports/tester-260106-1717-phase2-templates.md +216 -0
- package/plans/reports/tester-260106-1726-phase3-user-skills.md +256 -0
- package/plans/reports/tester-260106-1741-phase4-prompts.md +202 -0
- package/plans/reports/tester-260106-1751-phase5-docs.md +301 -0
- package/skills/code-review/SKILL.md +86 -0
- package/skills/code-review/references/code-review-reception.md +76 -0
- package/skills/code-review/references/verification-before-completion.md +86 -0
- package/skills/debugging/SKILL.md +70 -0
- package/skills/debugging/references/root-cause-tracing.md +65 -0
- package/skills/debugging/references/systematic-debugging.md +74 -0
- package/skills/debugging/references/verification.md +74 -0
- package/skills/docs-seeker/SKILL.md +91 -0
- package/skills/docs-seeker/references/search-patterns.md +93 -0
- package/skills/docs-seeker/references/source-evaluation.md +77 -0
- package/skills/planning/SKILL.md +82 -0
- package/skills/planning/references/plan-organization.md +88 -0
- package/skills/planning/references/research-phase.md +56 -0
- package/skills/planning/references/solution-design.md +65 -0
- package/skills/sequential-thinking/SKILL.md +80 -0
- package/skills/sequential-thinking/references/advanced-techniques.md +88 -0
- package/skills/sequential-thinking/references/core-patterns.md +87 -0
- package/src/commands/add.js +93 -0
- package/src/commands/doctor.js +117 -0
- package/src/commands/init.js +152 -0
- package/src/commands/list.js +91 -0
- package/src/commands/update.js +22 -0
- package/src/index.js +23 -0
- package/src/utils/colors.js +14 -0
- package/src/utils/copy.js +122 -0
- package/src/utils/paths.js +35 -0
- package/templates/repo/.github/.cokit-version +4 -0
- package/templates/repo/.github/AGENTS.md +55 -0
- package/templates/repo/.github/copilot-instructions.md +45 -0
- package/templates/repo/.github/instructions/backend.instructions.md +35 -0
- package/templates/repo/.github/instructions/development.instructions.md +25 -0
- package/templates/repo/.github/instructions/frontend.instructions.md +31 -0
- package/templates/repo/.github/instructions/testing.instructions.md +31 -0
- package/templates/repo/.github/prompts/code.prompt.md +28 -0
- package/templates/repo/.github/prompts/docs.prompt.md +23 -0
- package/templates/repo/.github/prompts/fix.prompt.md +24 -0
- package/templates/repo/.github/prompts/plan.prompt.md +24 -0
- package/templates/repo/.github/prompts/review.prompt.md +24 -0
- package/templates/repo/.github/prompts/test.prompt.md +23 -0
- package/templates/repo/.github/skills/code-review/SKILL.md +46 -0
- package/templates/repo/.github/skills/debugging/SKILL.md +34 -0
- package/templates/repo/.vscode/settings.json +6 -0
- package/templates/repo/prompts/code.prompt.md +40 -0
- package/templates/repo/prompts/docs.prompt.md +29 -0
- package/templates/repo/prompts/fix.prompt.md +35 -0
- package/templates/repo/prompts/plan.prompt.md +41 -0
- package/templates/repo/prompts/review.prompt.md +38 -0
- package/templates/repo/prompts/test.prompt.md +29 -0
|
@@ -0,0 +1,937 @@
|
|
|
1
|
+
# CoKit: Comprehensive Claude Code → GitHub Copilot Mapping Guide
|
|
2
|
+
|
|
3
|
+
**Version:** 1.0.0
|
|
4
|
+
**Date:** 2026-01-06
|
|
5
|
+
**Purpose:** Complete reference for porting Claude Code patterns to GitHub Copilot
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Table of Contents
|
|
10
|
+
|
|
11
|
+
1. [Executive Summary](#1-executive-summary)
|
|
12
|
+
2. [Terminology Glossary](#2-terminology-glossary)
|
|
13
|
+
3. [Detailed Feature Mapping](#3-detailed-feature-mapping)
|
|
14
|
+
4. [Installation Levels](#4-installation-levels)
|
|
15
|
+
5. [Workflow Patterns](#5-workflow-patterns)
|
|
16
|
+
6. [File Format Specifications](#6-file-format-specifications)
|
|
17
|
+
7. [Migration Guide](#7-migration-guide)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 1. Executive Summary
|
|
22
|
+
|
|
23
|
+
### What is Claude Code?
|
|
24
|
+
|
|
25
|
+
Claude Code is Anthropic's CLI tool for AI-assisted software development. It features:
|
|
26
|
+
- **Hooks system** for runtime event handling
|
|
27
|
+
- **Multi-agent architecture** with specialized subagents
|
|
28
|
+
- **Skills** as modular capability packages
|
|
29
|
+
- **Commands** as user-invokable shortcuts
|
|
30
|
+
- **Session state** tracking (todos, active plans)
|
|
31
|
+
|
|
32
|
+
### What is GitHub Copilot (2025)?
|
|
33
|
+
|
|
34
|
+
GitHub Copilot evolved from autocomplete to an AI agent:
|
|
35
|
+
- **Agent Mode** (Feb 2025): Autonomous coding tasks
|
|
36
|
+
- **Custom Instructions** (Aug 2025): Repository-level guidance
|
|
37
|
+
- **AGENTS.md** (Aug 2025): Agent-specific instructions
|
|
38
|
+
- **Agent Skills** (Dec 2025): Modular capability packages
|
|
39
|
+
- **Prompt Files**: Reusable task templates
|
|
40
|
+
|
|
41
|
+
### Key Architectural Difference
|
|
42
|
+
|
|
43
|
+
| Aspect | Claude Code | GitHub Copilot |
|
|
44
|
+
|--------|-------------|----------------|
|
|
45
|
+
| Execution | CLI + Runtime hooks | IDE-embedded, static config |
|
|
46
|
+
| Agent model | Multi-agent delegation | Single agent context |
|
|
47
|
+
| State | Session state tracking | Stateless |
|
|
48
|
+
| Customization | Dynamic (hooks inject context) | Static (files read at start) |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## 2. Terminology Glossary
|
|
53
|
+
|
|
54
|
+
### Claude Code Terms
|
|
55
|
+
|
|
56
|
+
#### CLAUDE.md
|
|
57
|
+
**What:** Root configuration file that Claude Code reads for project/user instructions.
|
|
58
|
+
**Location:** `~/.claude/CLAUDE.md` (user) or `./CLAUDE.md` (project)
|
|
59
|
+
**Purpose:** Define role, responsibilities, workflow references, documentation standards.
|
|
60
|
+
**Format:** Markdown with natural language instructions.
|
|
61
|
+
|
|
62
|
+
#### Skills
|
|
63
|
+
**What:** Modular capability packages containing instructions + supporting resources.
|
|
64
|
+
**Location:** `~/.claude/skills/{skill-name}/`
|
|
65
|
+
**Structure:**
|
|
66
|
+
```
|
|
67
|
+
skills/debugging/
|
|
68
|
+
├── SKILL.md # Main instructions with YAML frontmatter
|
|
69
|
+
├── references/ # Supporting documentation
|
|
70
|
+
└── scripts/ # Helper scripts (bash, python, etc.)
|
|
71
|
+
```
|
|
72
|
+
**Activation:** Claude automatically loads relevant skills based on task context.
|
|
73
|
+
|
|
74
|
+
#### Agents (Subagents)
|
|
75
|
+
**What:** Specialized AI personas for specific tasks (planner, tester, reviewer).
|
|
76
|
+
**Location:** `~/.claude/agents/{agent-name}.md`
|
|
77
|
+
**Purpose:** Define behavior, tools, and constraints for delegated tasks.
|
|
78
|
+
**Invocation:** Main agent delegates via `Task` tool: "Use planner agent to..."
|
|
79
|
+
|
|
80
|
+
#### Commands
|
|
81
|
+
**What:** User-invokable shortcuts that expand into full prompts.
|
|
82
|
+
**Location:** `~/.claude/commands/{namespace}/{command}.md`
|
|
83
|
+
**Invocation:** User types `/fix` → expands to full fix workflow prompt.
|
|
84
|
+
**Features:** Support `$ARGUMENTS` variable, can chain to sub-commands.
|
|
85
|
+
|
|
86
|
+
#### Workflows
|
|
87
|
+
**What:** Process documentation defining how agents should work together.
|
|
88
|
+
**Location:** `~/.claude/workflows/{workflow-name}.md`
|
|
89
|
+
**Purpose:** Define step-by-step processes (implementation, testing, review).
|
|
90
|
+
|
|
91
|
+
#### Hooks
|
|
92
|
+
**What:** Shell commands executed at specific runtime events.
|
|
93
|
+
**Location:** `~/.claude/settings.json` → `hooks` section
|
|
94
|
+
**Events:**
|
|
95
|
+
- `SessionStart` - When session begins
|
|
96
|
+
- `UserPromptSubmit` - Before processing each user message
|
|
97
|
+
- `PreToolUse` - Before executing a tool
|
|
98
|
+
- `PreCompact` - Before context compaction
|
|
99
|
+
- `SessionEnd` - When session ends
|
|
100
|
+
|
|
101
|
+
**Example:**
|
|
102
|
+
```json
|
|
103
|
+
{
|
|
104
|
+
"hooks": {
|
|
105
|
+
"UserPromptSubmit": [{
|
|
106
|
+
"hooks": [{
|
|
107
|
+
"type": "command",
|
|
108
|
+
"command": "node ~/.claude/hooks/dev-rules-reminder.cjs"
|
|
109
|
+
}]
|
|
110
|
+
}]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
#### StatusLine
|
|
116
|
+
**What:** Real-time status display in terminal showing session state.
|
|
117
|
+
**Purpose:** Display active plan, todos, token usage, etc.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
### GitHub Copilot Terms
|
|
122
|
+
|
|
123
|
+
#### copilot-instructions.md
|
|
124
|
+
**What:** Repository-wide instructions that apply to all Copilot interactions.
|
|
125
|
+
**Location:** `.github/copilot-instructions.md`
|
|
126
|
+
**Purpose:** Define coding standards, project context, preferences.
|
|
127
|
+
**Format:** Markdown (natural language instructions).
|
|
128
|
+
**Source:** [GitHub Docs - Custom Instructions](https://docs.github.com/copilot/customizing-copilot/adding-custom-instructions-for-github-copilot)
|
|
129
|
+
|
|
130
|
+
#### Instructions Files (*.instructions.md)
|
|
131
|
+
**What:** Path-specific instructions applied based on file patterns.
|
|
132
|
+
**Location:** `.github/instructions/{name}.instructions.md`
|
|
133
|
+
**Purpose:** Different rules for different file types (frontend vs backend).
|
|
134
|
+
**Format:** Markdown with YAML frontmatter containing `applyTo` glob.
|
|
135
|
+
|
|
136
|
+
**Example:**
|
|
137
|
+
```yaml
|
|
138
|
+
---
|
|
139
|
+
applyTo: "**/*.tsx,**/*.jsx"
|
|
140
|
+
---
|
|
141
|
+
# React Component Guidelines
|
|
142
|
+
- Use functional components with hooks
|
|
143
|
+
- Prefer composition over inheritance
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Source:** [VS Code Custom Instructions](https://code.visualstudio.com/docs/copilot/customization/custom-instructions)
|
|
147
|
+
|
|
148
|
+
#### AGENTS.md
|
|
149
|
+
**What:** Agent-specific instructions for Copilot coding agent.
|
|
150
|
+
**Location:** `./AGENTS.md` (root) or nested in subdirectories
|
|
151
|
+
**Purpose:** Guide agent behavior for autonomous coding tasks.
|
|
152
|
+
**Precedence:** Nearest AGENTS.md in directory tree takes precedence.
|
|
153
|
+
**Source:** [GitHub Changelog - AGENTS.md](https://github.blog/changelog/2025-08-28-copilot-coding-agent-now-supports-agents-md-custom-instructions/)
|
|
154
|
+
|
|
155
|
+
#### Agent Skills
|
|
156
|
+
**What:** Modular capability packages (equivalent to Claude Code skills).
|
|
157
|
+
**Location:**
|
|
158
|
+
- `.github/skills/{skill-name}/` (repository)
|
|
159
|
+
- `~/.copilot/skills/{skill-name}/` (user-level)
|
|
160
|
+
|
|
161
|
+
**Structure:**
|
|
162
|
+
```
|
|
163
|
+
skills/debugging/
|
|
164
|
+
├── SKILL.md # Instructions with YAML frontmatter
|
|
165
|
+
├── references/ # Supporting docs
|
|
166
|
+
└── scripts/ # Helper scripts
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**Source:** [GitHub Copilot Agent Skills](https://github.blog/changelog/2025-12-18-github-copilot-now-supports-agent-skills/)
|
|
170
|
+
|
|
171
|
+
#### Prompt Files (*.prompt.md)
|
|
172
|
+
**What:** Reusable task-specific prompts (equivalent to Claude Code commands).
|
|
173
|
+
**Location:** `.github/prompts/{name}.prompt.md`
|
|
174
|
+
**Purpose:** Standardized prompts for common tasks.
|
|
175
|
+
**Format:** Markdown with YAML frontmatter using `mode: agent` format.
|
|
176
|
+
|
|
177
|
+
**Available Prompts (Phase 4):**
|
|
178
|
+
- `fix.prompt.md` - Debug and fix code issues
|
|
179
|
+
- `plan.prompt.md` - Create implementation plans
|
|
180
|
+
- `code.prompt.md` - Implement from existing plans
|
|
181
|
+
- `test.prompt.md` - Run tests and analyze results
|
|
182
|
+
- `review.prompt.md` - Review code for quality issues
|
|
183
|
+
- `docs.prompt.md` - Update project documentation
|
|
184
|
+
|
|
185
|
+
**Example:**
|
|
186
|
+
```yaml
|
|
187
|
+
---
|
|
188
|
+
mode: agent
|
|
189
|
+
description: Fix code issues intelligently
|
|
190
|
+
---
|
|
191
|
+
Analyze the issue and provide a fix following project standards.
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**Source:** [VS Code Prompt Files](https://code.visualstudio.com/docs/copilot/customization/prompt-files)
|
|
195
|
+
|
|
196
|
+
#### Agent Mode
|
|
197
|
+
**What:** Copilot operating autonomously on multi-step coding tasks.
|
|
198
|
+
**Capabilities:** Read files, propose edits, run commands, monitor tests.
|
|
199
|
+
**Trigger:** Enable in VS Code settings or use specific prompts.
|
|
200
|
+
**Source:** [Introducing Copilot Agent Mode](https://code.visualstudio.com/blogs/2025/02/24/introducing-copilot-agent-mode)
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## 3. Detailed Feature Mapping
|
|
205
|
+
|
|
206
|
+
### 3.1 CLAUDE.md → copilot-instructions.md
|
|
207
|
+
|
|
208
|
+
| Aspect | Detail |
|
|
209
|
+
|--------|--------|
|
|
210
|
+
| **Claude Code** | `~/.claude/CLAUDE.md` or `./CLAUDE.md` |
|
|
211
|
+
| **Copilot** | `.github/copilot-instructions.md` |
|
|
212
|
+
| **Why this mapping** | Both serve as root configuration defining project-wide instructions. Both are Markdown files read at session start. |
|
|
213
|
+
| **Evidence** | GitHub Docs: "Create a file named `.github/copilot-instructions.md`... Add natural language instructions to the file, in Markdown format." |
|
|
214
|
+
| **Source** | [GitHub Docs](https://docs.github.com/copilot/customizing-copilot/adding-custom-instructions-for-github-copilot) |
|
|
215
|
+
| **Best Practices** | Keep concise (<2000 tokens). Focus on project-specific guidance. Reference other files rather than duplicating content. |
|
|
216
|
+
| **Key Differences** | Claude Code supports `$HOME` variables and file references. Copilot is static - no variable expansion. |
|
|
217
|
+
|
|
218
|
+
**Migration Example:**
|
|
219
|
+
|
|
220
|
+
```markdown
|
|
221
|
+
# Claude Code (CLAUDE.md)
|
|
222
|
+
Your role is to analyze requirements...
|
|
223
|
+
## Workflows
|
|
224
|
+
- Primary workflow: `$HOME/.claude/workflows/primary-workflow.md`
|
|
225
|
+
- Development rules: `$HOME/.claude/workflows/development-rules.md`
|
|
226
|
+
|
|
227
|
+
# Copilot (copilot-instructions.md)
|
|
228
|
+
Your role is to analyze requirements...
|
|
229
|
+
## Workflows
|
|
230
|
+
Follow these development rules:
|
|
231
|
+
- YAGNI, KISS, DRY principles
|
|
232
|
+
- Read ./docs/code-standards.md before implementation
|
|
233
|
+
- Keep files under 200 lines
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
### 3.2 Skills → Agent Skills
|
|
239
|
+
|
|
240
|
+
| Aspect | Detail |
|
|
241
|
+
|--------|--------|
|
|
242
|
+
| **Claude Code** | `~/.claude/skills/{name}/SKILL.md` |
|
|
243
|
+
| **Copilot** | `.github/skills/{name}/SKILL.md` or `~/.copilot/skills/{name}/SKILL.md` |
|
|
244
|
+
| **Why this mapping** | Identical concept - modular capability packages. Same file structure (SKILL.md + resources). Copilot explicitly adopted this pattern. |
|
|
245
|
+
| **Evidence** | GitHub Changelog: "Agent Skills are folders containing instructions, scripts, and resources that Copilot automatically loads when relevant." |
|
|
246
|
+
| **Source** | [GitHub Agent Skills](https://github.blog/changelog/2025-12-18-github-copilot-now-supports-agent-skills/) |
|
|
247
|
+
| **Best Practices** | One skill per capability. Include concrete examples. Reference scripts with relative paths. Keep SKILL.md focused, details in references/. |
|
|
248
|
+
| **Key Differences** | Claude Code: `version`, `languages` fields in frontmatter. Copilot: Only `name`, `description` required. Claude Code skills can invoke tools; Copilot skills are advisory. |
|
|
249
|
+
|
|
250
|
+
**SKILL.md Format Comparison:**
|
|
251
|
+
|
|
252
|
+
```yaml
|
|
253
|
+
# Claude Code SKILL.md
|
|
254
|
+
---
|
|
255
|
+
name: debugging
|
|
256
|
+
description: Systematic debugging framework...
|
|
257
|
+
version: 3.0.0
|
|
258
|
+
languages: all
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
# Copilot SKILL.md
|
|
262
|
+
---
|
|
263
|
+
name: debugging
|
|
264
|
+
description: Systematic debugging framework...
|
|
265
|
+
---
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
### 3.3 Agents → AGENTS.md
|
|
271
|
+
|
|
272
|
+
| Aspect | Detail |
|
|
273
|
+
|--------|--------|
|
|
274
|
+
| **Claude Code** | `~/.claude/agents/{name}.md` (multiple files, each a specialized agent) |
|
|
275
|
+
| **Copilot** | `./AGENTS.md` (single file or nested files) |
|
|
276
|
+
| **Why this mapping** | Both define agent behavior and constraints. AGENTS.md is Copilot's designated file for agent instructions. |
|
|
277
|
+
| **Evidence** | GitHub Changelog: "You can create a single AGENTS.md file in the root of your repository, or create nested AGENTS.md files which apply to specific parts of your project." |
|
|
278
|
+
| **Source** | [AGENTS.md Support](https://github.blog/changelog/2025-08-28-copilot-coding-agent-now-supports-agents-md-custom-instructions/) |
|
|
279
|
+
| **Best Practices** | Merge agent behaviors into sections. Use headers for different task types. Keep actionable, not philosophical. |
|
|
280
|
+
| **Key Differences** | **Critical:** Claude Code delegates to separate agents with isolated context. Copilot has ONE agent that follows guidelines. No delegation possible. |
|
|
281
|
+
|
|
282
|
+
**Migration Strategy:**
|
|
283
|
+
|
|
284
|
+
```markdown
|
|
285
|
+
# Claude Code (separate files)
|
|
286
|
+
# agents/planner.md
|
|
287
|
+
---
|
|
288
|
+
name: planner
|
|
289
|
+
description: Create implementation plans...
|
|
290
|
+
model: opus
|
|
291
|
+
---
|
|
292
|
+
You are an expert planner...
|
|
293
|
+
|
|
294
|
+
# agents/tester.md
|
|
295
|
+
---
|
|
296
|
+
name: tester
|
|
297
|
+
description: Run and analyze tests...
|
|
298
|
+
---
|
|
299
|
+
You are a testing expert...
|
|
300
|
+
|
|
301
|
+
# Copilot (merged AGENTS.md)
|
|
302
|
+
# AGENTS.md
|
|
303
|
+
|
|
304
|
+
## When Planning
|
|
305
|
+
- Research before proposing solutions
|
|
306
|
+
- Create plans in ./plans directory
|
|
307
|
+
- Use decomposition and working backwards
|
|
308
|
+
|
|
309
|
+
## When Testing
|
|
310
|
+
- Write comprehensive unit tests
|
|
311
|
+
- Don't use mocks to fake passing tests
|
|
312
|
+
- All tests must pass before completion
|
|
313
|
+
|
|
314
|
+
## When Reviewing
|
|
315
|
+
- Check security vulnerabilities
|
|
316
|
+
- Verify error handling
|
|
317
|
+
- Ensure test coverage
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
### 3.4 Commands → Prompt Files
|
|
323
|
+
|
|
324
|
+
| Aspect | Detail |
|
|
325
|
+
|--------|--------|
|
|
326
|
+
| **Claude Code** | `~/.claude/commands/{namespace}/{name}.md` |
|
|
327
|
+
| **Copilot** | `.github/prompts/{name}.prompt.md` |
|
|
328
|
+
| **Why this mapping** | Both are user-invokable shortcuts expanding to full prompts. Same purpose, similar structure. |
|
|
329
|
+
| **Evidence** | VS Code Docs: "Prompt files are Markdown files and use the `.prompt.md` extension... stored in the `.github/prompts` folder." |
|
|
330
|
+
| **Source** | [VS Code Prompt Files](https://code.visualstudio.com/docs/copilot/customization/prompt-files) |
|
|
331
|
+
| **Best Practices** | Use `mode: agent` for multi-step tasks. Keep focused on one task type. Include examples of expected input/output. |
|
|
332
|
+
| **Key Differences** | Claude Code: `$ARGUMENTS` variable, sub-command routing (`/fix:types`). Copilot: No variables, flat structure. User provides context in chat. |
|
|
333
|
+
|
|
334
|
+
**Migration Example:**
|
|
335
|
+
|
|
336
|
+
```markdown
|
|
337
|
+
# Claude Code (commands/ck/fix.md)
|
|
338
|
+
---
|
|
339
|
+
description: Analyze and fix issues [INTELLIGENT ROUTING]
|
|
340
|
+
argument-hint: [issues]
|
|
341
|
+
---
|
|
342
|
+
Analyze issues: <issues>$ARGUMENTS</issues>
|
|
343
|
+
|
|
344
|
+
## Decision Tree
|
|
345
|
+
**Type Errors** → `/fix:types`
|
|
346
|
+
**UI Issues** → `/fix:ui`
|
|
347
|
+
|
|
348
|
+
# Copilot (prompts/fix.prompt.md)
|
|
349
|
+
---
|
|
350
|
+
mode: agent
|
|
351
|
+
description: Analyze and fix code issues
|
|
352
|
+
---
|
|
353
|
+
Analyze the described issue and fix it.
|
|
354
|
+
|
|
355
|
+
## Process
|
|
356
|
+
1. Identify issue type (type errors, UI, tests, CI/CD)
|
|
357
|
+
2. Search relevant files
|
|
358
|
+
3. Analyze root cause
|
|
359
|
+
4. Apply minimal fix
|
|
360
|
+
5. Verify fix works
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
### 3.5 Workflows → Instructions Files
|
|
366
|
+
|
|
367
|
+
| Aspect | Detail |
|
|
368
|
+
|--------|--------|
|
|
369
|
+
| **Claude Code** | `~/.claude/workflows/{name}.md` |
|
|
370
|
+
| **Copilot** | `.github/instructions/{name}.instructions.md` |
|
|
371
|
+
| **Why this mapping** | Both define process rules. Instructions files can be path-specific, making them suitable for workflow rules that apply to certain contexts. |
|
|
372
|
+
| **Evidence** | VS Code Docs: "Create multiple .instructions.md files that apply to specific file types or tasks." |
|
|
373
|
+
| **Source** | [VS Code Custom Instructions](https://code.visualstudio.com/docs/copilot/customization/custom-instructions) |
|
|
374
|
+
| **Best Practices** | Use `applyTo` to scope rules. Split by concern (frontend, backend, testing). Keep actionable. |
|
|
375
|
+
| **Key Differences** | Claude Code workflows are referenced dynamically. Copilot instructions are static, applied based on file pattern match. |
|
|
376
|
+
|
|
377
|
+
**Migration Example:**
|
|
378
|
+
|
|
379
|
+
```yaml
|
|
380
|
+
# Claude Code (workflows/development-rules.md)
|
|
381
|
+
# Development Rules
|
|
382
|
+
- File Naming: Use kebab-case
|
|
383
|
+
- File Size: Keep under 200 lines
|
|
384
|
+
- Use `code-reviewer` agent after implementation
|
|
385
|
+
|
|
386
|
+
# Copilot (instructions/development.instructions.md)
|
|
387
|
+
---
|
|
388
|
+
applyTo: "**/*"
|
|
389
|
+
---
|
|
390
|
+
# Development Rules
|
|
391
|
+
- File Naming: Use kebab-case
|
|
392
|
+
- File Size: Keep under 200 lines
|
|
393
|
+
- Review code for security before committing
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
### 3.6 Hooks → No Equivalent
|
|
399
|
+
|
|
400
|
+
| Aspect | Detail |
|
|
401
|
+
|--------|--------|
|
|
402
|
+
| **Claude Code** | `settings.json` → `hooks` section |
|
|
403
|
+
| **Copilot** | **No equivalent** |
|
|
404
|
+
| **Why no mapping** | Copilot has no runtime hook system. It reads static files, not event-driven execution. |
|
|
405
|
+
| **Evidence** | Extensive search of Copilot docs reveals no hook/event system. |
|
|
406
|
+
| **Source** | N/A |
|
|
407
|
+
| **Best Practices** | Include all context in static files. Accept manual workflow. Consider GitHub Actions for CI-level automation. |
|
|
408
|
+
| **Key Differences** | Claude Code can inject context dynamically per-prompt. Copilot cannot. This is the biggest architectural gap. |
|
|
409
|
+
|
|
410
|
+
**Workaround Strategy:**
|
|
411
|
+
|
|
412
|
+
| Hook Event | Copilot Alternative |
|
|
413
|
+
|------------|---------------------|
|
|
414
|
+
| `SessionStart` | Include all context in copilot-instructions.md |
|
|
415
|
+
| `UserPromptSubmit` | Use prompt files, manually invoke |
|
|
416
|
+
| `PreToolUse` | Include warnings in instructions |
|
|
417
|
+
| `PreCompact` | N/A - Copilot handles context differently |
|
|
418
|
+
| `SessionEnd` | GitHub Actions for cleanup |
|
|
419
|
+
|
|
420
|
+
---
|
|
421
|
+
|
|
422
|
+
### 3.7 Multi-Agent Delegation → No Equivalent
|
|
423
|
+
|
|
424
|
+
| Aspect | Detail |
|
|
425
|
+
|--------|--------|
|
|
426
|
+
| **Claude Code** | Main agent delegates to subagents via `Task` tool |
|
|
427
|
+
| **Copilot** | **No equivalent** - single agent only |
|
|
428
|
+
| **Why no mapping** | Copilot architecture is single-agent. No subagent spawning capability. |
|
|
429
|
+
| **Evidence** | Copilot Agent Mode docs describe one agent doing multi-step tasks, not delegating to other agents. |
|
|
430
|
+
| **Source** | [Agent Mode](https://code.visualstudio.com/blogs/2025/02/24/introducing-copilot-agent-mode) |
|
|
431
|
+
| **Best Practices** | Merge agent behaviors into AGENTS.md sections. User manually switches "modes" via different prompts. |
|
|
432
|
+
| **Key Differences** | Claude Code: Orchestration pattern (main → subagent → report back). Copilot: Single agent follows all guidelines. |
|
|
433
|
+
|
|
434
|
+
**Workaround: Prompt Chaining**
|
|
435
|
+
|
|
436
|
+
```
|
|
437
|
+
# Instead of automatic delegation:
|
|
438
|
+
User → "Plan this feature" → Uses /plan prompt
|
|
439
|
+
User → "Now implement it" → Uses /code prompt
|
|
440
|
+
User → "Now test it" → Uses /test prompt
|
|
441
|
+
User → "Now review it" → Uses /review prompt
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
---
|
|
445
|
+
|
|
446
|
+
### 3.8 Session State → No Equivalent
|
|
447
|
+
|
|
448
|
+
| Aspect | Detail |
|
|
449
|
+
|--------|--------|
|
|
450
|
+
| **Claude Code** | Tracks todos, active plans, session variables |
|
|
451
|
+
| **Copilot** | **No equivalent** - stateless |
|
|
452
|
+
| **Why no mapping** | Copilot doesn't persist state between interactions. Each request is independent. |
|
|
453
|
+
| **Evidence** | No documentation of session state management in Copilot. |
|
|
454
|
+
| **Best Practices** | Manual tracking in files (plan.md, TODO.md). Reference state explicitly in prompts. |
|
|
455
|
+
| **Key Differences** | Claude Code maintains context across interactions. Copilot starts fresh (though has conversation history in chat). |
|
|
456
|
+
|
|
457
|
+
---
|
|
458
|
+
|
|
459
|
+
## 4. Installation Levels
|
|
460
|
+
|
|
461
|
+
CoKit supports two installation levels. Users can choose one or both.
|
|
462
|
+
|
|
463
|
+
### 4.1 Repository Level (Project-Specific)
|
|
464
|
+
|
|
465
|
+
**What:** Install CoKit templates into a specific project's `.github/` folder.
|
|
466
|
+
|
|
467
|
+
**When to use:**
|
|
468
|
+
- Project has specific requirements
|
|
469
|
+
- Team collaboration (everyone gets same config)
|
|
470
|
+
- Version control of AI instructions
|
|
471
|
+
|
|
472
|
+
**Structure (Phase 4):**
|
|
473
|
+
```
|
|
474
|
+
your-project/
|
|
475
|
+
├── .github/
|
|
476
|
+
│ ├── copilot-instructions.md # Project instructions
|
|
477
|
+
│ ├── AGENTS.md # Agent guidelines
|
|
478
|
+
│ ├── instructions/
|
|
479
|
+
│ │ ├── frontend.instructions.md
|
|
480
|
+
│ │ ├── backend.instructions.md
|
|
481
|
+
│ │ └── testing.instructions.md
|
|
482
|
+
│ ├── prompts/
|
|
483
|
+
│ │ ├── fix.prompt.md # Debug and fix issues
|
|
484
|
+
│ │ ├── plan.prompt.md # Create implementation plans
|
|
485
|
+
│ │ ├── code.prompt.md # Implement from plans
|
|
486
|
+
│ │ ├── test.prompt.md # Run and analyze tests
|
|
487
|
+
│ │ ├── review.prompt.md # Code review
|
|
488
|
+
│ │ └── docs.prompt.md # Update documentation
|
|
489
|
+
│ └── skills/
|
|
490
|
+
│ ├── debugging/
|
|
491
|
+
│ ├── code-review/
|
|
492
|
+
│ ├── planning/
|
|
493
|
+
│ ├── docs-seeker/
|
|
494
|
+
│ └── sequential-thinking/
|
|
495
|
+
└── docs/
|
|
496
|
+
├── code-standards.md
|
|
497
|
+
└── system-architecture.md
|
|
498
|
+
```
|
|
499
|
+
|
|
500
|
+
**Installation:**
|
|
501
|
+
```bash
|
|
502
|
+
# From project root
|
|
503
|
+
curl -fsSL https://raw.githubusercontent.com/camping89/cokit/main/install.sh | bash -s -- --level=repo
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
---
|
|
507
|
+
|
|
508
|
+
### 4.2 User Level (Cross-Project)
|
|
509
|
+
|
|
510
|
+
**What:** Install CoKit skills to `~/.copilot/skills/` for use across all projects.
|
|
511
|
+
|
|
512
|
+
**When to use:**
|
|
513
|
+
- Personal productivity skills (debugging, planning)
|
|
514
|
+
- Skills not project-specific
|
|
515
|
+
- Share skills across multiple projects
|
|
516
|
+
|
|
517
|
+
**Phase 3 Status:** All 5 core skills now available following Copilot Agent Skills format.
|
|
518
|
+
|
|
519
|
+
**Structure:**
|
|
520
|
+
```
|
|
521
|
+
~/.copilot/
|
|
522
|
+
└── skills/
|
|
523
|
+
├── debugging/
|
|
524
|
+
│ ├── SKILL.md
|
|
525
|
+
│ ├── references/
|
|
526
|
+
│ │ ├── systematic-debugging.md
|
|
527
|
+
│ │ ├── root-cause-tracing.md
|
|
528
|
+
│ │ └── verification.md
|
|
529
|
+
│ └── scripts/
|
|
530
|
+
├── code-review/
|
|
531
|
+
│ ├── SKILL.md
|
|
532
|
+
│ └── references/
|
|
533
|
+
│ ├── code-review-reception.md
|
|
534
|
+
│ └── verification-before-completion.md
|
|
535
|
+
├── planning/
|
|
536
|
+
│ ├── SKILL.md
|
|
537
|
+
│ └── references/
|
|
538
|
+
│ ├── research-phase.md
|
|
539
|
+
│ ├── solution-design.md
|
|
540
|
+
│ └── plan-organization.md
|
|
541
|
+
├── docs-seeker/
|
|
542
|
+
│ ├── SKILL.md
|
|
543
|
+
│ └── references/
|
|
544
|
+
│ ├── search-patterns.md
|
|
545
|
+
│ └── source-evaluation.md
|
|
546
|
+
└── sequential-thinking/
|
|
547
|
+
├── SKILL.md
|
|
548
|
+
└── references/
|
|
549
|
+
├── core-patterns.md
|
|
550
|
+
└── advanced-techniques.md
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
**Installation:**
|
|
554
|
+
```bash
|
|
555
|
+
# Install to user directory
|
|
556
|
+
curl -fsSL https://raw.githubusercontent.com/camping89/cokit/main/install.sh | bash -s -- --level=user
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
---
|
|
560
|
+
|
|
561
|
+
### 4.3 Both Levels
|
|
562
|
+
|
|
563
|
+
**When to use:**
|
|
564
|
+
- User skills for personal productivity
|
|
565
|
+
- Repo templates for project-specific guidance
|
|
566
|
+
|
|
567
|
+
**Installation:**
|
|
568
|
+
```bash
|
|
569
|
+
# Install both
|
|
570
|
+
curl -fsSL https://raw.githubusercontent.com/camping89/cokit/main/install.sh | bash -s -- --level=all
|
|
571
|
+
```
|
|
572
|
+
|
|
573
|
+
---
|
|
574
|
+
|
|
575
|
+
### 4.4 Installation Comparison
|
|
576
|
+
|
|
577
|
+
| Aspect | Repo Level | User Level |
|
|
578
|
+
|--------|-----------|------------|
|
|
579
|
+
| Location | `.github/` | `~/.copilot/` |
|
|
580
|
+
| Scope | Single project | All projects |
|
|
581
|
+
| Version controlled | Yes | No (personal) |
|
|
582
|
+
| Team sharing | Yes | No |
|
|
583
|
+
| Portability | With project | With user |
|
|
584
|
+
| Contains | Instructions, 6 prompts (Phase 4), skills | 5 core skills (Phase 3) |
|
|
585
|
+
| Prompts | fix, plan, code, test, review, docs (Phase 4) | Not included (repo-level only) |
|
|
586
|
+
| Skills available | debugging, code-review, planning, docs-seeker, sequential-thinking | Same as repo level |
|
|
587
|
+
| References | Each skill includes 2-3 reference docs | Each skill includes 2-3 reference docs |
|
|
588
|
+
|
|
589
|
+
---
|
|
590
|
+
|
|
591
|
+
## 5. Workflow Patterns
|
|
592
|
+
|
|
593
|
+
Since Copilot lacks hooks, workflows are more manual. This section defines patterns for daily development.
|
|
594
|
+
|
|
595
|
+
### 5.1 Why No Hooks Matters
|
|
596
|
+
|
|
597
|
+
**Claude Code with hooks:**
|
|
598
|
+
```
|
|
599
|
+
User types message
|
|
600
|
+
→ UserPromptSubmit hook injects dev-rules reminder
|
|
601
|
+
→ Agent processes with injected context
|
|
602
|
+
→ PreToolUse hook validates tool calls
|
|
603
|
+
→ Agent completes task with guardrails
|
|
604
|
+
```
|
|
605
|
+
|
|
606
|
+
**Copilot without hooks:**
|
|
607
|
+
```
|
|
608
|
+
User types message
|
|
609
|
+
→ Copilot reads static instruction files
|
|
610
|
+
→ Agent processes (no dynamic injection)
|
|
611
|
+
→ Agent completes task
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
**Impact:** You must include ALL context in static files or prompts. No dynamic reminders.
|
|
615
|
+
|
|
616
|
+
---
|
|
617
|
+
|
|
618
|
+
### 5.2 Daily Development Workflow
|
|
619
|
+
|
|
620
|
+
#### Morning Setup
|
|
621
|
+
|
|
622
|
+
```
|
|
623
|
+
1. Open project in VS Code
|
|
624
|
+
2. Review plan.md for today's tasks (if exists)
|
|
625
|
+
3. Optionally run /plan prompt to create daily plan
|
|
626
|
+
|
|
627
|
+
Example prompt: "Review the codebase and create a plan for implementing [feature]"
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
#### Feature Development
|
|
631
|
+
|
|
632
|
+
```
|
|
633
|
+
1. Start with /plan prompt
|
|
634
|
+
"I need to implement [feature]. Create an implementation plan."
|
|
635
|
+
|
|
636
|
+
2. Work on implementation
|
|
637
|
+
- Copilot assists with code completion
|
|
638
|
+
- Reference docs/code-standards.md periodically
|
|
639
|
+
|
|
640
|
+
3. When stuck, use /fix prompt
|
|
641
|
+
"I'm getting this error: [error]. Help me debug."
|
|
642
|
+
|
|
643
|
+
4. Before committing, use /review prompt
|
|
644
|
+
"Review the changes in [files] for issues."
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
#### Debugging Flow
|
|
648
|
+
|
|
649
|
+
```
|
|
650
|
+
1. Use /debug prompt or invoke debugging skill
|
|
651
|
+
"I have a bug where [description]. Help me debug systematically."
|
|
652
|
+
|
|
653
|
+
2. Copilot will (guided by debugging skill):
|
|
654
|
+
- Ask for error messages
|
|
655
|
+
- Search relevant files
|
|
656
|
+
- Trace root cause
|
|
657
|
+
- Propose fix
|
|
658
|
+
|
|
659
|
+
3. Verify fix manually
|
|
660
|
+
- Run tests
|
|
661
|
+
- Check behavior
|
|
662
|
+
```
|
|
663
|
+
|
|
664
|
+
#### Code Review Flow
|
|
665
|
+
|
|
666
|
+
```
|
|
667
|
+
1. Before PR, use /review prompt
|
|
668
|
+
"Review all changes in this branch for security, performance, and best practices."
|
|
669
|
+
|
|
670
|
+
2. Address feedback
|
|
671
|
+
|
|
672
|
+
3. Run tests
|
|
673
|
+
|
|
674
|
+
4. Create PR
|
|
675
|
+
```
|
|
676
|
+
|
|
677
|
+
---
|
|
678
|
+
|
|
679
|
+
### 5.3 Prompt Chaining (Simulating Multi-Agent)
|
|
680
|
+
|
|
681
|
+
Claude Code automatically delegates. With Copilot, chain prompts manually:
|
|
682
|
+
|
|
683
|
+
```
|
|
684
|
+
# Planning Phase
|
|
685
|
+
You: "/plan Implement user authentication"
|
|
686
|
+
Copilot: Returns implementation plan
|
|
687
|
+
|
|
688
|
+
# Implementation Phase
|
|
689
|
+
You: "/code Implement step 1 from the plan: [paste step]"
|
|
690
|
+
Copilot: Implements code
|
|
691
|
+
|
|
692
|
+
# Testing Phase
|
|
693
|
+
You: "/test Write tests for the authentication module"
|
|
694
|
+
Copilot: Writes tests
|
|
695
|
+
|
|
696
|
+
# Review Phase
|
|
697
|
+
You: "/review Review the authentication implementation"
|
|
698
|
+
Copilot: Reviews and suggests improvements
|
|
699
|
+
```
|
|
700
|
+
|
|
701
|
+
---
|
|
702
|
+
|
|
703
|
+
### 5.4 Context Management
|
|
704
|
+
|
|
705
|
+
Without hooks, manage context manually:
|
|
706
|
+
|
|
707
|
+
**Start of session:**
|
|
708
|
+
```
|
|
709
|
+
"I'm working on [project]. Key files are:
|
|
710
|
+
- docs/code-standards.md (coding rules)
|
|
711
|
+
- docs/system-architecture.md (architecture)
|
|
712
|
+
- Current task: [description]"
|
|
713
|
+
```
|
|
714
|
+
|
|
715
|
+
**When context gets stale:**
|
|
716
|
+
```
|
|
717
|
+
"Let me re-establish context:
|
|
718
|
+
- Project: [name]
|
|
719
|
+
- Current task: [description]
|
|
720
|
+
- Files changed: [list]
|
|
721
|
+
- Current issue: [problem]"
|
|
722
|
+
```
|
|
723
|
+
|
|
724
|
+
---
|
|
725
|
+
|
|
726
|
+
### 5.5 Workflow Comparison
|
|
727
|
+
|
|
728
|
+
| Task | Claude Code | Copilot + CoKit |
|
|
729
|
+
|------|-------------|-----------------|
|
|
730
|
+
| Start session | Hooks auto-inject context | User provides context or uses /plan |
|
|
731
|
+
| Plan feature | `/plan` → Delegates to planner agent | `/plan` prompt → Manual follow-up |
|
|
732
|
+
| Implement | Agent follows workflow, delegates testing | Implement, manually run /test |
|
|
733
|
+
| Debug | `/fix` → Auto-routes to specialized handler | `/fix` or `/debug` prompt |
|
|
734
|
+
| Review | Automatic after implementation | Manual `/review` prompt |
|
|
735
|
+
| Commit | `/commit` → git-manager agent | Manual git operations |
|
|
736
|
+
|
|
737
|
+
---
|
|
738
|
+
|
|
739
|
+
### 5.6 Available Prompt Files (Phase 4)
|
|
740
|
+
|
|
741
|
+
6 prompt files for common workflows, all using `mode: agent` format:
|
|
742
|
+
|
|
743
|
+
| Prompt | Purpose | When to Use | File |
|
|
744
|
+
|--------|---------|-------------|------|
|
|
745
|
+
| `/plan` | Create implementation plan | Starting new feature | plan.prompt.md |
|
|
746
|
+
| `/code` | Implement from plan | During development | code.prompt.md |
|
|
747
|
+
| `/fix` | Debug and fix issues | When encountering bugs | fix.prompt.md |
|
|
748
|
+
| `/review` | Code review | Before committing | review.prompt.md |
|
|
749
|
+
| `/test` | Write/run tests | After implementation | test.prompt.md |
|
|
750
|
+
| `/docs` | Update documentation | After feature complete | docs.prompt.md |
|
|
751
|
+
|
|
752
|
+
---
|
|
753
|
+
|
|
754
|
+
## 6. File Format Specifications
|
|
755
|
+
|
|
756
|
+
### 6.1 copilot-instructions.md
|
|
757
|
+
|
|
758
|
+
```markdown
|
|
759
|
+
# Project Instructions
|
|
760
|
+
|
|
761
|
+
Brief project description and context.
|
|
762
|
+
|
|
763
|
+
## Coding Standards
|
|
764
|
+
- List key standards
|
|
765
|
+
- Reference ./docs/code-standards.md for details
|
|
766
|
+
|
|
767
|
+
## Architecture
|
|
768
|
+
- High-level architecture notes
|
|
769
|
+
- Reference ./docs/system-architecture.md
|
|
770
|
+
|
|
771
|
+
## Preferences
|
|
772
|
+
- Preferred patterns
|
|
773
|
+
- Things to avoid
|
|
774
|
+
```
|
|
775
|
+
|
|
776
|
+
**Max recommended size:** ~2000 tokens
|
|
777
|
+
|
|
778
|
+
---
|
|
779
|
+
|
|
780
|
+
### 6.2 *.instructions.md
|
|
781
|
+
|
|
782
|
+
```yaml
|
|
783
|
+
---
|
|
784
|
+
applyTo: "glob-pattern" # Required: e.g., "**/*.ts"
|
|
785
|
+
excludeAgent: "coding-agent" # Optional: exclude from specific agent
|
|
786
|
+
---
|
|
787
|
+
|
|
788
|
+
# Instructions Title
|
|
789
|
+
|
|
790
|
+
Instructions content in Markdown.
|
|
791
|
+
```
|
|
792
|
+
|
|
793
|
+
---
|
|
794
|
+
|
|
795
|
+
### 6.3 AGENTS.md
|
|
796
|
+
|
|
797
|
+
```markdown
|
|
798
|
+
# Agent Guidelines
|
|
799
|
+
|
|
800
|
+
## General Behavior
|
|
801
|
+
- Overall guidelines
|
|
802
|
+
|
|
803
|
+
## When [Task Type]
|
|
804
|
+
- Specific guidelines for this task type
|
|
805
|
+
|
|
806
|
+
## When [Another Task Type]
|
|
807
|
+
- Guidelines for another task type
|
|
808
|
+
```
|
|
809
|
+
|
|
810
|
+
---
|
|
811
|
+
|
|
812
|
+
### 6.4 *.prompt.md
|
|
813
|
+
|
|
814
|
+
```yaml
|
|
815
|
+
---
|
|
816
|
+
mode: agent # Optional: "agent" for multi-step tasks
|
|
817
|
+
description: Brief description # Optional: shown in prompt picker
|
|
818
|
+
---
|
|
819
|
+
|
|
820
|
+
Prompt content in Markdown.
|
|
821
|
+
|
|
822
|
+
## Context
|
|
823
|
+
What context to gather.
|
|
824
|
+
|
|
825
|
+
## Process
|
|
826
|
+
1. Step one
|
|
827
|
+
2. Step two
|
|
828
|
+
|
|
829
|
+
## Output
|
|
830
|
+
Expected output format.
|
|
831
|
+
```
|
|
832
|
+
|
|
833
|
+
---
|
|
834
|
+
|
|
835
|
+
### 6.5 SKILL.md
|
|
836
|
+
|
|
837
|
+
```yaml
|
|
838
|
+
---
|
|
839
|
+
name: skill-name # Required: lowercase, hyphens
|
|
840
|
+
description: What and when # Required: max 1024 chars
|
|
841
|
+
---
|
|
842
|
+
|
|
843
|
+
# Skill Name
|
|
844
|
+
|
|
845
|
+
## When to Use
|
|
846
|
+
- Trigger conditions
|
|
847
|
+
|
|
848
|
+
## Instructions
|
|
849
|
+
Detailed instructions.
|
|
850
|
+
|
|
851
|
+
## References
|
|
852
|
+
- [Doc name](./references/doc.md)
|
|
853
|
+
|
|
854
|
+
## Scripts
|
|
855
|
+
- [Script name](./scripts/script.sh)
|
|
856
|
+
```
|
|
857
|
+
|
|
858
|
+
---
|
|
859
|
+
|
|
860
|
+
## 7. Migration Guide
|
|
861
|
+
|
|
862
|
+
### Step 1: Inventory Current Setup
|
|
863
|
+
|
|
864
|
+
List your Claude Code customizations:
|
|
865
|
+
```bash
|
|
866
|
+
ls ~/.claude/skills/
|
|
867
|
+
ls ~/.claude/commands/
|
|
868
|
+
ls ~/.claude/agents/
|
|
869
|
+
ls ~/.claude/workflows/
|
|
870
|
+
```
|
|
871
|
+
|
|
872
|
+
### Step 2: Prioritize
|
|
873
|
+
|
|
874
|
+
Decide what to migrate:
|
|
875
|
+
1. **Must have:** Skills you use daily
|
|
876
|
+
2. **Nice to have:** Occasionally used commands
|
|
877
|
+
3. **Skip:** Claude-specific features (hooks, multi-agent)
|
|
878
|
+
|
|
879
|
+
### Step 3: Convert Files
|
|
880
|
+
|
|
881
|
+
For each category:
|
|
882
|
+
|
|
883
|
+
| Source | Target | Conversion |
|
|
884
|
+
|--------|--------|------------|
|
|
885
|
+
| CLAUDE.md | copilot-instructions.md | Remove $HOME refs, inline workflow content |
|
|
886
|
+
| skills/ | .github/skills/ or ~/.copilot/skills/ | Copy, remove unsupported frontmatter fields |
|
|
887
|
+
| agents/ | AGENTS.md | Merge into sections |
|
|
888
|
+
| commands/ | .github/prompts/ | Remove $ARGUMENTS, flatten structure |
|
|
889
|
+
| workflows/ | .github/instructions/ | Add applyTo frontmatter |
|
|
890
|
+
|
|
891
|
+
### Step 4: Test
|
|
892
|
+
|
|
893
|
+
1. Open project in VS Code
|
|
894
|
+
2. Enable Copilot
|
|
895
|
+
3. Test each prompt file
|
|
896
|
+
4. Verify skills are discovered
|
|
897
|
+
5. Adjust based on behavior
|
|
898
|
+
|
|
899
|
+
### Step 5: Iterate
|
|
900
|
+
|
|
901
|
+
Copilot behavior differs from Claude Code. Expect to:
|
|
902
|
+
- Reword instructions for clarity
|
|
903
|
+
- Add more explicit guidance
|
|
904
|
+
- Simplify complex workflows
|
|
905
|
+
|
|
906
|
+
---
|
|
907
|
+
|
|
908
|
+
## Appendix: Quick Reference
|
|
909
|
+
|
|
910
|
+
### File Locations
|
|
911
|
+
|
|
912
|
+
| Purpose | Claude Code | Copilot |
|
|
913
|
+
|---------|-------------|---------|
|
|
914
|
+
| Global instructions | ~/.claude/CLAUDE.md | .github/copilot-instructions.md |
|
|
915
|
+
| Agent guidelines | ~/.claude/agents/*.md | .github/agents.md |
|
|
916
|
+
| Skills (repo) | N/A | .github/skills/ |
|
|
917
|
+
| Skills (user) | ~/.claude/skills/ | ~/.copilot/skills/ |
|
|
918
|
+
| Commands/Prompts | ~/.claude/commands/ | .github/prompts/ |
|
|
919
|
+
| Path instructions | ~/.claude/workflows/ | .github/instructions/ |
|
|
920
|
+
|
|
921
|
+
### Frontmatter Fields
|
|
922
|
+
|
|
923
|
+
| Field | instructions.md | prompt.md | SKILL.md |
|
|
924
|
+
|-------|-----------------|-----------|----------|
|
|
925
|
+
| applyTo | Required | N/A | N/A |
|
|
926
|
+
| excludeAgent | Optional | N/A | N/A |
|
|
927
|
+
| mode | N/A | Optional | N/A |
|
|
928
|
+
| description | N/A | Optional | Required |
|
|
929
|
+
| name | N/A | N/A | Required |
|
|
930
|
+
|
|
931
|
+
---
|
|
932
|
+
|
|
933
|
+
**Document Location:** `docs/cokit-comprehensive-mapping-guide.md`
|
|
934
|
+
|
|
935
|
+
**Related Files:**
|
|
936
|
+
- `plans/reports/brainstorm-260106-1029-cokit-claude-to-copilot-mapping.md` - Initial analysis
|
|
937
|
+
- `https://github.com/camping89/cokit` - Project repository
|