gsd-code-first 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/LICENSE +21 -0
  2. package/README.ja-JP.md +834 -0
  3. package/README.ko-KR.md +823 -0
  4. package/README.md +937 -0
  5. package/README.pt-BR.md +452 -0
  6. package/README.zh-CN.md +800 -0
  7. package/agents/gsd-advisor-researcher.md +104 -0
  8. package/agents/gsd-annotator.md +148 -0
  9. package/agents/gsd-arc-executor.md +537 -0
  10. package/agents/gsd-arc-planner.md +374 -0
  11. package/agents/gsd-assumptions-analyzer.md +105 -0
  12. package/agents/gsd-code-planner.md +155 -0
  13. package/agents/gsd-codebase-mapper.md +770 -0
  14. package/agents/gsd-debugger.md +1373 -0
  15. package/agents/gsd-executor.md +509 -0
  16. package/agents/gsd-integration-checker.md +443 -0
  17. package/agents/gsd-nyquist-auditor.md +176 -0
  18. package/agents/gsd-phase-researcher.md +698 -0
  19. package/agents/gsd-plan-checker.md +773 -0
  20. package/agents/gsd-planner.md +1354 -0
  21. package/agents/gsd-project-researcher.md +654 -0
  22. package/agents/gsd-prototyper.md +161 -0
  23. package/agents/gsd-research-synthesizer.md +247 -0
  24. package/agents/gsd-roadmapper.md +679 -0
  25. package/agents/gsd-ui-auditor.md +439 -0
  26. package/agents/gsd-ui-checker.md +300 -0
  27. package/agents/gsd-ui-researcher.md +357 -0
  28. package/agents/gsd-user-profiler.md +171 -0
  29. package/agents/gsd-verifier.md +700 -0
  30. package/bin/install.js +5009 -0
  31. package/commands/gsd/add-backlog.md +76 -0
  32. package/commands/gsd/add-phase.md +43 -0
  33. package/commands/gsd/add-tests.md +41 -0
  34. package/commands/gsd/add-todo.md +47 -0
  35. package/commands/gsd/annotate.md +54 -0
  36. package/commands/gsd/audit-milestone.md +36 -0
  37. package/commands/gsd/audit-uat.md +24 -0
  38. package/commands/gsd/autonomous.md +41 -0
  39. package/commands/gsd/check-todos.md +45 -0
  40. package/commands/gsd/cleanup.md +18 -0
  41. package/commands/gsd/complete-milestone.md +136 -0
  42. package/commands/gsd/debug.md +173 -0
  43. package/commands/gsd/deep-plan.md +52 -0
  44. package/commands/gsd/discuss-phase.md +64 -0
  45. package/commands/gsd/do.md +30 -0
  46. package/commands/gsd/execute-phase.md +59 -0
  47. package/commands/gsd/extract-plan.md +35 -0
  48. package/commands/gsd/fast.md +30 -0
  49. package/commands/gsd/forensics.md +56 -0
  50. package/commands/gsd/health.md +22 -0
  51. package/commands/gsd/help.md +22 -0
  52. package/commands/gsd/insert-phase.md +32 -0
  53. package/commands/gsd/iterate.md +124 -0
  54. package/commands/gsd/join-discord.md +18 -0
  55. package/commands/gsd/list-phase-assumptions.md +46 -0
  56. package/commands/gsd/list-workspaces.md +19 -0
  57. package/commands/gsd/manager.md +39 -0
  58. package/commands/gsd/map-codebase.md +71 -0
  59. package/commands/gsd/milestone-summary.md +51 -0
  60. package/commands/gsd/new-milestone.md +44 -0
  61. package/commands/gsd/new-project.md +42 -0
  62. package/commands/gsd/new-workspace.md +44 -0
  63. package/commands/gsd/next.md +24 -0
  64. package/commands/gsd/note.md +34 -0
  65. package/commands/gsd/pause-work.md +38 -0
  66. package/commands/gsd/plan-milestone-gaps.md +34 -0
  67. package/commands/gsd/plan-phase.md +47 -0
  68. package/commands/gsd/plant-seed.md +28 -0
  69. package/commands/gsd/pr-branch.md +25 -0
  70. package/commands/gsd/profile-user.md +46 -0
  71. package/commands/gsd/progress.md +24 -0
  72. package/commands/gsd/prototype.md +56 -0
  73. package/commands/gsd/quick.md +47 -0
  74. package/commands/gsd/reapply-patches.md +123 -0
  75. package/commands/gsd/remove-phase.md +31 -0
  76. package/commands/gsd/remove-workspace.md +26 -0
  77. package/commands/gsd/research-phase.md +195 -0
  78. package/commands/gsd/resume-work.md +40 -0
  79. package/commands/gsd/review-backlog.md +61 -0
  80. package/commands/gsd/review.md +37 -0
  81. package/commands/gsd/session-report.md +19 -0
  82. package/commands/gsd/set-mode.md +41 -0
  83. package/commands/gsd/set-profile.md +12 -0
  84. package/commands/gsd/settings.md +36 -0
  85. package/commands/gsd/ship.md +23 -0
  86. package/commands/gsd/stats.md +18 -0
  87. package/commands/gsd/thread.md +127 -0
  88. package/commands/gsd/ui-phase.md +34 -0
  89. package/commands/gsd/ui-review.md +32 -0
  90. package/commands/gsd/update.md +37 -0
  91. package/commands/gsd/validate-phase.md +35 -0
  92. package/commands/gsd/verify-work.md +38 -0
  93. package/commands/gsd/workstreams.md +63 -0
  94. package/get-shit-done/bin/gsd-tools.cjs +946 -0
  95. package/get-shit-done/bin/lib/arc-scanner.cjs +341 -0
  96. package/get-shit-done/bin/lib/commands.cjs +959 -0
  97. package/get-shit-done/bin/lib/config.cjs +466 -0
  98. package/get-shit-done/bin/lib/core.cjs +1230 -0
  99. package/get-shit-done/bin/lib/frontmatter.cjs +336 -0
  100. package/get-shit-done/bin/lib/init.cjs +1442 -0
  101. package/get-shit-done/bin/lib/milestone.cjs +252 -0
  102. package/get-shit-done/bin/lib/model-profiles.cjs +68 -0
  103. package/get-shit-done/bin/lib/phase.cjs +888 -0
  104. package/get-shit-done/bin/lib/profile-output.cjs +952 -0
  105. package/get-shit-done/bin/lib/profile-pipeline.cjs +539 -0
  106. package/get-shit-done/bin/lib/roadmap.cjs +329 -0
  107. package/get-shit-done/bin/lib/security.cjs +382 -0
  108. package/get-shit-done/bin/lib/state.cjs +1031 -0
  109. package/get-shit-done/bin/lib/template.cjs +222 -0
  110. package/get-shit-done/bin/lib/uat.cjs +282 -0
  111. package/get-shit-done/bin/lib/verify.cjs +888 -0
  112. package/get-shit-done/bin/lib/workstream.cjs +491 -0
  113. package/get-shit-done/commands/gsd/workstreams.md +63 -0
  114. package/get-shit-done/references/arc-standard.md +315 -0
  115. package/get-shit-done/references/checkpoints.md +778 -0
  116. package/get-shit-done/references/continuation-format.md +249 -0
  117. package/get-shit-done/references/decimal-phase-calculation.md +64 -0
  118. package/get-shit-done/references/git-integration.md +295 -0
  119. package/get-shit-done/references/git-planning-commit.md +38 -0
  120. package/get-shit-done/references/model-profile-resolution.md +36 -0
  121. package/get-shit-done/references/model-profiles.md +139 -0
  122. package/get-shit-done/references/phase-argument-parsing.md +61 -0
  123. package/get-shit-done/references/planning-config.md +202 -0
  124. package/get-shit-done/references/questioning.md +162 -0
  125. package/get-shit-done/references/tdd.md +263 -0
  126. package/get-shit-done/references/ui-brand.md +160 -0
  127. package/get-shit-done/references/user-profiling.md +681 -0
  128. package/get-shit-done/references/verification-patterns.md +612 -0
  129. package/get-shit-done/references/workstream-flag.md +58 -0
  130. package/get-shit-done/templates/DEBUG.md +164 -0
  131. package/get-shit-done/templates/UAT.md +265 -0
  132. package/get-shit-done/templates/UI-SPEC.md +100 -0
  133. package/get-shit-done/templates/VALIDATION.md +76 -0
  134. package/get-shit-done/templates/claude-md.md +122 -0
  135. package/get-shit-done/templates/codebase/architecture.md +255 -0
  136. package/get-shit-done/templates/codebase/concerns.md +310 -0
  137. package/get-shit-done/templates/codebase/conventions.md +307 -0
  138. package/get-shit-done/templates/codebase/integrations.md +280 -0
  139. package/get-shit-done/templates/codebase/stack.md +186 -0
  140. package/get-shit-done/templates/codebase/structure.md +285 -0
  141. package/get-shit-done/templates/codebase/testing.md +480 -0
  142. package/get-shit-done/templates/config.json +44 -0
  143. package/get-shit-done/templates/context.md +352 -0
  144. package/get-shit-done/templates/continue-here.md +78 -0
  145. package/get-shit-done/templates/copilot-instructions.md +7 -0
  146. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  147. package/get-shit-done/templates/dev-preferences.md +21 -0
  148. package/get-shit-done/templates/discovery.md +146 -0
  149. package/get-shit-done/templates/discussion-log.md +63 -0
  150. package/get-shit-done/templates/milestone-archive.md +123 -0
  151. package/get-shit-done/templates/milestone.md +115 -0
  152. package/get-shit-done/templates/phase-prompt.md +610 -0
  153. package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  154. package/get-shit-done/templates/project.md +186 -0
  155. package/get-shit-done/templates/requirements.md +231 -0
  156. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  157. package/get-shit-done/templates/research-project/FEATURES.md +147 -0
  158. package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  159. package/get-shit-done/templates/research-project/STACK.md +120 -0
  160. package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  161. package/get-shit-done/templates/research.md +552 -0
  162. package/get-shit-done/templates/retrospective.md +54 -0
  163. package/get-shit-done/templates/roadmap.md +202 -0
  164. package/get-shit-done/templates/state.md +176 -0
  165. package/get-shit-done/templates/summary-complex.md +59 -0
  166. package/get-shit-done/templates/summary-minimal.md +41 -0
  167. package/get-shit-done/templates/summary-standard.md +48 -0
  168. package/get-shit-done/templates/summary.md +248 -0
  169. package/get-shit-done/templates/user-profile.md +146 -0
  170. package/get-shit-done/templates/user-setup.md +311 -0
  171. package/get-shit-done/templates/verification-report.md +322 -0
  172. package/get-shit-done/workflows/add-phase.md +112 -0
  173. package/get-shit-done/workflows/add-tests.md +351 -0
  174. package/get-shit-done/workflows/add-todo.md +158 -0
  175. package/get-shit-done/workflows/audit-milestone.md +340 -0
  176. package/get-shit-done/workflows/audit-uat.md +109 -0
  177. package/get-shit-done/workflows/autonomous.md +891 -0
  178. package/get-shit-done/workflows/check-todos.md +177 -0
  179. package/get-shit-done/workflows/cleanup.md +152 -0
  180. package/get-shit-done/workflows/complete-milestone.md +767 -0
  181. package/get-shit-done/workflows/diagnose-issues.md +231 -0
  182. package/get-shit-done/workflows/discovery-phase.md +289 -0
  183. package/get-shit-done/workflows/discuss-phase-assumptions.md +653 -0
  184. package/get-shit-done/workflows/discuss-phase.md +1049 -0
  185. package/get-shit-done/workflows/do.md +104 -0
  186. package/get-shit-done/workflows/execute-phase.md +846 -0
  187. package/get-shit-done/workflows/execute-plan.md +514 -0
  188. package/get-shit-done/workflows/fast.md +105 -0
  189. package/get-shit-done/workflows/forensics.md +265 -0
  190. package/get-shit-done/workflows/health.md +181 -0
  191. package/get-shit-done/workflows/help.md +634 -0
  192. package/get-shit-done/workflows/insert-phase.md +130 -0
  193. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  194. package/get-shit-done/workflows/list-workspaces.md +56 -0
  195. package/get-shit-done/workflows/manager.md +362 -0
  196. package/get-shit-done/workflows/map-codebase.md +377 -0
  197. package/get-shit-done/workflows/milestone-summary.md +223 -0
  198. package/get-shit-done/workflows/new-milestone.md +486 -0
  199. package/get-shit-done/workflows/new-project.md +1250 -0
  200. package/get-shit-done/workflows/new-workspace.md +237 -0
  201. package/get-shit-done/workflows/next.md +97 -0
  202. package/get-shit-done/workflows/node-repair.md +92 -0
  203. package/get-shit-done/workflows/note.md +156 -0
  204. package/get-shit-done/workflows/pause-work.md +176 -0
  205. package/get-shit-done/workflows/plan-milestone-gaps.md +273 -0
  206. package/get-shit-done/workflows/plan-phase.md +859 -0
  207. package/get-shit-done/workflows/plant-seed.md +169 -0
  208. package/get-shit-done/workflows/pr-branch.md +129 -0
  209. package/get-shit-done/workflows/profile-user.md +450 -0
  210. package/get-shit-done/workflows/progress.md +507 -0
  211. package/get-shit-done/workflows/quick.md +757 -0
  212. package/get-shit-done/workflows/remove-phase.md +155 -0
  213. package/get-shit-done/workflows/remove-workspace.md +90 -0
  214. package/get-shit-done/workflows/research-phase.md +82 -0
  215. package/get-shit-done/workflows/resume-project.md +326 -0
  216. package/get-shit-done/workflows/review.md +228 -0
  217. package/get-shit-done/workflows/session-report.md +146 -0
  218. package/get-shit-done/workflows/settings.md +283 -0
  219. package/get-shit-done/workflows/ship.md +228 -0
  220. package/get-shit-done/workflows/stats.md +60 -0
  221. package/get-shit-done/workflows/transition.md +671 -0
  222. package/get-shit-done/workflows/ui-phase.md +302 -0
  223. package/get-shit-done/workflows/ui-review.md +165 -0
  224. package/get-shit-done/workflows/update.md +323 -0
  225. package/get-shit-done/workflows/validate-phase.md +174 -0
  226. package/get-shit-done/workflows/verify-phase.md +254 -0
  227. package/get-shit-done/workflows/verify-work.md +637 -0
  228. package/hooks/dist/gsd-check-update.js +114 -0
  229. package/hooks/dist/gsd-context-monitor.js +156 -0
  230. package/hooks/dist/gsd-prompt-guard.js +96 -0
  231. package/hooks/dist/gsd-statusline.js +119 -0
  232. package/hooks/dist/gsd-workflow-guard.js +94 -0
  233. package/package.json +52 -0
  234. package/scripts/base64-scan.sh +262 -0
  235. package/scripts/build-hooks.js +82 -0
  236. package/scripts/prompt-injection-scan.sh +198 -0
  237. package/scripts/run-tests.cjs +29 -0
  238. package/scripts/secret-scan.sh +227 -0
@@ -0,0 +1,681 @@
1
+ # User Profiling: Detection Heuristics Reference
2
+
3
+ This reference document defines detection heuristics for behavioral profiling across 8 dimensions. The gsd-user-profiler agent applies these rules when analyzing extracted session messages. Do not invent dimensions or scoring rules beyond what is defined here.
4
+
5
+ ## How to Use This Document
6
+
7
+ 1. The gsd-user-profiler agent reads this document before analyzing any messages
8
+ 2. For each dimension, the agent scans messages for the signal patterns defined below
9
+ 3. The agent applies the detection heuristics to classify the developer's pattern
10
+ 4. Confidence is scored using the thresholds defined per dimension
11
+ 5. Evidence quotes are curated using the rules in the Evidence Curation section
12
+ 6. Output must conform to the JSON schema in the Output Schema section
13
+
14
+ ---
15
+
16
+ ## Dimensions
17
+
18
+ ### 1. Communication Style
19
+
20
+ `dimension_id: communication_style`
21
+
22
+ **What we're measuring:** How the developer phrases requests, instructions, and feedback -- the structural pattern of their messages to Claude.
23
+
24
+ **Rating spectrum:**
25
+
26
+ | Rating | Description |
27
+ |--------|-------------|
28
+ | `terse-direct` | Short, imperative messages with minimal context. Gets to the point immediately. |
29
+ | `conversational` | Medium-length messages mixing instructions with questions and thinking-aloud. Natural, informal tone. |
30
+ | `detailed-structured` | Long messages with explicit structure -- headers, numbered lists, problem statements, pre-analysis. |
31
+ | `mixed` | No dominant pattern; style shifts based on task type or project context. |
32
+
33
+ **Signal patterns:**
34
+
35
+ 1. **Message length distribution** -- Average word count across messages. Terse < 50 words, conversational 50-200 words, detailed > 200 words.
36
+ 2. **Imperative-to-interrogative ratio** -- Ratio of commands ("fix this", "add X") to questions ("what do you think?", "should we?"). High imperative ratio suggests terse-direct.
37
+ 3. **Structural formatting** -- Presence of markdown headers, numbered lists, code blocks, or bullet points within messages. Frequent formatting suggests detailed-structured.
38
+ 4. **Context preambles** -- Whether the developer provides background/context before making a request. Preambles suggest conversational or detailed-structured.
39
+ 5. **Sentence completeness** -- Whether messages use full sentences or fragments/shorthand. Fragments suggest terse-direct.
40
+ 6. **Follow-up pattern** -- Whether the developer provides additional context in subsequent messages (multi-message requests suggest conversational).
41
+
42
+ **Detection heuristics:**
43
+
44
+ 1. If average message length < 50 words AND predominantly imperative mood AND minimal formatting --> `terse-direct`
45
+ 2. If average message length 50-200 words AND mix of imperative and interrogative AND occasional formatting --> `conversational`
46
+ 3. If average message length > 200 words AND frequent structural formatting AND context preambles present --> `detailed-structured`
47
+ 4. If message length variance is high (std dev > 60% of mean) AND no single pattern dominates (< 60% of messages match one style) --> `mixed`
48
+ 5. If pattern varies systematically by project type (e.g., terse in CLI projects, detailed in frontend) --> `mixed` with context-dependent note
49
+
50
+ **Confidence scoring:**
51
+
52
+ - **HIGH:** 10+ messages showing consistent pattern (> 70% match), same pattern observed across 2+ projects
53
+ - **MEDIUM:** 5-9 messages showing pattern, OR pattern consistent within 1 project only
54
+ - **LOW:** < 5 messages with relevant signals, OR mixed signals (contradictory patterns observed in similar contexts)
55
+ - **UNSCORED:** 0 messages with relevant signals for this dimension
56
+
57
+ **Example quotes:**
58
+
59
+ - **terse-direct:** "fix the auth bug" / "add pagination to the list endpoint" / "this test is failing, make it pass"
60
+ - **conversational:** "I'm thinking we should probably handle the error case here. What do you think about returning a 422 instead of a 500? The client needs to know it was a validation issue."
61
+ - **detailed-structured:** "## Context\nThe auth flow currently uses session cookies but we need to migrate to JWT.\n\n## Requirements\n1. Access tokens (15min expiry)\n2. Refresh tokens (7-day)\n3. httpOnly cookies\n\n## What I've tried\nI looked at jose and jsonwebtoken..."
62
+
63
+ **Context-dependent patterns:**
64
+
65
+ When communication style varies systematically by project or task type, report the split rather than forcing a single rating. Example: "context-dependent: terse-direct for bug fixes and CLI tooling, detailed-structured for architecture and frontend work." Phase 3 orchestration resolves context-dependent splits by presenting the split to the user.
66
+
67
+ ---
68
+
69
+ ### 2. Decision Speed
70
+
71
+ `dimension_id: decision_speed`
72
+
73
+ **What we're measuring:** How quickly the developer makes choices when Claude presents options, alternatives, or trade-offs.
74
+
75
+ **Rating spectrum:**
76
+
77
+ | Rating | Description |
78
+ |--------|-------------|
79
+ | `fast-intuitive` | Decides immediately based on experience or gut feeling. Minimal deliberation. |
80
+ | `deliberate-informed` | Requests comparison or summary before deciding. Wants to understand trade-offs. |
81
+ | `research-first` | Delays decision to research independently. May leave and return with findings. |
82
+ | `delegator` | Defers to Claude's recommendation. Trusts the suggestion. |
83
+
84
+ **Signal patterns:**
85
+
86
+ 1. **Response latency to options** -- How many messages between Claude presenting options and developer choosing. Immediate (same message or next) suggests fast-intuitive.
87
+ 2. **Comparison requests** -- Presence of "compare these", "what are the trade-offs?", "pros and cons?" suggests deliberate-informed.
88
+ 3. **External research indicators** -- Messages like "I looked into X and...", "according to the docs...", "I read that..." suggest research-first.
89
+ 4. **Delegation language** -- "just pick one", "whatever you recommend", "your call", "go with the best option" suggests delegator.
90
+ 5. **Decision reversal frequency** -- How often the developer changes a decision after making it. Frequent reversals may indicate fast-intuitive with low confidence.
91
+
92
+ **Detection heuristics:**
93
+
94
+ 1. If developer selects options within 1-2 messages of presentation AND uses decisive language ("use X", "go with A") AND rarely asks for comparisons --> `fast-intuitive`
95
+ 2. If developer requests trade-off analysis or comparison tables AND decides after receiving comparison AND asks clarifying questions --> `deliberate-informed`
96
+ 3. If developer defers decisions with "let me look into this" AND returns with external information AND cites documentation or articles --> `research-first`
97
+ 4. If developer uses delegation language (> 3 instances) AND rarely overrides Claude's choices AND says "sounds good" or "your call" --> `delegator`
98
+ 5. If no clear pattern OR evidence is split across multiple styles --> classify as the dominant style with a context-dependent note
99
+
100
+ **Confidence scoring:**
101
+
102
+ - **HIGH:** 10+ decision points observed showing consistent pattern, same pattern across 2+ projects
103
+ - **MEDIUM:** 5-9 decision points, OR consistent within 1 project only
104
+ - **LOW:** < 5 decision points observed, OR mixed decision-making styles
105
+ - **UNSCORED:** 0 messages containing decision-relevant signals
106
+
107
+ **Example quotes:**
108
+
109
+ - **fast-intuitive:** "Use Tailwind. Next question." / "Option B, let's move on"
110
+ - **deliberate-informed:** "Can you compare Prisma vs Drizzle for this use case? I want to understand the migration story and type safety differences before I pick."
111
+ - **research-first:** "Hold off on the DB choice -- I want to read the Drizzle docs and check their GitHub issues first. I'll come back with a decision."
112
+ - **delegator:** "You know more about this than me. Whatever you recommend, go with it."
113
+
114
+ **Context-dependent patterns:**
115
+
116
+ Decision speed often varies by stakes. A developer may be fast-intuitive for styling choices but research-first for database or auth decisions. When this pattern is clear, report the split: "context-dependent: fast-intuitive for low-stakes (styling, naming), deliberate-informed for high-stakes (architecture, security)."
117
+
118
+ ---
119
+
120
+ ### 3. Explanation Depth
121
+
122
+ `dimension_id: explanation_depth`
123
+
124
+ **What we're measuring:** How much explanation the developer wants alongside code -- their preference for understanding vs. speed.
125
+
126
+ **Rating spectrum:**
127
+
128
+ | Rating | Description |
129
+ |--------|-------------|
130
+ | `code-only` | Wants working code with minimal or no explanation. Reads and understands code directly. |
131
+ | `concise` | Wants brief explanation of approach with code. Key decisions noted, not exhaustive. |
132
+ | `detailed` | Wants thorough walkthrough of the approach, reasoning, and code. Appreciates structure. |
133
+ | `educational` | Wants deep conceptual explanation. Treats interactions as learning opportunities. |
134
+
135
+ **Signal patterns:**
136
+
137
+ 1. **Explicit depth requests** -- "just show me the code", "explain why", "teach me about X", "skip the explanation"
138
+ 2. **Reaction to explanations** -- Does the developer skip past explanations? Ask for more detail? Say "too much"?
139
+ 3. **Follow-up question depth** -- Surface-level follow-ups ("does it work?") vs. conceptual ("why this pattern over X?")
140
+ 4. **Code comprehension signals** -- Does the developer reference implementation details in their messages? This suggests they read and understand code directly.
141
+ 5. **"I know this" signals** -- Messages like "I'm familiar with X", "skip the basics", "I know how hooks work" indicate lower explanation preference.
142
+
143
+ **Detection heuristics:**
144
+
145
+ 1. If developer says "just the code" or "skip the explanation" AND rarely asks follow-up conceptual questions AND references code details directly --> `code-only`
146
+ 2. If developer accepts brief explanations without asking for more AND asks focused follow-ups about specific decisions --> `concise`
147
+ 3. If developer asks "why" questions AND requests walkthroughs AND appreciates structured explanations --> `detailed`
148
+ 4. If developer asks conceptual questions beyond the immediate task AND uses learning language ("I want to understand", "teach me") --> `educational`
149
+
150
+ **Confidence scoring:**
151
+
152
+ - **HIGH:** 10+ messages showing consistent preference, same preference across 2+ projects
153
+ - **MEDIUM:** 5-9 messages, OR consistent within 1 project only
154
+ - **LOW:** < 5 relevant messages, OR preferences shift between interactions
155
+ - **UNSCORED:** 0 messages with relevant signals
156
+
157
+ **Example quotes:**
158
+
159
+ - **code-only:** "Just give me the implementation. I'll read through it." / "Skip the explanation, show the code."
160
+ - **concise:** "Quick summary of the approach, then the code please." / "Why did you use a Map here instead of an object?"
161
+ - **detailed:** "Walk me through this step by step. I want to understand the auth flow before we implement it."
162
+ - **educational:** "Can you explain how JWT refresh token rotation works conceptually? I want to understand the security model, not just implement it."
163
+
164
+ **Context-dependent patterns:**
165
+
166
+ Explanation depth often correlates with domain familiarity. A developer may want code-only for well-known tech but educational for new domains. Report splits when observed: "context-dependent: code-only for React/TypeScript, detailed for database optimization."
167
+
168
+ ---
169
+
170
+ ### 4. Debugging Approach
171
+
172
+ `dimension_id: debugging_approach`
173
+
174
+ **What we're measuring:** How the developer approaches problems, errors, and unexpected behavior when working with Claude.
175
+
176
+ **Rating spectrum:**
177
+
178
+ | Rating | Description |
179
+ |--------|-------------|
180
+ | `fix-first` | Pastes error, wants it fixed. Minimal diagnosis interest. Results-oriented. |
181
+ | `diagnostic` | Shares error with context, wants to understand the cause before fixing. |
182
+ | `hypothesis-driven` | Investigates independently first, brings specific theories to Claude for validation. |
183
+ | `collaborative` | Wants to work through the problem step-by-step with Claude as a partner. |
184
+
185
+ **Signal patterns:**
186
+
187
+ 1. **Error presentation style** -- Raw error paste only (fix-first) vs. error + "I think it might be..." (hypothesis-driven) vs. "Can you help me understand why..." (diagnostic)
188
+ 2. **Pre-investigation indicators** -- Does the developer share what they already tried? Do they mention reading logs, checking state, or isolating the issue?
189
+ 3. **Root cause interest** -- After a fix, does the developer ask "why did that happen?" or just move on?
190
+ 4. **Step-by-step language** -- "Let's check X first", "what should we look at next?", "walk me through the debugging"
191
+ 5. **Fix acceptance pattern** -- Does the developer immediately apply fixes or question them first?
192
+
193
+ **Detection heuristics:**
194
+
195
+ 1. If developer pastes errors without context AND accepts fixes without root cause questions AND moves on immediately --> `fix-first`
196
+ 2. If developer provides error context AND asks "why is this happening?" AND wants explanation with the fix --> `diagnostic`
197
+ 3. If developer shares their own analysis AND proposes theories ("I think the issue is X because...") AND asks Claude to confirm or refute --> `hypothesis-driven`
198
+ 4. If developer uses collaborative language ("let's", "what should we check?") AND prefers incremental diagnosis AND walks through problems together --> `collaborative`
199
+
200
+ **Confidence scoring:**
201
+
202
+ - **HIGH:** 10+ debugging interactions showing consistent approach, same approach across 2+ projects
203
+ - **MEDIUM:** 5-9 debugging interactions, OR consistent within 1 project only
204
+ - **LOW:** < 5 debugging interactions, OR approach varies significantly
205
+ - **UNSCORED:** 0 messages with debugging-relevant signals
206
+
207
+ **Example quotes:**
208
+
209
+ - **fix-first:** "Getting this error: TypeError: Cannot read properties of undefined. Fix it."
210
+ - **diagnostic:** "The API returns 500 when I send a POST to /users. Here's the request body and the server log. What's causing this?"
211
+ - **hypothesis-driven:** "I think the race condition is in the useEffect cleanup. I checked and the subscription isn't being cancelled on unmount. Can you confirm?"
212
+ - **collaborative:** "Let's debug this together. The test passes locally but fails in CI. What should we check first?"
213
+
214
+ **Context-dependent patterns:**
215
+
216
+ Debugging approach may vary by urgency. A developer might be fix-first under deadline pressure but hypothesis-driven during regular development. Note temporal patterns if detected.
217
+
218
+ ---
219
+
220
+ ### 5. UX Philosophy
221
+
222
+ `dimension_id: ux_philosophy`
223
+
224
+ **What we're measuring:** How the developer prioritizes user experience, design, and visual quality relative to functionality.
225
+
226
+ **Rating spectrum:**
227
+
228
+ | Rating | Description |
229
+ |--------|-------------|
230
+ | `function-first` | Get it working, polish later. Minimal UX concern during implementation. |
231
+ | `pragmatic` | Basic usability from the start. Nothing ugly or broken, but no design obsession. |
232
+ | `design-conscious` | Design and UX are treated as important as functionality. Attention to visual detail. |
233
+ | `backend-focused` | Primarily builds backend/CLI. Minimal frontend exposure or interest. |
234
+
235
+ **Signal patterns:**
236
+
237
+ 1. **Design-related requests** -- Mentions of styling, layout, responsiveness, animations, color schemes, spacing
238
+ 2. **Polish timing** -- Does the developer ask for visual polish during implementation or defer it?
239
+ 3. **UI feedback specificity** -- Vague ("make it look better") vs. specific ("increase the padding to 16px, change the font weight to 600")
240
+ 4. **Frontend vs. backend distribution** -- Ratio of frontend-focused requests to backend-focused requests
241
+ 5. **Accessibility mentions** -- References to a11y, screen readers, keyboard navigation, ARIA labels
242
+
243
+ **Detection heuristics:**
244
+
245
+ 1. If developer rarely mentions UI/UX AND focuses on logic, APIs, data AND defers styling ("we'll make it pretty later") --> `function-first`
246
+ 2. If developer includes basic UX requirements AND mentions usability but not pixel-perfection AND balances form with function --> `pragmatic`
247
+ 3. If developer provides specific design requirements AND mentions polish, animations, spacing AND treats UI bugs as seriously as logic bugs --> `design-conscious`
248
+ 4. If developer works primarily on CLI tools, APIs, or backend systems AND rarely or never works on frontend AND messages focus on data, performance, infrastructure --> `backend-focused`
249
+
250
+ **Confidence scoring:**
251
+
252
+ - **HIGH:** 10+ messages with UX-relevant signals, same pattern across 2+ projects
253
+ - **MEDIUM:** 5-9 messages, OR consistent within 1 project only
254
+ - **LOW:** < 5 relevant messages, OR philosophy varies by project type
255
+ - **UNSCORED:** 0 messages with UX-relevant signals
256
+
257
+ **Example quotes:**
258
+
259
+ - **function-first:** "Just get the form working. We'll style it later." / "I don't care how it looks, I need the data flowing."
260
+ - **pragmatic:** "Make sure the loading state is visible and the error messages are clear. Standard styling is fine."
261
+ - **design-conscious:** "The button needs more breathing room -- add 12px vertical padding and make the hover state transition 200ms. Also check the contrast ratio."
262
+ - **backend-focused:** "I'm building a CLI tool. No UI needed." / "Add the REST endpoint, I'll handle the frontend separately."
263
+
264
+ **Context-dependent patterns:**
265
+
266
+ UX philosophy is inherently project-dependent. A developer building a CLI tool is necessarily backend-focused for that project. When possible, distinguish between project-driven and preference-driven patterns. If the developer only has backend projects, note that the rating reflects available data: "backend-focused (note: all analyzed projects are backend/CLI -- may not reflect frontend preferences)."
267
+
268
+ ---
269
+
270
+ ### 6. Vendor Philosophy
271
+
272
+ `dimension_id: vendor_philosophy`
273
+
274
+ **What we're measuring:** How the developer approaches choosing and evaluating libraries, frameworks, and external services.
275
+
276
+ **Rating spectrum:**
277
+
278
+ | Rating | Description |
279
+ |--------|-------------|
280
+ | `pragmatic-fast` | Uses what works, what Claude suggests, or what's fastest. Minimal evaluation. |
281
+ | `conservative` | Prefers well-known, battle-tested, widely-adopted options. Risk-averse. |
282
+ | `thorough-evaluator` | Researches alternatives, reads docs, compares features and trade-offs before committing. |
283
+ | `opinionated` | Has strong, pre-existing preferences for specific tools. Knows what they like. |
284
+
285
+ **Signal patterns:**
286
+
287
+ 1. **Library selection language** -- "just use whatever", "is X the standard?", "I want to compare A vs B", "we're using X, period"
288
+ 2. **Evaluation depth** -- Does the developer accept the first suggestion or ask for alternatives?
289
+ 3. **Stated preferences** -- Explicit mentions of preferred tools, past experience, or tool philosophy
290
+ 4. **Rejection patterns** -- Does the developer reject Claude's suggestions? On what basis (popularity, personal experience, docs quality)?
291
+ 5. **Dependency attitude** -- "minimize dependencies", "no external deps", "add whatever we need" -- reveals philosophy about external code
292
+
293
+ **Detection heuristics:**
294
+
295
+ 1. If developer accepts library suggestions without pushback AND uses phrases like "sounds good" or "go with that" AND rarely asks about alternatives --> `pragmatic-fast`
296
+ 2. If developer asks about popularity, maintenance, community AND prefers "industry standard" or "battle-tested" AND avoids new/experimental --> `conservative`
297
+ 3. If developer requests comparisons AND reads docs before deciding AND asks about edge cases, license, bundle size --> `thorough-evaluator`
298
+ 4. If developer names specific libraries unprompted AND overrides Claude's suggestions AND expresses strong preferences --> `opinionated`
299
+
300
+ **Confidence scoring:**
301
+
302
+ - **HIGH:** 10+ vendor/library decisions observed, same pattern across 2+ projects
303
+ - **MEDIUM:** 5-9 decisions, OR consistent within 1 project only
304
+ - **LOW:** < 5 vendor decisions observed, OR pattern varies
305
+ - **UNSCORED:** 0 messages with vendor-selection signals
306
+
307
+ **Example quotes:**
308
+
309
+ - **pragmatic-fast:** "Use whatever ORM you recommend. I just need it working." / "Sure, Tailwind is fine."
310
+ - **conservative:** "Is Prisma the most widely used ORM for this? I want something with a large community." / "Let's stick with what most teams use."
311
+ - **thorough-evaluator:** "Before we pick a state management library, can you compare Zustand vs Jotai vs Redux Toolkit? I want to understand bundle size, API surface, and TypeScript support."
312
+ - **opinionated:** "We're using Drizzle, not Prisma. I've used both and Drizzle's SQL-like API is better for complex queries."
313
+
314
+ **Context-dependent patterns:**
315
+
316
+ Vendor philosophy may shift based on project importance or domain. Personal projects may use pragmatic-fast while professional projects use thorough-evaluator. Report the split if detected.
317
+
318
+ ---
319
+
320
+ ### 7. Frustration Triggers
321
+
322
+ `dimension_id: frustration_triggers`
323
+
324
+ **What we're measuring:** What causes visible frustration, correction, or negative emotional signals in the developer's messages to Claude.
325
+
326
+ **Rating spectrum:**
327
+
328
+ | Rating | Description |
329
+ |--------|-------------|
330
+ | `scope-creep` | Frustrated when Claude does things that were not asked for. Wants bounded execution. |
331
+ | `instruction-adherence` | Frustrated when Claude doesn't follow instructions precisely. Values exactness. |
332
+ | `verbosity` | Frustrated when Claude over-explains or is too wordy. Wants conciseness. |
333
+ | `regression` | Frustrated when Claude breaks working code while fixing something else. Values stability. |
334
+
335
+ **Signal patterns:**
336
+
337
+ 1. **Correction language** -- "I didn't ask for that", "don't do X", "I said Y not Z", "why did you change this?"
338
+ 2. **Repetition patterns** -- Repeating the same instruction with emphasis suggests instruction-adherence frustration
339
+ 3. **Emotional tone shifts** -- Shift from neutral to terse, use of capitals, exclamation marks, explicit frustration words
340
+ 4. **"Don't" statements** -- "don't add extra features", "don't explain so much", "don't touch that file" -- what they prohibit reveals what frustrates them
341
+ 5. **Frustration recovery** -- How quickly the developer returns to neutral tone after a frustration event
342
+
343
+ **Detection heuristics:**
344
+
345
+ 1. If developer corrects Claude for doing unrequested work AND uses language like "I only asked for X", "stop adding things", "stick to what I asked" --> `scope-creep`
346
+ 2. If developer repeats instructions AND corrects specific deviations from stated requirements AND emphasizes precision ("I specifically said...") --> `instruction-adherence`
347
+ 3. If developer asks Claude to be shorter AND skips explanations AND expresses annoyance at length ("too much", "just the answer") --> `verbosity`
348
+ 4. If developer expresses frustration at broken functionality AND checks for regressions AND says "you broke X while fixing Y" --> `regression`
349
+
350
+ **Confidence scoring:**
351
+
352
+ - **HIGH:** 10+ frustration events showing consistent trigger pattern, same trigger across 2+ projects
353
+ - **MEDIUM:** 5-9 frustration events, OR consistent within 1 project only
354
+ - **LOW:** < 5 frustration events observed (note: low frustration count is POSITIVE -- it means the developer is generally satisfied, not that data is insufficient)
355
+ - **UNSCORED:** 0 messages with frustration signals (note: "no frustration detected" is a valid finding)
356
+
357
+ **Example quotes:**
358
+
359
+ - **scope-creep:** "I asked you to fix the login bug, not refactor the entire auth module. Revert everything except the bug fix."
360
+ - **instruction-adherence:** "I said to use a Map, not an object. I was specific about this. Please redo it with a Map."
361
+ - **verbosity:** "Way too much explanation. Just show me the code change, nothing else."
362
+ - **regression:** "The search was working fine before. Now after your 'fix' to the filter, search results are empty. Don't touch things I didn't ask you to change."
363
+
364
+ **Context-dependent patterns:**
365
+
366
+ Frustration triggers tend to be consistent across projects (personality-driven, not project-driven). However, their intensity may vary with project stakes. If multiple frustration triggers are observed, report the primary (most frequent) and note secondaries.
367
+
368
+ ---
369
+
370
+ ### 8. Learning Style
371
+
372
+ `dimension_id: learning_style`
373
+
374
+ **What we're measuring:** How the developer prefers to understand new concepts, tools, or patterns they encounter.
375
+
376
+ **Rating spectrum:**
377
+
378
+ | Rating | Description |
379
+ |--------|-------------|
380
+ | `self-directed` | Reads code directly, figures things out independently. Asks Claude specific questions. |
381
+ | `guided` | Asks Claude to explain relevant parts. Prefers guided understanding. |
382
+ | `documentation-first` | Reads official docs and tutorials before diving in. References documentation. |
383
+ | `example-driven` | Wants working examples to modify and learn from. Pattern-matching learner. |
384
+
385
+ **Signal patterns:**
386
+
387
+ 1. **Learning initiation** -- Does the developer start by reading code, asking for explanation, requesting docs, or asking for examples?
388
+ 2. **Reference to external sources** -- Mentions of documentation, tutorials, Stack Overflow, blog posts suggest documentation-first
389
+ 3. **Example requests** -- "show me an example", "can you give me a sample?", "let me see how this looks in practice"
390
+ 4. **Code-reading indicators** -- "I looked at the implementation", "I see that X calls Y", "from reading the code..."
391
+ 5. **Explanation requests vs. code requests** -- Ratio of "explain X" to "show me X" messages
392
+
393
+ **Detection heuristics:**
394
+
395
+ 1. If developer references reading code directly AND asks specific targeted questions AND demonstrates independent investigation --> `self-directed`
396
+ 2. If developer asks Claude to explain concepts AND requests walkthroughs AND prefers Claude-mediated understanding --> `guided`
397
+ 3. If developer cites documentation AND asks for doc links AND mentions reading tutorials or official guides --> `documentation-first`
398
+ 4. If developer requests examples AND modifies provided examples AND learns by pattern matching --> `example-driven`
399
+
400
+ **Confidence scoring:**
401
+
402
+ - **HIGH:** 10+ learning interactions showing consistent preference, same preference across 2+ projects
403
+ - **MEDIUM:** 5-9 learning interactions, OR consistent within 1 project only
404
+ - **LOW:** < 5 learning interactions, OR preference varies by topic familiarity
405
+ - **UNSCORED:** 0 messages with learning-relevant signals
406
+
407
+ **Example quotes:**
408
+
409
+ - **self-directed:** "I read through the middleware code. The issue is that the token check happens after the rate limiter. Should those be swapped?"
410
+ - **guided:** "Can you walk me through how the auth flow works in this codebase? Start from the login request."
411
+ - **documentation-first:** "I read the Prisma docs on relations. Can you help me apply the many-to-many pattern from their guide to our schema?"
412
+ - **example-driven:** "Show me a working example of a protected API route with JWT validation. I'll adapt it for our endpoints."
413
+
414
+ **Context-dependent patterns:**
415
+
416
+ Learning style often varies with domain expertise. A developer may be self-directed in familiar domains but guided or example-driven in new ones. Report the split if detected: "context-dependent: self-directed for TypeScript/Node, example-driven for Rust/systems programming."
417
+
418
+ ---
419
+
420
+ ## Evidence Curation
421
+
422
+ ### Evidence Format
423
+
424
+ Use the combined format for each evidence entry:
425
+
426
+ **Signal:** [pattern interpretation -- what the quote demonstrates] / **Example:** "[trimmed quote, ~100 characters]" -- project: [project name]
427
+
428
+ ### Evidence Targets
429
+
430
+ - **3 evidence quotes per dimension** (24 total across all 8 dimensions)
431
+ - Select quotes that best illustrate the rated pattern
432
+ - Prefer quotes from different projects to demonstrate cross-project consistency
433
+ - When fewer than 3 relevant quotes exist, include what is available and note the evidence count
434
+
435
+ ### Quote Truncation
436
+
437
+ - Trim quotes to the behavioral signal -- the part that demonstrates the pattern
438
+ - Target approximately 100 characters per quote
439
+ - Preserve the meaningful fragment, not the full message
440
+ - If the signal is in the middle of a long message, use "..." to indicate trimming
441
+ - Never include the full 500-character message when 50 characters capture the signal
442
+
443
+ ### Project Attribution
444
+
445
+ - Every evidence quote must include the project name
446
+ - Project attribution enables verification and shows cross-project patterns
447
+ - Format: `-- project: [name]`
448
+
449
+ ### Sensitive Content Exclusion (Layer 1)
450
+
451
+ The profiler agent must never select quotes containing any of the following patterns:
452
+
453
+ - `sk-` (API key prefixes)
454
+ - `Bearer ` (auth tokens)
455
+ - `password` (credentials)
456
+ - `secret` (secrets)
457
+ - `token` (when used as a credential value, not a concept discussion)
458
+ - `api_key` or `API_KEY` (API key references)
459
+ - Full absolute file paths containing usernames (e.g., `/Users/john/...`, `/home/john/...`)
460
+
461
+ **When sensitive content is found and excluded**, report as metadata in the analysis output:
462
+
463
+ ```json
464
+ {
465
+ "sensitive_excluded": [
466
+ { "type": "api_key_pattern", "count": 2 },
467
+ { "type": "file_path_with_username", "count": 1 }
468
+ ]
469
+ }
470
+ ```
471
+
472
+ This metadata enables defense-in-depth auditing. Layer 2 (regex filter in the write-profile step) provides a second pass, but the profiler should still avoid selecting sensitive quotes.
473
+
474
+ ### Natural Language Priority
475
+
476
+ Weight natural language messages higher than:
477
+ - Pasted log output (detected by timestamps, repeated format strings, `[DEBUG]`, `[INFO]`, `[ERROR]`)
478
+ - Session context dumps (messages starting with "This session is being continued from a previous conversation")
479
+ - Large code pastes (messages where > 80% of content is inside code fences)
480
+
481
+ These message types are genuine but carry less behavioral signal. Deprioritize them when selecting evidence quotes.
482
+
483
+ ---
484
+
485
+ ## Recency Weighting
486
+
487
+ ### Guideline
488
+
489
+ Recent sessions (last 30 days) should be weighted approximately 3x compared to older sessions when analyzing patterns.
490
+
491
+ ### Rationale
492
+
493
+ Developer styles evolve. A developer who was terse six months ago may now provide detailed structured context. Recent behavior is a more accurate reflection of current working style.
494
+
495
+ ### Application
496
+
497
+ 1. When counting signals for confidence scoring, recent signals count 3x (e.g., 4 recent signals = 12 weighted signals)
498
+ 2. When selecting evidence quotes, prefer recent quotes over older ones when both demonstrate the same pattern
499
+ 3. When patterns conflict between recent and older sessions, the recent pattern takes precedence for the rating, but note the evolution: "recently shifted from terse-direct to conversational"
500
+ 4. The 30-day window is relative to the analysis date, not a fixed date
501
+
502
+ ### Edge Cases
503
+
504
+ - If ALL sessions are older than 30 days, apply no weighting (all sessions are equally stale)
505
+ - If ALL sessions are within the last 30 days, apply no weighting (all sessions are equally recent)
506
+ - The 3x weight is a guideline, not a hard multiplier -- use judgment when the weighted count changes a confidence threshold
507
+
508
+ ---
509
+
510
+ ## Thin Data Handling
511
+
512
+ ### Message Thresholds
513
+
514
+ | Total Genuine Messages | Mode | Behavior |
515
+ |------------------------|------|----------|
516
+ | > 50 | `full` | Full analysis across all 8 dimensions. Questionnaire optional (user can choose to supplement). |
517
+ | 20-50 | `hybrid` | Analyze available messages. Score each dimension with confidence. Supplement with questionnaire for LOW/UNSCORED dimensions. |
518
+ | < 20 | `insufficient` | All dimensions scored LOW or UNSCORED. Recommend questionnaire fallback as primary profile source. Note: "insufficient session data for behavioral analysis." |
519
+
520
+ ### Handling Insufficient Dimensions
521
+
522
+ When a specific dimension has insufficient data (even if total messages exceed thresholds):
523
+
524
+ - Set confidence to `UNSCORED`
525
+ - Set summary to: "Insufficient data -- no clear signals detected for this dimension."
526
+ - Set claude_instruction to a neutral fallback: "No strong preference detected. Ask the developer when this dimension is relevant."
527
+ - Set evidence_quotes to empty array `[]`
528
+ - Set evidence_count to `0`
529
+
530
+ ### Questionnaire Supplement
531
+
532
+ When operating in `hybrid` mode, the questionnaire fills gaps for dimensions where session analysis produced LOW or UNSCORED confidence. The questionnaire-derived ratings use:
533
+ - **MEDIUM** confidence for strong, definitive picks
534
+ - **LOW** confidence for "it varies" or ambiguous selections
535
+
536
+ If session analysis and questionnaire agree on a dimension, confidence can be elevated (e.g., session LOW + questionnaire MEDIUM agreement = MEDIUM).
537
+
538
+ ---
539
+
540
+ ## Output Schema
541
+
542
+ The profiler agent must return JSON matching this exact schema, wrapped in `<analysis>` tags.
543
+
544
+ ```json
545
+ {
546
+ "profile_version": "1.0",
547
+ "analyzed_at": "ISO-8601 timestamp",
548
+ "data_source": "session_analysis",
549
+ "projects_analyzed": ["project-name-1", "project-name-2"],
550
+ "messages_analyzed": 0,
551
+ "message_threshold": "full|hybrid|insufficient",
552
+ "sensitive_excluded": [
553
+ { "type": "string", "count": 0 }
554
+ ],
555
+ "dimensions": {
556
+ "communication_style": {
557
+ "rating": "terse-direct|conversational|detailed-structured|mixed",
558
+ "confidence": "HIGH|MEDIUM|LOW|UNSCORED",
559
+ "evidence_count": 0,
560
+ "cross_project_consistent": true,
561
+ "evidence_quotes": [
562
+ {
563
+ "signal": "Pattern interpretation describing what the quote demonstrates",
564
+ "quote": "Trimmed quote, approximately 100 characters",
565
+ "project": "project-name"
566
+ }
567
+ ],
568
+ "summary": "One to two sentence description of the observed pattern",
569
+ "claude_instruction": "Imperative directive for Claude: 'Match structured communication style' not 'You tend to provide structured context'"
570
+ },
571
+ "decision_speed": {
572
+ "rating": "fast-intuitive|deliberate-informed|research-first|delegator",
573
+ "confidence": "HIGH|MEDIUM|LOW|UNSCORED",
574
+ "evidence_count": 0,
575
+ "cross_project_consistent": true,
576
+ "evidence_quotes": [],
577
+ "summary": "string",
578
+ "claude_instruction": "string"
579
+ },
580
+ "explanation_depth": {
581
+ "rating": "code-only|concise|detailed|educational",
582
+ "confidence": "HIGH|MEDIUM|LOW|UNSCORED",
583
+ "evidence_count": 0,
584
+ "cross_project_consistent": true,
585
+ "evidence_quotes": [],
586
+ "summary": "string",
587
+ "claude_instruction": "string"
588
+ },
589
+ "debugging_approach": {
590
+ "rating": "fix-first|diagnostic|hypothesis-driven|collaborative",
591
+ "confidence": "HIGH|MEDIUM|LOW|UNSCORED",
592
+ "evidence_count": 0,
593
+ "cross_project_consistent": true,
594
+ "evidence_quotes": [],
595
+ "summary": "string",
596
+ "claude_instruction": "string"
597
+ },
598
+ "ux_philosophy": {
599
+ "rating": "function-first|pragmatic|design-conscious|backend-focused",
600
+ "confidence": "HIGH|MEDIUM|LOW|UNSCORED",
601
+ "evidence_count": 0,
602
+ "cross_project_consistent": true,
603
+ "evidence_quotes": [],
604
+ "summary": "string",
605
+ "claude_instruction": "string"
606
+ },
607
+ "vendor_philosophy": {
608
+ "rating": "pragmatic-fast|conservative|thorough-evaluator|opinionated",
609
+ "confidence": "HIGH|MEDIUM|LOW|UNSCORED",
610
+ "evidence_count": 0,
611
+ "cross_project_consistent": true,
612
+ "evidence_quotes": [],
613
+ "summary": "string",
614
+ "claude_instruction": "string"
615
+ },
616
+ "frustration_triggers": {
617
+ "rating": "scope-creep|instruction-adherence|verbosity|regression",
618
+ "confidence": "HIGH|MEDIUM|LOW|UNSCORED",
619
+ "evidence_count": 0,
620
+ "cross_project_consistent": true,
621
+ "evidence_quotes": [],
622
+ "summary": "string",
623
+ "claude_instruction": "string"
624
+ },
625
+ "learning_style": {
626
+ "rating": "self-directed|guided|documentation-first|example-driven",
627
+ "confidence": "HIGH|MEDIUM|LOW|UNSCORED",
628
+ "evidence_count": 0,
629
+ "cross_project_consistent": true,
630
+ "evidence_quotes": [],
631
+ "summary": "string",
632
+ "claude_instruction": "string"
633
+ }
634
+ }
635
+ }
636
+ ```
637
+
638
+ ### Schema Notes
639
+
640
+ - **`profile_version`**: Always `"1.0"` for this schema version
641
+ - **`analyzed_at`**: ISO-8601 timestamp of when the analysis was performed
642
+ - **`data_source`**: `"session_analysis"` for session-based profiling, `"questionnaire"` for questionnaire-only, `"hybrid"` for combined
643
+ - **`projects_analyzed`**: List of project names that contributed messages
644
+ - **`messages_analyzed`**: Total number of genuine user messages processed
645
+ - **`message_threshold`**: Which threshold mode was triggered (`full`, `hybrid`, `insufficient`)
646
+ - **`sensitive_excluded`**: Array of excluded sensitive content types with counts (empty array if none found)
647
+ - **`claude_instruction`**: Must be written in imperative form directed at Claude. This field is how the profile becomes actionable.
648
+ - Good: "Provide structured responses with headers and numbered lists to match this developer's communication style."
649
+ - Bad: "You tend to like structured responses."
650
+ - Good: "Ask before making changes beyond the stated request -- this developer values bounded execution."
651
+ - Bad: "The developer gets frustrated when you do extra work."
652
+
653
+ ---
654
+
655
+ ## Cross-Project Consistency
656
+
657
+ ### Assessment
658
+
659
+ For each dimension, assess whether the observed pattern is consistent across the projects analyzed:
660
+
661
+ - **`cross_project_consistent: true`** -- Same rating would apply regardless of which project is analyzed. Evidence from 2+ projects shows the same pattern.
662
+ - **`cross_project_consistent: false`** -- Pattern varies by project. Include a context-dependent note in the summary.
663
+
664
+ ### Reporting Splits
665
+
666
+ When `cross_project_consistent` is false, the summary must describe the split:
667
+
668
+ - "Context-dependent: terse-direct for CLI/backend projects (gsd-tools, api-server), detailed-structured for frontend projects (dashboard, landing-page)."
669
+ - "Context-dependent: fast-intuitive for familiar tech (React, Node), research-first for new domains (Rust, ML)."
670
+
671
+ The rating field should reflect the **dominant** pattern (most evidence). The summary describes the nuance.
672
+
673
+ ### Phase 3 Resolution
674
+
675
+ Context-dependent splits are resolved during Phase 3 orchestration. The orchestrator presents the split to the developer and asks which pattern represents their general preference. Until resolved, Claude uses the dominant pattern with awareness of the context-dependent variation.
676
+
677
+ ---
678
+
679
+ *Reference document version: 1.0*
680
+ *Dimensions: 8*
681
+ *Schema: profile_version 1.0*