gsd-opencode 1.3.31
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/bin/install.js +222 -0
- package/command/gsd/add-phase.md +207 -0
- package/command/gsd/complete-milestone.md +105 -0
- package/command/gsd/consider-issues.md +201 -0
- package/command/gsd/create-roadmap.md +115 -0
- package/command/gsd/discuss-milestone.md +47 -0
- package/command/gsd/discuss-phase.md +60 -0
- package/command/gsd/execute-plan.md +128 -0
- package/command/gsd/help.md +315 -0
- package/command/gsd/insert-phase.md +227 -0
- package/command/gsd/list-phase-assumptions.md +50 -0
- package/command/gsd/map-codebase.md +84 -0
- package/command/gsd/new-milestone.md +59 -0
- package/command/gsd/new-project.md +316 -0
- package/command/gsd/pause-work.md +122 -0
- package/command/gsd/plan-fix.md +205 -0
- package/command/gsd/plan-phase.md +67 -0
- package/command/gsd/progress.md +316 -0
- package/command/gsd/remove-phase.md +338 -0
- package/command/gsd/research-phase.md +91 -0
- package/command/gsd/resume-work.md +40 -0
- package/command/gsd/verify-work.md +71 -0
- package/get-shit-done/references/checkpoints.md +287 -0
- package/get-shit-done/references/continuation-format.md +255 -0
- package/get-shit-done/references/git-integration.md +254 -0
- package/get-shit-done/references/plan-format.md +428 -0
- package/get-shit-done/references/principles.md +157 -0
- package/get-shit-done/references/questioning.md +162 -0
- package/get-shit-done/references/research-pitfalls.md +215 -0
- package/get-shit-done/references/scope-estimation.md +172 -0
- package/get-shit-done/references/tdd.md +263 -0
- package/get-shit-done/templates/codebase/architecture.md +255 -0
- package/get-shit-done/templates/codebase/concerns.md +310 -0
- package/get-shit-done/templates/codebase/conventions.md +307 -0
- package/get-shit-done/templates/codebase/integrations.md +280 -0
- package/get-shit-done/templates/codebase/stack.md +186 -0
- package/get-shit-done/templates/codebase/structure.md +285 -0
- package/get-shit-done/templates/codebase/testing.md +480 -0
- package/get-shit-done/templates/config.json +18 -0
- package/get-shit-done/templates/context.md +161 -0
- package/get-shit-done/templates/continue-here.md +78 -0
- package/get-shit-done/templates/discovery.md +146 -0
- package/get-shit-done/templates/issues.md +32 -0
- package/get-shit-done/templates/milestone-archive.md +123 -0
- package/get-shit-done/templates/milestone-context.md +93 -0
- package/get-shit-done/templates/milestone.md +115 -0
- package/get-shit-done/templates/phase-prompt.md +303 -0
- package/get-shit-done/templates/project.md +184 -0
- package/get-shit-done/templates/research.md +529 -0
- package/get-shit-done/templates/roadmap.md +196 -0
- package/get-shit-done/templates/state.md +210 -0
- package/get-shit-done/templates/summary.md +273 -0
- package/get-shit-done/templates/uat-issues.md +143 -0
- package/get-shit-done/workflows/complete-milestone.md +643 -0
- package/get-shit-done/workflows/create-milestone.md +416 -0
- package/get-shit-done/workflows/create-roadmap.md +481 -0
- package/get-shit-done/workflows/discovery-phase.md +293 -0
- package/get-shit-done/workflows/discuss-milestone.md +236 -0
- package/get-shit-done/workflows/discuss-phase.md +247 -0
- package/get-shit-done/workflows/execute-phase.md +1625 -0
- package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
- package/get-shit-done/workflows/map-codebase.md +434 -0
- package/get-shit-done/workflows/plan-phase.md +488 -0
- package/get-shit-done/workflows/research-phase.md +436 -0
- package/get-shit-done/workflows/resume-project.md +287 -0
- package/get-shit-done/workflows/transition.md +580 -0
- package/get-shit-done/workflows/verify-work.md +202 -0
- package/package.json +38 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
# Structure Template
|
|
2
|
+
|
|
3
|
+
Template for `.planning/codebase/STRUCTURE.md` - captures physical file organization.
|
|
4
|
+
|
|
5
|
+
**Purpose:** Document where things physically live in the codebase. Answers "where do I put X?"
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## File Template
|
|
10
|
+
|
|
11
|
+
```markdown
|
|
12
|
+
# Codebase Structure
|
|
13
|
+
|
|
14
|
+
**Analysis Date:** [YYYY-MM-DD]
|
|
15
|
+
|
|
16
|
+
## Directory Layout
|
|
17
|
+
|
|
18
|
+
[ASCII tree of top-level directories with purpose]
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
[project-root]/
|
|
22
|
+
├── [dir]/ # [Purpose]
|
|
23
|
+
├── [dir]/ # [Purpose]
|
|
24
|
+
├── [dir]/ # [Purpose]
|
|
25
|
+
└── [file] # [Purpose]
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Directory Purposes
|
|
29
|
+
|
|
30
|
+
**[Directory Name]:**
|
|
31
|
+
- Purpose: [What lives here]
|
|
32
|
+
- Contains: [Types of files: e.g., "*.ts source files", "component directories"]
|
|
33
|
+
- Key files: [Important files in this directory]
|
|
34
|
+
- Subdirectories: [If nested, describe structure]
|
|
35
|
+
|
|
36
|
+
**[Directory Name]:**
|
|
37
|
+
- Purpose: [What lives here]
|
|
38
|
+
- Contains: [Types of files]
|
|
39
|
+
- Key files: [Important files]
|
|
40
|
+
- Subdirectories: [Structure]
|
|
41
|
+
|
|
42
|
+
## Key File Locations
|
|
43
|
+
|
|
44
|
+
**Entry Points:**
|
|
45
|
+
- [Path]: [Purpose: e.g., "CLI entry point"]
|
|
46
|
+
- [Path]: [Purpose: e.g., "Server startup"]
|
|
47
|
+
|
|
48
|
+
**Configuration:**
|
|
49
|
+
- [Path]: [Purpose: e.g., "TypeScript config"]
|
|
50
|
+
- [Path]: [Purpose: e.g., "Build configuration"]
|
|
51
|
+
- [Path]: [Purpose: e.g., "Environment variables"]
|
|
52
|
+
|
|
53
|
+
**Core Logic:**
|
|
54
|
+
- [Path]: [Purpose: e.g., "Business services"]
|
|
55
|
+
- [Path]: [Purpose: e.g., "Database models"]
|
|
56
|
+
- [Path]: [Purpose: e.g., "API routes"]
|
|
57
|
+
|
|
58
|
+
**Testing:**
|
|
59
|
+
- [Path]: [Purpose: e.g., "Unit tests"]
|
|
60
|
+
- [Path]: [Purpose: e.g., "Test fixtures"]
|
|
61
|
+
|
|
62
|
+
**Documentation:**
|
|
63
|
+
- [Path]: [Purpose: e.g., "User-facing docs"]
|
|
64
|
+
- [Path]: [Purpose: e.g., "Developer guide"]
|
|
65
|
+
|
|
66
|
+
## Naming Conventions
|
|
67
|
+
|
|
68
|
+
**Files:**
|
|
69
|
+
- [Pattern]: [Example: e.g., "kebab-case.ts for modules"]
|
|
70
|
+
- [Pattern]: [Example: e.g., "PascalCase.tsx for React components"]
|
|
71
|
+
- [Pattern]: [Example: e.g., "*.test.ts for test files"]
|
|
72
|
+
|
|
73
|
+
**Directories:**
|
|
74
|
+
- [Pattern]: [Example: e.g., "kebab-case for feature directories"]
|
|
75
|
+
- [Pattern]: [Example: e.g., "plural names for collections"]
|
|
76
|
+
|
|
77
|
+
**Special Patterns:**
|
|
78
|
+
- [Pattern]: [Example: e.g., "index.ts for directory exports"]
|
|
79
|
+
- [Pattern]: [Example: e.g., "__tests__ for test directories"]
|
|
80
|
+
|
|
81
|
+
## Where to Add New Code
|
|
82
|
+
|
|
83
|
+
**New Feature:**
|
|
84
|
+
- Primary code: [Directory path]
|
|
85
|
+
- Tests: [Directory path]
|
|
86
|
+
- Config if needed: [Directory path]
|
|
87
|
+
|
|
88
|
+
**New Component/Module:**
|
|
89
|
+
- Implementation: [Directory path]
|
|
90
|
+
- Types: [Directory path]
|
|
91
|
+
- Tests: [Directory path]
|
|
92
|
+
|
|
93
|
+
**New Route/Command:**
|
|
94
|
+
- Definition: [Directory path]
|
|
95
|
+
- Handler: [Directory path]
|
|
96
|
+
- Tests: [Directory path]
|
|
97
|
+
|
|
98
|
+
**Utilities:**
|
|
99
|
+
- Shared helpers: [Directory path]
|
|
100
|
+
- Type definitions: [Directory path]
|
|
101
|
+
|
|
102
|
+
## Special Directories
|
|
103
|
+
|
|
104
|
+
[Any directories with special meaning or generation]
|
|
105
|
+
|
|
106
|
+
**[Directory]:**
|
|
107
|
+
- Purpose: [e.g., "Generated code", "Build output"]
|
|
108
|
+
- Source: [e.g., "Auto-generated by X", "Build artifacts"]
|
|
109
|
+
- Committed: [Yes/No - in .gitignore?]
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
*Structure analysis: [date]*
|
|
114
|
+
*Update when directory structure changes*
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
<good_examples>
|
|
118
|
+
```markdown
|
|
119
|
+
# Codebase Structure
|
|
120
|
+
|
|
121
|
+
**Analysis Date:** 2025-01-20
|
|
122
|
+
|
|
123
|
+
## Directory Layout
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
get-shit-done/
|
|
127
|
+
├── bin/ # Executable entry points
|
|
128
|
+
├── commands/ # Slash command definitions
|
|
129
|
+
│ └── gsd/ # GSD-specific commands
|
|
130
|
+
├── get-shit-done/ # Skill resources
|
|
131
|
+
│ ├── references/ # Principle documents
|
|
132
|
+
│ ├── templates/ # File templates
|
|
133
|
+
│ └── workflows/ # Multi-step procedures
|
|
134
|
+
├── src/ # Source code (if applicable)
|
|
135
|
+
├── tests/ # Test files
|
|
136
|
+
├── package.json # Project manifest
|
|
137
|
+
└── README.md # User documentation
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Directory Purposes
|
|
141
|
+
|
|
142
|
+
**bin/**
|
|
143
|
+
- Purpose: CLI entry points
|
|
144
|
+
- Contains: install.js (installer script)
|
|
145
|
+
- Key files: install.js - handles npx installation
|
|
146
|
+
- Subdirectories: None
|
|
147
|
+
|
|
148
|
+
**commands/gsd/**
|
|
149
|
+
- Purpose: Slash command definitions for Claude Code
|
|
150
|
+
- Contains: *.md files (one per command)
|
|
151
|
+
- Key files: new-project.md, plan-phase.md, execute-plan.md
|
|
152
|
+
- Subdirectories: None (flat structure)
|
|
153
|
+
|
|
154
|
+
**get-shit-done/references/**
|
|
155
|
+
- Purpose: Core philosophy and guidance documents
|
|
156
|
+
- Contains: principles.md, questioning.md, plan-format.md
|
|
157
|
+
- Key files: principles.md - system philosophy
|
|
158
|
+
- Subdirectories: None
|
|
159
|
+
|
|
160
|
+
**get-shit-done/templates/**
|
|
161
|
+
- Purpose: Document templates for .planning/ files
|
|
162
|
+
- Contains: Template definitions with frontmatter
|
|
163
|
+
- Key files: project.md, roadmap.md, plan.md, summary.md
|
|
164
|
+
- Subdirectories: codebase/ (new - for stack/architecture/structure templates)
|
|
165
|
+
|
|
166
|
+
**get-shit-done/workflows/**
|
|
167
|
+
- Purpose: Reusable multi-step procedures
|
|
168
|
+
- Contains: Workflow definitions called by commands
|
|
169
|
+
- Key files: execute-phase.md, research-phase.md
|
|
170
|
+
- Subdirectories: None
|
|
171
|
+
|
|
172
|
+
## Key File Locations
|
|
173
|
+
|
|
174
|
+
**Entry Points:**
|
|
175
|
+
- `bin/install.js` - Installation script (npx entry)
|
|
176
|
+
|
|
177
|
+
**Configuration:**
|
|
178
|
+
- `package.json` - Project metadata, dependencies, bin entry
|
|
179
|
+
- `.gitignore` - Excluded files
|
|
180
|
+
|
|
181
|
+
**Core Logic:**
|
|
182
|
+
- `bin/install.js` - All installation logic (file copying, path replacement)
|
|
183
|
+
|
|
184
|
+
**Testing:**
|
|
185
|
+
- `tests/` - Test files (if present)
|
|
186
|
+
|
|
187
|
+
**Documentation:**
|
|
188
|
+
- `README.md` - User-facing installation and usage guide
|
|
189
|
+
- `CLAUDE.md` - Instructions for Claude Code when working in this repo
|
|
190
|
+
|
|
191
|
+
## Naming Conventions
|
|
192
|
+
|
|
193
|
+
**Files:**
|
|
194
|
+
- kebab-case.md: Markdown documents
|
|
195
|
+
- kebab-case.js: JavaScript source files
|
|
196
|
+
- UPPERCASE.md: Important project files (README, CLAUDE, CHANGELOG)
|
|
197
|
+
|
|
198
|
+
**Directories:**
|
|
199
|
+
- kebab-case: All directories
|
|
200
|
+
- Plural for collections: templates/, commands/, workflows/
|
|
201
|
+
|
|
202
|
+
**Special Patterns:**
|
|
203
|
+
- {command-name}.md: Slash command definition
|
|
204
|
+
- *-template.md: Could be used but templates/ directory preferred
|
|
205
|
+
|
|
206
|
+
## Where to Add New Code
|
|
207
|
+
|
|
208
|
+
**New Slash Command:**
|
|
209
|
+
- Primary code: `commands/gsd/{command-name}.md`
|
|
210
|
+
- Tests: `tests/commands/{command-name}.test.js` (if testing implemented)
|
|
211
|
+
- Documentation: Update `README.md` with new command
|
|
212
|
+
|
|
213
|
+
**New Template:**
|
|
214
|
+
- Implementation: `get-shit-done/templates/{name}.md`
|
|
215
|
+
- Documentation: Template is self-documenting (includes guidelines)
|
|
216
|
+
|
|
217
|
+
**New Workflow:**
|
|
218
|
+
- Implementation: `get-shit-done/workflows/{name}.md`
|
|
219
|
+
- Usage: Reference from command with `@~/.config/opencode/get-shit-done/workflows/{name}.md`
|
|
220
|
+
|
|
221
|
+
**New Reference Document:**
|
|
222
|
+
- Implementation: `get-shit-done/references/{name}.md`
|
|
223
|
+
- Usage: Reference from commands/workflows as needed
|
|
224
|
+
|
|
225
|
+
**Utilities:**
|
|
226
|
+
- No utilities yet (`install.js` is monolithic)
|
|
227
|
+
- If extracted: `src/utils/`
|
|
228
|
+
|
|
229
|
+
## Special Directories
|
|
230
|
+
|
|
231
|
+
**get-shit-done/**
|
|
232
|
+
- Purpose: Resources installed to ~/.config/opencode/
|
|
233
|
+
- Source: Copied by bin/install.js during installation
|
|
234
|
+
- Committed: Yes (source of truth)
|
|
235
|
+
|
|
236
|
+
**commands/**
|
|
237
|
+
- Purpose: Slash commands installed to ~/.config/opencode/commands/
|
|
238
|
+
- Source: Copied by bin/install.js during installation
|
|
239
|
+
- Committed: Yes (source of truth)
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
*Structure analysis: 2025-01-20*
|
|
244
|
+
*Update when directory structure changes*
|
|
245
|
+
```
|
|
246
|
+
</good_examples>
|
|
247
|
+
|
|
248
|
+
<guidelines>
|
|
249
|
+
**What belongs in STRUCTURE.md:**
|
|
250
|
+
- Directory layout (ASCII tree)
|
|
251
|
+
- Purpose of each directory
|
|
252
|
+
- Key file locations (entry points, configs, core logic)
|
|
253
|
+
- Naming conventions
|
|
254
|
+
- Where to add new code (by type)
|
|
255
|
+
- Special/generated directories
|
|
256
|
+
|
|
257
|
+
**What does NOT belong here:**
|
|
258
|
+
- Conceptual architecture (that's ARCHITECTURE.md)
|
|
259
|
+
- Technology stack (that's STACK.md)
|
|
260
|
+
- Code implementation details (defer to code reading)
|
|
261
|
+
- Every single file (focus on directories and key files)
|
|
262
|
+
|
|
263
|
+
**When filling this template:**
|
|
264
|
+
- Use `tree -L 2` or similar to visualize structure
|
|
265
|
+
- Identify top-level directories and their purposes
|
|
266
|
+
- Note naming patterns by observing existing files
|
|
267
|
+
- Locate entry points, configs, and main logic areas
|
|
268
|
+
- Keep directory tree concise (max 2-3 levels)
|
|
269
|
+
|
|
270
|
+
**ASCII tree format:**
|
|
271
|
+
```
|
|
272
|
+
root/
|
|
273
|
+
├── dir1/ # Purpose
|
|
274
|
+
│ ├── subdir/ # Purpose
|
|
275
|
+
│ └── file.ts # Purpose
|
|
276
|
+
├── dir2/ # Purpose
|
|
277
|
+
└── file.ts # Purpose
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
**Useful for phase planning when:**
|
|
281
|
+
- Adding new features (where should files go?)
|
|
282
|
+
- Understanding project organization
|
|
283
|
+
- Finding where specific logic lives
|
|
284
|
+
- Following existing conventions
|
|
285
|
+
</guidelines>
|