design-protocol 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 (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +225 -0
  3. package/agents/dp-researcher.md +239 -0
  4. package/agents/dp-verifier.md +207 -0
  5. package/bin/install.js +464 -0
  6. package/commands/dp-back.md +221 -0
  7. package/commands/dp-discuss.md +257 -0
  8. package/commands/dp-execute.md +513 -0
  9. package/commands/dp-journey.md +85 -0
  10. package/commands/dp-progress.md +178 -0
  11. package/commands/dp-roadmap.md +83 -0
  12. package/commands/dp-skip.md +186 -0
  13. package/commands/dp-start.md +510 -0
  14. package/commands/dp-storytell.md +94 -0
  15. package/commands/dp-verify.md +207 -0
  16. package/package.json +59 -0
  17. package/skills/dp-color/SKILL.md +214 -0
  18. package/skills/dp-color/export_tokens.py +297 -0
  19. package/skills/dp-color/references/apca-contrast.md +87 -0
  20. package/skills/dp-color/references/hue-emotions.md +109 -0
  21. package/skills/dp-color/references/oklch-gamut.md +79 -0
  22. package/skills/dp-color/references/pitfalls.md +171 -0
  23. package/skills/dp-color/references/scale-patterns.md +206 -0
  24. package/skills/dp-color/references/tool-workflows.md +200 -0
  25. package/skills/dp-discovery/SKILL.md +480 -0
  26. package/skills/dp-eng_review/SKILL.md +471 -0
  27. package/skills/dp-eng_review/references/code-review-checklist.md +385 -0
  28. package/skills/dp-eng_review/references/react-patterns.md +512 -0
  29. package/skills/dp-eng_review/references/shadcn-patterns.md +510 -0
  30. package/skills/dp-eng_review/references/tailwind-conventions.md +351 -0
  31. package/skills/dp-journey/SKILL.md +682 -0
  32. package/skills/dp-journey/references/journey-types.md +97 -0
  33. package/skills/dp-journey/references/map-structures.md +177 -0
  34. package/skills/dp-journey/references/omnichannel-patterns.md +208 -0
  35. package/skills/dp-journey/references/research-methods.md +125 -0
  36. package/skills/dp-prd/SKILL.md +201 -0
  37. package/skills/dp-prd/references/claude-code-spec.md +107 -0
  38. package/skills/dp-prd/references/interview-questions.md +158 -0
  39. package/skills/dp-prd/references/section-templates.md +231 -0
  40. package/skills/dp-research/SKILL.md +540 -0
  41. package/skills/dp-research/references/facilitation-guide.md +291 -0
  42. package/skills/dp-research/references/interview-guide-template.md +190 -0
  43. package/skills/dp-research/references/method-selection.md +195 -0
  44. package/skills/dp-research/references/question-writing.md +244 -0
  45. package/skills/dp-research/references/research-report-template.md +363 -0
  46. package/skills/dp-research/references/synthesis-methods.md +289 -0
  47. package/skills/dp-research/references/usability-test-template.md +260 -0
  48. package/skills/dp-roadmap/SKILL.md +648 -0
  49. package/skills/dp-roadmap/references/prioritization-frameworks.md +312 -0
  50. package/skills/dp-roadmap/references/roadmap-structures.md +179 -0
  51. package/skills/dp-roadmap/references/roadmap-workshops.md +264 -0
  52. package/skills/dp-roadmap/references/theme-development.md +168 -0
  53. package/skills/dp-storytell/SKILL.md +645 -0
  54. package/skills/dp-storytell/references/audience-playbooks.md +260 -0
  55. package/skills/dp-storytell/references/content-type-templates.md +310 -0
  56. package/skills/dp-storytell/references/delivery-tactics.md +228 -0
  57. package/skills/dp-storytell/references/narrative-frameworks.md +259 -0
  58. package/skills/dp-ui/SKILL.md +503 -0
  59. package/skills/dp-ui/references/b2b-enterprise-patterns.md +319 -0
  60. package/skills/dp-ui/references/data-visualization.md +304 -0
  61. package/skills/dp-ui/references/visual-design-principles.md +237 -0
  62. package/skills/dp-ux/SKILL.md +414 -0
  63. package/skills/dp-ux/references/accessibility-checklist.md +128 -0
  64. package/skills/dp-ux/references/product-excellence.md +149 -0
  65. package/skills/dp-ux/references/usability-principles.md +140 -0
  66. package/skills/dp-ux/references/ux-patterns.md +221 -0
  67. package/templates/config.json +55 -0
  68. package/templates/context.md +96 -0
  69. package/templates/project.md +83 -0
  70. package/templates/requirements.md +137 -0
  71. package/templates/roadmap.md +168 -0
  72. package/templates/state.md +107 -0
@@ -0,0 +1,257 @@
1
+ ---
2
+ name: dp-discuss
3
+ description: Capture design decisions and context before running a phase skill. Creates a CONTEXT.md file with resolved gray areas, assumptions, and direction.
4
+ ---
5
+
6
+ # /dp:discuss — Pre-Phase Decision Capture
7
+
8
+ You are facilitating a discussion to capture context before running a phase skill. This ensures decisions are documented and the skill has clear direction.
9
+
10
+ ## When to Use
11
+
12
+ - Before any phase when there are unclear aspects
13
+ - When multiple valid approaches exist
14
+ - When stakeholder input needs documenting
15
+ - When assumptions need explicit acknowledgment
16
+
17
+ ## Workflow
18
+
19
+ ### Step 1: Check Workflow Exists
20
+
21
+ ```bash
22
+ ls .design/config.json 2>/dev/null
23
+ ```
24
+
25
+ **If not found:**
26
+ ```
27
+ No DP workflow found. Start one with /dp:start first.
28
+ ```
29
+
30
+ ### Step 2: Determine Current Phase
31
+
32
+ Read `.design/STATE.md` to get current phase number and name.
33
+
34
+ Read `.design/config.json` to get the next pending phase.
35
+
36
+ ### Step 3: Load Previous Context
37
+
38
+ If not the first phase, load relevant previous phase documents:
39
+ - For UX: Load DISCOVERY.md
40
+ - For UI: Load DISCOVERY.md + UX-DECISIONS.md
41
+ - For Review: Load all previous phases
42
+
43
+ Display summary:
44
+ ```
45
+ CONTEXT FROM PREVIOUS PHASES
46
+ ────────────────────────────────────────────────────────────────────────────────
47
+ From Discovery:
48
+ • Problem: [one-liner]
49
+ • Primary User: [role]
50
+ • Key Requirements: [top 3]
51
+
52
+ Ready to discuss [Phase Name] phase direction.
53
+ ```
54
+
55
+ ### Step 4: Facilitate Discussion
56
+
57
+ Ask questions based on the phase:
58
+
59
+ **For Discovery (`/dp:discovery`):**
60
+ 1. "What do you already know about this feature/problem?"
61
+ 2. "Are there any assumptions you want me to challenge particularly hard?"
62
+ 3. "Any areas I should NOT probe deeply? (sensitive topics, already decided, etc.)"
63
+ 4. "What format would be most useful for the output?"
64
+
65
+ **For UX (`/dp:ux`):**
66
+ 1. "Any specific user flows you want to prioritize?"
67
+ 2. "Are there UI patterns from elsewhere in the product we should match?"
68
+ 3. "Any accessibility requirements beyond WCAG AA?"
69
+ 4. "What states are most critical to define? (error handling, empty states, etc.)"
70
+
71
+ **For UI (`/dp:ui`):**
72
+ 1. "Any brand guidelines or design system constraints?"
73
+ 2. "Should we optimize for information density or breathing room?"
74
+ 3. "Are there specific components you need detailed specs for?"
75
+ 4. "Any existing visual patterns we must match?"
76
+
77
+ **For Review (`/dp:eng_review`):**
78
+ 1. "What files/components should I review?"
79
+ 2. "Any known issues you want me to focus on?"
80
+ 3. "What's the quality threshold? (strict vs. pragmatic)"
81
+ 4. "Should I include spec alignment check against the design phases?"
82
+
83
+ ### Step 5: Capture Decisions
84
+
85
+ Create `.design/phases/{NN}-CONTEXT.md` where NN is the phase number:
86
+ - `01-CONTEXT.md` for Discovery
87
+ - `02-CONTEXT.md` for UX
88
+ - `03-CONTEXT.md` for UI
89
+ - `04-CONTEXT.md` for Review
90
+
91
+ Populate with:
92
+ - Timestamp
93
+ - Phase name
94
+ - Gray areas resolved
95
+ - Assumptions made
96
+ - Constraints acknowledged
97
+ - Preferred approach
98
+ - Rejected alternatives
99
+ - Open questions
100
+
101
+ ### Step 6: Confirm and Handoff
102
+
103
+ ```
104
+ ✓ Context captured for [Phase Name] phase
105
+
106
+ Saved to: .design/phases/[NN]-CONTEXT.md
107
+
108
+ Summary:
109
+ • [Key decision 1]
110
+ • [Key decision 2]
111
+ • [Assumption acknowledged]
112
+
113
+ Ready to run /[skill-name] with this context.
114
+ Continue? (y/n)
115
+ ```
116
+
117
+ If yes, provide instructions to run the phase skill.
118
+
119
+ ## Context Template
120
+
121
+ Use this inline template, replacing placeholders with gathered information:
122
+
123
+ ```markdown
124
+ # Phase Context: [PHASE_NAME]
125
+
126
+ > Captured: [TIMESTAMP]
127
+ > Phase: [PHASE_NUMBER] — [PHASE_NAME]
128
+
129
+ ## Pre-Phase Discussion
130
+
131
+ > Decisions and context captured before running the phase skill
132
+
133
+ ### What We're Working On
134
+ > Brief description of the focus for this phase
135
+
136
+ ### Gray Areas Resolved
137
+
138
+ > Questions that were unclear before starting, now answered
139
+
140
+ | Question | Answer | Decided By |
141
+ |----------|--------|------------|
142
+ | | | |
143
+
144
+ ### Assumptions Made
145
+
146
+ > Things we're assuming to be true for this phase
147
+
148
+ 1.
149
+ 2.
150
+ 3.
151
+
152
+ ### Constraints Acknowledged
153
+
154
+ > Limitations we're working within
155
+
156
+ -
157
+ -
158
+
159
+ ---
160
+
161
+ ## Design Direction
162
+
163
+ ### Preferred Approach
164
+ > If multiple approaches exist, which direction are we taking?
165
+
166
+ ### Rejected Alternatives
167
+ > What did we consider but decide against, and why?
168
+
169
+ | Alternative | Why Rejected |
170
+ |-------------|--------------|
171
+ | | |
172
+
173
+ ---
174
+
175
+ ## Inputs for This Phase
176
+
177
+ ### From Previous Phase
178
+ > Key context carried forward
179
+
180
+ -
181
+
182
+ ### New Information
183
+ > Anything new since the last phase
184
+
185
+ -
186
+
187
+ ### User/Stakeholder Input
188
+ > Relevant feedback or requests
189
+
190
+ -
191
+
192
+ ---
193
+
194
+ ## Expected Outputs
195
+
196
+ ### Must Produce
197
+ - [ ]
198
+
199
+ ### Should Produce
200
+ - [ ]
201
+
202
+ ### Nice to Have
203
+ - [ ]
204
+
205
+ ---
206
+
207
+ ## Open Questions
208
+
209
+ > Questions that remain unanswered going into this phase
210
+
211
+ 1.
212
+ 2.
213
+
214
+ ---
215
+
216
+ ## Notes
217
+
218
+ > Any additional context that might be helpful
219
+ ```
220
+
221
+ ## Phase Mapping
222
+
223
+ | Phase # | Phase Name | Skill | Context File |
224
+ |---------|------------|-------|--------------|
225
+ | 1 | Discovery | /dp:discovery | 01-CONTEXT.md |
226
+ | 2 | UX | /dp:ux | 02-CONTEXT.md |
227
+ | 3 | UI | /dp:ui | 03-CONTEXT.md |
228
+ | 4 | Review | /dp:eng_review | 04-CONTEXT.md |
229
+
230
+ ## Optional: Research Context
231
+
232
+ If user wants to discuss research before `/dp:research`:
233
+
234
+ 1. "What are the key unknowns you want to validate?"
235
+ 2. "Who do you have access to for research?"
236
+ 3. "What method are you leaning toward?"
237
+ 4. "Timeline constraints for research?"
238
+
239
+ Save to: `.design/research/RESEARCH-CONTEXT.md`
240
+
241
+ ## Integration Notes
242
+
243
+ - Skills will check for and load the context file when they run
244
+ - Context file is loaded AFTER the main phase document
245
+ - Decisions in context file take precedence over defaults
246
+ - Update STATE.md to note that discussion occurred
247
+
248
+ ---
249
+
250
+ ## Workflow Navigation
251
+
252
+ | | |
253
+ |---|---|
254
+ | **This command** | `/dp:discuss` — Pre-phase decision capture |
255
+ | **Use before** | Any phase skill (`/dp:discovery`, `/dp:ux`, `/dp:ui`, `/dp:eng_review`) |
256
+ | **Then run** | The phase skill that discussion was preparing for |
257
+ | **Related** | `/dp:progress` — See which phase is next |