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.
Files changed (126) hide show
  1. package/LICENSE +27 -0
  2. package/README.md +567 -0
  3. package/bin/install.js +348 -0
  4. package/commands/gywd/add-phase.md +207 -0
  5. package/commands/gywd/anticipate.md +271 -0
  6. package/commands/gywd/bootstrap.md +336 -0
  7. package/commands/gywd/challenge.md +344 -0
  8. package/commands/gywd/check-drift.md +144 -0
  9. package/commands/gywd/complete-milestone.md +106 -0
  10. package/commands/gywd/consider-issues.md +202 -0
  11. package/commands/gywd/context.md +93 -0
  12. package/commands/gywd/create-roadmap.md +115 -0
  13. package/commands/gywd/deps.md +169 -0
  14. package/commands/gywd/digest.md +138 -0
  15. package/commands/gywd/discuss-milestone.md +47 -0
  16. package/commands/gywd/discuss-phase.md +60 -0
  17. package/commands/gywd/execute-plan.md +161 -0
  18. package/commands/gywd/extract-decisions.md +325 -0
  19. package/commands/gywd/health.md +150 -0
  20. package/commands/gywd/help.md +556 -0
  21. package/commands/gywd/history.md +278 -0
  22. package/commands/gywd/impact.md +317 -0
  23. package/commands/gywd/init.md +95 -0
  24. package/commands/gywd/insert-phase.md +227 -0
  25. package/commands/gywd/list-phase-assumptions.md +50 -0
  26. package/commands/gywd/map-codebase.md +84 -0
  27. package/commands/gywd/memory.md +159 -0
  28. package/commands/gywd/new-milestone.md +59 -0
  29. package/commands/gywd/new-project.md +315 -0
  30. package/commands/gywd/pause-work.md +123 -0
  31. package/commands/gywd/plan-fix.md +205 -0
  32. package/commands/gywd/plan-phase.md +93 -0
  33. package/commands/gywd/preview-plan.md +139 -0
  34. package/commands/gywd/profile.md +363 -0
  35. package/commands/gywd/progress.md +317 -0
  36. package/commands/gywd/remove-phase.md +338 -0
  37. package/commands/gywd/research-phase.md +91 -0
  38. package/commands/gywd/resume-work.md +40 -0
  39. package/commands/gywd/rollback.md +179 -0
  40. package/commands/gywd/status.md +42 -0
  41. package/commands/gywd/sync-github.md +234 -0
  42. package/commands/gywd/verify-work.md +71 -0
  43. package/commands/gywd/why.md +251 -0
  44. package/docs/COMMANDS.md +722 -0
  45. package/docs/CONTRIBUTING.md +342 -0
  46. package/docs/EXAMPLES.md +535 -0
  47. package/docs/GETTING-STARTED.md +262 -0
  48. package/docs/README.md +55 -0
  49. package/docs/RELEASING.md +159 -0
  50. package/get-your-work-done/core/agent-patterns.md +331 -0
  51. package/get-your-work-done/core/architecture.md +334 -0
  52. package/get-your-work-done/core/context-model-schema.json +154 -0
  53. package/get-your-work-done/core/decisions-schema.json +193 -0
  54. package/get-your-work-done/core/learning-state-schema.json +133 -0
  55. package/get-your-work-done/core/profile-schema.json +257 -0
  56. package/get-your-work-done/references/adaptive-decomposition.md +175 -0
  57. package/get-your-work-done/references/checkpoints.md +287 -0
  58. package/get-your-work-done/references/confidence-scoring.md +169 -0
  59. package/get-your-work-done/references/continuation-format.md +255 -0
  60. package/get-your-work-done/references/git-integration.md +254 -0
  61. package/get-your-work-done/references/plan-format.md +428 -0
  62. package/get-your-work-done/references/principles.md +157 -0
  63. package/get-your-work-done/references/questioning.md +162 -0
  64. package/get-your-work-done/references/research-pitfalls.md +215 -0
  65. package/get-your-work-done/references/scope-estimation.md +172 -0
  66. package/get-your-work-done/references/tdd.md +263 -0
  67. package/get-your-work-done/templates/codebase/architecture.md +255 -0
  68. package/get-your-work-done/templates/codebase/concerns.md +310 -0
  69. package/get-your-work-done/templates/codebase/conventions.md +307 -0
  70. package/get-your-work-done/templates/codebase/integrations.md +280 -0
  71. package/get-your-work-done/templates/codebase/stack.md +186 -0
  72. package/get-your-work-done/templates/codebase/structure.md +285 -0
  73. package/get-your-work-done/templates/codebase/testing.md +480 -0
  74. package/get-your-work-done/templates/config.json +18 -0
  75. package/get-your-work-done/templates/context.md +161 -0
  76. package/get-your-work-done/templates/continue-here.md +78 -0
  77. package/get-your-work-done/templates/discovery.md +146 -0
  78. package/get-your-work-done/templates/issues.md +32 -0
  79. package/get-your-work-done/templates/milestone-archive.md +123 -0
  80. package/get-your-work-done/templates/milestone-context.md +93 -0
  81. package/get-your-work-done/templates/milestone.md +115 -0
  82. package/get-your-work-done/templates/phase-prompt.md +303 -0
  83. package/get-your-work-done/templates/project.md +184 -0
  84. package/get-your-work-done/templates/research.md +529 -0
  85. package/get-your-work-done/templates/roadmap.md +196 -0
  86. package/get-your-work-done/templates/state.md +210 -0
  87. package/get-your-work-done/templates/summary.md +273 -0
  88. package/get-your-work-done/templates/uat-issues.md +143 -0
  89. package/get-your-work-done/workflows/complete-milestone.md +643 -0
  90. package/get-your-work-done/workflows/create-milestone.md +416 -0
  91. package/get-your-work-done/workflows/create-roadmap.md +481 -0
  92. package/get-your-work-done/workflows/discovery-phase.md +293 -0
  93. package/get-your-work-done/workflows/discuss-milestone.md +236 -0
  94. package/get-your-work-done/workflows/discuss-phase.md +247 -0
  95. package/get-your-work-done/workflows/execute-phase.md +1625 -0
  96. package/get-your-work-done/workflows/list-phase-assumptions.md +178 -0
  97. package/get-your-work-done/workflows/map-codebase.md +434 -0
  98. package/get-your-work-done/workflows/plan-phase.md +488 -0
  99. package/get-your-work-done/workflows/research-phase.md +436 -0
  100. package/get-your-work-done/workflows/resume-project.md +287 -0
  101. package/get-your-work-done/workflows/transition.md +580 -0
  102. package/get-your-work-done/workflows/verify-work.md +202 -0
  103. package/lib/automation/dependency-analyzer.js +635 -0
  104. package/lib/automation/doc-generator.js +643 -0
  105. package/lib/automation/index.js +42 -0
  106. package/lib/automation/test-generator.js +628 -0
  107. package/lib/context/context-analyzer.js +554 -0
  108. package/lib/context/context-cache.js +426 -0
  109. package/lib/context/context-predictor.js +622 -0
  110. package/lib/context/index.js +44 -0
  111. package/lib/memory/confidence-calibrator.js +484 -0
  112. package/lib/memory/feedback-collector.js +551 -0
  113. package/lib/memory/global-memory.js +465 -0
  114. package/lib/memory/index.js +75 -0
  115. package/lib/memory/pattern-aggregator.js +487 -0
  116. package/lib/memory/team-sync.js +501 -0
  117. package/lib/profile/index.js +24 -0
  118. package/lib/profile/pattern-learner.js +303 -0
  119. package/lib/profile/profile-manager.js +445 -0
  120. package/lib/questioning/index.js +49 -0
  121. package/lib/questioning/question-engine.js +311 -0
  122. package/lib/questioning/question-templates.js +315 -0
  123. package/lib/validators/command-validator.js +188 -0
  124. package/lib/validators/index.js +29 -0
  125. package/lib/validators/schema-validator.js +183 -0
  126. package/package.json +61 -0
@@ -0,0 +1,93 @@
1
+ ---
2
+ name: GYWD:plan-phase
3
+ description: Create detailed execution plan for a phase (PLAN.md)
4
+ argument-hint: "[phase]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - Glob
10
+ - Grep
11
+ - AskUserQuestion
12
+ - WebFetch
13
+ - mcp__context7__*
14
+ ---
15
+
16
+ <objective>
17
+ Create executable phase prompt with discovery, context injection, and task breakdown.
18
+
19
+ Purpose: Break down roadmap phases into concrete, executable PLAN.md files that Claude can execute.
20
+ Output: One or more PLAN.md files in the phase directory (.planning/phases/XX-name/{phase}-{plan}-PLAN.md)
21
+ </objective>
22
+
23
+ <execution_context>
24
+ @~/.claude/get-your-work-done/workflows/plan-phase.md
25
+ @~/.claude/get-your-work-done/templates/phase-prompt.md
26
+ @~/.claude/get-your-work-done/references/plan-format.md
27
+ @~/.claude/get-your-work-done/references/scope-estimation.md
28
+ @~/.claude/get-your-work-done/references/checkpoints.md
29
+ @~/.claude/get-your-work-done/references/tdd.md
30
+ @~/.claude/get-your-work-done/references/confidence-scoring.md
31
+ @~/.claude/get-your-work-done/references/adaptive-decomposition.md
32
+ </execution_context>
33
+
34
+ <context>
35
+ Phase number: $ARGUMENTS (optional - auto-detects next unplanned phase if not provided)
36
+
37
+ **Load project state first:**
38
+ @.planning/STATE.md
39
+
40
+ **Load roadmap:**
41
+ @.planning/ROADMAP.md
42
+
43
+ **Load phase context if exists (created by /gywd:discuss-phase):**
44
+ Check for and read `.planning/phases/XX-name/{phase}-CONTEXT.md` - contains research findings, clarifications, and decisions from phase discussion.
45
+
46
+ **Load codebase context if exists:**
47
+ Check for `.planning/codebase/` and load relevant documents based on phase type.
48
+ </context>
49
+
50
+ <process>
51
+ 1. Check .planning/ directory exists (error if not - user should run /gywd:new-project)
52
+ 2. If phase number provided via $ARGUMENTS, validate it exists in roadmap
53
+ 3. If no phase number, detect next unplanned phase from roadmap
54
+ 4. Follow plan-phase.md workflow:
55
+ - Load project state and accumulated decisions
56
+ - Perform mandatory discovery (Level 0-3 as appropriate)
57
+ - Read project history (prior decisions, issues, concerns)
58
+ - Break phase into tasks
59
+ - Estimate scope and split into multiple plans if needed
60
+ - Create PLAN.md file(s) with executable structure
61
+ </process>
62
+
63
+ <success_criteria>
64
+ - [ ] One or more PLAN.md files created in .planning/phases/XX-name/
65
+ - [ ] Each plan has: objective, execution_context, context, tasks, verification, success_criteria, output
66
+ - [ ] Tasks are specific enough for Claude to execute
67
+ - [ ] **Confidence scores included:**
68
+ - Overall plan confidence percentage
69
+ - Per-task confidence scores
70
+ - Low-confidence tasks flagged (< 70%)
71
+ - Factors affecting confidence listed
72
+ - [ ] User knows next steps (execute plan or review/adjust)
73
+ </success_criteria>
74
+
75
+ <confidence_requirements>
76
+ Every PLAN.md must include a confidence summary:
77
+
78
+ ```markdown
79
+ ## Confidence Summary
80
+
81
+ **Overall: XX%** (High/Moderate/Low)
82
+
83
+ | Task | Confidence | Notes |
84
+ |------|------------|-------|
85
+ | T1 | 95% | Standard pattern |
86
+ | T2 | 72% | Multiple approaches possible |
87
+ | T3 | 58% | ⚠️ Needs clarification |
88
+
89
+ **Low-confidence items require review before execution.**
90
+ ```
91
+
92
+ See confidence-scoring.md reference for calculation guidelines.
93
+ </confidence_requirements>
@@ -0,0 +1,139 @@
1
+ ---
2
+ name: GYWD:preview-plan
3
+ description: Preview what a plan will do before executing it
4
+ argument-hint: "[path-to-PLAN.md]"
5
+ ---
6
+
7
+ <objective>
8
+ Show a detailed preview of what a plan will do BEFORE execution.
9
+
10
+ Builds trust by letting users see:
11
+ - All tasks that will be executed
12
+ - Files that will be created/modified
13
+ - Commands that will be run
14
+ - Checkpoints where execution will pause
15
+ - Estimated complexity and risk
16
+
17
+ This is a READ-ONLY operation. No changes are made.
18
+ </objective>
19
+
20
+ <context>
21
+ Plan path: $ARGUMENTS
22
+
23
+ If no path provided, auto-detect current plan:
24
+ 1. Read STATE.md for current phase
25
+ 2. Find next unexecuted plan in that phase
26
+ 3. Use that plan path
27
+ </context>
28
+
29
+ <process>
30
+ 1. Locate plan file:
31
+ - If $ARGUMENTS provided: Use that path
32
+ - If not: Auto-detect from STATE.md
33
+ - If no plan found: Error with helpful message
34
+
35
+ 2. Read and parse the plan:
36
+ - Extract plan name and description
37
+ - Parse all tasks with their details
38
+ - Identify checkpoints (verify/decision)
39
+ - Note any dependencies mentioned
40
+
41
+ 3. Analyze each task for:
42
+ **File Operations:**
43
+ - Files to create (look for "create", "add", "new")
44
+ - Files to modify (look for "update", "edit", "change")
45
+ - Files to delete (look for "remove", "delete")
46
+
47
+ **Commands:**
48
+ - Shell commands mentioned (npm, git, etc.)
49
+ - Test commands
50
+ - Build commands
51
+
52
+ **Risk Indicators:**
53
+ - Database migrations
54
+ - Config changes
55
+ - Dependency updates
56
+ - Breaking changes mentioned
57
+
58
+ 4. Generate execution preview:
59
+ ```
60
+ ## Plan Preview: {plan-name}
61
+
62
+ **Path:** .planning/phases/01-foundation/01-01-PLAN.md
63
+ **Tasks:** 5 tasks, 1 checkpoint
64
+ **Estimated Complexity:** Medium
65
+
66
+ ---
67
+
68
+ ### Execution Order
69
+
70
+ 1. ☐ **Create user model**
71
+ - Creates: src/models/user.ts
72
+ - Creates: src/models/user.test.ts
73
+
74
+ 2. ☐ **Add authentication middleware**
75
+ - Creates: src/middleware/auth.ts
76
+ - Modifies: src/app.ts
77
+
78
+ 3. ⏸️ **CHECKPOINT: Verify tests pass**
79
+ - Execution will pause here for verification
80
+
81
+ 4. ☐ **Implement login endpoint**
82
+ - Creates: src/routes/auth.ts
83
+ - Commands: npm test
84
+
85
+ 5. ☐ **Update documentation**
86
+ - Modifies: README.md
87
+
88
+ ---
89
+
90
+ ### Summary
91
+
92
+ | Action | Count |
93
+ |--------|-------|
94
+ | Files Created | 4 |
95
+ | Files Modified | 2 |
96
+ | Commands Run | 1 |
97
+ | Checkpoints | 1 |
98
+
99
+ ### Risk Assessment
100
+
101
+ ✅ No high-risk operations detected
102
+
103
+ ---
104
+
105
+ Ready to execute? Run:
106
+ /gywd:execute-plan {plan-path}
107
+ ```
108
+
109
+ 5. Highlight any concerns:
110
+ - ⚠️ for medium-risk operations
111
+ - 🔴 for high-risk operations (migrations, breaking changes)
112
+ - Suggest review steps for risky operations
113
+ </process>
114
+
115
+ <output_format>
116
+ Structured preview showing:
117
+ - Plan metadata (path, task count, complexity)
118
+ - Ordered task list with file operations
119
+ - Clear checkpoint indicators
120
+ - Summary table
121
+ - Risk assessment
122
+ - Next step command
123
+
124
+ Use emojis for visual scanning:
125
+ - ☐ = pending task
126
+ - ⏸️ = checkpoint
127
+ - ✅ = safe operation
128
+ - ⚠️ = needs attention
129
+ - 🔴 = high risk
130
+ </output_format>
131
+
132
+ <success_criteria>
133
+ - [ ] Parses plan without executing anything
134
+ - [ ] Shows all tasks in execution order
135
+ - [ ] Identifies file creates/modifies
136
+ - [ ] Highlights checkpoints clearly
137
+ - [ ] Provides risk assessment
138
+ - [ ] Shows clear next step
139
+ </success_criteria>
@@ -0,0 +1,363 @@
1
+ ---
2
+ name: GYWD:profile
3
+ description: Developer Digital Twin - model of your patterns, preferences, and expertise
4
+ argument-hint: "[show|learn|reset] [--export] [--import <path>]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Glob
9
+ - Grep
10
+ - Task
11
+ - Write
12
+ ---
13
+
14
+ <objective>
15
+ Build and maintain a persistent model of YOU as a developer.
16
+
17
+ Current AI treats every developer identically.
18
+ But you have:
19
+ - Unique cognitive patterns
20
+ - Personal heuristics
21
+ - Areas of deep expertise
22
+ - Characteristic blind spots
23
+ - Preferred abstractions
24
+
25
+ Your Digital Twin captures this, making AI adapt to YOU.
26
+ </objective>
27
+
28
+ <philosophy>
29
+ From cognitive science: "Experts organize knowledge as larger but fewer chunks than novices."
30
+
31
+ Your expertise has a shape. Your thinking has patterns.
32
+ A system that understands YOUR patterns serves you better than one that serves "average developer."
33
+ </philosophy>
34
+
35
+ <reference>
36
+ Profile data stored in `.planning/profile/` directory.
37
+ </reference>
38
+
39
+ <profile_dimensions>
40
+ ## What We Model
41
+
42
+ ### 1. Cognitive Fingerprint
43
+ How you think about problems.
44
+
45
+ ```yaml
46
+ cognitive_style:
47
+ abstraction_level: high # vs concrete
48
+ approach: top_down # vs bottom_up
49
+ exploration: depth_first # vs breadth_first
50
+ risk_tolerance: moderate # conservative, moderate, aggressive
51
+
52
+ chunking_patterns:
53
+ - "Groups by feature, not layer"
54
+ - "Thinks in data transformations"
55
+ - "Visualizes as state machines"
56
+
57
+ reasoning_style:
58
+ - "Prefers explicit over implicit"
59
+ - "Asks 'what could go wrong' early"
60
+ - "Iterates quickly, refactors later"
61
+ ```
62
+
63
+ ### 2. Knowledge Topology
64
+ What you know and how deeply.
65
+
66
+ ```yaml
67
+ expertise_map:
68
+ deep: # Could teach others
69
+ - TypeScript advanced types
70
+ - React hooks patterns
71
+ - API design
72
+ - Testing strategies
73
+
74
+ working: # Competent, no lookup needed
75
+ - Node.js
76
+ - PostgreSQL
77
+ - Git workflows
78
+ - Docker basics
79
+
80
+ familiar: # Can work with lookup
81
+ - GraphQL
82
+ - Redis
83
+ - CI/CD
84
+ - AWS services
85
+
86
+ learning: # Currently developing
87
+ - Rust
88
+ - WebAssembly
89
+
90
+ gaps: # Known unknowns
91
+ - Machine learning
92
+ - Mobile development
93
+ - Kubernetes internals
94
+ ```
95
+
96
+ ### 3. Decision Patterns
97
+ How you make choices.
98
+
99
+ ```yaml
100
+ decision_style:
101
+ speed: deliberate # quick, deliberate, thorough
102
+ reversibility_bias: "Prefers easily reversible choices"
103
+ documentation: "Documents decisions but not code"
104
+
105
+ typical_trade_offs:
106
+ - "Favors readability over performance"
107
+ - "Prefers explicit over clever"
108
+ - "Chooses boring technology"
109
+
110
+ anti_patterns: # Things you avoid
111
+ - "Class inheritance hierarchies"
112
+ - "Global state"
113
+ - "Magic strings"
114
+ ```
115
+
116
+ ### 4. Communication Style
117
+ How you explain and understand.
118
+
119
+ ```yaml
120
+ communication:
121
+ explanation_preference: "Examples before theory"
122
+ detail_level: moderate
123
+
124
+ learns_best_from:
125
+ - "Working code examples"
126
+ - "Visual diagrams"
127
+ - "Incremental building"
128
+
129
+ learns_poorly_from:
130
+ - "Long documentation"
131
+ - "Abstract descriptions"
132
+ - "Videos without code"
133
+
134
+ writes:
135
+ - "Terse commit messages"
136
+ - "Detailed PR descriptions"
137
+ - "Comments for 'why' not 'what'"
138
+ ```
139
+
140
+ ### 5. Work Patterns
141
+ How you operate.
142
+
143
+ ```yaml
144
+ work_patterns:
145
+ peak_hours: "9am-12pm"
146
+ deep_work_duration: "90 min average"
147
+ context_switch_cost: high
148
+
149
+ session_patterns:
150
+ - "Starts with review of yesterday"
151
+ - "Tackles hard problems in morning"
152
+ - "Refactors in afternoon"
153
+ - "Writes tests at end of feature"
154
+
155
+ interruption_tolerance: low
156
+
157
+ collaboration_style:
158
+ - "Prefers async communication"
159
+ - "Likes pair programming for complex problems"
160
+ - "Reviews PRs in batches"
161
+ ```
162
+
163
+ ### 6. Historical Patterns
164
+ What your past reveals.
165
+
166
+ ```yaml
167
+ historical:
168
+ common_bugs:
169
+ - "Off-by-one errors in loops"
170
+ - "Missing null checks on optional chains"
171
+ - "Forgetting to await async functions"
172
+
173
+ refactoring_triggers:
174
+ - "Third time writing similar code"
175
+ - "Function exceeds 50 lines"
176
+ - "More than 3 parameters"
177
+
178
+ typical_journey:
179
+ - "Spike solution first"
180
+ - "Happy path implementation"
181
+ - "Error handling second pass"
182
+ - "Tests after implementation"
183
+ - "Refactor before PR"
184
+ ```
185
+ </profile_dimensions>
186
+
187
+ <commands>
188
+ ## Subcommands
189
+
190
+ ### /gywd:profile show
191
+ Display current profile.
192
+
193
+ ```markdown
194
+ ## Developer Profile: @cyberbloke9
195
+
196
+ ### Cognitive Style
197
+ - Top-down thinker, depth-first explorer
198
+ - Groups by feature, thinks in data transformations
199
+ - Moderate risk tolerance
200
+
201
+ ### Expertise
202
+ 🟢 Deep: TypeScript, React, API Design, Testing
203
+ 🔵 Working: Node.js, PostgreSQL, Git, Docker
204
+ 🟡 Familiar: GraphQL, Redis, CI/CD
205
+ 📚 Learning: Rust
206
+
207
+ ### Decision Patterns
208
+ - Deliberate decision-maker
209
+ - Favors readability over performance
210
+ - Chooses boring technology
211
+
212
+ ### Work Patterns
213
+ - Peak: 9am-12pm
214
+ - Deep work: 90 min sessions
215
+ - High context-switch cost
216
+ - Low interruption tolerance
217
+
218
+ ### Known Blind Spots
219
+ - Off-by-one errors
220
+ - Missing null checks
221
+ - Forgetting await
222
+
223
+ Profile confidence: 78% (based on 6 months data)
224
+ ```
225
+
226
+ ### /gywd:profile learn
227
+ Trigger learning from recent behavior.
228
+
229
+ ```
230
+ Analyzing recent activity...
231
+
232
+ Learned:
233
+ + "Prefers named exports over default exports"
234
+ + "Uses early returns consistently"
235
+ + "Tests edge cases before happy path"
236
+
237
+ Updated:
238
+ ~ expertise.typescript: working → deep
239
+ ~ work_patterns.peak_hours: refined to 9:30-11:30am
240
+
241
+ Removed (no longer accurate):
242
+ - "Uses class components" (switched to hooks)
243
+
244
+ Profile updated.
245
+ ```
246
+
247
+ ### /gywd:profile reset [dimension]
248
+ Reset profile or specific dimension.
249
+
250
+ ```
251
+ /gywd:profile reset expertise
252
+ # Resets expertise map, keeps other dimensions
253
+
254
+ /gywd:profile reset
255
+ # Full reset with confirmation
256
+ ```
257
+
258
+ ### /gywd:profile --export
259
+ Export profile to shareable format.
260
+
261
+ ```
262
+ Exported to .planning/profile-export.yaml
263
+
264
+ This file contains:
265
+ - Cognitive patterns
266
+ - Expertise map
267
+ - Decision patterns
268
+ - Work patterns
269
+
270
+ Does NOT contain:
271
+ - Historical bugs (private)
272
+ - Session data (private)
273
+ - Personal identifiers
274
+ ```
275
+
276
+ ### /gywd:profile --import <path>
277
+ Import profile from export.
278
+
279
+ ```
280
+ Importing from team-profile.yaml...
281
+
282
+ Imported:
283
+ - Team coding conventions
284
+ - Shared expertise expectations
285
+ - Common decision patterns
286
+
287
+ Merged with personal profile.
288
+ ```
289
+ </commands>
290
+
291
+ <learning_sources>
292
+ ## How Profile Learns
293
+
294
+ ### Code Patterns
295
+ - Analyze your commits for style patterns
296
+ - Compare accepted vs rejected suggestions
297
+ - Track refactoring triggers
298
+
299
+ ### Decision Patterns
300
+ - Track which options you choose
301
+ - Analyze commit message language
302
+ - Learn from PR review comments
303
+
304
+ ### Work Patterns
305
+ - Session start/end times
306
+ - Focus duration analysis
307
+ - Context switch frequency
308
+ - Interruption handling
309
+
310
+ ### Expertise
311
+ - Files you navigate confidently
312
+ - Areas where you seek help
313
+ - Explanation complexity you produce
314
+ - Code review depth by area
315
+ </learning_sources>
316
+
317
+ <integration>
318
+ ## How Profile Integrates
319
+
320
+ ### In Planning
321
+ - Suggest approaches matching your style
322
+ - Flag areas outside your expertise
323
+ - Estimate your effort based on patterns
324
+
325
+ ### In Execution
326
+ - Format output to your preferences
327
+ - Explain in your style
328
+ - Warn about your common mistakes
329
+
330
+ ### In Review
331
+ - Focus on your blind spots
332
+ - Match your review depth preferences
333
+ - Time suggestions appropriately
334
+
335
+ ### In Anticipation
336
+ - Predict based on YOUR patterns
337
+ - Pre-load YOUR typical needs
338
+ - Protect YOUR flow patterns
339
+ </integration>
340
+
341
+ <privacy>
342
+ ## Privacy Controls
343
+
344
+ All profile data is:
345
+ - Stored locally in .planning/profile/
346
+ - Never transmitted without explicit export
347
+ - Deletable with /gywd:profile reset
348
+
349
+ Sensitive dimensions (bugs, session data) are:
350
+ - Never included in exports
351
+ - Encrypted at rest
352
+ - Purgeable separately
353
+ </privacy>
354
+
355
+ <success_criteria>
356
+ - [ ] Captures cognitive patterns accurately
357
+ - [ ] Maps expertise topology
358
+ - [ ] Learns from behavior over time
359
+ - [ ] Adapts AI responses to profile
360
+ - [ ] Exports/imports for team sharing
361
+ - [ ] Respects privacy boundaries
362
+ - [ ] Improves with usage
363
+ </success_criteria>