@shinnodua/agent-workflows 0.0.0-stage → 0.2.8

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 (190) hide show
  1. package/.agents/agents/backend-developer/agent.md +39 -0
  2. package/.agents/agents/frontend-developer/agent.md +42 -0
  3. package/.agents/agents/project-manager/agent.md +37 -0
  4. package/.agents/agents/tech-lead/agent.md +41 -0
  5. package/.agents/agents/ui-ux-designer/agent.md +41 -0
  6. package/.agents/skills/add-project/SKILL.md +90 -0
  7. package/.agents/skills/add-project/agents/openai.yaml +4 -0
  8. package/.agents/skills/add-project/references/save-protocol.md +90 -0
  9. package/.agents/skills/approve-plan/SKILL.md +86 -0
  10. package/.agents/skills/approve-plan/agents/openai.yaml +4 -0
  11. package/.agents/skills/approve-prd/SKILL.md +59 -0
  12. package/.agents/skills/approve-prd/agents/openai.yaml +4 -0
  13. package/.agents/skills/auto-mode/SKILL.md +103 -0
  14. package/.agents/skills/auto-mode/agents/openai.yaml +4 -0
  15. package/.agents/skills/create-design/SKILL.md +197 -0
  16. package/.agents/skills/create-design/agents/openai.yaml +4 -0
  17. package/.agents/skills/create-diagram/SKILL.md +83 -0
  18. package/.agents/skills/create-diagram/agents/openai.yaml +4 -0
  19. package/.agents/skills/create-plan/SKILL.md +104 -0
  20. package/.agents/skills/create-plan/agents/openai.yaml +4 -0
  21. package/.agents/skills/create-prd/SKILL.md +82 -0
  22. package/.agents/skills/create-prd/agents/openai.yaml +4 -0
  23. package/.agents/skills/griling-plan/SKILL.md +114 -0
  24. package/.agents/skills/griling-plan/agents/openai.yaml +4 -0
  25. package/.agents/skills/griling-prd/SKILL.md +91 -0
  26. package/.agents/skills/griling-prd/agents/openai.yaml +4 -0
  27. package/.agents/skills/package-installation/SKILL.md +67 -0
  28. package/.agents/skills/package-installation/agents/openai.yaml +4 -0
  29. package/.agents/skills/project-setup/SKILL.md +104 -0
  30. package/.agents/skills/project-setup/agents/openai.yaml +3 -0
  31. package/.agents/skills/research/SKILL.md +61 -0
  32. package/.agents/skills/research/agents/openai.yaml +4 -0
  33. package/.agents/skills/sprint-meeting/SKILL.md +230 -0
  34. package/.agents/skills/sprint-meeting/agents/openai.yaml +4 -0
  35. package/.claude/agents/backend-developer.md +7 -0
  36. package/.claude/agents/frontend-developer.md +7 -0
  37. package/.claude/agents/project-manager.md +7 -0
  38. package/.claude/agents/tech-lead.md +7 -0
  39. package/.claude/agents/ui-ux-designer.md +7 -0
  40. package/.claude/skills/add-project/SKILL.md +10 -0
  41. package/.claude/skills/approve-plan/SKILL.md +8 -0
  42. package/.claude/skills/approve-prd/SKILL.md +8 -0
  43. package/.claude/skills/auto-mode/SKILL.md +8 -0
  44. package/.claude/skills/create-design/SKILL.md +8 -0
  45. package/.claude/skills/create-diagram/SKILL.md +8 -0
  46. package/.claude/skills/create-plan/SKILL.md +8 -0
  47. package/.claude/skills/create-prd/SKILL.md +8 -0
  48. package/.claude/skills/griling-plan/SKILL.md +8 -0
  49. package/.claude/skills/griling-prd/SKILL.md +8 -0
  50. package/.claude/skills/package-installation/SKILL.md +8 -0
  51. package/.claude/skills/project-setup/SKILL.md +8 -0
  52. package/.claude/skills/research/SKILL.md +8 -0
  53. package/.claude/skills/sprint-meeting/SKILL.md +8 -0
  54. package/.codex/prompts/add-project.md +3 -0
  55. package/.codex/prompts/approve-plan.md +3 -0
  56. package/.codex/prompts/approve-prd.md +3 -0
  57. package/.codex/prompts/auto-mode.md +3 -0
  58. package/.codex/prompts/create-design.md +3 -0
  59. package/.codex/prompts/create-diagram.md +3 -0
  60. package/.codex/prompts/create-plan.md +3 -0
  61. package/.codex/prompts/create-prd.md +3 -0
  62. package/.codex/prompts/griling-plan.md +3 -0
  63. package/.codex/prompts/griling-prd.md +3 -0
  64. package/.codex/prompts/grilling-plan.md +3 -0
  65. package/.codex/prompts/project-setup.md +3 -0
  66. package/.codex/prompts/research.md +3 -0
  67. package/.codex/prompts/sprint-meeting.md +3 -0
  68. package/.gitmodules.example +9 -0
  69. package/AGENTS.md +84 -0
  70. package/CLAUDE.md +1 -0
  71. package/INSTALL.md +284 -0
  72. package/LICENSE +21 -0
  73. package/README.md +342 -2
  74. package/bin/postinstall.js +57 -0
  75. package/bin/workflows.js +1172 -0
  76. package/bin/workflows.test.mjs +682 -0
  77. package/commands/add-project.md +20 -0
  78. package/commands/approve-plan.md +25 -0
  79. package/commands/approve-prd.md +24 -0
  80. package/commands/auto-mode.md +15 -0
  81. package/commands/create-design.md +20 -0
  82. package/commands/create-diagram.md +16 -0
  83. package/commands/create-plan.md +22 -0
  84. package/commands/create-prd.md +16 -0
  85. package/commands/griling-plan.md +16 -0
  86. package/commands/griling-prd.md +16 -0
  87. package/commands/grilling-plan.md +16 -0
  88. package/commands/project-setup.md +16 -0
  89. package/commands/research.md +16 -0
  90. package/commands/sprint-meeting.md +16 -0
  91. package/dashboard/.agents/skills/coding-conventions/SKILL.md +76 -0
  92. package/dashboard/.agents/skills/coding-conventions/agents/openai.yaml +4 -0
  93. package/dashboard/.agents/skills/design-system-guideline/SKILL.md +51 -0
  94. package/dashboard/.agents/skills/design-system-guideline/agents/openai.yaml +4 -0
  95. package/dashboard/.agents/skills/lint-and-fix/SKILL.md +55 -0
  96. package/dashboard/.agents/skills/lint-and-fix/agents/openai.yaml +4 -0
  97. package/dashboard/.agents/skills/taste-ui/SKILL.md +45 -0
  98. package/dashboard/.agents/skills/taste-ui/agents/openai.yaml +4 -0
  99. package/dashboard/AGENTS.md +43 -0
  100. package/dashboard/bun.lock +352 -0
  101. package/dashboard/index.html +12 -0
  102. package/dashboard/package.json +32 -0
  103. package/dashboard/src/App.tsx +5 -0
  104. package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.module.css +85 -0
  105. package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.tsx +80 -0
  106. package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.module.css +25 -0
  107. package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.tsx +29 -0
  108. package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.module.css +29 -0
  109. package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.tsx +35 -0
  110. package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.module.css +85 -0
  111. package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.tsx +150 -0
  112. package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.module.css +41 -0
  113. package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.tsx +41 -0
  114. package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.module.css +25 -0
  115. package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.tsx +40 -0
  116. package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.module.css +330 -0
  117. package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.tsx +299 -0
  118. package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.module.css +74 -0
  119. package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.tsx +79 -0
  120. package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.module.css +133 -0
  121. package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.tsx +233 -0
  122. package/dashboard/src/features/task-status/components/Sidebar/Sidebar.module.css +53 -0
  123. package/dashboard/src/features/task-status/components/Sidebar/Sidebar.tsx +163 -0
  124. package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.module.css +41 -0
  125. package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.tsx +48 -0
  126. package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.module.css +97 -0
  127. package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.tsx +128 -0
  128. package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.module.css +9 -0
  129. package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.tsx +318 -0
  130. package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.module.css +221 -0
  131. package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.tsx +344 -0
  132. package/dashboard/src/features/task-status/taskStatusConfig.ts +100 -0
  133. package/dashboard/src/features/task-status/utils/actionItems.ts +247 -0
  134. package/dashboard/src/features/task-status/utils/artifactGrouping.ts +328 -0
  135. package/dashboard/src/features/task-status/utils/hardnessScanner.ts +406 -0
  136. package/dashboard/src/features/task-status/utils/lifecycle.ts +73 -0
  137. package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.module.css +11 -0
  138. package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.tsx +104 -0
  139. package/dashboard/src/features/task-status/utils/markdownLinks.ts +83 -0
  140. package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.module.css +74 -0
  141. package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.tsx +326 -0
  142. package/dashboard/src/features/task-status/utils/status.ts +7 -0
  143. package/dashboard/src/features/task-status/utils/test/actionItems.test.ts +134 -0
  144. package/dashboard/src/features/task-status/utils/test/artifactGrouping.test.ts +294 -0
  145. package/dashboard/src/features/task-status/utils/test/hardnessScanner.test.ts +138 -0
  146. package/dashboard/src/features/task-status/utils/test/lifecycle.test.ts +49 -0
  147. package/dashboard/src/features/task-status/utils/test/markdownInline.test.ts +41 -0
  148. package/dashboard/src/features/task-status/utils/test/markdownLinks.test.ts +158 -0
  149. package/dashboard/src/features/task-status/utils/test/workspaceMetadata.test.ts +37 -0
  150. package/dashboard/src/features/task-status/utils/workspaceMetadata.ts +175 -0
  151. package/dashboard/src/main.tsx +16 -0
  152. package/dashboard/src/shared/design-system.css +134 -0
  153. package/dashboard/src/shared/design-system.tsx +84 -0
  154. package/dashboard/src/styles.css +41 -0
  155. package/dashboard/src/types.ts +133 -0
  156. package/dashboard/src/workspace-artifacts.d.ts +9 -0
  157. package/dashboard/tsconfig.json +22 -0
  158. package/dashboard/vite.config.ts +579 -0
  159. package/designs/.gitkeep +1 -0
  160. package/docs/add-project-command-completion.md +117 -0
  161. package/docs/public-npm-registry-completion.md +104 -0
  162. package/docs/workflows.png +0 -0
  163. package/docs/workspace-template-setup.md +229 -0
  164. package/meeting-logs/.gitkeep +1 -0
  165. package/modules/.gitkeep +1 -0
  166. package/package.json +96 -5
  167. package/plans/.gitkeep +1 -0
  168. package/prds/.gitkeep +1 -0
  169. package/project/PROJECT.md +26 -0
  170. package/project/repositories.json +72 -0
  171. package/project/validation.json +9 -0
  172. package/project/workflows.json +20 -0
  173. package/research/.gitkeep +1 -0
  174. package/roles/backend-developer.md +26 -0
  175. package/roles/frontend-developer.md +25 -0
  176. package/roles/project-manager.md +42 -0
  177. package/roles/tech-lead.md +42 -0
  178. package/roles/ui-ux-designer.md +43 -0
  179. package/scripts/add-project.mjs +990 -0
  180. package/scripts/add-project.test.mjs +804 -0
  181. package/scripts/check-staged-security.mjs +97 -0
  182. package/scripts/check-staged-security.test.mjs +68 -0
  183. package/scripts/workspace-integrity.ts +220 -0
  184. package/templates/auto-mode-completion-summary-template.md +78 -0
  185. package/templates/meeting-log-template.md +177 -0
  186. package/templates/plan-template.md +219 -0
  187. package/templates/prd-template.md +106 -0
  188. package/templates/research-template.md +119 -0
  189. package/workflows.md +590 -0
  190. package/workspace.config.json +43 -0
@@ -0,0 +1,221 @@
1
+ @reference "../../../../styles.css";
2
+
3
+ .section {
4
+ @apply grid min-w-0 gap-5;
5
+ }
6
+
7
+ .sectionHeader {
8
+ @apply flex items-center gap-2;
9
+ }
10
+
11
+ .sectionIcon {
12
+ @apply size-5;
13
+ }
14
+
15
+ .sectionTitle {
16
+ @apply text-2xl font-black;
17
+ }
18
+
19
+ .workflowCard {
20
+ @apply min-w-0 max-w-full p-5;
21
+ }
22
+
23
+ .workflowHeader {
24
+ @apply mb-5 flex flex-col gap-2 lg:flex-row lg:items-end lg:justify-between;
25
+ }
26
+
27
+ .workflowBadges {
28
+ @apply flex flex-wrap gap-2;
29
+ }
30
+
31
+ .eyebrow {
32
+ @apply text-sm font-black uppercase text-black/60;
33
+ }
34
+
35
+ .title {
36
+ @apply mt-1 text-2xl font-black leading-tight;
37
+ }
38
+
39
+ .badge {
40
+ @apply rounded-full border-[3px] border-black bg-neo-lime px-3 py-1 text-xs font-black uppercase leading-none;
41
+ }
42
+
43
+ .diagramScroller {
44
+ @apply min-w-0 max-w-full overflow-x-auto p-1 pb-3;
45
+ }
46
+
47
+ .diagramTrack {
48
+ @apply grid min-w-[1880px] grid-cols-10 gap-4;
49
+ }
50
+
51
+ .lowerGrid {
52
+ @apply grid gap-5 xl:grid-cols-[1fr_380px];
53
+ }
54
+
55
+ .stepCard {
56
+ @apply relative grid min-h-[360px] content-start rounded-xl border-[3px] border-black bg-background p-4 shadow-[4px_4px_0_#000];
57
+ }
58
+
59
+ .stepHeader {
60
+ @apply mb-3 flex items-start justify-between gap-3;
61
+ }
62
+
63
+ .stepIndex {
64
+ @apply inline-flex size-9 shrink-0 items-center justify-center rounded-full border-[3px] border-black bg-neo-yellow text-sm font-black leading-none;
65
+ }
66
+
67
+ .stepIcon {
68
+ @apply size-5 shrink-0;
69
+ }
70
+
71
+ .stepTitle {
72
+ @apply text-lg font-black leading-tight;
73
+ }
74
+
75
+ .command {
76
+ @apply mt-2 rounded-lg border-[3px] border-black bg-white px-2 py-1 font-mono text-xs font-black leading-snug;
77
+ }
78
+
79
+ .roleChips {
80
+ @apply mt-3 flex flex-wrap gap-2;
81
+ }
82
+
83
+ .primaryRole {
84
+ @apply rounded-full border-[3px] border-black bg-neo-pink px-2 py-1 text-[11px] font-black uppercase leading-none;
85
+ }
86
+
87
+ .supportRole {
88
+ @apply rounded-full border-[3px] border-black bg-white px-2 py-1 text-[11px] font-black uppercase leading-none text-black/70;
89
+ }
90
+
91
+ .output {
92
+ @apply mt-3 rounded-lg border-[3px] border-black bg-neo-blue/30 p-2 text-xs font-black leading-snug;
93
+ }
94
+
95
+ .output span {
96
+ @apply uppercase;
97
+ }
98
+
99
+ .detail {
100
+ @apply mt-3 text-sm font-bold leading-relaxed text-black/70;
101
+ }
102
+
103
+ .next {
104
+ @apply absolute -right-8 top-1/2 z-10 flex size-10 -translate-y-1/2 items-center justify-center rounded-full border-[3px] border-black bg-white;
105
+ }
106
+
107
+ .nextIcon {
108
+ @apply size-5;
109
+ }
110
+
111
+ .implementationCard {
112
+ @apply p-5;
113
+ }
114
+
115
+ .implementationTrack {
116
+ @apply grid gap-3 lg:grid-cols-4;
117
+ }
118
+
119
+ .implementationStep {
120
+ @apply flex min-h-36 gap-3 rounded-xl border-[3px] border-black bg-white p-3;
121
+ }
122
+
123
+ .implementationTitle {
124
+ @apply text-base font-black leading-tight;
125
+ }
126
+
127
+ .implementationRole {
128
+ @apply mt-1 text-xs font-black uppercase text-black/60;
129
+ }
130
+
131
+ .implementationDetail {
132
+ @apply mt-2 text-sm font-bold leading-relaxed text-black/70;
133
+ }
134
+
135
+ .rolesCard {
136
+ @apply p-5;
137
+ }
138
+
139
+ .rolesGrid {
140
+ @apply grid gap-2 md:grid-cols-2 xl:grid-cols-5;
141
+ }
142
+
143
+ .roleRow {
144
+ @apply flex min-h-28 gap-3 rounded-xl border-[3px] border-black bg-white p-3;
145
+ }
146
+
147
+ .roleIndex {
148
+ @apply inline-flex size-8 shrink-0 items-center justify-center rounded-full border-[3px] border-black bg-neo-yellow text-sm font-black leading-none;
149
+ }
150
+
151
+ .roleText {
152
+ @apply min-w-0;
153
+ }
154
+
155
+ .roleStep {
156
+ @apply text-sm font-black uppercase leading-tight;
157
+ }
158
+
159
+ .roleMeta {
160
+ @apply mt-2 grid gap-1 text-xs font-bold leading-snug text-black/70;
161
+ }
162
+
163
+ .guideCard {
164
+ @apply p-5;
165
+ }
166
+
167
+ .guideHeader {
168
+ @apply mb-4 flex items-center gap-2;
169
+ }
170
+
171
+ .guideIcon {
172
+ @apply size-5;
173
+ }
174
+
175
+ .guideTitle {
176
+ @apply text-xl font-black;
177
+ }
178
+
179
+ .guideGrid {
180
+ @apply grid gap-3;
181
+ }
182
+
183
+ .guideItem {
184
+ @apply rounded-xl border-[3px] border-black bg-white p-3;
185
+ }
186
+
187
+ .guideCommand {
188
+ @apply font-mono text-sm font-black;
189
+ }
190
+
191
+ .guideCopy {
192
+ @apply mt-2 text-sm font-bold text-black/70;
193
+ }
194
+
195
+ .guideCopyTight {
196
+ @apply mt-1 text-sm font-bold text-black/70;
197
+ }
198
+
199
+ .guideLabel {
200
+ @apply font-black text-black;
201
+ }
202
+
203
+ .rulesCard {
204
+ @apply p-5;
205
+ }
206
+
207
+ .rulesList {
208
+ @apply grid gap-3;
209
+ }
210
+
211
+ .ruleItem {
212
+ @apply rounded-xl border-[3px] border-black bg-white p-3 text-sm font-black leading-snug;
213
+ }
214
+
215
+ .orderIndex {
216
+ @apply inline-flex size-8 shrink-0 items-center justify-center rounded-full border-[3px] border-black bg-neo-yellow text-sm;
217
+ }
218
+
219
+ .orderNote {
220
+ @apply mt-4 rounded-xl border-[3px] border-black bg-background p-3 text-sm font-bold leading-relaxed text-black/70;
221
+ }
@@ -0,0 +1,344 @@
1
+ import {
2
+ ArrowRight,
3
+ BadgeCheck,
4
+ CheckCircle2,
5
+ ClipboardCheck,
6
+ ClipboardList,
7
+ Code2,
8
+ FilePenLine,
9
+ FileText,
10
+ GitBranch,
11
+ Layers3,
12
+ PencilLine,
13
+ SearchCheck,
14
+ Sparkles,
15
+ UsersRound,
16
+ } from "lucide-react";
17
+ import { Card } from "../../../../shared/design-system";
18
+ import styles from "./WorkflowPanel.module.css";
19
+
20
+ const workflowSteps = [
21
+ {
22
+ title: "Request",
23
+ command: "Developer request",
24
+ icon: UsersRound,
25
+ primaryRole: "Developer",
26
+ supportingRoles: ["Project Manager", "Tech Lead"],
27
+ output: "Scope, constraints, and workflow exceptions",
28
+ detail: "Defines the work and any explicit exception to the normal path.",
29
+ },
30
+ {
31
+ title: "Research",
32
+ command: "$research <description>",
33
+ icon: SearchCheck,
34
+ primaryRole: "Tech Lead + Project Manager",
35
+ supportingRoles: ["UI/UX Designer"],
36
+ output: "research/RESEARCH-*.md",
37
+ detail:
38
+ "Used when current facts, product context, or architecture risk need grounding.",
39
+ },
40
+ {
41
+ title: "Draft PRD",
42
+ command: "$create-prd <description>",
43
+ icon: FileText,
44
+ primaryRole: "Project Manager",
45
+ supportingRoles: ["Developer"],
46
+ output: "prds/PRD-*.md",
47
+ detail:
48
+ "Captures user value, scope, requirements, and acceptance criteria.",
49
+ },
50
+ {
51
+ title: "Clarify PRD",
52
+ command: "$griling-prd <prd-id-or-path>",
53
+ icon: ClipboardCheck,
54
+ primaryRole: "Project Manager",
55
+ supportingRoles: ["Developer"],
56
+ output: "Updated draft PRD",
57
+ detail:
58
+ "Resolves missing requirements, unclear scope, conflicts, and risk.",
59
+ },
60
+ {
61
+ title: "Approve PRD",
62
+ command: "$approve-prd <prd-id>",
63
+ icon: BadgeCheck,
64
+ primaryRole: "Developer",
65
+ supportingRoles: ["Project Manager"],
66
+ output: "Approved PRD",
67
+ detail: "Unlocks root planning and submodule planning.",
68
+ },
69
+ {
70
+ title: "Design",
71
+ command: "$create-design <design request>",
72
+ icon: Sparkles,
73
+ primaryRole: "UI/UX Designer",
74
+ supportingRoles: ["Project Manager", "Tech Lead"],
75
+ output: "Design artifact + PRD in design-done",
76
+ detail:
77
+ "Defines flows, layout, states, and updates PRD status to design-done.",
78
+ },
79
+ {
80
+ title: "Plan",
81
+ command: "$approve-prd <prd-id>",
82
+ icon: Layers3,
83
+ primaryRole: "Tech Lead",
84
+ supportingRoles: ["Sub-agents"],
85
+ output: "plans/PLAN-*.md + modules/*/plans/*.md",
86
+ detail:
87
+ "Creates the root overview plan and affected submodule detail plans.",
88
+ },
89
+ {
90
+ title: "Clarify plan",
91
+ command: "$griling-plan <plan-id-or-path>",
92
+ icon: GitBranch,
93
+ primaryRole: "Tech Lead",
94
+ supportingRoles: ["Developer", "Implementation roles"],
95
+ output: "Updated root or submodule plan",
96
+ detail:
97
+ "Challenges sequencing, ownership, risks, validation, and handoffs.",
98
+ },
99
+ {
100
+ title: "Approve plan",
101
+ command: "$approve-plan <plan-id>",
102
+ icon: PencilLine,
103
+ primaryRole: "Developer",
104
+ supportingRoles: ["Tech Lead"],
105
+ output: "Approved root plan",
106
+ detail: "Allows implementation to begin in platform order.",
107
+ },
108
+ {
109
+ title: "Implement",
110
+ command: "Follow approved plan",
111
+ icon: FilePenLine,
112
+ primaryRole: "Core, Backend, Frontend",
113
+ supportingRoles: ["Tech Lead", "UI/UX Designer"],
114
+ output: "Changed modules + validation report",
115
+ detail:
116
+ "Builds in platform order, validates each repo, and reports handoff state.",
117
+ },
118
+ ] as const;
119
+
120
+ const implementationSteps = [
121
+ {
122
+ title: "shared/core",
123
+ role: "Core Developer",
124
+ detail: "Shared contracts, packages, and reusable logic",
125
+ },
126
+ {
127
+ title: "backend/service",
128
+ role: "Backend Developer",
129
+ detail: "API routes, service behavior, persistence, and jobs",
130
+ },
131
+ {
132
+ title: "frontend/app",
133
+ role: "Frontend Developer",
134
+ detail: "User workflows, screens, client state, and integration",
135
+ },
136
+ ] as const;
137
+
138
+ const commandGuidance = [
139
+ {
140
+ command: "$create-prd",
141
+ when: "Start any feature or implementation task.",
142
+ result: "Creates a draft PRD from `templates/prd-template.md`.",
143
+ },
144
+ {
145
+ command: "$griling-prd",
146
+ when: "The draft PRD has unclear requirements, conflicts, or risky gaps.",
147
+ result: "Asks focused questions, then updates the PRD.",
148
+ },
149
+ {
150
+ command: "$approve-prd",
151
+ when: "The PRD is ready for design routing or planning approval.",
152
+ result:
153
+ "Routes to design (`need-design`) or approves PRD (`approved`) and creates plans.",
154
+ },
155
+ {
156
+ command: "$create-design",
157
+ when: "The task affects screens, layout, interaction, accessibility, or UI copy.",
158
+ result: "Creates design guidance and updates PRD status to `design-done`.",
159
+ },
160
+ {
161
+ command: "$create-diagram",
162
+ when: "A workflow, handoff, or architecture needs a visual map.",
163
+ result: "Creates a role-aware Mermaid or dashboard-native diagram.",
164
+ },
165
+ {
166
+ command: "$griling-plan",
167
+ when: "The plan needs pressure testing before approval.",
168
+ result: "Clarifies sequencing, dependencies, validation, and risks.",
169
+ },
170
+ {
171
+ command: "$approve-plan",
172
+ when: "The root plan is complete enough to execute.",
173
+ result: "Marks the plan approved and allows code changes.",
174
+ },
175
+ ] as const;
176
+
177
+ export function WorkflowPanel() {
178
+ return (
179
+ <section className={styles.section}>
180
+ <div className={styles.sectionHeader}>
181
+ <GitBranch className={styles.sectionIcon} />
182
+ <h2 className={styles.sectionTitle}>Workspace workflow</h2>
183
+ </div>
184
+
185
+ <Card className={styles.workflowCard} variant="white">
186
+ <div className={styles.workflowHeader}>
187
+ <div>
188
+ <p className={styles.eyebrow}>
189
+ How work moves through this workspace
190
+ </p>
191
+ <h3 className={styles.title}>Role-aware workflow diagram</h3>
192
+ </div>
193
+ <div className={styles.workflowBadges}>
194
+ <span className={styles.badge}>PRD first</span>
195
+ <span className={styles.badge}>Plan before code</span>
196
+ <span className={styles.badge}>Roles on every step</span>
197
+ </div>
198
+ </div>
199
+
200
+ <div className={styles.diagramScroller}>
201
+ <ol className={styles.diagramTrack} aria-label="Workspace workflow">
202
+ {workflowSteps.map((step, index) => (
203
+ <WorkflowStepCard index={index} key={step.title} step={step} />
204
+ ))}
205
+ </ol>
206
+ </div>
207
+ </Card>
208
+
209
+ <Card className={styles.implementationCard} variant="lime">
210
+ <div className={styles.guideHeader}>
211
+ <Code2 className={styles.guideIcon} />
212
+ <h3 className={styles.guideTitle}>Implementation lane</h3>
213
+ </div>
214
+ <ol className={styles.implementationTrack}>
215
+ {implementationSteps.map((step, index) => (
216
+ <li className={styles.implementationStep} key={step.title}>
217
+ <span className={styles.orderIndex}>{index + 1}</span>
218
+ <div>
219
+ <h4 className={styles.implementationTitle}>{step.title}</h4>
220
+ <p className={styles.implementationRole}>{step.role}</p>
221
+ <p className={styles.implementationDetail}>{step.detail}</p>
222
+ </div>
223
+ </li>
224
+ ))}
225
+ </ol>
226
+ <p className={styles.orderNote}>
227
+ Skip platforms that are not in the approved plan. After each platform,
228
+ stop and ask whether to continue to the next one.
229
+ </p>
230
+ </Card>
231
+
232
+ <Card className={styles.rolesCard} variant="blue">
233
+ <div className={styles.guideHeader}>
234
+ <CheckCircle2 className={styles.guideIcon} />
235
+ <h3 className={styles.guideTitle}>Step ownership</h3>
236
+ </div>
237
+ <div className={styles.rolesGrid}>
238
+ {workflowSteps.map((step, index) => (
239
+ <div className={styles.roleRow} key={step.title}>
240
+ <span className={styles.roleIndex}>{index + 1}</span>
241
+ <div className={styles.roleText}>
242
+ <h4 className={styles.roleStep}>{step.title}</h4>
243
+ <p className={styles.roleMeta}>
244
+ <span>Primary: {step.primaryRole}</span>
245
+ <span>Support: {step.supportingRoles.join(", ")}</span>
246
+ </p>
247
+ </div>
248
+ </div>
249
+ ))}
250
+ </div>
251
+ </Card>
252
+
253
+ <div className={styles.lowerGrid}>
254
+ <CommandGuide />
255
+ <WorkflowRules />
256
+ </div>
257
+ </section>
258
+ );
259
+ }
260
+
261
+ function WorkflowStepCard(props: {
262
+ index: number;
263
+ step: (typeof workflowSteps)[number];
264
+ }) {
265
+ const { index, step } = props;
266
+ const Icon = step.icon;
267
+
268
+ return (
269
+ <li className={styles.stepCard}>
270
+ <div className={styles.stepHeader}>
271
+ <span className={styles.stepIndex}>{index + 1}</span>
272
+ <Icon className={styles.stepIcon} />
273
+ </div>
274
+ <h4 className={styles.stepTitle}>{step.title}</h4>
275
+ <p className={styles.command}>{step.command}</p>
276
+ <div className={styles.roleChips}>
277
+ <span className={styles.primaryRole}>{step.primaryRole}</span>
278
+ {step.supportingRoles.map((role) => (
279
+ <span className={styles.supportRole} key={role}>
280
+ {role}
281
+ </span>
282
+ ))}
283
+ </div>
284
+ <p className={styles.output}>
285
+ <span>Output:</span> {step.output}
286
+ </p>
287
+ <p className={styles.detail}>{step.detail}</p>
288
+ {index < workflowSteps.length - 1 ? (
289
+ <div className={styles.next} aria-hidden="true">
290
+ <ArrowRight className={styles.nextIcon} />
291
+ </div>
292
+ ) : null}
293
+ </li>
294
+ );
295
+ }
296
+
297
+ function CommandGuide() {
298
+ return (
299
+ <Card className={styles.guideCard} variant="yellow">
300
+ <div className={styles.guideHeader}>
301
+ <FileText className={styles.guideIcon} />
302
+ <h3 className={styles.guideTitle}>Command guide</h3>
303
+ </div>
304
+ <div className={styles.guideGrid}>
305
+ {commandGuidance.map((item) => (
306
+ <div className={styles.guideItem} key={item.command}>
307
+ <div className={styles.guideCommand}>{item.command}</div>
308
+ <p className={styles.guideCopy}>
309
+ <span className={styles.guideLabel}>Use when: </span>
310
+ {item.when}
311
+ </p>
312
+ <p className={styles.guideCopyTight}>
313
+ <span className={styles.guideLabel}>Result: </span>
314
+ {item.result}
315
+ </p>
316
+ </div>
317
+ ))}
318
+ </div>
319
+ </Card>
320
+ );
321
+ }
322
+
323
+ function WorkflowRules() {
324
+ return (
325
+ <Card className={styles.rulesCard} variant="yellow">
326
+ <div className={styles.guideHeader}>
327
+ <ClipboardList className={styles.guideIcon} />
328
+ <h3 className={styles.guideTitle}>Workflow rules</h3>
329
+ </div>
330
+ <ul className={styles.rulesList}>
331
+ {[
332
+ "Every feature or implementation task starts with a saved PRD.",
333
+ "Implementation starts only after the root plan is approved.",
334
+ "Keep changes inside the repository that owns the work.",
335
+ "Report changed submodules, validation, and pointer status.",
336
+ ].map((rule) => (
337
+ <li className={styles.ruleItem} key={rule}>
338
+ {rule}
339
+ </li>
340
+ ))}
341
+ </ul>
342
+ </Card>
343
+ );
344
+ }
@@ -0,0 +1,100 @@
1
+ import {
2
+ AlertTriangle,
3
+ BookOpen,
4
+ Brush,
5
+ FileText,
6
+ GitBranch,
7
+ Layers3,
8
+ LayoutDashboard,
9
+ Milestone,
10
+ ShieldCheck,
11
+ Sparkles,
12
+ } from "lucide-react";
13
+ import type { ArtifactType, DashboardView } from "../../types";
14
+
15
+ export const artifactTypes: Array<{
16
+ type: ArtifactType;
17
+ label: string;
18
+ singular: string;
19
+ icon: typeof FileText;
20
+ accent: "yellow" | "lime" | "pink" | "blue" | "white";
21
+ }> = [
22
+ {
23
+ type: "research",
24
+ label: "Research",
25
+ singular: "Research",
26
+ icon: Sparkles,
27
+ accent: "lime",
28
+ },
29
+ {
30
+ type: "prd",
31
+ label: "PRD",
32
+ singular: "PRD",
33
+ icon: FileText,
34
+ accent: "yellow",
35
+ },
36
+ {
37
+ type: "design",
38
+ label: "Design",
39
+ singular: "Design",
40
+ icon: Brush,
41
+ accent: "pink",
42
+ },
43
+ {
44
+ type: "plan",
45
+ label: "Plan",
46
+ singular: "Plan",
47
+ icon: Layers3,
48
+ accent: "blue",
49
+ },
50
+ {
51
+ type: "document",
52
+ label: "Documents",
53
+ singular: "Document",
54
+ icon: BookOpen,
55
+ accent: "white",
56
+ },
57
+ ];
58
+
59
+ export const taskArtifactTypes = artifactTypes.filter(
60
+ (artifactType) => artifactType.type !== "document",
61
+ );
62
+
63
+ export const taskSubmenuItems = taskArtifactTypes.map((artifactType) => ({
64
+ view: artifactType.type,
65
+ label: artifactType.label,
66
+ icon: artifactType.icon,
67
+ }));
68
+
69
+ export const navItems: Array<{
70
+ view: DashboardView;
71
+ label: string;
72
+ icon: typeof FileText;
73
+ }> = [
74
+ { view: "task", label: "Task", icon: LayoutDashboard },
75
+ { view: "action-required", label: "Action Required", icon: AlertTriangle },
76
+ { view: "lifecycle", label: "Lifecycle", icon: Milestone },
77
+ { view: "workflow", label: "Workflow", icon: GitBranch },
78
+ {
79
+ view: "hardness",
80
+ label: "Code Quality",
81
+ icon: ShieldCheck,
82
+ },
83
+ {
84
+ view: "document",
85
+ label: "Documents",
86
+ icon: BookOpen,
87
+ },
88
+ ];
89
+
90
+ export const statusRank = [
91
+ "blocked",
92
+ "draft",
93
+ "need-design",
94
+ "design-done",
95
+ "in-progress",
96
+ "approved",
97
+ "complete",
98
+ "superseded",
99
+ "unknown",
100
+ ];