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,205 @@
|
|
|
1
|
+
# CoKit - Slide Deck
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Slide 1: Title
|
|
6
|
+
|
|
7
|
+
# CoKit
|
|
8
|
+
|
|
9
|
+
**Make GitHub Copilot Smarter in 30 Seconds**
|
|
10
|
+
|
|
11
|
+
`npx cokit init`
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Slide 2: The Problem
|
|
16
|
+
|
|
17
|
+
### Copilot Without CoKit
|
|
18
|
+
|
|
19
|
+
- ❌ Inconsistent debugging (random fixes)
|
|
20
|
+
- ❌ No code review standards
|
|
21
|
+
- ❌ No planning framework
|
|
22
|
+
- ❌ Each dev gets different AI behavior
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Slide 3: The Solution
|
|
27
|
+
|
|
28
|
+
### Copilot With CoKit
|
|
29
|
+
|
|
30
|
+
- ✅ Structured debugging methodology
|
|
31
|
+
- ✅ Consistent code review process
|
|
32
|
+
- ✅ Planning before coding
|
|
33
|
+
- ✅ Team-wide AI behavior via git
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Slide 4: One Command
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npx cokit init
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
That's it. No install. No config. No account.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Slide 5: How It Works
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
You publish once → npm Registry → User runs npx
|
|
51
|
+
↓ ↓
|
|
52
|
+
npm publish Downloads automatically
|
|
53
|
+
↓
|
|
54
|
+
Creates files in project
|
|
55
|
+
↓
|
|
56
|
+
Ready to use in VS Code
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Slide 6: What Users Get
|
|
62
|
+
|
|
63
|
+
### 6 Prompts
|
|
64
|
+
| Command | Action |
|
|
65
|
+
|---------|--------|
|
|
66
|
+
| `/fix` | Debug issues |
|
|
67
|
+
| `/plan` | Create plans |
|
|
68
|
+
| `/code` | Implement |
|
|
69
|
+
| `/test` | Write tests |
|
|
70
|
+
| `/review` | Review code |
|
|
71
|
+
| `/docs` | Update docs |
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Slide 7: What Users Get (cont.)
|
|
76
|
+
|
|
77
|
+
### 5 Skills (Auto-Activate)
|
|
78
|
+
|
|
79
|
+
- **debugging** - Root cause analysis
|
|
80
|
+
- **code-review** - Security + best practices
|
|
81
|
+
- **planning** - Break down features
|
|
82
|
+
- **docs-seeker** - Find documentation
|
|
83
|
+
- **sequential-thinking** - Step-by-step logic
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Slide 8: Two Installation Options
|
|
88
|
+
|
|
89
|
+
| Option | Command | Location |
|
|
90
|
+
|--------|---------|----------|
|
|
91
|
+
| **Project** | `npx cokit init` | `.github/` |
|
|
92
|
+
| **Personal** | `npx cokit init --global` | `~/.copilot/` |
|
|
93
|
+
| **Both** | `npx cokit init --all` | Both |
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Slide 9: CLI Commands
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
npx cokit init # Setup wizard
|
|
101
|
+
npx cokit doctor # Troubleshoot
|
|
102
|
+
npx cokit list # Show installed
|
|
103
|
+
npx cokit update # Get latest
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Slide 10: User Experience
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
$ npx cokit init
|
|
112
|
+
|
|
113
|
+
🚀 CoKit Setup
|
|
114
|
+
|
|
115
|
+
? What do you want to set up?
|
|
116
|
+
› Project templates
|
|
117
|
+
Personal skills
|
|
118
|
+
Both
|
|
119
|
+
|
|
120
|
+
✓ Created .github/copilot-instructions.md
|
|
121
|
+
✓ Created .github/prompts/fix.prompt.md
|
|
122
|
+
...
|
|
123
|
+
|
|
124
|
+
🎉 Done! Try /fix in Copilot Chat.
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Slide 11: Implementation Plan
|
|
130
|
+
|
|
131
|
+
| Phase | What | Time |
|
|
132
|
+
|-------|------|------|
|
|
133
|
+
| 1 | CLI tool | 4h |
|
|
134
|
+
| 2 | Project templates | 3h |
|
|
135
|
+
| 3 | Skills (5) | 4h |
|
|
136
|
+
| 4 | Prompts (6) | 2h |
|
|
137
|
+
| 5 | Documentation | 3h |
|
|
138
|
+
| **Total** | | **16h** |
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Slide 12: Tech Stack
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
Node.js CLI
|
|
146
|
+
├── commander (CLI framework)
|
|
147
|
+
├── prompts (Interactive input)
|
|
148
|
+
└── chalk (Colors)
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
**Zero runtime dependencies for users**
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Slide 13: Release Process
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
# We do once:
|
|
159
|
+
npm publish
|
|
160
|
+
|
|
161
|
+
# Users do:
|
|
162
|
+
npx cokit init # Always gets latest
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Slide 14: What's NOT Included
|
|
168
|
+
|
|
169
|
+
| Feature | Status |
|
|
170
|
+
|---------|--------|
|
|
171
|
+
| Runtime hooks | ❌ No equivalent |
|
|
172
|
+
| Multi-agent | ❌ Single agent only |
|
|
173
|
+
| Session state | ❌ Stateless |
|
|
174
|
+
|
|
175
|
+
**Workaround:** Manual prompt chaining
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## Slide 15: License
|
|
180
|
+
|
|
181
|
+
### CC BY-NC 4.0
|
|
182
|
+
|
|
183
|
+
✅ Personal / Educational / Non-profit
|
|
184
|
+
|
|
185
|
+
❌ Commercial / Corporate
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Slide 16: Summary
|
|
190
|
+
|
|
191
|
+
1. **Problem:** Copilot is inconsistent
|
|
192
|
+
2. **Solution:** CoKit adds structure
|
|
193
|
+
3. **Install:** `npx cokit init`
|
|
194
|
+
4. **Timeline:** 16 hours
|
|
195
|
+
5. **Repo:** github.com/camping89/cokit
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## Slide 17: Questions?
|
|
200
|
+
|
|
201
|
+
**Repository:** https://github.com/camping89/cokit
|
|
202
|
+
|
|
203
|
+
**Full docs:** `docs/cokit-team-presentation.md`
|
|
204
|
+
|
|
205
|
+
**Plan:** `plans/260106-1102-cokit-implementation/`
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
# CoKit: Team Presentation
|
|
2
|
+
|
|
3
|
+
**Date:** January 6, 2026
|
|
4
|
+
**Presenter:** [Your Name]
|
|
5
|
+
**Repository:** https://github.com/camping89/cokit
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. What is CoKit?
|
|
10
|
+
|
|
11
|
+
**One-liner:** Make GitHub Copilot smarter with one command.
|
|
12
|
+
|
|
13
|
+
**Problem:** Developers using GitHub Copilot get inconsistent results because Copilot lacks:
|
|
14
|
+
- Structured debugging approaches
|
|
15
|
+
- Code review standards
|
|
16
|
+
- Planning frameworks
|
|
17
|
+
- Project-specific context
|
|
18
|
+
|
|
19
|
+
**Solution:** CoKit ports proven Claude Code workflow patterns to GitHub Copilot via:
|
|
20
|
+
- 6 pre-built prompts (`/fix`, `/plan`, `/code`, `/test`, `/review`, `/docs`) using `mode: agent`
|
|
21
|
+
- 5 skills teaching Copilot best practices (debugging, code-review, planning, docs-seeker, sequential-thinking)
|
|
22
|
+
- Project templates for team consistency
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 2. How Users Install It
|
|
27
|
+
|
|
28
|
+
### The Complete Flow
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
┌────────────────────────────────────────────────────────────────┐
|
|
32
|
+
│ PUBLISHING (We do once) │
|
|
33
|
+
├────────────────────────────────────────────────────────────────┤
|
|
34
|
+
│ │
|
|
35
|
+
│ Developer npm Registry │
|
|
36
|
+
│ ┌─────────┐ ┌─────────────┐ │
|
|
37
|
+
│ │ cokit/ │ npm publish │ │ │
|
|
38
|
+
│ │ repo │ ───────────────► │ npmjs.com │ │
|
|
39
|
+
│ └─────────┘ │ /cokit │ │
|
|
40
|
+
│ └─────────────┘ │
|
|
41
|
+
│ │
|
|
42
|
+
└────────────────────────────────────────────────────────────────┘
|
|
43
|
+
│
|
|
44
|
+
│ Package now available globally
|
|
45
|
+
▼
|
|
46
|
+
┌────────────────────────────────────────────────────────────────┐
|
|
47
|
+
│ USER EXPERIENCE │
|
|
48
|
+
├────────────────────────────────────────────────────────────────┤
|
|
49
|
+
│ │
|
|
50
|
+
│ Step 1: User runs command │
|
|
51
|
+
│ ┌─────────────────────────────────────────────────────────┐ │
|
|
52
|
+
│ │ $ npx cokit init │ │
|
|
53
|
+
│ └─────────────────────────────────────────────────────────┘ │
|
|
54
|
+
│ │ │
|
|
55
|
+
│ ▼ │
|
|
56
|
+
│ Step 2: npx downloads from npm (automatic, temporary) │
|
|
57
|
+
│ ┌─────────────────────────────────────────────────────────┐ │
|
|
58
|
+
│ │ npm Registry ──► temp folder ──► executes ──► cleanup │ │
|
|
59
|
+
│ └─────────────────────────────────────────────────────────┘ │
|
|
60
|
+
│ │ │
|
|
61
|
+
│ ▼ │
|
|
62
|
+
│ Step 3: Interactive CLI guides user │
|
|
63
|
+
│ ┌─────────────────────────────────────────────────────────┐ │
|
|
64
|
+
│ │ 🚀 CoKit Setup │ │
|
|
65
|
+
│ │ │ │
|
|
66
|
+
│ │ ? What do you want to set up? │ │
|
|
67
|
+
│ │ › Project templates (.github/) │ │
|
|
68
|
+
│ │ Personal skills (~/.copilot/) │ │
|
|
69
|
+
│ │ Both │ │
|
|
70
|
+
│ └─────────────────────────────────────────────────────────┘ │
|
|
71
|
+
│ │ │
|
|
72
|
+
│ ▼ │
|
|
73
|
+
│ Step 4: Files created in user's project (Phase 4) │
|
|
74
|
+
│ ┌─────────────────────────────────────────────────────────┐ │
|
|
75
|
+
│ │ ✓ .github/copilot-instructions.md │ │
|
|
76
|
+
│ │ ✓ .github/AGENTS.md │ │
|
|
77
|
+
│ │ ✓ .github/prompts/fix.prompt.md │ │
|
|
78
|
+
│ │ ✓ .github/prompts/plan.prompt.md │ │
|
|
79
|
+
│ │ ✓ .github/prompts/code.prompt.md │ │
|
|
80
|
+
│ │ ✓ .github/prompts/test.prompt.md │ │
|
|
81
|
+
│ │ ✓ .github/prompts/review.prompt.md │ │
|
|
82
|
+
│ │ ✓ .github/prompts/docs.prompt.md │ │
|
|
83
|
+
│ │ ✓ .vscode/settings.json │ │
|
|
84
|
+
│ │ │ │
|
|
85
|
+
│ │ 🎉 Done! Try /fix in Copilot Chat. │ │
|
|
86
|
+
│ └─────────────────────────────────────────────────────────┘ │
|
|
87
|
+
│ │ │
|
|
88
|
+
│ ▼ │
|
|
89
|
+
│ Step 5: User opens VS Code, types /fix │
|
|
90
|
+
│ ┌─────────────────────────────────────────────────────────┐ │
|
|
91
|
+
│ │ Copilot Chat: "I'll help you debug systematically..." │ │
|
|
92
|
+
│ └─────────────────────────────────────────────────────────┘ │
|
|
93
|
+
│ │
|
|
94
|
+
└────────────────────────────────────────────────────────────────┘
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Why npx (not npm install)?
|
|
98
|
+
|
|
99
|
+
| Aspect | npm install -g | npx (our choice) |
|
|
100
|
+
|--------|----------------|------------------|
|
|
101
|
+
| Steps | 2 commands | 1 command |
|
|
102
|
+
| Global clutter | Yes | No |
|
|
103
|
+
| Always latest | Manual update | Automatic |
|
|
104
|
+
| User complexity | Higher | Lower |
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## 3. What Gets Installed
|
|
109
|
+
|
|
110
|
+
### Option A: Project Templates (`.github/`)
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
your-project/
|
|
114
|
+
├── .github/
|
|
115
|
+
│ ├── copilot-instructions.md # Project-wide AI instructions
|
|
116
|
+
│ ├── AGENTS.md # Agent behavior guidelines
|
|
117
|
+
│ ├── instructions/
|
|
118
|
+
│ │ ├── frontend.instructions.md
|
|
119
|
+
│ │ ├── backend.instructions.md
|
|
120
|
+
│ │ └── testing.instructions.md
|
|
121
|
+
│ ├── prompts/
|
|
122
|
+
│ │ ├── fix.prompt.md # /fix command
|
|
123
|
+
│ │ ├── plan.prompt.md # /plan command
|
|
124
|
+
│ │ ├── code.prompt.md # /code command
|
|
125
|
+
│ │ ├── test.prompt.md # /test command
|
|
126
|
+
│ │ ├── review.prompt.md # /review command
|
|
127
|
+
│ │ └── docs.prompt.md # /docs command
|
|
128
|
+
│ └── skills/
|
|
129
|
+
│ └── (project-specific skills)
|
|
130
|
+
└── .vscode/
|
|
131
|
+
└── settings.json # Copilot settings
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**Use case:** Team projects - everyone gets same AI behavior via git.
|
|
135
|
+
|
|
136
|
+
### Option B: Personal Skills (`~/.copilot/`)
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
~/.copilot/
|
|
140
|
+
└── skills/
|
|
141
|
+
├── debugging/ # Systematic debugging framework
|
|
142
|
+
├── code-review/ # Code review & verification protocols
|
|
143
|
+
├── planning/ # Implementation planning & design
|
|
144
|
+
├── docs-seeker/ # Documentation discovery & research
|
|
145
|
+
└── sequential-thinking/ # Structured problem decomposition
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Use case:** Personal productivity - works across all projects.
|
|
149
|
+
|
|
150
|
+
**Availability:** All 5 skills follow Copilot Agent Skills format with SKILL.md + references/
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## 4. CLI Commands
|
|
155
|
+
|
|
156
|
+
| Command | Description |
|
|
157
|
+
|---------|-------------|
|
|
158
|
+
| `npx cokit init` | Interactive setup wizard |
|
|
159
|
+
| `npx cokit init --global` | Install personal skills only |
|
|
160
|
+
| `npx cokit init --all` | Both project + personal |
|
|
161
|
+
| `npx cokit add <skill>` | Add specific skill |
|
|
162
|
+
| `npx cokit list` | Show installed components |
|
|
163
|
+
| `npx cokit doctor` | Diagnose setup issues |
|
|
164
|
+
| `npx cokit update` | Update to latest version |
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## 5. Prompts Included
|
|
169
|
+
|
|
170
|
+
| Prompt | What it does | Example usage |
|
|
171
|
+
|--------|--------------|---------------|
|
|
172
|
+
| `/fix` | Debug and fix issues | "The login is broken" |
|
|
173
|
+
| `/plan` | Create implementation plan | "Add user authentication" |
|
|
174
|
+
| `/code` | Implement from plan | "Implement step 1 from plan.md" |
|
|
175
|
+
| `/test` | Write/run tests | "Test the auth module" |
|
|
176
|
+
| `/review` | Code review | "Review my changes" |
|
|
177
|
+
| `/docs` | Update documentation | "Document the API" |
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## 6. User-Level Skills (Phase 3)
|
|
182
|
+
|
|
183
|
+
All 5 skills available at `~/.copilot/skills/` following Copilot Agent Skills format:
|
|
184
|
+
|
|
185
|
+
| Skill | What Copilot learns | Format |
|
|
186
|
+
|-------|---------------------|--------|
|
|
187
|
+
| **debugging** | Systematic root cause analysis, not random fixes | SKILL.md + 3 references |
|
|
188
|
+
| **code-review** | Verification gates, technical rigor, feedback protocols | SKILL.md + 2 references |
|
|
189
|
+
| **planning** | Research → design → implementation planning workflow | SKILL.md + 3 references |
|
|
190
|
+
| **docs-seeker** | Documentation discovery, source validation, search patterns | SKILL.md + 2 references |
|
|
191
|
+
| **sequential-thinking** | Structured multi-step problem solving with revision | SKILL.md + 2 references |
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## 7. Technical Architecture
|
|
196
|
+
|
|
197
|
+
```
|
|
198
|
+
cokit/
|
|
199
|
+
├── package.json # npm package config
|
|
200
|
+
├── bin/
|
|
201
|
+
│ └── cokit.js # CLI entry point
|
|
202
|
+
├── src/
|
|
203
|
+
│ ├── index.js # Command router
|
|
204
|
+
│ ├── commands/
|
|
205
|
+
│ │ ├── init.js # Setup wizard
|
|
206
|
+
│ │ ├── add.js # Add skills
|
|
207
|
+
│ │ ├── list.js # Show installed
|
|
208
|
+
│ │ ├── doctor.js # Troubleshoot
|
|
209
|
+
│ │ └── update.js # Update version
|
|
210
|
+
│ └── utils/
|
|
211
|
+
│ ├── copy.js # File operations
|
|
212
|
+
│ ├── prompt.js # Interactive prompts
|
|
213
|
+
│ └── paths.js # Cross-platform paths
|
|
214
|
+
├── templates/
|
|
215
|
+
│ └── repo/ # Project templates
|
|
216
|
+
├── skills/ # User-level skills (Phase 3)
|
|
217
|
+
│ ├── debugging/ # + references/
|
|
218
|
+
│ ├── code-review/ # + references/
|
|
219
|
+
│ ├── planning/ # + references/
|
|
220
|
+
│ ├── docs-seeker/ # + references/
|
|
221
|
+
│ └── sequential-thinking/ # + references/
|
|
222
|
+
├── README.md
|
|
223
|
+
└── LICENSE # CC BY-NC 4.0
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Dependencies (minimal)
|
|
227
|
+
|
|
228
|
+
```json
|
|
229
|
+
{
|
|
230
|
+
"dependencies": {
|
|
231
|
+
"commander": "^12.0.0", // CLI framework
|
|
232
|
+
"prompts": "^2.4.2", // Interactive prompts
|
|
233
|
+
"chalk": "^5.3.0" // Colorized output
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## 8. Implementation Plan
|
|
241
|
+
|
|
242
|
+
| Phase | Description | Effort | Status |
|
|
243
|
+
|-------|-------------|--------|--------|
|
|
244
|
+
| 1 | CLI tool (npm package) | 4h | ✅ Complete |
|
|
245
|
+
| 2 | Repo templates (.github/) | 3h | ✅ Complete |
|
|
246
|
+
| 3 | User skills (5 core + references) | 4h | ✅ Complete |
|
|
247
|
+
| 4 | Prompt files (6 prompts) | 2h | ✅ Complete |
|
|
248
|
+
| 5 | Documentation + README | 3h | ✅ Complete |
|
|
249
|
+
| **Total** | | **16h** | ✅ All Phases Complete |
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## 9. Release Process
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
# Development
|
|
257
|
+
git clone https://github.com/camping89/cokit
|
|
258
|
+
cd cokit
|
|
259
|
+
npm install
|
|
260
|
+
|
|
261
|
+
# Testing locally
|
|
262
|
+
npm link # Makes 'cokit' available locally
|
|
263
|
+
cokit init # Test the CLI
|
|
264
|
+
|
|
265
|
+
# Publishing
|
|
266
|
+
npm login # One-time login
|
|
267
|
+
npm version patch # Bump version (1.0.0 → 1.0.1)
|
|
268
|
+
npm publish # Push to npm registry
|
|
269
|
+
|
|
270
|
+
# Users get it via
|
|
271
|
+
npx cokit init # Always fetches latest
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## 10. What's NOT Included (Limitations)
|
|
277
|
+
|
|
278
|
+
| Claude Code Feature | Status | Reason |
|
|
279
|
+
|---------------------|--------|--------|
|
|
280
|
+
| Runtime hooks | ❌ Skip | Copilot has no equivalent |
|
|
281
|
+
| Multi-agent delegation | ❌ Skip | Single agent only |
|
|
282
|
+
| $ARGUMENTS variables | ❌ Skip | User provides context in chat |
|
|
283
|
+
| Session state | ❌ Skip | Copilot is stateless |
|
|
284
|
+
|
|
285
|
+
**Workaround:** Users manually chain prompts (`/plan` → `/code` → `/test` → `/review`)
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
## 11. Success Metrics
|
|
290
|
+
|
|
291
|
+
- [x] `npx cokit init` works without errors
|
|
292
|
+
- [x] Non-technical user can setup in < 2 minutes
|
|
293
|
+
- [x] All 6 prompts functional in Copilot Chat
|
|
294
|
+
- [x] Skills auto-activate based on context
|
|
295
|
+
- [x] README understandable by beginners
|
|
296
|
+
- [x] `cokit doctor` catches common issues
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
## 12. License
|
|
301
|
+
|
|
302
|
+
**CC BY-NC 4.0** (Creative Commons Attribution-NonCommercial)
|
|
303
|
+
|
|
304
|
+
✅ Allowed:
|
|
305
|
+
- Personal use
|
|
306
|
+
- Educational use
|
|
307
|
+
- Non-profit organizations
|
|
308
|
+
|
|
309
|
+
❌ Not allowed:
|
|
310
|
+
- Commercial products
|
|
311
|
+
- Corporate internal use
|
|
312
|
+
- Revenue-generating applications
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
## Questions?
|
|
317
|
+
|
|
318
|
+
**Repository:** https://github.com/camping89/cokit
|
|
319
|
+
**Plan details:** `plans/260106-1102-cokit-implementation/`
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Migration Guide: Claude Code to CoKit
|
|
2
|
+
|
|
3
|
+
This guide helps Claude Code users adapt to GitHub Copilot with CoKit.
|
|
4
|
+
|
|
5
|
+
## Key Differences
|
|
6
|
+
|
|
7
|
+
| Feature | Claude Code | CoKit/Copilot |
|
|
8
|
+
|---------|-------------|---------------|
|
|
9
|
+
| Commands | `/fix:types`, `/plan:auto` | `/fix`, `/plan` |
|
|
10
|
+
| Arguments | `$ARGUMENTS` variable | User provides in chat |
|
|
11
|
+
| Subagents | Task tool with agents | Single Copilot agent |
|
|
12
|
+
| Hooks | Pre/post execution | Not supported |
|
|
13
|
+
| Skills | `~/.claude/skills/` | `~/.copilot/skills/` |
|
|
14
|
+
| Prompts | `~/.claude/commands/` | `.github/prompts/` |
|
|
15
|
+
|
|
16
|
+
## What's Different
|
|
17
|
+
|
|
18
|
+
### No Sub-Commands
|
|
19
|
+
|
|
20
|
+
**Claude Code:**
|
|
21
|
+
```
|
|
22
|
+
/fix:types # Fix type errors
|
|
23
|
+
/fix:tests # Fix test failures
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**Copilot:**
|
|
27
|
+
```
|
|
28
|
+
/fix the type errors in auth.ts
|
|
29
|
+
/fix the failing tests in user.test.ts
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Provide context directly in your message.
|
|
33
|
+
|
|
34
|
+
### No $ARGUMENTS Variable
|
|
35
|
+
|
|
36
|
+
**Claude Code prompt:**
|
|
37
|
+
```markdown
|
|
38
|
+
Fix the issue: $ARGUMENTS
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**Copilot prompt:**
|
|
42
|
+
```markdown
|
|
43
|
+
Fix the issue described by the user.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Users describe the issue in chat naturally.
|
|
47
|
+
|
|
48
|
+
### No Subagent Delegation
|
|
49
|
+
|
|
50
|
+
**Claude Code:**
|
|
51
|
+
```
|
|
52
|
+
Use Task tool to launch tester agent
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Copilot:**
|
|
56
|
+
```
|
|
57
|
+
Run tests and analyze results
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Copilot handles everything in one agent.
|
|
61
|
+
|
|
62
|
+
### No Hooks
|
|
63
|
+
|
|
64
|
+
Claude Code hooks (pre/post commands) don't exist in Copilot.
|
|
65
|
+
|
|
66
|
+
**Workaround:** Include instructions in the prompt itself:
|
|
67
|
+
```markdown
|
|
68
|
+
Before fixing:
|
|
69
|
+
1. Read the error message
|
|
70
|
+
2. Find the root cause
|
|
71
|
+
|
|
72
|
+
After fixing:
|
|
73
|
+
1. Run tests
|
|
74
|
+
2. Verify the fix works
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Mapping Claude Skills to CoKit
|
|
78
|
+
|
|
79
|
+
| Claude Skill | CoKit Skill | Notes |
|
|
80
|
+
|--------------|-------------|-------|
|
|
81
|
+
| debugging | debugging | Same methodology |
|
|
82
|
+
| code-review | code-review | Same principles |
|
|
83
|
+
| planning | planning | Simplified workflow |
|
|
84
|
+
| docs-seeker | docs-seeker | Same search patterns |
|
|
85
|
+
| sequential-thinking | sequential-thinking | Same approach |
|
|
86
|
+
|
|
87
|
+
## What Works the Same
|
|
88
|
+
|
|
89
|
+
- **Core methodology** - Debugging, planning, review processes
|
|
90
|
+
- **YAGNI/KISS/DRY** - Same principles apply
|
|
91
|
+
- **Quality standards** - Same expectations
|
|
92
|
+
- **File structure** - Similar organization
|
|
93
|
+
|
|
94
|
+
## Quick Migration
|
|
95
|
+
|
|
96
|
+
1. Install CoKit:
|
|
97
|
+
```bash
|
|
98
|
+
npx cokit init --all
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
2. Use prompts directly:
|
|
102
|
+
```
|
|
103
|
+
/fix (describe your issue)
|
|
104
|
+
/plan (describe your feature)
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
3. Skills work automatically - no changes needed.
|
|
108
|
+
|
|
109
|
+
## Tips for Claude Users
|
|
110
|
+
|
|
111
|
+
1. **Be descriptive** - Without $ARGUMENTS, include context in chat
|
|
112
|
+
2. **One step at a time** - No multi-agent orchestration
|
|
113
|
+
3. **Explicit instructions** - Put everything in the prompt
|
|
114
|
+
4. **Manual verification** - No automatic hooks
|
|
115
|
+
|
|
116
|
+
## Getting Help
|
|
117
|
+
|
|
118
|
+
- [FAQ](../FAQ.md) - Common questions
|
|
119
|
+
- [README](../README.md) - Full documentation
|
|
120
|
+
- Run `npx cokit doctor` for setup issues
|