pmp-gywd 3.3.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/LICENSE +27 -0
- package/README.md +567 -0
- package/bin/install.js +348 -0
- package/commands/gywd/add-phase.md +207 -0
- package/commands/gywd/anticipate.md +271 -0
- package/commands/gywd/bootstrap.md +336 -0
- package/commands/gywd/challenge.md +344 -0
- package/commands/gywd/check-drift.md +144 -0
- package/commands/gywd/complete-milestone.md +106 -0
- package/commands/gywd/consider-issues.md +202 -0
- package/commands/gywd/context.md +93 -0
- package/commands/gywd/create-roadmap.md +115 -0
- package/commands/gywd/deps.md +169 -0
- package/commands/gywd/digest.md +138 -0
- package/commands/gywd/discuss-milestone.md +47 -0
- package/commands/gywd/discuss-phase.md +60 -0
- package/commands/gywd/execute-plan.md +161 -0
- package/commands/gywd/extract-decisions.md +325 -0
- package/commands/gywd/health.md +150 -0
- package/commands/gywd/help.md +556 -0
- package/commands/gywd/history.md +278 -0
- package/commands/gywd/impact.md +317 -0
- package/commands/gywd/init.md +95 -0
- package/commands/gywd/insert-phase.md +227 -0
- package/commands/gywd/list-phase-assumptions.md +50 -0
- package/commands/gywd/map-codebase.md +84 -0
- package/commands/gywd/memory.md +159 -0
- package/commands/gywd/new-milestone.md +59 -0
- package/commands/gywd/new-project.md +315 -0
- package/commands/gywd/pause-work.md +123 -0
- package/commands/gywd/plan-fix.md +205 -0
- package/commands/gywd/plan-phase.md +93 -0
- package/commands/gywd/preview-plan.md +139 -0
- package/commands/gywd/profile.md +363 -0
- package/commands/gywd/progress.md +317 -0
- package/commands/gywd/remove-phase.md +338 -0
- package/commands/gywd/research-phase.md +91 -0
- package/commands/gywd/resume-work.md +40 -0
- package/commands/gywd/rollback.md +179 -0
- package/commands/gywd/status.md +42 -0
- package/commands/gywd/sync-github.md +234 -0
- package/commands/gywd/verify-work.md +71 -0
- package/commands/gywd/why.md +251 -0
- package/docs/COMMANDS.md +722 -0
- package/docs/CONTRIBUTING.md +342 -0
- package/docs/EXAMPLES.md +535 -0
- package/docs/GETTING-STARTED.md +262 -0
- package/docs/README.md +55 -0
- package/docs/RELEASING.md +159 -0
- package/get-your-work-done/core/agent-patterns.md +331 -0
- package/get-your-work-done/core/architecture.md +334 -0
- package/get-your-work-done/core/context-model-schema.json +154 -0
- package/get-your-work-done/core/decisions-schema.json +193 -0
- package/get-your-work-done/core/learning-state-schema.json +133 -0
- package/get-your-work-done/core/profile-schema.json +257 -0
- package/get-your-work-done/references/adaptive-decomposition.md +175 -0
- package/get-your-work-done/references/checkpoints.md +287 -0
- package/get-your-work-done/references/confidence-scoring.md +169 -0
- package/get-your-work-done/references/continuation-format.md +255 -0
- package/get-your-work-done/references/git-integration.md +254 -0
- package/get-your-work-done/references/plan-format.md +428 -0
- package/get-your-work-done/references/principles.md +157 -0
- package/get-your-work-done/references/questioning.md +162 -0
- package/get-your-work-done/references/research-pitfalls.md +215 -0
- package/get-your-work-done/references/scope-estimation.md +172 -0
- package/get-your-work-done/references/tdd.md +263 -0
- package/get-your-work-done/templates/codebase/architecture.md +255 -0
- package/get-your-work-done/templates/codebase/concerns.md +310 -0
- package/get-your-work-done/templates/codebase/conventions.md +307 -0
- package/get-your-work-done/templates/codebase/integrations.md +280 -0
- package/get-your-work-done/templates/codebase/stack.md +186 -0
- package/get-your-work-done/templates/codebase/structure.md +285 -0
- package/get-your-work-done/templates/codebase/testing.md +480 -0
- package/get-your-work-done/templates/config.json +18 -0
- package/get-your-work-done/templates/context.md +161 -0
- package/get-your-work-done/templates/continue-here.md +78 -0
- package/get-your-work-done/templates/discovery.md +146 -0
- package/get-your-work-done/templates/issues.md +32 -0
- package/get-your-work-done/templates/milestone-archive.md +123 -0
- package/get-your-work-done/templates/milestone-context.md +93 -0
- package/get-your-work-done/templates/milestone.md +115 -0
- package/get-your-work-done/templates/phase-prompt.md +303 -0
- package/get-your-work-done/templates/project.md +184 -0
- package/get-your-work-done/templates/research.md +529 -0
- package/get-your-work-done/templates/roadmap.md +196 -0
- package/get-your-work-done/templates/state.md +210 -0
- package/get-your-work-done/templates/summary.md +273 -0
- package/get-your-work-done/templates/uat-issues.md +143 -0
- package/get-your-work-done/workflows/complete-milestone.md +643 -0
- package/get-your-work-done/workflows/create-milestone.md +416 -0
- package/get-your-work-done/workflows/create-roadmap.md +481 -0
- package/get-your-work-done/workflows/discovery-phase.md +293 -0
- package/get-your-work-done/workflows/discuss-milestone.md +236 -0
- package/get-your-work-done/workflows/discuss-phase.md +247 -0
- package/get-your-work-done/workflows/execute-phase.md +1625 -0
- package/get-your-work-done/workflows/list-phase-assumptions.md +178 -0
- package/get-your-work-done/workflows/map-codebase.md +434 -0
- package/get-your-work-done/workflows/plan-phase.md +488 -0
- package/get-your-work-done/workflows/research-phase.md +436 -0
- package/get-your-work-done/workflows/resume-project.md +287 -0
- package/get-your-work-done/workflows/transition.md +580 -0
- package/get-your-work-done/workflows/verify-work.md +202 -0
- package/lib/automation/dependency-analyzer.js +635 -0
- package/lib/automation/doc-generator.js +643 -0
- package/lib/automation/index.js +42 -0
- package/lib/automation/test-generator.js +628 -0
- package/lib/context/context-analyzer.js +554 -0
- package/lib/context/context-cache.js +426 -0
- package/lib/context/context-predictor.js +622 -0
- package/lib/context/index.js +44 -0
- package/lib/memory/confidence-calibrator.js +484 -0
- package/lib/memory/feedback-collector.js +551 -0
- package/lib/memory/global-memory.js +465 -0
- package/lib/memory/index.js +75 -0
- package/lib/memory/pattern-aggregator.js +487 -0
- package/lib/memory/team-sync.js +501 -0
- package/lib/profile/index.js +24 -0
- package/lib/profile/pattern-learner.js +303 -0
- package/lib/profile/profile-manager.js +445 -0
- package/lib/questioning/index.js +49 -0
- package/lib/questioning/question-engine.js +311 -0
- package/lib/questioning/question-templates.js +315 -0
- package/lib/validators/command-validator.js +188 -0
- package/lib/validators/index.js +29 -0
- package/lib/validators/schema-validator.js +183 -0
- package/package.json +61 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 cyberbloke9
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
This project is based on "Get Shit Done" by Lex Christopherson (TÂCHES)
|
|
26
|
+
Original repository: https://github.com/glittercowboy/get-shit-done
|
|
27
|
+
Original License: MIT
|
package/README.md
ADDED
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# PMP - GYWD (Get Your Work Done)
|
|
4
|
+
|
|
5
|
+
**Ship faster with AI that remembers your decisions.**
|
|
6
|
+
|
|
7
|
+
*The context engineering framework for Claude Code — 40 commands · 557 tests · Zero runtime deps*
|
|
8
|
+
|
|
9
|
+
[](https://github.com/cyberbloke9/pmp-gywd/releases)
|
|
10
|
+
[](https://github.com/cyberbloke9/pmp-gywd/actions)
|
|
11
|
+
[](LICENSE)
|
|
12
|
+
|
|
13
|
+
<br>
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx pmp-gywd
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Cross-platform: Windows, Mac, Linux**
|
|
20
|
+
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## What's New in v3.2?
|
|
26
|
+
|
|
27
|
+
**Enhanced Learning System** — Cross-project memory and team pattern sharing.
|
|
28
|
+
|
|
29
|
+
| Module | What It Does |
|
|
30
|
+
|--------|--------------|
|
|
31
|
+
| **GlobalMemory** | Persist patterns across projects in `~/.gywd/global/` |
|
|
32
|
+
| **PatternAggregator** | Detect consensus, identify outliers, Bayesian boosting |
|
|
33
|
+
| **FeedbackCollector** | Track suggestion outcomes, detect suppression |
|
|
34
|
+
| **ConfidenceCalibrator** | Beta-Binomial Bayesian confidence scoring |
|
|
35
|
+
| **TeamSync** | Export/import patterns with conflict resolution |
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
v3.2 Enhanced Learning System
|
|
39
|
+
┌─────────────────────────────────────────────┐
|
|
40
|
+
│ GlobalMemory ◄──────► PatternAggregator │
|
|
41
|
+
│ (persistence) (consensus) │
|
|
42
|
+
│ │ │ │
|
|
43
|
+
│ ▼ ▼ │
|
|
44
|
+
│ TeamSync ConfidenceCalibrator │
|
|
45
|
+
│ (sharing) (Bayesian) │
|
|
46
|
+
│ │ │
|
|
47
|
+
│ ┌───────────────┘ │
|
|
48
|
+
│ ▼ │
|
|
49
|
+
│ FeedbackCollector │
|
|
50
|
+
│ (learning) │
|
|
51
|
+
└─────────────────────────────────────────────┘
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### v3.0: Sophisticated Brain
|
|
55
|
+
|
|
56
|
+
| Engine | What It Does |
|
|
57
|
+
|--------|--------------|
|
|
58
|
+
| **Profile Engine** | Developer Digital Twin — learns your patterns |
|
|
59
|
+
| **Questioning Engine** | Adaptive questions that skip what's known |
|
|
60
|
+
| **Context Predictor** | Pre-loads relevant context before you ask |
|
|
61
|
+
| **Automation Framework** | Dependency analysis, test/doc generation |
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
v3.0 Sophisticated Brain
|
|
65
|
+
┌─────────────────────────────────────────────┐
|
|
66
|
+
│ Profile ◄──────► Questioning │
|
|
67
|
+
│ Engine Engine │
|
|
68
|
+
│ │ │ │
|
|
69
|
+
│ └───────┬────────┘ │
|
|
70
|
+
│ ▼ │
|
|
71
|
+
│ Context Predictor │
|
|
72
|
+
│ (Analyzer + Cache) │
|
|
73
|
+
│ │ │
|
|
74
|
+
│ ▼ │
|
|
75
|
+
│ Continuous Learning │
|
|
76
|
+
└─────────────────────────────────────────────┘
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
*See [CHANGELOG.md](CHANGELOG.md) for full version history.*
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## What is GYWD?
|
|
84
|
+
|
|
85
|
+
**The problem:** AI generates code that conflicts with your existing decisions, forgets context between sessions, and degrades as projects grow.
|
|
86
|
+
|
|
87
|
+
**The solution:** GYWD builds a decision graph of your codebase and maintains persistent context across sessions.
|
|
88
|
+
|
|
89
|
+
| Challenge | How GYWD Solves It |
|
|
90
|
+
|-----------|-------------------|
|
|
91
|
+
| Lost context between sessions | Decision graph + persistent memory |
|
|
92
|
+
| AI conflicts with architecture | Checks new code against existing decisions |
|
|
93
|
+
| "Why was this built this way?" | `/gywd:why` traces code to decisions |
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Getting Started
|
|
98
|
+
|
|
99
|
+
### 1. Install
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
npx pmp-gywd
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Choose **global** (all projects) or **local** (this project only).
|
|
106
|
+
|
|
107
|
+
### 2. Verify
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
/gywd:help
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### 3. Start Working
|
|
114
|
+
|
|
115
|
+
| Your Situation | Command |
|
|
116
|
+
|----------------|---------|
|
|
117
|
+
| New project from scratch | `/gywd:new-project` |
|
|
118
|
+
| Existing codebase | `/gywd:bootstrap` |
|
|
119
|
+
|
|
120
|
+
**New to GYWD?** See the [tutorial](docs/GETTING-STARTED.md) or [workflow examples](docs/EXAMPLES.md).
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Quick Reference
|
|
125
|
+
|
|
126
|
+
| Situation | Command |
|
|
127
|
+
|-----------|---------|
|
|
128
|
+
| Brand new idea | `/gywd:new-project` |
|
|
129
|
+
| Existing codebase | `/gywd:bootstrap` |
|
|
130
|
+
| Start of day | `/gywd:progress` |
|
|
131
|
+
| Returning after break | `/gywd:resume-work` |
|
|
132
|
+
| Why does this code exist? | `/gywd:why <file>` |
|
|
133
|
+
| Plan next feature | `/gywd:plan-phase` |
|
|
134
|
+
| Execute the plan | `/gywd:execute-plan` |
|
|
135
|
+
| Review my approach | `/gywd:challenge` |
|
|
136
|
+
| Save state before stopping | `/gywd:pause-work` |
|
|
137
|
+
|
|
138
|
+
*See `/gywd:help` for all 40 commands*
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Starting Fresh (New Project)
|
|
143
|
+
|
|
144
|
+
**Run:** `/gywd:new-project`
|
|
145
|
+
|
|
146
|
+
GYWD interviews you about your vision, then:
|
|
147
|
+
- Creates `PROJECT.md` with requirements
|
|
148
|
+
- Builds your developer profile
|
|
149
|
+
- Records preferences for future sessions
|
|
150
|
+
|
|
151
|
+
**Typical flow:**
|
|
152
|
+
```bash
|
|
153
|
+
/gywd:new-project # Define vision
|
|
154
|
+
/gywd:create-roadmap # Generate phases
|
|
155
|
+
/gywd:plan-phase 1 # Plan first phase
|
|
156
|
+
/gywd:execute-plan # Build it
|
|
157
|
+
/gywd:progress # Continue next day
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Existing Codebase
|
|
163
|
+
|
|
164
|
+
**Run:** `/gywd:bootstrap`
|
|
165
|
+
|
|
166
|
+
GYWD analyzes your code and builds:
|
|
167
|
+
- `STACK.md`, `ARCHITECTURE.md`, `CONVENTIONS.md` — codebase documentation
|
|
168
|
+
- `decisions.json` — decision graph extracted from git history
|
|
169
|
+
- Context model for predictive loading
|
|
170
|
+
|
|
171
|
+
**Typical flow:**
|
|
172
|
+
```bash
|
|
173
|
+
/gywd:bootstrap # Analyze codebase
|
|
174
|
+
/gywd:new-project # Define new feature
|
|
175
|
+
/gywd:plan-phase 1 # Plan implementation
|
|
176
|
+
/gywd:execute-plan # Build with context
|
|
177
|
+
/gywd:why <file> # Understand existing code
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## The Decision Intelligence Paradigm
|
|
183
|
+
|
|
184
|
+
### Understanding WHY
|
|
185
|
+
|
|
186
|
+
```
|
|
187
|
+
/gywd:why src/utils/result.ts
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
**Output:**
|
|
191
|
+
```
|
|
192
|
+
DEC-015: Result pattern for error handling [88%]
|
|
193
|
+
|
|
194
|
+
Rationale: Explicit error handling without exceptions, enabling
|
|
195
|
+
type-safe error propagation.
|
|
196
|
+
|
|
197
|
+
Alternatives Considered:
|
|
198
|
+
- Try-catch blocks: Rejected - swallows errors, loses type info
|
|
199
|
+
- Error codes: Rejected - easy to ignore, verbose
|
|
200
|
+
|
|
201
|
+
Trade-offs:
|
|
202
|
+
- Gained: Type safety, explicit handling, composability
|
|
203
|
+
- Sacrificed: Verbosity, learning curve
|
|
204
|
+
|
|
205
|
+
Source: Commit a3f2c1 "Implement Result monad for API layer"
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Adversarial Review
|
|
209
|
+
|
|
210
|
+
```
|
|
211
|
+
/gywd:challenge .planning/phases/03-payment/03-01-PLAN.md
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Spawns competing agents:
|
|
215
|
+
- **Critic**: Finds logical flaws
|
|
216
|
+
- **Devil's Advocate**: Argues for alternatives
|
|
217
|
+
- **Red Team**: Simulates security attacks
|
|
218
|
+
- **Chaos Agent**: Generates edge cases
|
|
219
|
+
- **Skeptic**: Questions assumptions
|
|
220
|
+
|
|
221
|
+
### Predictive Context
|
|
222
|
+
|
|
223
|
+
```
|
|
224
|
+
/gywd:anticipate --for "payment integration"
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
Pre-loads relevant decisions, patterns, and past implementations before you start working.
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## Workflows
|
|
232
|
+
|
|
233
|
+
### New Project (Greenfield)
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
/gywd:new-project # Define vision
|
|
237
|
+
/gywd:create-roadmap # Generate phases
|
|
238
|
+
/gywd:plan-phase 1 # Plan first phase
|
|
239
|
+
/gywd:execute-plan # Build it
|
|
240
|
+
/gywd:progress # Check status, continue
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### Existing Codebase (Brownfield)
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
/gywd:bootstrap # Initialize v3.0 (recommended)
|
|
247
|
+
# OR
|
|
248
|
+
/gywd:map-codebase # Analyze structure only
|
|
249
|
+
/gywd:extract-decisions # Build decision graph only
|
|
250
|
+
|
|
251
|
+
/gywd:new-project # Define additions
|
|
252
|
+
/gywd:create-roadmap # Plan within architecture
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Daily Development
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
/gywd:progress # Start of day - see status
|
|
259
|
+
/gywd:resume-work # Restore session context
|
|
260
|
+
/gywd:pause-work # Save state before break
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Command Reference (40 Commands)
|
|
266
|
+
|
|
267
|
+
### Daily Workflow
|
|
268
|
+
|
|
269
|
+
| Command | What It Does |
|
|
270
|
+
|---------|--------------|
|
|
271
|
+
| `/gywd:status` | Show one-line project status |
|
|
272
|
+
| `/gywd:progress` | See what's next and resume work |
|
|
273
|
+
| `/gywd:resume-work` | Restore context from previous session |
|
|
274
|
+
| `/gywd:pause-work` | Save state before stopping |
|
|
275
|
+
|
|
276
|
+
### Project Setup
|
|
277
|
+
|
|
278
|
+
| Command | What It Does |
|
|
279
|
+
|---------|--------------|
|
|
280
|
+
| `/gywd:new-project` | Start new project with guided interview |
|
|
281
|
+
| `/gywd:init <name>` | Quick start with minimal questions |
|
|
282
|
+
| `/gywd:bootstrap` | Analyze existing codebase completely |
|
|
283
|
+
| `/gywd:map-codebase` | Scan and document code structure |
|
|
284
|
+
| `/gywd:create-roadmap` | Generate phase breakdown |
|
|
285
|
+
|
|
286
|
+
### Planning
|
|
287
|
+
|
|
288
|
+
| Command | What It Does |
|
|
289
|
+
|---------|--------------|
|
|
290
|
+
| `/gywd:plan-phase [N]` | Create detailed task plan for phase |
|
|
291
|
+
| `/gywd:discuss-phase [N]` | Clarify requirements before planning |
|
|
292
|
+
| `/gywd:research-phase [N]` | Investigate unknowns before planning |
|
|
293
|
+
| `/gywd:list-phase-assumptions [N]` | See what Claude assumes about phase |
|
|
294
|
+
| `/gywd:preview-plan [path]` | Dry-run plan without executing |
|
|
295
|
+
|
|
296
|
+
### Execution
|
|
297
|
+
|
|
298
|
+
| Command | What It Does |
|
|
299
|
+
|---------|--------------|
|
|
300
|
+
| `/gywd:execute-plan [path]` | Run plan (supports `--tasks 1-3`) |
|
|
301
|
+
| `/gywd:verify-work` | Test completed work with user |
|
|
302
|
+
| `/gywd:plan-fix` | Create fix plan for found issues |
|
|
303
|
+
|
|
304
|
+
### Understanding Code
|
|
305
|
+
|
|
306
|
+
| Command | What It Does |
|
|
307
|
+
|---------|--------------|
|
|
308
|
+
| `/gywd:why <target>` | Trace code to its original decisions |
|
|
309
|
+
| `/gywd:history <query>` | See how code evolved over time |
|
|
310
|
+
| `/gywd:extract-decisions` | Build decision graph from git |
|
|
311
|
+
| `/gywd:anticipate` | Pre-load context for upcoming work |
|
|
312
|
+
| `/gywd:challenge [target]` | Get adversarial review of plan/code |
|
|
313
|
+
|
|
314
|
+
### Analysis
|
|
315
|
+
|
|
316
|
+
| Command | What It Does |
|
|
317
|
+
|---------|--------------|
|
|
318
|
+
| `/gywd:context` | Show context budget usage |
|
|
319
|
+
| `/gywd:health` | Display project health dashboard |
|
|
320
|
+
| `/gywd:deps [N]` | Visualize phase dependencies |
|
|
321
|
+
| `/gywd:check-drift` | Detect spec vs implementation drift |
|
|
322
|
+
| `/gywd:digest [area]` | Generate compact codebase summary |
|
|
323
|
+
| `/gywd:consider-issues` | Triage deferred issues |
|
|
324
|
+
|
|
325
|
+
### Roadmap & Milestones
|
|
326
|
+
|
|
327
|
+
| Command | What It Does |
|
|
328
|
+
|---------|--------------|
|
|
329
|
+
| `/gywd:add-phase <desc>` | Append new phase to roadmap |
|
|
330
|
+
| `/gywd:insert-phase <N> <desc>` | Insert urgent work as N.1 |
|
|
331
|
+
| `/gywd:remove-phase <N>` | Delete phase and renumber |
|
|
332
|
+
| `/gywd:new-milestone <name>` | Start new milestone |
|
|
333
|
+
| `/gywd:discuss-milestone` | Plan next milestone interactively |
|
|
334
|
+
| `/gywd:complete-milestone` | Archive milestone and tag release |
|
|
335
|
+
|
|
336
|
+
### Memory & Profile
|
|
337
|
+
|
|
338
|
+
| Command | What It Does |
|
|
339
|
+
|---------|--------------|
|
|
340
|
+
| `/gywd:memory` | Manage cross-session memory |
|
|
341
|
+
| `/gywd:profile` | View/edit your learned preferences |
|
|
342
|
+
| `/gywd:impact <target>` | Connect code to real-world outcomes |
|
|
343
|
+
|
|
344
|
+
### Integration
|
|
345
|
+
|
|
346
|
+
| Command | What It Does |
|
|
347
|
+
|---------|--------------|
|
|
348
|
+
| `/gywd:sync-github` | Sync with GitHub issues and PRs |
|
|
349
|
+
| `/gywd:rollback [target]` | Rollback to checkpoint safely |
|
|
350
|
+
| `/gywd:help` | Show all available commands |
|
|
351
|
+
|
|
352
|
+
**Full documentation:** See [docs/COMMANDS.md](docs/COMMANDS.md) for detailed usage and examples.
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
## Project Structure
|
|
357
|
+
|
|
358
|
+
```
|
|
359
|
+
.planning/
|
|
360
|
+
├── PROJECT.md # Vision and requirements
|
|
361
|
+
├── ROADMAP.md # Phase breakdown
|
|
362
|
+
├── STATE.md # Session memory
|
|
363
|
+
├── ISSUES.md # Deferred items
|
|
364
|
+
├── config.json # Workflow settings
|
|
365
|
+
│
|
|
366
|
+
├── core/ # Intelligence (auto-generated)
|
|
367
|
+
│ ├── decisions.json # Decision graph
|
|
368
|
+
│ ├── context-model.json # Context predictions
|
|
369
|
+
│ └── learning-state.json # Learning system state
|
|
370
|
+
│
|
|
371
|
+
├── profile/ # Developer Digital Twin
|
|
372
|
+
│ └── developer.json # Your patterns and preferences
|
|
373
|
+
│
|
|
374
|
+
├── codebase/ # Codebase analysis
|
|
375
|
+
│ ├── DECISIONS.md # Human-readable decision graph
|
|
376
|
+
│ ├── STACK.md # Technology stack
|
|
377
|
+
│ ├── ARCHITECTURE.md # Design patterns
|
|
378
|
+
│ ├── STRUCTURE.md # Organization
|
|
379
|
+
│ ├── CONVENTIONS.md # Coding standards
|
|
380
|
+
│ ├── TESTING.md # Test approach
|
|
381
|
+
│ ├── INTEGRATIONS.md # External services
|
|
382
|
+
│ └── CONCERNS.md # Technical debt
|
|
383
|
+
│
|
|
384
|
+
└── phases/ # Work breakdown
|
|
385
|
+
├── 01-phase-name/
|
|
386
|
+
│ ├── 01-01-PLAN.md
|
|
387
|
+
│ └── 01-01-SUMMARY.md
|
|
388
|
+
└── 02-phase-name/
|
|
389
|
+
└── ...
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
---
|
|
393
|
+
|
|
394
|
+
## Library Modules
|
|
395
|
+
|
|
396
|
+
```javascript
|
|
397
|
+
// Memory (v3.2) - Cross-project learning
|
|
398
|
+
const { GlobalMemory, PatternAggregator, TeamSync } = require('pmp-gywd/lib/memory');
|
|
399
|
+
|
|
400
|
+
// Profile & Questioning
|
|
401
|
+
const { ProfileManager } = require('pmp-gywd/lib/profile');
|
|
402
|
+
const { QuestionEngine } = require('pmp-gywd/lib/questioning');
|
|
403
|
+
|
|
404
|
+
// Context & Automation
|
|
405
|
+
const { ContextPredictor } = require('pmp-gywd/lib/context');
|
|
406
|
+
const { DependencyAnalyzer } = require('pmp-gywd/lib/automation');
|
|
407
|
+
|
|
408
|
+
// Validators
|
|
409
|
+
const { validateJsonSyntax } = require('pmp-gywd/lib/validators');
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
**7 modules** · **Zero runtime dependencies** · Works offline
|
|
413
|
+
|
|
414
|
+
---
|
|
415
|
+
|
|
416
|
+
## Architecture (v3.2)
|
|
417
|
+
|
|
418
|
+
```
|
|
419
|
+
┌─────────────────────────────────────────────────────────┐
|
|
420
|
+
│ GYWD v3.2 Core │
|
|
421
|
+
├─────────────────────────────────────────────────────────┤
|
|
422
|
+
│ │
|
|
423
|
+
│ ┌───────────┐ ┌───────────┐ ┌───────────┐ │
|
|
424
|
+
│ │ Decision │ │ Context │ │ Agent │ │
|
|
425
|
+
│ │ Graph │◄─┤Intelligence│◄─┤Orchestrator│ │
|
|
426
|
+
│ └─────┬─────┘ └─────┬─────┘ └─────┬─────┘ │
|
|
427
|
+
│ └───────┬──────┴──────┬───────┘ │
|
|
428
|
+
│ ▼ ▼ │
|
|
429
|
+
│ ┌────────────────────────────────────────────┐ │
|
|
430
|
+
│ │ v3.0 Brain │ │
|
|
431
|
+
│ │ Profile ◄──► Questioning ──► Predictor │ │
|
|
432
|
+
│ │ Continuous Learning │ │
|
|
433
|
+
│ └─────────────────────┬──────────────────────┘ │
|
|
434
|
+
│ ▼ │
|
|
435
|
+
│ ┌────────────────────────────────────────────┐ │
|
|
436
|
+
│ │ v3.2 Memory Module │ │
|
|
437
|
+
│ │ GlobalMemory · PatternAggregator · TeamSync│ │
|
|
438
|
+
│ └─────────────────────┬──────────────────────┘ │
|
|
439
|
+
│ ▼ │
|
|
440
|
+
│ ┌────────────────────────────────────────────┐ │
|
|
441
|
+
│ │ Command Layer (40) │ │
|
|
442
|
+
│ └────────────────────────────────────────────┘ │
|
|
443
|
+
│ │
|
|
444
|
+
└─────────────────────────────────────────────────────────┘
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
---
|
|
448
|
+
|
|
449
|
+
## CI/CD Pipeline
|
|
450
|
+
|
|
451
|
+
- **12 test matrix combinations** (3 OS x 4 Node versions)
|
|
452
|
+
- **557 automated tests** with Jest (22 test suites)
|
|
453
|
+
- **ESLint** with zero external plugins
|
|
454
|
+
- **Schema validation** for all JSON files
|
|
455
|
+
- **Command validation** for all 40 commands
|
|
456
|
+
- **Security scanning** with npm audit
|
|
457
|
+
|
|
458
|
+
```bash
|
|
459
|
+
npm run precommit # Run all checks locally
|
|
460
|
+
npm test # Run tests
|
|
461
|
+
npm run lint # Run linter
|
|
462
|
+
npm run validate:all # Validate schemas and commands
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
---
|
|
466
|
+
|
|
467
|
+
## Philosophy
|
|
468
|
+
|
|
469
|
+
> "Code is crystallized decisions. Every function, every pattern exists because someone made a decision with context we've often lost. GYWD makes those decisions explicit and queryable."
|
|
470
|
+
|
|
471
|
+
**v1.x** was feature accumulation.
|
|
472
|
+
**v2.0** was unified intelligence.
|
|
473
|
+
**v3.0** is the sophisticated brain - learning, adapting, predicting.
|
|
474
|
+
**v3.2** is enhanced learning - cross-project memory, team sharing, Bayesian confidence.
|
|
475
|
+
|
|
476
|
+
The paradigm shift: Instead of generating "plausible code," GYWD generates **decision-coherent code** that respects the WHY behind your codebase and understands YOU as a developer.
|
|
477
|
+
|
|
478
|
+
---
|
|
479
|
+
|
|
480
|
+
## Recommended Setup
|
|
481
|
+
|
|
482
|
+
For uninterrupted automation:
|
|
483
|
+
|
|
484
|
+
```bash
|
|
485
|
+
claude --dangerously-skip-permissions
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
<details>
|
|
489
|
+
<summary><strong>Alternative: Selective Permissions</strong></summary>
|
|
490
|
+
|
|
491
|
+
Add to `.claude/settings.json`:
|
|
492
|
+
|
|
493
|
+
```json
|
|
494
|
+
{
|
|
495
|
+
"permissions": {
|
|
496
|
+
"allow": [
|
|
497
|
+
"Bash(git add:*)",
|
|
498
|
+
"Bash(git commit:*)",
|
|
499
|
+
"Bash(git status:*)",
|
|
500
|
+
"Bash(git log:*)",
|
|
501
|
+
"Bash(git diff:*)"
|
|
502
|
+
]
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
```
|
|
506
|
+
</details>
|
|
507
|
+
|
|
508
|
+
---
|
|
509
|
+
|
|
510
|
+
## Troubleshooting
|
|
511
|
+
|
|
512
|
+
**Commands not appearing?**
|
|
513
|
+
- Restart Claude Code to reload commands
|
|
514
|
+
- Verify files exist in `~/.claude/commands/gywd/`
|
|
515
|
+
|
|
516
|
+
**Commands run but nothing happens?**
|
|
517
|
+
- Check `.planning/` directory exists
|
|
518
|
+
- Run `/gywd:init` if missing
|
|
519
|
+
|
|
520
|
+
**Plan execution stuck?**
|
|
521
|
+
- Run `/gywd:progress` to see current state
|
|
522
|
+
- Check `.planning/STATE.md` for position
|
|
523
|
+
|
|
524
|
+
**Lost context mid-session?**
|
|
525
|
+
- Run `/gywd:resume-work` to restore
|
|
526
|
+
- Or `/gywd:progress` to see what's next
|
|
527
|
+
|
|
528
|
+
**JSON parse errors?**
|
|
529
|
+
- Check for syntax errors in `.planning/*.json` files
|
|
530
|
+
- Validate with `npm run validate:all`
|
|
531
|
+
|
|
532
|
+
**Permission denied errors?**
|
|
533
|
+
- Ensure write access to `.planning/` directory
|
|
534
|
+
- Check `~/.gywd/` is writable (for global memory)
|
|
535
|
+
|
|
536
|
+
**Need latest version?**
|
|
537
|
+
```bash
|
|
538
|
+
npx pmp-gywd@latest
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
---
|
|
542
|
+
|
|
543
|
+
## Contributing
|
|
544
|
+
|
|
545
|
+
Issues and PRs welcome at [github.com/cyberbloke9/pmp-gywd](https://github.com/cyberbloke9/pmp-gywd).
|
|
546
|
+
|
|
547
|
+
Before submitting:
|
|
548
|
+
- Run `npm test` (557 tests must pass)
|
|
549
|
+
- Run `npm run lint`
|
|
550
|
+
|
|
551
|
+
See [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) for full guidelines.
|
|
552
|
+
|
|
553
|
+
---
|
|
554
|
+
|
|
555
|
+
## License
|
|
556
|
+
|
|
557
|
+
MIT License - See [LICENSE](LICENSE)
|
|
558
|
+
|
|
559
|
+
---
|
|
560
|
+
|
|
561
|
+
<div align="center">
|
|
562
|
+
|
|
563
|
+
**Understand decisions. Ship coherent code.**
|
|
564
|
+
|
|
565
|
+
*Built with decision intelligence by [cyberbloke9](https://github.com/cyberbloke9)*
|
|
566
|
+
|
|
567
|
+
</div>
|