ganbatte-os 0.2.1

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 (200) hide show
  1. package/AGENTS.md +46 -0
  2. package/CLAUDE.md +31 -0
  3. package/GEMINI.md +17 -0
  4. package/LICENSE +21 -0
  5. package/README.md +141 -0
  6. package/agents/profiles/architect.md +13 -0
  7. package/agents/profiles/dev.md +13 -0
  8. package/agents/profiles/devops.md +12 -0
  9. package/agents/profiles/ganbatte-os-master.md +444 -0
  10. package/agents/profiles/index.json +14 -0
  11. package/agents/profiles/po.md +7 -0
  12. package/agents/profiles/qa.md +456 -0
  13. package/agents/profiles/sm.md +7 -0
  14. package/agents/profiles/squad-creator.md +7 -0
  15. package/agents/profiles/ux-design-expert.md +14 -0
  16. package/config.json +15 -0
  17. package/docs/curation.md +60 -0
  18. package/docs/gos_installation_guide.md +114 -0
  19. package/docs/ide-compatibility.md +20 -0
  20. package/docs/plan/plan-git-operations.md +51 -0
  21. package/docs/plan-distribuicao-publica.md +360 -0
  22. package/docs/stacks/stack-git-operations.md +154 -0
  23. package/docs/toolchain-map.md +18 -0
  24. package/integrations/README.md +42 -0
  25. package/integrations/antigravity/README.md +29 -0
  26. package/integrations/antigravity/command-map.json +29 -0
  27. package/integrations/claude/README.md +35 -0
  28. package/integrations/claude/agent-map.json +46 -0
  29. package/integrations/claude/command-map.json +32 -0
  30. package/integrations/claude/litellm-proxy.md +93 -0
  31. package/integrations/claude/mcp-specifics.md +121 -0
  32. package/integrations/codex/README.md +29 -0
  33. package/integrations/codex/command-map.json +29 -0
  34. package/integrations/cursor/README.md +8 -0
  35. package/integrations/cursor/command-map.json +11 -0
  36. package/integrations/gemini/README.md +13 -0
  37. package/integrations/gemini/command-map.json +11 -0
  38. package/integrations/kilo-code/README.md +7 -0
  39. package/integrations/kilo-code/command-map.json +11 -0
  40. package/integrations/opencode/README.md +91 -0
  41. package/integrations/opencode/command-map.json +46 -0
  42. package/integrations/registry.json +20 -0
  43. package/manifests/g-os-runtime-manifest.json +39 -0
  44. package/manifests/gos-install-manifest.json +46 -0
  45. package/opencode.json +7 -0
  46. package/package.json +51 -0
  47. package/playbooks/feature-development-playbook.md +239 -0
  48. package/playbooks/sprint-planner-playbook.md +127 -0
  49. package/playbooks/squad-pipeline-runner.md +196 -0
  50. package/playbooks/ssh-multi-account-setup.md +185 -0
  51. package/prompts/01-search.md +18 -0
  52. package/prompts/02-spec.md +19 -0
  53. package/prompts/03-tasks.md +15 -0
  54. package/prompts/04-code.md +10 -0
  55. package/prompts/05-reviews.md +11 -0
  56. package/rules/plan-mode.md +60 -0
  57. package/scripts/cli/gos-cli.js +679 -0
  58. package/scripts/hooks/pre-commit-validate.js +201 -0
  59. package/scripts/integrations/check-ide-compat.js +44 -0
  60. package/scripts/integrations/setup-ide-adapters.js +87 -0
  61. package/scripts/tools/clickup-preprocess.js +218 -0
  62. package/scripts/tools/clickup.js +1058 -0
  63. package/skills/agent-teams/SKILL.md +78 -0
  64. package/skills/agent-teams/presets/team-all.yaml +14 -0
  65. package/skills/agent-teams/presets/team-fullstack.yaml +17 -0
  66. package/skills/agent-teams/presets/team-ide-minimal.yaml +9 -0
  67. package/skills/agent-teams/presets/team-no-ui.yaml +12 -0
  68. package/skills/agent-teams/presets/team-qa-focused.yaml +83 -0
  69. package/skills/clickup/SKILL.md +151 -0
  70. package/skills/component-dedup/SKILL.md +101 -0
  71. package/skills/design-to-code/SKILL.md +255 -0
  72. package/skills/figma-implement-design/SKILL.md +227 -0
  73. package/skills/figma-make-analyzer/SKILL.md +140 -0
  74. package/skills/frontend-dev/SKILL.md +271 -0
  75. package/skills/git-ssh-setup/SKILL.md +164 -0
  76. package/skills/interface-design/SKILL.md +350 -0
  77. package/skills/interface-design/references/audit.md +76 -0
  78. package/skills/interface-design/references/craft-examples.md +134 -0
  79. package/skills/interface-design/references/critique.md +92 -0
  80. package/skills/interface-design/references/extract.md +92 -0
  81. package/skills/interface-design/references/principles.md +348 -0
  82. package/skills/interface-design/references/templates/system-precision.md +73 -0
  83. package/skills/interface-design/references/templates/system-warmth.md +67 -0
  84. package/skills/interface-design/references/validation.md +137 -0
  85. package/skills/make-code-triage/SKILL.md +135 -0
  86. package/skills/make-version-diff/SKILL.md +87 -0
  87. package/skills/plan-to-tasks/SKILL.md +136 -0
  88. package/skills/react-best-practices/AGENTS.md +2975 -0
  89. package/skills/react-best-practices/SKILL.md +151 -0
  90. package/skills/react-best-practices/metadata.json +15 -0
  91. package/skills/react-best-practices/rules/_sections.md +46 -0
  92. package/skills/react-best-practices/rules/_template.md +28 -0
  93. package/skills/react-best-practices/rules/advanced-event-handler-refs.md +55 -0
  94. package/skills/react-best-practices/rules/advanced-init-once.md +42 -0
  95. package/skills/react-best-practices/rules/advanced-use-latest.md +39 -0
  96. package/skills/react-best-practices/rules/async-api-routes.md +38 -0
  97. package/skills/react-best-practices/rules/async-defer-await.md +80 -0
  98. package/skills/react-best-practices/rules/async-dependencies.md +51 -0
  99. package/skills/react-best-practices/rules/async-parallel.md +28 -0
  100. package/skills/react-best-practices/rules/async-suspense-boundaries.md +99 -0
  101. package/skills/react-best-practices/rules/bundle-barrel-imports.md +59 -0
  102. package/skills/react-best-practices/rules/bundle-conditional.md +31 -0
  103. package/skills/react-best-practices/rules/bundle-defer-third-party.md +49 -0
  104. package/skills/react-best-practices/rules/bundle-dynamic-imports.md +35 -0
  105. package/skills/react-best-practices/rules/bundle-preload.md +50 -0
  106. package/skills/react-best-practices/rules/client-event-listeners.md +74 -0
  107. package/skills/react-best-practices/rules/client-localstorage-schema.md +71 -0
  108. package/skills/react-best-practices/rules/client-passive-event-listeners.md +48 -0
  109. package/skills/react-best-practices/rules/client-swr-dedup.md +56 -0
  110. package/skills/react-best-practices/rules/js-batch-dom-css.md +107 -0
  111. package/skills/react-best-practices/rules/js-cache-function-results.md +80 -0
  112. package/skills/react-best-practices/rules/js-cache-property-access.md +28 -0
  113. package/skills/react-best-practices/rules/js-cache-storage.md +70 -0
  114. package/skills/react-best-practices/rules/js-combine-iterations.md +32 -0
  115. package/skills/react-best-practices/rules/js-early-exit.md +50 -0
  116. package/skills/react-best-practices/rules/js-hoist-regexp.md +45 -0
  117. package/skills/react-best-practices/rules/js-index-maps.md +37 -0
  118. package/skills/react-best-practices/rules/js-length-check-first.md +49 -0
  119. package/skills/react-best-practices/rules/js-min-max-loop.md +82 -0
  120. package/skills/react-best-practices/rules/js-set-map-lookups.md +24 -0
  121. package/skills/react-best-practices/rules/js-tosorted-immutable.md +57 -0
  122. package/skills/react-best-practices/rules/rendering-activity.md +26 -0
  123. package/skills/react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
  124. package/skills/react-best-practices/rules/rendering-conditional-render.md +40 -0
  125. package/skills/react-best-practices/rules/rendering-content-visibility.md +38 -0
  126. package/skills/react-best-practices/rules/rendering-hoist-jsx.md +46 -0
  127. package/skills/react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
  128. package/skills/react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
  129. package/skills/react-best-practices/rules/rendering-svg-precision.md +28 -0
  130. package/skills/react-best-practices/rules/rendering-usetransition-loading.md +75 -0
  131. package/skills/react-best-practices/rules/rerender-defer-reads.md +39 -0
  132. package/skills/react-best-practices/rules/rerender-dependencies.md +45 -0
  133. package/skills/react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
  134. package/skills/react-best-practices/rules/rerender-derived-state.md +29 -0
  135. package/skills/react-best-practices/rules/rerender-functional-setstate.md +74 -0
  136. package/skills/react-best-practices/rules/rerender-lazy-state-init.md +58 -0
  137. package/skills/react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
  138. package/skills/react-best-practices/rules/rerender-memo.md +44 -0
  139. package/skills/react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
  140. package/skills/react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
  141. package/skills/react-best-practices/rules/rerender-transitions.md +40 -0
  142. package/skills/react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
  143. package/skills/react-best-practices/rules/server-after-nonblocking.md +73 -0
  144. package/skills/react-best-practices/rules/server-auth-actions.md +96 -0
  145. package/skills/react-best-practices/rules/server-cache-lru.md +41 -0
  146. package/skills/react-best-practices/rules/server-cache-react.md +76 -0
  147. package/skills/react-best-practices/rules/server-dedup-props.md +65 -0
  148. package/skills/react-best-practices/rules/server-hoist-static-io.md +142 -0
  149. package/skills/react-best-practices/rules/server-parallel-fetching.md +83 -0
  150. package/skills/react-best-practices/rules/server-serialization.md +38 -0
  151. package/skills/react-doctor/SKILL.md +74 -0
  152. package/skills/registry.json +21 -0
  153. package/skills/sprint-planner/SKILL.md +434 -0
  154. package/squads/design-delivery/README.md +10 -0
  155. package/squads/design-delivery/squad.yaml +30 -0
  156. package/squads/design-delivery/workflows/wf-design-delivery.yaml +27 -0
  157. package/squads/design-squad/README.md +31 -0
  158. package/squads/design-squad/agents/brad-frost.md +185 -0
  159. package/squads/design-squad/agents/dan-mall.md +178 -0
  160. package/squads/design-squad/agents/dave-malouf.md +198 -0
  161. package/squads/design-squad/agents/design-chief.md +109 -0
  162. package/squads/design-squad/agents/design-system-architect.md +109 -0
  163. package/squads/design-squad/agents/ui-engineer.md +102 -0
  164. package/squads/design-squad/agents/ux-designer.md +105 -0
  165. package/squads/design-squad/agents/visual-generator.md +108 -0
  166. package/squads/design-squad/checklists/output-quality.md +76 -0
  167. package/squads/design-squad/config/config.yaml +65 -0
  168. package/squads/design-squad/data/design-patterns-catalog.yaml +276 -0
  169. package/squads/design-squad/data/routing-catalog.yaml +95 -0
  170. package/squads/design-squad/squad.yaml +88 -0
  171. package/squads/design-squad/tasks/audit-design.md +174 -0
  172. package/squads/design-squad/tasks/create-component-spec.md +185 -0
  173. package/squads/design-squad/tasks/create-design-system.md +179 -0
  174. package/squads/design-squad/tasks/design-ux-flow.md +184 -0
  175. package/squads/design-squad/tasks/diagnose.md +138 -0
  176. package/squads/design-squad/tasks/generate-handoff.md +186 -0
  177. package/squads/design-squad/tasks/review.md +133 -0
  178. package/squads/design-squad/tasks/setup-design-ops.md +177 -0
  179. package/squads/design-squad/workflows/wf-design-system-creation.yaml +131 -0
  180. package/squads/design-squad/workflows/wf-feature-design.yaml +114 -0
  181. package/squads/git-operations/README.md +30 -0
  182. package/squads/git-operations/squad.yaml +27 -0
  183. package/squads/git-operations/workflows/wf-safe-commit.yaml +27 -0
  184. package/squads/git-operations/workflows/wf-ssh-setup.yaml +27 -0
  185. package/squads/sprint-planning/agents/sprint-chief.md +47 -0
  186. package/squads/sprint-planning/agents/sprint-planner-agent.md +43 -0
  187. package/squads/sprint-planning/agents/sprint-tracker.md +43 -0
  188. package/squads/sprint-planning/agents/task-importer.md +44 -0
  189. package/squads/sprint-planning/checklists/sprint-readiness.md +27 -0
  190. package/squads/sprint-planning/config/config.yaml +65 -0
  191. package/squads/sprint-planning/data/clickup-field-mapping.yaml +94 -0
  192. package/squads/sprint-planning/squad.yaml +52 -0
  193. package/squads/sprint-planning/tasks/close-sprint.md +43 -0
  194. package/squads/sprint-planning/tasks/create-sprint.md +42 -0
  195. package/squads/sprint-planning/tasks/import-tasks.md +39 -0
  196. package/squads/sprint-planning/tasks/sync-status.md +31 -0
  197. package/squads/sprint-planning/workflows/wf-sprint-creation.yaml +59 -0
  198. package/squads/sprint-planning/workflows/wf-sprint-sync.yaml +35 -0
  199. package/templates/adr-tmpl.yaml +76 -0
  200. package/templates/sprint-clickup.template.md +80 -0
@@ -0,0 +1,184 @@
1
+ ---
2
+ task: designUxFlow()
3
+ responsavel: "@ux-designer"
4
+ responsavel_type: Agent
5
+ atomic_layer: Task
6
+ elicit: true
7
+
8
+ Entrada:
9
+ - campo: feature_or_product
10
+ tipo: string
11
+ origem: User Input
12
+ obrigatorio: true
13
+ - campo: target_users
14
+ tipo: string
15
+ origem: User Input
16
+ obrigatorio: true
17
+
18
+ Saida:
19
+ - campo: uxFlow
20
+ tipo: string
21
+ destino: Console
22
+ persistido: false
23
+
24
+ Checklist:
25
+ - "[ ] User research conducted with documented insights"
26
+ - "[ ] 2-3 personas created with goals and pain points"
27
+ - "[ ] Wireframes created for all key screens and flows"
28
+ ---
29
+
30
+ # Task: UX Research & Flow Design
31
+
32
+ **Task ID:** DESIGN-005
33
+ **Version:** 1.0.0
34
+ **Command:** `*design-ux-flow`
35
+ **Agent:** UX Designer (ux-designer)
36
+ **Purpose:** Conduct user research and design user experience flows from personas through wireframes.
37
+
38
+ ---
39
+
40
+ ## Inputs
41
+
42
+ | Input | Source | Required |
43
+ |-------|--------|----------|
44
+ | `feature_or_product` | What is being designed | YES |
45
+ | `target_users` | Who will use this | YES |
46
+ | `business_goals` | What the business wants to achieve | YES |
47
+ | `existing_research` | Prior user research, analytics | NO |
48
+ | `constraints` | Technical, time, budget limitations | NO |
49
+ | `competitive_context` | How competitors solve this | NO |
50
+
51
+ ## Preconditions
52
+
53
+ 1. Feature or product scope is defined
54
+ 2. Target user group is at least loosely identified
55
+ 3. Business goals are articulated
56
+
57
+ ## Execution Phases
58
+
59
+ ### Phase 1: User Research
60
+
61
+ 1. **Define research questions** — What do we need to learn to design well?
62
+ 2. **Identify research methods** based on project needs:
63
+ - User interviews (qualitative — understanding motivations and pain)
64
+ - Surveys (quantitative — validating hypotheses at scale)
65
+ - Contextual inquiry (observe users in their natural environment)
66
+ - Card sorting (understand mental models for information architecture)
67
+ - Competitive analysis (how do others solve this problem?)
68
+ - Analytics review (what does existing data tell us?)
69
+ 3. **Conduct research** — Execute selected methods
70
+ 4. **Synthesize findings** — Identify patterns, themes, and insights
71
+ 5. **Create insight statements** — "Users need [X] because [Y], but currently [Z]"
72
+ 6. Document all findings in a research repository
73
+
74
+ ### Phase 2: Persona & Journey Mapping
75
+
76
+ 1. **Create user personas** (2-3 primary personas):
77
+ - Demographics, role, and context
78
+ - Goals and motivations
79
+ - Pain points and frustrations
80
+ - Behaviors and habits
81
+ - Quote that captures their essence
82
+ - Technical proficiency level
83
+ 2. **Map current journey** (As-Is):
84
+ - Stages the user goes through today
85
+ - Actions at each stage
86
+ - Thoughts and feelings at each stage
87
+ - Pain points and opportunities
88
+ - Touchpoints (where they interact with the product/service)
89
+ 3. **Map desired journey** (To-Be):
90
+ - Improved stages with pain points resolved
91
+ - New touchpoints and interactions
92
+ - Emotional uplift at key moments
93
+ - Moments of delight
94
+
95
+ ### Phase 3: Information Architecture
96
+
97
+ 1. **Content inventory** — What content/features must be organized?
98
+ 2. **Card sorting results** — How do users naturally group information?
99
+ 3. **Site map / App map** — Hierarchical structure of pages/screens
100
+ 4. **Navigation model** — Primary, secondary, contextual navigation
101
+ 5. **Naming conventions** — Labels that match user mental models (not internal jargon)
102
+ 6. **Search and filtering** — How users find content within the structure
103
+ 7. Validate IA with tree testing (can users find what they need?)
104
+
105
+ ### Phase 4: Wireframes
106
+
107
+ 1. **Low-fidelity sketches** — Rapid exploration of layout options (3-5 alternatives per key screen)
108
+ 2. **Mid-fidelity wireframes** — Selected approach refined with:
109
+ - Layout grid and spacing
110
+ - Component placement and hierarchy
111
+ - Content priority (what is most important on each screen)
112
+ - Interaction patterns (how users move between states)
113
+ - Error states and empty states
114
+ - Loading states
115
+ 3. **User flows** — Step-by-step paths for key tasks:
116
+ - Happy path (everything goes right)
117
+ - Error path (what happens when things go wrong)
118
+ - Edge cases (unusual but valid scenarios)
119
+ 4. **Annotation** — Document interaction behaviors, validation rules, conditional logic
120
+ 5. **Responsive considerations** — How wireframes adapt across breakpoints
121
+
122
+ ### Phase 5: Validation & Testing
123
+
124
+ 1. **Usability testing** — Test wireframes with 5+ representative users
125
+ 2. **Task success rate** — Can users complete key tasks?
126
+ 3. **Time on task** — How long does each task take?
127
+ 4. **Error rate** — Where do users make mistakes?
128
+ 5. **Satisfaction** — How do users feel about the experience?
129
+ 6. Document findings and iterate on wireframes
130
+ 7. Handoff validated wireframes to visual design and development
131
+
132
+ ## Output Format
133
+
134
+ ```yaml
135
+ ux_flow:
136
+ designer: "ux-designer"
137
+ feature: "{feature/product name}"
138
+ research:
139
+ methods_used: ["{methods}"]
140
+ key_insights: ["{insight statements}"]
141
+ participants: 0
142
+ personas:
143
+ - name: "{persona name}"
144
+ role: "{role}"
145
+ goals: ["{goals}"]
146
+ pain_points: ["{pains}"]
147
+ quote: "{representative quote}"
148
+ journey_map:
149
+ stages: ["{stage list}"]
150
+ pain_points: ["{key pains}"]
151
+ opportunities: ["{design opportunities}"]
152
+ information_architecture:
153
+ site_map: "{structure description}"
154
+ navigation_model: "{nav pattern}"
155
+ key_labels: ["{naming}"]
156
+ wireframes:
157
+ screens: ["{screen list}"]
158
+ user_flows: ["{flow list}"]
159
+ interaction_notes: ["{key behaviors}"]
160
+ validation:
161
+ method: "{testing method}"
162
+ task_success_rate: "{percentage}"
163
+ key_findings: ["{what we learned}"]
164
+ iterations: ["{changes made}"]
165
+ ```
166
+
167
+ ## Veto Conditions
168
+
169
+ - **NEVER** skip user research and jump straight to wireframes — assumptions lead to wasted design
170
+ - **NEVER** design for a single persona — consider the range of users
171
+ - **NEVER** use internal jargon in navigation or labels — use the user's language
172
+ - **NEVER** design only the happy path — error states and edge cases are part of the experience
173
+ - **NEVER** skip usability testing — untested designs are assumptions, not solutions
174
+
175
+ ## Completion Criteria
176
+
177
+ - [ ] User research conducted with documented insights
178
+ - [ ] 2-3 personas created with goals and pain points
179
+ - [ ] Journey map created showing current and desired states
180
+ - [ ] Information architecture defined and validated
181
+ - [ ] Wireframes created for all key screens and flows
182
+ - [ ] Error states, empty states, and loading states designed
183
+ - [ ] Usability testing completed with findings documented
184
+ - [ ] Wireframes iterated based on test results
@@ -0,0 +1,138 @@
1
+ ---
2
+ task: diagnoseDesignChallenge()
3
+ responsavel: "@design-chief"
4
+ responsavel_type: Agent
5
+ atomic_layer: Task
6
+ elicit: true
7
+
8
+ Entrada:
9
+ - campo: user_message
10
+ tipo: string
11
+ origem: User Input
12
+ obrigatorio: true
13
+ - campo: routing_catalog
14
+ tipo: string
15
+ origem: User Input
16
+ obrigatorio: true
17
+
18
+ Saida:
19
+ - campo: diagnosis
20
+ tipo: string
21
+ destino: Console
22
+ persistido: false
23
+
24
+ Checklist:
25
+ - "[ ] User intent parsed and categorized"
26
+ - "[ ] Cross-cutting answer delivered to user"
27
+ - "[ ] Confidence level assessed"
28
+ ---
29
+
30
+ # Task: Diagnose & Route — Design Squad
31
+
32
+ ## Metadata
33
+
34
+ | Field | Value |
35
+ |---------------|--------------------------------------------------|
36
+ | Task ID | `design-squad:diagnose` |
37
+ | Command | `@design-squad` or `@design-squad:design-chief` |
38
+ | Orchestrator | `design-chief` |
39
+ | Version | 1.0.0 |
40
+ | Created | 2026-03-05 |
41
+
42
+ ## Purpose
43
+
44
+ Analyze the user's design question, provide an immediate cross-cutting answer,
45
+ and determine whether specialist routing is needed. The chief NEVER loads a specialist
46
+ agent file during diagnosis — it only identifies the best route.
47
+
48
+ ## Inputs
49
+
50
+ | Input | Source | Required |
51
+ |------------------|---------------------|----------|
52
+ | `user_message` | User prompt | YES |
53
+ | `routing_catalog` | `data/routing-catalog.yaml` | YES |
54
+ | `config` | `config/config.yaml` | YES |
55
+ | `conversation_history` | Session context | NO |
56
+
57
+ ## Preconditions
58
+
59
+ 1. User message is not empty
60
+ 2. Routing catalog is loaded and accessible
61
+
62
+ ## Execution Phases
63
+
64
+ ### Phase 1: Parse Request
65
+
66
+ 1. Extract the core question or intent from the user message
67
+ 2. Identify keywords, design domains, and technical context
68
+ 3. Determine the design domain: systems, operations, experience, or production
69
+ 4. Determine the collaboration pattern if applicable:
70
+ - Design system creation flow
71
+ - New feature design flow
72
+ - Design ops setup flow
73
+
74
+ ### Phase 2: Match Routing Catalog
75
+
76
+ 1. Load `data/routing-catalog.yaml`
77
+ 2. Match extracted keywords against domain keyword lists
78
+ 3. Score each domain by keyword overlap and contextual relevance
79
+ 4. Identify `primary_agent` and `secondary_agent` for the top-scoring domain
80
+ 5. If multiple domains score equally, consider the design domain to break ties:
81
+ - Systems questions: prefer brad-frost
82
+ - Operations questions: prefer dave-malouf
83
+ - Experience questions: prefer ux-designer
84
+ - Production questions: prefer design-system-architect or ui-engineer
85
+
86
+ ### Phase 3: Cross-Cutting Answer
87
+
88
+ **MANDATORY — Always execute this phase before any routing.**
89
+
90
+ 1. Provide an immediate, useful answer to the user's question
91
+ 2. The answer should be actionable and demonstrate design domain competence
92
+ 3. Include relevant context: methodologies, patterns, or design principles applicable
93
+ 4. Reference the applicable design framework or methodology by name
94
+ 5. This answer must stand alone — even if the user never follows the routing suggestion
95
+
96
+ ### Phase 4: Confidence Assessment
97
+
98
+ Assess routing confidence:
99
+
100
+ | Level | Criteria | Action |
101
+ |--------|-----------------------------------------------|-------------------------------|
102
+ | HIGH | Clear keyword match, single domain, unambiguous | Route to primary specialist |
103
+ | MEDIUM | Multiple domains match, slight ambiguity | Suggest primary + secondary |
104
+ | LOW | No clear match, vague request, cross-domain | Stay with chief, ask clarifying questions |
105
+
106
+ ## Output Format
107
+
108
+ ```yaml
109
+ diagnosis:
110
+ intent: "{parsed user intent}"
111
+ design_domain: "systems | operations | experience | production"
112
+ matched_domain: "{domain from routing catalog}"
113
+ confidence: "HIGH | MEDIUM | LOW"
114
+ primary_agent: "{agent-id}"
115
+ secondary_agent: "{agent-id}"
116
+ cross_cutting_answer: |
117
+ {The immediate answer provided to the user}
118
+ routing_suggestion: |
119
+ {Why this specialist was chosen and what they can add}
120
+ ```
121
+
122
+ ## Veto Conditions
123
+
124
+ - **NEVER** route without providing a cross-cutting answer first
125
+ - **NEVER** route when confidence is LOW — stay with chief and ask clarifying questions
126
+ - **NEVER** load a specialist agent file during diagnosis — only identify the route
127
+ - **NEVER** trigger a multi-specialist collaboration flow during diagnosis — one specialist at a time
128
+ - **NEVER** default to brad-frost for every question — match the actual design domain
129
+
130
+ ## Completion Criteria
131
+
132
+ - [x] User intent parsed and categorized
133
+ - [x] Design domain identified
134
+ - [x] Routing catalog consulted and domain matched
135
+ - [x] Cross-cutting answer delivered to user
136
+ - [x] Confidence level assessed
137
+ - [x] Routing suggestion provided (if confidence >= MEDIUM)
138
+ - [x] No specialist agent files loaded during diagnosis
@@ -0,0 +1,186 @@
1
+ ---
2
+ task: generateHandoff()
3
+ responsavel: "@ui-engineer"
4
+ responsavel_type: Agent
5
+ atomic_layer: Task
6
+ elicit: true
7
+
8
+ Entrada:
9
+ - campo: design_files
10
+ tipo: string
11
+ origem: User Input
12
+ obrigatorio: true
13
+ - campo: tech_stack
14
+ tipo: string
15
+ origem: User Input
16
+ obrigatorio: true
17
+
18
+ Saida:
19
+ - campo: handoffDocumentation
20
+ tipo: string
21
+ destino: Console
22
+ persistido: false
23
+
24
+ Checklist:
25
+ - "[ ] All components inventoried and mapped to design system"
26
+ - "[ ] Every visual value mapped to a design token"
27
+ - "[ ] Dev review completed with tradeoffs documented"
28
+ ---
29
+
30
+ # Task: Developer Handoff Documentation
31
+
32
+ **Task ID:** DESIGN-006
33
+ **Version:** 1.0.0
34
+ **Command:** `*generate-handoff`
35
+ **Agent:** UI Engineer (ui-engineer) + Dan Mall (dan-mall)
36
+ **Purpose:** Generate comprehensive developer handoff documentation for design-to-code translation.
37
+
38
+ ---
39
+
40
+ ## Inputs
41
+
42
+ | Input | Source | Required |
43
+ |-------|--------|----------|
44
+ | `design_files` | Figma/Sketch files or screenshots | YES |
45
+ | `design_system` | Existing design system reference | PREFERRED |
46
+ | `tech_stack` | Frontend framework and CSS approach | YES |
47
+ | `component_list` | Components used in the design | PREFERRED |
48
+ | `interaction_specs` | Animations, transitions, hover states | PREFERRED |
49
+ | `responsive_requirements` | Breakpoints and adaptation behavior | NO |
50
+
51
+ ## Preconditions
52
+
53
+ 1. Designs are finalized and approved
54
+ 2. Design system exists (or token values are specified)
55
+ 3. Tech stack is known for code-specific guidance
56
+ 4. Interactive behaviors are documented or demonstrable
57
+
58
+ ## Execution Phases
59
+
60
+ ### Phase 1: Inventory Components
61
+
62
+ 1. Map every unique component used in the designs
63
+ 2. For each component, determine:
64
+ - Does it exist in the design system already? (Reference existing)
65
+ - Is it a variant of an existing component? (Document the variant)
66
+ - Is it entirely new? (Flag for design system addition)
67
+ 3. Create a component dependency tree — which components compose others?
68
+ 4. Identify shared patterns — reusable layouts, spacing patterns, interaction patterns
69
+ 5. List all icons, illustrations, and media assets needed
70
+ 6. Document third-party components or libraries required
71
+
72
+ ### Phase 2: Specify Tokens
73
+
74
+ 1. **Color Mapping** — Map every color in the design to a design token
75
+ - If no token exists, propose a new semantic token
76
+ - Document both light and dark mode values
77
+ - Verify contrast ratios (AA compliance: 4.5:1 text, 3:1 UI)
78
+ 2. **Typography Mapping** — Map all text styles to typography tokens
79
+ - Font family, size, weight, line height, letter spacing
80
+ - Responsive type scale adjustments
81
+ 3. **Spacing Mapping** — Map all padding, margins, and gaps to spacing tokens
82
+ - Component internal spacing
83
+ - Between-component spacing
84
+ - Section and page-level spacing
85
+ 4. **Border and Shadow Mapping** — Map decorative styles to tokens
86
+ 5. **Motion Mapping** — Map animations to motion tokens (duration, easing, properties)
87
+ 6. Export a complete token-to-design mapping table
88
+
89
+ ### Phase 3: Document Interactions
90
+
91
+ 1. **State Transitions** — For each interactive element:
92
+ - Default → Hover: What changes? (color, shadow, scale, cursor)
93
+ - Default → Focus: What changes? (outline, ring, background)
94
+ - Default → Active: What changes? (transform, color)
95
+ - Default → Disabled: What changes? (opacity, cursor, pointer-events)
96
+ 2. **Micro-interactions** — Animations triggered by user actions:
97
+ - Button press feedback
98
+ - Form validation appearance
99
+ - Toast/notification entry and exit
100
+ - Loading indicators and skeleton screens
101
+ - Page transitions
102
+ 3. **Gesture Support** — Mobile-specific interactions:
103
+ - Swipe actions
104
+ - Pull to refresh
105
+ - Long press
106
+ - Pinch to zoom
107
+ 4. **Keyboard Navigation** — Tab order, shortcut keys, focus management
108
+ 5. **Conditional Logic** — Show/hide rules, validation rules, progressive disclosure
109
+
110
+ ### Phase 4: Review with Dev
111
+
112
+ 1. Walk through the handoff with the development team
113
+ 2. Clarify ambiguities — address every "what happens when...?" question
114
+ 3. Identify technical constraints — what is hard or impossible to implement?
115
+ 4. Negotiate tradeoffs — where can design flex for technical feasibility?
116
+ 5. Agree on implementation priority — which components/screens first?
117
+ 6. Establish the QA process — how will design verify the implementation?
118
+ 7. Document all decisions and tradeoffs from the review
119
+
120
+ ## Output Format
121
+
122
+ ```yaml
123
+ handoff:
124
+ creators: [ui-engineer, dan-mall]
125
+ tech_stack: "{framework}"
126
+ design_system: "{system name}"
127
+ components:
128
+ existing: ["{components from design system}"]
129
+ variants_needed: ["{new variants of existing}"]
130
+ new_required: ["{entirely new components}"]
131
+ token_map:
132
+ colors:
133
+ - design_value: "{hex or rgba}"
134
+ token: "{token name}"
135
+ usage: "{where used}"
136
+ typography:
137
+ - design_style: "{style name}"
138
+ token: "{token name}"
139
+ spacing:
140
+ - design_value: "{px value}"
141
+ token: "{token name}"
142
+ interactions:
143
+ state_transitions:
144
+ - element: "{component}"
145
+ states: "{default → hover → focus → active → disabled}"
146
+ animation: "{duration, easing}"
147
+ micro_interactions:
148
+ - trigger: "{user action}"
149
+ animation: "{description}"
150
+ duration: "{ms}"
151
+ easing: "{function}"
152
+ keyboard:
153
+ tab_order: ["{element sequence}"]
154
+ shortcuts: ["{key: action}"]
155
+ responsive:
156
+ breakpoints: ["{px values}"]
157
+ adaptations:
158
+ - breakpoint: "{px}"
159
+ changes: ["{layout changes}"]
160
+ assets:
161
+ icons: ["{icon list with format}"]
162
+ images: ["{image list with sizes}"]
163
+ fonts: ["{font files}"]
164
+ dev_review_notes: ["{decisions and tradeoffs}"]
165
+ qa_checklist: ["{verification items}"]
166
+ ```
167
+
168
+ ## Veto Conditions
169
+
170
+ - **NEVER** hand off designs without token mapping — developers should never guess at values
171
+ - **NEVER** skip interaction documentation — static mockups are incomplete specifications
172
+ - **NEVER** omit responsive behavior — if it is not specified, it will be implemented inconsistently
173
+ - **NEVER** skip the dev review — one conversation prevents days of rework
174
+ - **NEVER** hand off without accessibility specifications — they must be part of the spec, not an afterthought
175
+
176
+ ## Completion Criteria
177
+
178
+ - [ ] All components inventoried and mapped to design system
179
+ - [ ] Every visual value mapped to a design token
180
+ - [ ] State transitions documented for all interactive elements
181
+ - [ ] Micro-interactions specified with timing and easing
182
+ - [ ] Keyboard navigation and accessibility documented
183
+ - [ ] Responsive behavior specified for all breakpoints
184
+ - [ ] Assets exported in required formats
185
+ - [ ] Dev review completed with tradeoffs documented
186
+ - [ ] QA checklist created for implementation verification
@@ -0,0 +1,133 @@
1
+ ---
2
+ task: reviewDesignOutput()
3
+ responsavel: "@design-chief"
4
+ responsavel_type: Agent
5
+ atomic_layer: Task
6
+ elicit: true
7
+
8
+ Entrada:
9
+ - campo: specialist_output
10
+ tipo: string
11
+ origem: User Input
12
+ obrigatorio: true
13
+ - campo: original_request
14
+ tipo: string
15
+ origem: User Input
16
+ obrigatorio: true
17
+
18
+ Saida:
19
+ - campo: reviewReport
20
+ tipo: string
21
+ destino: Console
22
+ persistido: false
23
+
24
+ Checklist:
25
+ - "[ ] All checklist items evaluated"
26
+ - "[ ] Verdict rendered (APPROVE/REVISE/REJECT)"
27
+ - "[ ] Accessibility, consistency, and responsiveness individually assessed"
28
+ ---
29
+
30
+ # Task: Review Design Systems/UX Output
31
+
32
+ **Task ID:** DESIGN-CHIEF-002
33
+ **Version:** 1.0.0
34
+ **Command:** `*review`
35
+ **Orchestrator:** Design Chief (design-chief)
36
+ **Purpose:** Review specialist output against quality checklist, score, and approve or request revision.
37
+
38
+ ---
39
+
40
+ ## Inputs
41
+
42
+ | Field | Type | Source | Required | Validation |
43
+ |-------|------|--------|----------|------------|
44
+ | specialist_output | string | Specialist agent | Yes | Non-empty deliverable |
45
+ | original_request | string | User prompt | Yes | The original request that triggered the work |
46
+ | specialist_id | string | Routing | Yes | Agent ID that produced the output |
47
+
48
+ ---
49
+
50
+ ## Preconditions
51
+
52
+ - Specialist has completed their task and produced output
53
+ - Output quality checklist is available at checklists/output-quality.md
54
+
55
+ ---
56
+
57
+ ## Execution Phases
58
+
59
+ ### Phase 1: Understand Context
60
+
61
+ 1. Re-read the original user request
62
+ 2. Identify what was asked vs what was delivered
63
+ 3. Note the specialist who produced the output
64
+ 4. Identify the deliverable type: component, layout, design system, UX flow, wireframe, prototype spec
65
+ 5. Determine the platform: web, mobile, responsive, cross-platform
66
+
67
+ ### Phase 2: Apply Quality Checklist
68
+
69
+ 1. Load checklists/output-quality.md
70
+ 2. Evaluate each item against the specialist output
71
+ 3. Mark each item: [x] Pass, [ ] Fail, [N/A] Not Applicable
72
+ 4. Count CRITICAL failures and total failures
73
+ 5. Pay special attention to: accessibility compliance, design system consistency, responsiveness, and token usage
74
+
75
+ ### Phase 3: Score and Decide
76
+
77
+ | Score | Verdict | Action |
78
+ |-------|---------|--------|
79
+ | All CRITICAL pass, < 2 non-critical fail | APPROVE | Deliver to user |
80
+ | All CRITICAL pass, 2+ non-critical fail | REVISE | Return to specialist with specific feedback |
81
+ | Any CRITICAL fail | REJECT | Return to specialist, block delivery |
82
+
83
+ ### Phase 4: Output
84
+
85
+ Produce review report with verdict, score, and feedback.
86
+
87
+ ---
88
+
89
+ ## Output Format
90
+
91
+ ```markdown
92
+ ## Review Report
93
+
94
+ **Specialist:** {name} ({id})
95
+ **Verdict:** {APPROVE | REVISE | REJECT}
96
+ **Score:** {X}/{total} items passed
97
+
98
+ ### Passed
99
+ - {items that passed}
100
+
101
+ ### Issues Found
102
+ - [{CRITICAL|WARN}] {description} — {recommendation}
103
+
104
+ ### Design-Specific Notes
105
+ - Accessibility compliance: {assessment}
106
+ - System consistency: {assessment}
107
+ - Responsive behavior: {assessment}
108
+
109
+ ### Recommendation
110
+ {Next step: deliver / revise specific items / redo}
111
+ ```
112
+
113
+ ---
114
+
115
+ ## Veto Conditions
116
+
117
+ - NEVER approve output with CRITICAL failures
118
+ - NEVER reject without providing specific, actionable feedback
119
+ - NEVER modify the specialist's output — only review and provide feedback
120
+ - NEVER approve designs that fail WCAG 2.1 AA contrast or interaction requirements
121
+ - NEVER approve components that break design system conventions without documented rationale
122
+
123
+ ---
124
+
125
+ ## Completion Criteria
126
+
127
+ - [ ] Original request re-read and understood
128
+ - [ ] Deliverable type and platform identified
129
+ - [ ] All checklist items evaluated
130
+ - [ ] Score calculated
131
+ - [ ] Verdict rendered (APPROVE/REVISE/REJECT)
132
+ - [ ] Specific feedback provided for any failures
133
+ - [ ] Accessibility, consistency, and responsiveness individually assessed