ragarciaruben 1.20.20 → 1.20.21

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.
Files changed (86) hide show
  1. package/bin/install.js +406 -1969
  2. package/get-shit-done/templates/AGENTS.md +83 -0
  3. package/get-shit-done/templates/opencode/agents/executor.md +61 -0
  4. package/get-shit-done/templates/opencode/agents/planner.md +77 -0
  5. package/{.github/copilot-context/agents/product-owner.agent.md → get-shit-done/templates/opencode/agents/product-owner.md} +10 -43
  6. package/{.github/copilot-context/agents/verifier.agent.md → get-shit-done/templates/opencode/agents/verifier.md} +12 -38
  7. package/{.github/copilot-context/prompts/break-down-epic.prompt.md → get-shit-done/templates/opencode/commands/break-down-epic.md} +2 -7
  8. package/{.github/copilot-context/prompts/create-tickets.prompt.md → get-shit-done/templates/opencode/commands/create-tickets.md} +4 -22
  9. package/{.github/copilot-context/prompts/execute-phase.prompt.md → get-shit-done/templates/opencode/commands/execute-phase.md} +5 -33
  10. package/{.github/copilot-context/prompts/map-codebase.prompt.md → get-shit-done/templates/opencode/commands/map-codebase.md} +12 -41
  11. package/{.github/copilot-context/prompts/new-project.prompt.md → get-shit-done/templates/opencode/commands/new-project.md} +17 -33
  12. package/{.github/copilot-context/prompts/pause-work.prompt.md → get-shit-done/templates/opencode/commands/pause-work.md} +6 -19
  13. package/{.github/copilot-context/prompts/plan-phase.prompt.md → get-shit-done/templates/opencode/commands/plan-phase.md} +4 -27
  14. package/{.github/copilot-context/prompts/progress.prompt.md → get-shit-done/templates/opencode/commands/progress.md} +1 -4
  15. package/{.github/copilot-context/prompts/redefine-roadmap.prompt.md → get-shit-done/templates/opencode/commands/redefine-roadmap.md} +8 -21
  16. package/{.github/copilot-context/prompts/refine-backlog.prompt.md → get-shit-done/templates/opencode/commands/refine-backlog.md} +3 -14
  17. package/{.github/copilot-context/prompts/resume-work.prompt.md → get-shit-done/templates/opencode/commands/resume-work.md} +2 -13
  18. package/get-shit-done/templates/opencode/commands/set-profile.md +65 -0
  19. package/{.github/copilot-context/prompts/sync-instructions.prompt.md → get-shit-done/templates/opencode/commands/sync-instructions.md} +9 -13
  20. package/{.github/copilot-context/prompts/sync-jira.prompt.md → get-shit-done/templates/opencode/commands/sync-jira.md} +5 -17
  21. package/{.github/copilot-context/prompts/verify-work.prompt.md → get-shit-done/templates/opencode/commands/verify-work.md} +5 -33
  22. package/get-shit-done/templates/opencode.json +15 -0
  23. package/package.json +7 -17
  24. package/.github/copilot-context/README.md +0 -556
  25. package/.github/copilot-context/agents/executor.agent.md +0 -84
  26. package/.github/copilot-context/agents/planner.agent.md +0 -96
  27. package/.github/copilot-context/hooks/hooks.json +0 -11
  28. package/.github/copilot-context/hooks/inject-context.js +0 -107
  29. package/.github/copilot-context/instructions/architecture.instructions.md +0 -33
  30. package/.github/copilot-context/instructions/concerns.instructions.md +0 -30
  31. package/.github/copilot-context/instructions/conventions.instructions.md +0 -25
  32. package/.github/copilot-context/instructions/integrations.instructions.md +0 -30
  33. package/.github/copilot-context/instructions/stack.instructions.md +0 -30
  34. package/.github/copilot-context/instructions/structure.instructions.md +0 -32
  35. package/.github/copilot-context/instructions/testing.instructions.md +0 -25
  36. package/.github/copilot-context/skills/map-codebase/SKILL.md +0 -49
  37. package/.github/copilot-context/skills/project-history/SKILL.md +0 -46
  38. package/.vscode/settings.json +0 -9
  39. package/agents/gsd-codebase-mapper.md +0 -764
  40. package/agents/gsd-debugger.md +0 -1246
  41. package/agents/gsd-executor.md +0 -469
  42. package/agents/gsd-integration-checker.md +0 -443
  43. package/agents/gsd-phase-researcher.md +0 -546
  44. package/agents/gsd-plan-checker.md +0 -690
  45. package/agents/gsd-planner.md +0 -1275
  46. package/agents/gsd-project-researcher.md +0 -621
  47. package/agents/gsd-research-synthesizer.md +0 -239
  48. package/agents/gsd-roadmapper.md +0 -642
  49. package/agents/gsd-verifier.md +0 -573
  50. package/bin/setup-copilot-context.js +0 -244
  51. package/commands/gsd/add-phase.md +0 -43
  52. package/commands/gsd/add-tests.md +0 -41
  53. package/commands/gsd/add-todo.md +0 -47
  54. package/commands/gsd/audit-milestone.md +0 -36
  55. package/commands/gsd/check-todos.md +0 -45
  56. package/commands/gsd/cleanup.md +0 -18
  57. package/commands/gsd/complete-milestone.md +0 -136
  58. package/commands/gsd/debug.md +0 -167
  59. package/commands/gsd/discuss-phase.md +0 -83
  60. package/commands/gsd/execute-phase.md +0 -41
  61. package/commands/gsd/health.md +0 -22
  62. package/commands/gsd/help.md +0 -22
  63. package/commands/gsd/insert-phase.md +0 -32
  64. package/commands/gsd/join-discord.md +0 -18
  65. package/commands/gsd/list-phase-assumptions.md +0 -46
  66. package/commands/gsd/map-codebase.md +0 -71
  67. package/commands/gsd/new-milestone.md +0 -44
  68. package/commands/gsd/new-project.md +0 -42
  69. package/commands/gsd/new-project.md.bak +0 -1041
  70. package/commands/gsd/pause-work.md +0 -38
  71. package/commands/gsd/plan-milestone-gaps.md +0 -34
  72. package/commands/gsd/plan-phase.md +0 -45
  73. package/commands/gsd/progress.md +0 -24
  74. package/commands/gsd/quick.md +0 -41
  75. package/commands/gsd/reapply-patches.md +0 -110
  76. package/commands/gsd/remove-phase.md +0 -31
  77. package/commands/gsd/research-phase.md +0 -189
  78. package/commands/gsd/resume-work.md +0 -40
  79. package/commands/gsd/set-profile.md +0 -34
  80. package/commands/gsd/settings.md +0 -36
  81. package/commands/gsd/update.md +0 -37
  82. package/commands/gsd/verify-work.md +0 -38
  83. package/hooks/dist/gsd-check-update.js +0 -62
  84. package/hooks/dist/gsd-context-monitor.js +0 -122
  85. package/hooks/dist/gsd-statusline.js +0 -108
  86. package/scripts/build-hooks.js +0 -43
@@ -1,10 +1,6 @@
1
1
  ---
2
- name: verify-work
3
2
  description: Verify that completed work meets requirements — checks implementation against .planning/REQUIREMENTS.md and phase success criteria
4
- mode: agent
5
- tools:
6
- - runInTerminal
7
- - search
3
+ agent: verifier
8
4
  ---
9
5
 
10
6
  # Verify Work
@@ -24,16 +20,9 @@ Read:
24
20
  ## Step 2: Run the Test Suite
25
21
 
26
22
  ```bash
27
- # Full test suite
28
23
  npm test 2>&1
29
-
30
- # Coverage report
31
24
  npm run test:coverage 2>&1
32
-
33
- # TypeScript
34
25
  npx tsc --noEmit 2>&1
35
-
36
- # Linting
37
26
  npm run lint 2>&1
38
27
  ```
39
28
 
@@ -46,7 +35,6 @@ For every requirement ID listed for this phase in `REQUIREMENTS.md`:
46
35
  | Requirement | Description | Verification method | Status |
47
36
  |-------------|-------------|---------------------|--------|
48
37
  | AUTH-01 | User can sign up | Test `POST /auth/register` returns 201 | ✅ / ❌ |
49
- | AUTH-02 | Password hashed | Check `users` table never stores plaintext | ✅ / ❌ |
50
38
 
51
39
  For each requirement:
52
40
  1. Check if there are tests covering it
@@ -56,7 +44,7 @@ For each requirement:
56
44
  ## Step 4: Check Phase Success Criteria
57
45
 
58
46
  Read the success criteria from ROADMAP.md for this phase.
59
- For each criterion — make a call: TRUE or FALSE based on evidence (tests, code inspection, running commands).
47
+ For each criterion — make a call: TRUE or FALSE based on evidence.
60
48
 
61
49
  ## Step 5: Write Verification Report
62
50
 
@@ -66,7 +54,7 @@ Write the report to `.planning/phases/[NN]-[phase-name]/VERIFICATION.md`:
66
54
  # Verification Report: Phase [N] — [Phase Name]
67
55
 
68
56
  **Date:** [date]
69
- **Verified by:** Copilot agent
57
+ **Verified by:** OpenCode agent
70
58
 
71
59
  ## Test Results
72
60
  - Tests: [N passing] / [M total]
@@ -86,13 +74,9 @@ Write the report to `.planning/phases/[NN]-[phase-name]/VERIFICATION.md`:
86
74
  | Criterion | Status | Notes |
87
75
  |-----------|--------|-------|
88
76
  | [Criterion 1] | ✅ | [Evidence] |
89
- | [Criterion 2] | ❌ | [What's missing / how to fix] |
90
77
 
91
78
  ## Overall: [PASS ✅ / FAIL ❌]
92
79
 
93
- [Pass: "All requirements met. Phase [N] is complete."]
94
- [Fail: "N requirements not met. See gaps below."]
95
-
96
80
  ## Gaps (if any)
97
81
 
98
82
  ### [Requirement ID] — [Description]
@@ -104,23 +88,11 @@ Write the report to `.planning/phases/[NN]-[phase-name]/VERIFICATION.md`:
104
88
  ## Step 6: Update Documents
105
89
 
106
90
  **If PASS:**
107
- - Mark requirements as complete in `.planning/REQUIREMENTS.md`: `- [x] **AUTH-01**:`
91
+ - Mark requirements as complete in `.planning/REQUIREMENTS.md`
108
92
  - Update `.planning/STATE.md` to show phase verified
109
93
  - Move to next phase
110
94
 
111
95
  **If FAIL:**
112
96
  - Add gap closure plans to the phase plan directory
113
97
  - Update `.planning/STATE.md` with the gaps as blockers
114
- - Suggest running `/execute-phase [N] --gaps-only`
115
-
116
- ## Completion
117
-
118
- ```
119
- [PASS ✅ / FAIL ❌] Phase [N] Verification
120
-
121
- Requirements: [N]/[M] met
122
- Tests: [N passing]
123
- Coverage: [X]%
124
-
125
- [PASS message OR list of gaps to close]
126
- ```
98
+ - Suggest running `/execute-phase [N]` to fix gaps
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://opencode.ai/config.json",
3
+ "model": "anthropic/claude-sonnet-4",
4
+ "instructions": [
5
+ ".planning/codebase/ARCHITECTURE.md",
6
+ ".planning/codebase/STRUCTURE.md",
7
+ ".planning/codebase/CONVENTIONS.md",
8
+ ".planning/codebase/TESTING.md",
9
+ ".planning/codebase/STACK.md",
10
+ ".planning/codebase/INTEGRATIONS.md",
11
+ ".planning/codebase/CONCERNS.md"
12
+ ],
13
+ "default_agent": "executor",
14
+ "mcp": {}
15
+ }
package/package.json CHANGED
@@ -1,36 +1,26 @@
1
1
  {
2
2
  "name": "ragarciaruben",
3
- "version": "1.20.20",
4
- "description": "A meta-prompting, context engineering and spec-driven development system for Claude Code, OpenCode, Gemini and Codex by TÂCHES.",
3
+ "version": "1.20.21",
4
+ "description": "A context engineering and spec-driven development system for GitHub Copilot and OpenCode by TÂCHES.",
5
5
  "bin": {
6
6
  "get-shit-done-cc": "bin/install.js"
7
7
  },
8
8
  "files": [
9
9
  "bin",
10
- "commands",
11
10
  "get-shit-done",
12
- "agents",
13
- "hooks/dist",
14
- "scripts",
15
- ".github/copilot-context",
16
11
  ".github/copilot-instructions.md",
17
12
  ".github/prompts",
18
13
  ".github/instructions",
19
14
  ".github/agents",
20
- ".planning",
21
- ".vscode/settings.json"
15
+ ".planning"
22
16
  ],
23
17
  "keywords": [
24
- "claude",
25
- "claude-code",
18
+ "copilot",
19
+ "github-copilot",
20
+ "opencode",
26
21
  "ai",
27
- "meta-prompting",
28
22
  "context-engineering",
29
- "spec-driven-development",
30
- "gemini",
31
- "gemini-cli",
32
- "codex",
33
- "codex-cli"
23
+ "spec-driven-development"
34
24
  ],
35
25
  "author": "TÂCHES",
36
26
  "license": "MIT",
@@ -1,556 +0,0 @@
1
- # GSD for GitHub Copilot — User Guide
2
-
3
- > **Get Shit Done (GSD)** is a context engineering system that makes GitHub Copilot actually understand your project — its architecture, conventions, current state, and what you're working on — across every session.
4
-
5
- ---
6
-
7
- ## TL;DR
8
-
9
- ```bash
10
- # Install into any project
11
- npx ragarciaruben@latest copilot-context
12
-
13
- # Or pick option 6 from the interactive menu
14
- npx ragarciaruben@latest
15
- ```
16
-
17
- Then in VS Code Copilot Chat:
18
- 1. `/map-codebase` — Copilot analyzes your code and writes structured docs
19
- 2. `/new-project` — Set up project goals, requirements, and roadmap
20
- 3. Start working with `/plan-phase`, `/execute-phase`, `/verify-work`
21
-
22
- ---
23
-
24
- ## Table of Contents
25
-
26
- - [What It Does](#what-it-does)
27
- - [What It Can and Can't Do](#what-it-can-and-cant-do)
28
- - [Installation](#installation)
29
- - [Getting Started (5 minutes)](#getting-started-5-minutes)
30
- - [Daily Workflow](#daily-workflow)
31
- - [Slash Commands Reference](#slash-commands-reference)
32
- - [Agents — Planner, Executor, Verifier](#agents--planner-executor-verifier)
33
- - [Model Profiles](#model-profiles)
34
- - [How Instructions Work (you don't touch these)](#how-instructions-work)
35
- - [The .planning/ Folder — Your Source of Truth](#the-planning-folder--your-source-of-truth)
36
- - [Customizing for Your Project](#customizing-for-your-project)
37
- - [Session Continuity — How State Persists](#session-continuity--how-state-persists)
38
- - [FAQ](#faq)
39
- - [Compatibility](#compatibility)
40
-
41
- ---
42
-
43
- ## What It Does
44
-
45
- Every time you open Copilot Chat, the AI starts from zero — it doesn't know your project's architecture, coding style, what phase you're in, or what you were doing yesterday. GSD fixes this.
46
-
47
- **It gives Copilot:**
48
- - A structured understanding of your codebase (architecture, conventions, testing patterns, tech stack, integrations, tech debt)
49
- - Your project requirements, roadmap, and current phase
50
- - Memory of where you left off across sessions
51
- - Specialized agents for planning, implementing, and verifying work
52
- - Slash commands that run structured workflows (not just chat)
53
-
54
- **Think of it as:** a project manual that Copilot reads automatically so it doesn't ask dumb questions or ignore your conventions.
55
-
56
- ---
57
-
58
- ## What It Can and Can't Do
59
-
60
- ### ✅ Can Do
61
-
62
- | Capability | How |
63
- |---|---|
64
- | **Analyze your codebase** and generate context docs | `/map-codebase` — reads your code, produces 7 structured docs |
65
- | **Plan work** with step-by-step phases | `/plan-phase 3` or `@Planner` agent |
66
- | **Execute plans** with code edits, terminal commands, commits | `/execute-phase 3` or `@Executor` agent |
67
- | **Verify work** against requirements automatically | `/verify-work 3` or `@Verifier` agent |
68
- | **Persist state** across chat sessions | `/pause-work` saves, `/resume-work` restores |
69
- | **Keep instructions fresh** when your project changes | `/sync-instructions` regenerates the digest |
70
- | **Switch AI model profiles** (Opus, Sonnet, GPT-4.1) | `/set-profile` — changes model for all agents |
71
- | **Auto-inject conventions** when editing source/test files | `.instructions.md` files trigger automatically |
72
- | **Agent handoffs** — Planner → Executor → Verifier | Built-in handoff buttons in agent mode |
73
-
74
- ### ❌ Cannot Do
75
-
76
- | Limitation | Why | Workaround |
77
- |---|---|---|
78
- | **No background agents** — can't spawn subagents in parallel | VS Code Copilot doesn't support subprocess spawning like Claude Code | Use agents sequentially via handoffs |
79
- | **No automatic hooks** on older VS Code | Session hooks require VS Code 1.109.3+ (Preview) | Run `/resume-work` manually at session start |
80
- | **Won't auto-update `.planning/` docs** | Copilot won't edit docs unless you tell it to | Run `/map-codebase` periodically, especially after big changes |
81
- | **Agents don't remember across sessions** | Each Copilot Chat session starts fresh | Use `/pause-work` and `/resume-work` |
82
- | **Model profiles require manual switch** | No config-file-based auto-detection yet | Run `/set-profile` once per project |
83
- | **Can't run outside VS Code** | This is a VS Code Copilot system, not a CLI tool | For CLI: use the original GSD with Claude Code/Gemini/Codex |
84
-
85
- ---
86
-
87
- ## Installation
88
-
89
- ### Into an existing project
90
-
91
- ```bash
92
- cd your-project
93
- npx ragarciaruben@latest copilot-context
94
- ```
95
-
96
- This creates:
97
- ```
98
- your-project/
99
- ├── .github/
100
- │ ├── copilot-instructions.md ← auto-loaded every chat
101
- │ ├── prompts/ ← slash commands
102
- │ ├── instructions/ ← conditional context
103
- │ ├── agents/ ← planner/executor/verifier
104
- │ └── copilot-context/ ← skills, hooks, reference README
105
- ├── .planning/ ← source-of-truth docs (you fill these in)
106
- └── .vscode/settings.json ← comments only (no config needed)
107
- ```
108
-
109
- ### Re-install / update
110
-
111
- ```bash
112
- npx ragarciaruben@latest copilot-context --force
113
- ```
114
-
115
- `--force` overwrites existing files. Without it, existing files are skipped.
116
-
117
- ---
118
-
119
- ## Getting Started (5 minutes)
120
-
121
- ### Step 1: Install
122
-
123
- ```bash
124
- cd your-project
125
- npx ragarciaruben@latest copilot-context
126
- ```
127
-
128
- ### Step 2: Map your codebase
129
-
130
- Open VS Code, open Copilot Chat (`Ctrl+Shift+I` or `Cmd+Shift+I`), and type:
131
-
132
- ```
133
- /map-codebase
134
- ```
135
-
136
- Copilot will analyze your project and generate 7 structured documents in `.planning/codebase/`:
137
- - `ARCHITECTURE.md` — layers, data flow, entry points
138
- - `STRUCTURE.md` — where to put new code
139
- - `CONVENTIONS.md` — coding style + naming rules
140
- - `TESTING.md` — test framework + patterns
141
- - `STACK.md` — runtime, dependencies, config
142
- - `INTEGRATIONS.md` — external services
143
- - `CONCERNS.md` — tech debt + fragile areas
144
-
145
- **This takes 1-3 minutes.** After this, Copilot knows your codebase.
146
-
147
- ### Step 3: Set up your project
148
-
149
- ```
150
- /new-project
151
- ```
152
-
153
- Answer the guided questions. This fills in:
154
- - `.planning/PROJECT.md` — what your project is and its core value
155
- - `.planning/REQUIREMENTS.md` — requirements with IDs
156
- - `.planning/ROADMAP.md` — phases with goals and success criteria
157
- - `.planning/STATE.md` — current position
158
-
159
- ### Step 4: Start working
160
-
161
- ```
162
- /plan-phase 1
163
- ```
164
-
165
- That's it. You're set up.
166
-
167
- ---
168
-
169
- ## Daily Workflow
170
-
171
- ### Starting a session
172
-
173
- ```
174
- /resume-work
175
- ```
176
- Copilot reads your saved state and orients itself to where you left off.
177
-
178
- ### Planning work
179
-
180
- Use the `/plan-phase` command or talk to the `@Planner` agent:
181
-
182
- ```
183
- /plan-phase 2
184
- ```
185
-
186
- Or switch to the Planner agent in the agents dropdown and describe what you need planned.
187
-
188
- ### Doing work
189
-
190
- ```
191
- /execute-phase 2
192
- ```
193
-
194
- Or switch to `@Executor`. It follows the plan, writes code, runs commands, and makes commits.
195
-
196
- ### Checking work
197
-
198
- ```
199
- /verify-work 2
200
- ```
201
-
202
- Or switch to `@Verifier`. It runs tests, checks the implementation against requirements, and reports gaps.
203
-
204
- ### Ending a session
205
-
206
- ```
207
- /pause-work
208
- ```
209
-
210
- This saves your current state to `.planning/continue-here.md` — what was done, what's remaining, decisions made, and the exact next action.
211
-
212
- ### Quick check
213
-
214
- ```
215
- /progress
216
- ```
217
-
218
- Shows overall project progress — which phases are done, what's next, requirement coverage.
219
-
220
- ---
221
-
222
- ## Slash Commands Reference
223
-
224
- | Command | What it does | When to use |
225
- |---------|-------------|-------------|
226
- | `/map-codebase` | Analyzes your code → generates 7 context docs | First time setup, or after major refactors |
227
- | `/new-project` | Guided project setup → fills `.planning/` docs | First time only |
228
- | `/plan-phase [N]` | Creates a step-by-step plan for phase N | Before starting new work |
229
- | `/execute-phase [N]` | Implements phase N following the plan | When plan is ready |
230
- | `/verify-work [N]` | Checks phase N against requirements | After implementation |
231
- | `/progress` | Shows project status and completion | Anytime — quick overview |
232
- | `/pause-work` | Saves session state for later | End of work session |
233
- | `/resume-work` | Loads saved state, orients session | Start of work session |
234
- | `/sync-instructions` | Regenerates `copilot-instructions.md` | After updating `.planning/` docs |
235
- | `/set-profile` | Switch AI model for all agents | When you want different quality/cost balance |
236
-
237
- ---
238
-
239
- ## Agents — Planner, Executor, Verifier
240
-
241
- GSD provides three specialized agents. Each has a specific role and restricted tools to keep it focused.
242
-
243
- ### @Planner
244
-
245
- - **Role:** Reads the codebase and requirements, produces detailed plans
246
- - **Tools:** `search` only — **cannot edit files or run commands**
247
- - **Model:** `claude-opus-4` (strongest reasoning)
248
- - **Use when:** Starting a new phase, designing architecture, breaking down work
249
-
250
- The Planner creates a plan document and then offers a handoff button: **"Start Executing"** → sends the plan to the Executor.
251
-
252
- ### @Executor
253
-
254
- - **Role:** Implements the plan — writes code, runs tests, makes commits
255
- - **Tools:** `editFiles`, `runTerminalCommand`, `search`
256
- - **Model:** `claude-opus-4`
257
- - **Use when:** Plan is ready and you want to implement it
258
-
259
- After finishing, it offers: **"Verify This Work"** → sends to Verifier, or **"Pause & Save State"** → saves progress.
260
-
261
- ### @Verifier
262
-
263
- - **Role:** Checks implementation against requirements — runs tests, inspects code
264
- - **Tools:** `runTerminalCommand`, `search` — **cannot edit files**
265
- - **Model:** `claude-sonnet-4`
266
- - **Use when:** After implementing a phase, before merging
267
-
268
- If gaps are found, it offers: **"Fix Gaps"** → sends back to Executor with specific issues.
269
-
270
- ### How to use agents
271
-
272
- 1. In Copilot Chat, click the agent dropdown (or type `@`)
273
- 2. Select **Planner**, **Executor**, or **Verifier**
274
- 3. Describe your task
275
- 4. Use the handoff buttons to chain agents together
276
-
277
- **Typical flow:**
278
- ```
279
- @Planner "Plan the authentication feature"
280
- → produces plan
281
- → click "Start Executing"
282
-
283
- @Executor receives the plan
284
- → writes code, runs tests
285
- → click "Verify This Work"
286
-
287
- @Verifier checks everything
288
- → "All requirements met" ✅
289
- → or "Fix Gaps" → back to Executor
290
- ```
291
-
292
- You can also skip agents entirely and just use slash commands — they do the same thing inline.
293
-
294
- ---
295
-
296
- ## Model Profiles
297
-
298
- Agents use specific AI models. The default is **quality** profile:
299
-
300
- | Agent | Default Model |
301
- |-------|--------------|
302
- | Planner | `claude-opus-4` |
303
- | Executor | `claude-opus-4` |
304
- | Verifier | `claude-sonnet-4` |
305
-
306
- ### Switching profiles
307
-
308
- Run `/set-profile` in Copilot Chat:
309
-
310
- | Profile | Planner | Executor | Verifier | Best for |
311
- |---------|---------|----------|----------|----------|
312
- | **quality** | claude-opus-4 | claude-opus-4 | claude-sonnet-4 | Critical work, architecture decisions |
313
- | **balanced** | claude-sonnet-4 | claude-sonnet-4 | claude-sonnet-4 | Normal development |
314
- | **budget** | gpt-4.1 | gpt-4.1 | gpt-4.1-mini | High-volume, cost-sensitive |
315
- | **gpt** | gpt-4.1 | gpt-4.1 | gpt-4.1 | Prefer OpenAI models |
316
-
317
- `/set-profile` edits the `model:` field in all agent files and saves your choice to `.planning/config.json`.
318
-
319
- ### Per-agent override
320
-
321
- You can also tell `/set-profile` to change just one agent:
322
- ```
323
- /set-profile
324
- > "Use opus for the verifier too, keep everything else on quality"
325
- ```
326
-
327
- ---
328
-
329
- ## How Instructions Work
330
-
331
- > **You don't need to touch these** — they work automatically.
332
-
333
- When you open a file or ask a question, Copilot loads relevant instructions behind the scenes:
334
-
335
- | When you... | Copilot automatically loads |
336
- |------------|---------------------------|
337
- | Edit a `.ts`, `.js`, `.tsx`, `.jsx` file | `conventions.instructions.md` — your coding style |
338
- | Edit a `*.test.ts`, `*.spec.js` file | `testing.instructions.md` — test patterns |
339
- | Ask about architecture or backend | `architecture.instructions.md` |
340
- | Ask where to put a new file | `structure.instructions.md` |
341
- | Ask about dependencies or config | `stack.instructions.md` |
342
- | Ask about external APIs or services | `integrations.instructions.md` |
343
- | Work near tech debt or fragile code | `concerns.instructions.md` |
344
-
345
- Each instruction file points to the detailed doc in `.planning/codebase/`. This keeps instructions small and context-efficient.
346
-
347
- ### Customizing for your language
348
-
349
- If your project isn't TypeScript/JavaScript, edit `.github/instructions/conventions.instructions.md`:
350
-
351
- ```yaml
352
- # Python
353
- applyTo: "**/*.py"
354
-
355
- # Java
356
- applyTo: "**/*.{java,kt}"
357
-
358
- # Go
359
- applyTo: "**/*.go"
360
- ```
361
-
362
- ---
363
-
364
- ## The .planning/ Folder — Your Source of Truth
365
-
366
- All project knowledge lives in `.planning/`. Copilot reads these automatically via the instructions system.
367
-
368
- ```
369
- .planning/
370
- ├── PROJECT.md ← What this project is, who it's for, core constraints
371
- ├── REQUIREMENTS.md ← Feature requirements with IDs (AUTH-01, API-02)
372
- ├── ROADMAP.md ← Phase list: goals, steps, success criteria
373
- ├── STATE.md ← Current phase, progress, recent decisions
374
- ├── continue-here.md ← Session snapshot (written by /pause-work)
375
- ├── config.json ← Model profile + agent override settings
376
- └── codebase/
377
- ├── ARCHITECTURE.md ← System layers, data flow, entry points
378
- ├── STRUCTURE.md ← Directory layout, where to put new code
379
- ├── CONVENTIONS.md ← Naming, formatting, error handling patterns
380
- ├── TESTING.md ← Test framework, patterns, what to test
381
- ├── STACK.md ← Runtime, frameworks, key dependencies
382
- ├── INTEGRATIONS.md ← External APIs, SDKs, service config
383
- └── CONCERNS.md ← Tech debt, fragile areas, security notes
384
- ```
385
-
386
- ### What to commit
387
-
388
- **Commit everything in `.planning/` and `.github/`.** This is shared project context — your whole team benefits when these are in the repo.
389
-
390
- ### When to regenerate
391
-
392
- | Trigger | Action |
393
- |---------|--------|
394
- | Major refactor or new directory structure | `/map-codebase` |
395
- | New external service integrated | Edit `.planning/codebase/INTEGRATIONS.md` or re-run `/map-codebase` |
396
- | Phase completed | `/verify-work` then `/progress` to update state |
397
- | Instructions feel stale | `/sync-instructions` |
398
-
399
- ---
400
-
401
- ## Session Continuity — How State Persists
402
-
403
- Copilot doesn't have memory between sessions. GSD solves this with two files:
404
-
405
- ### `STATE.md` — living memory
406
-
407
- Updated automatically by `/execute-phase` and `/pause-work`. Contains:
408
- - Current phase and progress
409
- - Recent decisions
410
- - Active blockers
411
- - Velocity metrics
412
-
413
- ### `continue-here.md` — exact resume point
414
-
415
- Written by `/pause-work`. Contains:
416
- - What was completed this session
417
- - What remains
418
- - Decisions that were locked
419
- - The **exact next action** to take
420
-
421
- ### Resume flow
422
-
423
- ```
424
- Start new session → /resume-work → Copilot reads both files → oriented in 5 seconds
425
- ```
426
-
427
- If you have VS Code 1.109.3+ and enable hooks (`"chat.hooks.enabled": true`), state is injected automatically at session start — no `/resume-work` needed.
428
-
429
- ---
430
-
431
- ## Customizing for Your Project
432
-
433
- ### Add a new slash command
434
-
435
- Create `.github/prompts/your-command.prompt.md`:
436
-
437
- ```yaml
438
- ---
439
- name: your-command
440
- description: What this command does
441
- mode: agent
442
- tools:
443
- - editFiles
444
- - search
445
- ---
446
-
447
- # Your Command
448
-
449
- Instructions for what Copilot should do when this command is invoked.
450
- ```
451
-
452
- ### Add a new instruction domain
453
-
454
- Create `.github/instructions/your-topic.instructions.md`:
455
-
456
- ```yaml
457
- ---
458
- name: Your Topic
459
- description: When this context is relevant
460
- applyTo: "**/*.sql"
461
- ---
462
-
463
- # Rules for SQL files
464
-
465
- - Use parameterized queries only
466
- - ...
467
- ```
468
-
469
- ### Add a new agent
470
-
471
- Create `.github/agents/your-agent.agent.md`:
472
-
473
- ```yaml
474
- ---
475
- name: YourAgent
476
- description: What this agent specializes in
477
- tools:
478
- - search
479
- model: claude-sonnet-4
480
- ---
481
-
482
- # Your Agent
483
-
484
- Behavior instructions here.
485
- ```
486
-
487
- ---
488
-
489
- ## FAQ
490
-
491
- **Q: Do I need to fill in every `.planning/` file manually?**
492
- No. Run `/map-codebase` to auto-generate the 7 codebase docs, and `/new-project` to fill in project docs via guided questions. Only `PROJECT.md` benefits from some manual input.
493
-
494
- **Q: What happens if I don't run `/pause-work`?**
495
- Next session starts without saved state. Copilot can still read `.planning/` docs, but won't know exactly where you left off. Just run `/resume-work` and describe briefly what you were doing.
496
-
497
- **Q: Can I use this with other AI tools?**
498
- The `.planning/` docs are plain Markdown — any AI tool that reads files can use them. The `.github/` files (prompts, agents, instructions) are VS Code Copilot-specific.
499
-
500
- **Q: Does this cost extra?**
501
- No. This uses your existing GitHub Copilot subscription. Model selection (opus/sonnet/gpt) depends on your plan's model access.
502
-
503
- **Q: How do I update GSD when new versions come out?**
504
- ```bash
505
- npx ragarciaruben@latest copilot-context --force
506
- ```
507
-
508
- **Q: Can multiple team members use this simultaneously?**
509
- Yes. `.planning/` is committed to git. Everyone shares the same project context. Just be mindful of merge conflicts in `STATE.md` if two people `/pause-work` at the same time.
510
-
511
- **Q: The agents don't appear in the dropdown?**
512
- Reload VS Code: `Ctrl+Shift+P` → `Developer: Reload Window`. Agent files must be in `.github/agents/` (the default scan location).
513
-
514
- **Q: Why are there duplicate files in `.github/agents/` and `.github/copilot-context/agents/`?**
515
- `.github/agents/` is where VS Code actually reads them. `.github/copilot-context/agents/` is the reference copy that ships with the installer. The active ones are in `.github/agents/`.
516
-
517
- ---
518
-
519
- ## Compatibility
520
-
521
- | Feature | Minimum VS Code Version |
522
- |---------|------------------------|
523
- | `copilot-instructions.md` (always-on) | Any recent version |
524
- | `*.instructions.md` (conditional) | 1.102+ |
525
- | `*.prompt.md` (slash commands) | 1.102+ |
526
- | `*.agent.md` (agents + handoffs) | 1.106+ |
527
- | `SessionStart` hooks | 1.109.3+ (Preview) |
528
-
529
- ---
530
-
531
- ## Quick Reference Card
532
-
533
- ```
534
- SETUP:
535
- npx ragarciaruben@latest copilot-context Install GSD
536
- /map-codebase Analyze codebase (first time)
537
- /new-project Set up project docs (first time)
538
-
539
- DAILY:
540
- /resume-work Start of session
541
- /plan-phase N Plan phase N
542
- /execute-phase N Implement phase N
543
- /verify-work N Check phase N
544
- /pause-work End of session
545
-
546
- MAINTENANCE:
547
- /progress Check overall status
548
- /sync-instructions Refresh always-on digest
549
- /set-profile Switch AI model profile
550
- /map-codebase Re-analyze after big changes
551
-
552
- AGENTS:
553
- @Planner Plans (read-only)
554
- @Executor Implements (full tools)
555
- @Verifier Checks (read + run)
556
- ```