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.
- package/AGENTS.md +46 -0
- package/CLAUDE.md +31 -0
- package/GEMINI.md +17 -0
- package/LICENSE +21 -0
- package/README.md +141 -0
- package/agents/profiles/architect.md +13 -0
- package/agents/profiles/dev.md +13 -0
- package/agents/profiles/devops.md +12 -0
- package/agents/profiles/ganbatte-os-master.md +444 -0
- package/agents/profiles/index.json +14 -0
- package/agents/profiles/po.md +7 -0
- package/agents/profiles/qa.md +456 -0
- package/agents/profiles/sm.md +7 -0
- package/agents/profiles/squad-creator.md +7 -0
- package/agents/profiles/ux-design-expert.md +14 -0
- package/config.json +15 -0
- package/docs/curation.md +60 -0
- package/docs/gos_installation_guide.md +114 -0
- package/docs/ide-compatibility.md +20 -0
- package/docs/plan/plan-git-operations.md +51 -0
- package/docs/plan-distribuicao-publica.md +360 -0
- package/docs/stacks/stack-git-operations.md +154 -0
- package/docs/toolchain-map.md +18 -0
- package/integrations/README.md +42 -0
- package/integrations/antigravity/README.md +29 -0
- package/integrations/antigravity/command-map.json +29 -0
- package/integrations/claude/README.md +35 -0
- package/integrations/claude/agent-map.json +46 -0
- package/integrations/claude/command-map.json +32 -0
- package/integrations/claude/litellm-proxy.md +93 -0
- package/integrations/claude/mcp-specifics.md +121 -0
- package/integrations/codex/README.md +29 -0
- package/integrations/codex/command-map.json +29 -0
- package/integrations/cursor/README.md +8 -0
- package/integrations/cursor/command-map.json +11 -0
- package/integrations/gemini/README.md +13 -0
- package/integrations/gemini/command-map.json +11 -0
- package/integrations/kilo-code/README.md +7 -0
- package/integrations/kilo-code/command-map.json +11 -0
- package/integrations/opencode/README.md +91 -0
- package/integrations/opencode/command-map.json +46 -0
- package/integrations/registry.json +20 -0
- package/manifests/g-os-runtime-manifest.json +39 -0
- package/manifests/gos-install-manifest.json +46 -0
- package/opencode.json +7 -0
- package/package.json +51 -0
- package/playbooks/feature-development-playbook.md +239 -0
- package/playbooks/sprint-planner-playbook.md +127 -0
- package/playbooks/squad-pipeline-runner.md +196 -0
- package/playbooks/ssh-multi-account-setup.md +185 -0
- package/prompts/01-search.md +18 -0
- package/prompts/02-spec.md +19 -0
- package/prompts/03-tasks.md +15 -0
- package/prompts/04-code.md +10 -0
- package/prompts/05-reviews.md +11 -0
- package/rules/plan-mode.md +60 -0
- package/scripts/cli/gos-cli.js +679 -0
- package/scripts/hooks/pre-commit-validate.js +201 -0
- package/scripts/integrations/check-ide-compat.js +44 -0
- package/scripts/integrations/setup-ide-adapters.js +87 -0
- package/scripts/tools/clickup-preprocess.js +218 -0
- package/scripts/tools/clickup.js +1058 -0
- package/skills/agent-teams/SKILL.md +78 -0
- package/skills/agent-teams/presets/team-all.yaml +14 -0
- package/skills/agent-teams/presets/team-fullstack.yaml +17 -0
- package/skills/agent-teams/presets/team-ide-minimal.yaml +9 -0
- package/skills/agent-teams/presets/team-no-ui.yaml +12 -0
- package/skills/agent-teams/presets/team-qa-focused.yaml +83 -0
- package/skills/clickup/SKILL.md +151 -0
- package/skills/component-dedup/SKILL.md +101 -0
- package/skills/design-to-code/SKILL.md +255 -0
- package/skills/figma-implement-design/SKILL.md +227 -0
- package/skills/figma-make-analyzer/SKILL.md +140 -0
- package/skills/frontend-dev/SKILL.md +271 -0
- package/skills/git-ssh-setup/SKILL.md +164 -0
- package/skills/interface-design/SKILL.md +350 -0
- package/skills/interface-design/references/audit.md +76 -0
- package/skills/interface-design/references/craft-examples.md +134 -0
- package/skills/interface-design/references/critique.md +92 -0
- package/skills/interface-design/references/extract.md +92 -0
- package/skills/interface-design/references/principles.md +348 -0
- package/skills/interface-design/references/templates/system-precision.md +73 -0
- package/skills/interface-design/references/templates/system-warmth.md +67 -0
- package/skills/interface-design/references/validation.md +137 -0
- package/skills/make-code-triage/SKILL.md +135 -0
- package/skills/make-version-diff/SKILL.md +87 -0
- package/skills/plan-to-tasks/SKILL.md +136 -0
- package/skills/react-best-practices/AGENTS.md +2975 -0
- package/skills/react-best-practices/SKILL.md +151 -0
- package/skills/react-best-practices/metadata.json +15 -0
- package/skills/react-best-practices/rules/_sections.md +46 -0
- package/skills/react-best-practices/rules/_template.md +28 -0
- package/skills/react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/skills/react-best-practices/rules/advanced-init-once.md +42 -0
- package/skills/react-best-practices/rules/advanced-use-latest.md +39 -0
- package/skills/react-best-practices/rules/async-api-routes.md +38 -0
- package/skills/react-best-practices/rules/async-defer-await.md +80 -0
- package/skills/react-best-practices/rules/async-dependencies.md +51 -0
- package/skills/react-best-practices/rules/async-parallel.md +28 -0
- package/skills/react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/skills/react-best-practices/rules/bundle-barrel-imports.md +59 -0
- package/skills/react-best-practices/rules/bundle-conditional.md +31 -0
- package/skills/react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/skills/react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/skills/react-best-practices/rules/bundle-preload.md +50 -0
- package/skills/react-best-practices/rules/client-event-listeners.md +74 -0
- package/skills/react-best-practices/rules/client-localstorage-schema.md +71 -0
- package/skills/react-best-practices/rules/client-passive-event-listeners.md +48 -0
- package/skills/react-best-practices/rules/client-swr-dedup.md +56 -0
- package/skills/react-best-practices/rules/js-batch-dom-css.md +107 -0
- package/skills/react-best-practices/rules/js-cache-function-results.md +80 -0
- package/skills/react-best-practices/rules/js-cache-property-access.md +28 -0
- package/skills/react-best-practices/rules/js-cache-storage.md +70 -0
- package/skills/react-best-practices/rules/js-combine-iterations.md +32 -0
- package/skills/react-best-practices/rules/js-early-exit.md +50 -0
- package/skills/react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/skills/react-best-practices/rules/js-index-maps.md +37 -0
- package/skills/react-best-practices/rules/js-length-check-first.md +49 -0
- package/skills/react-best-practices/rules/js-min-max-loop.md +82 -0
- package/skills/react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/skills/react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/skills/react-best-practices/rules/rendering-activity.md +26 -0
- package/skills/react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/skills/react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/skills/react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/skills/react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/skills/react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/skills/react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
- package/skills/react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/skills/react-best-practices/rules/rendering-usetransition-loading.md +75 -0
- package/skills/react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/skills/react-best-practices/rules/rerender-dependencies.md +45 -0
- package/skills/react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
- package/skills/react-best-practices/rules/rerender-derived-state.md +29 -0
- package/skills/react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/skills/react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/skills/react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
- package/skills/react-best-practices/rules/rerender-memo.md +44 -0
- package/skills/react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
- package/skills/react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
- package/skills/react-best-practices/rules/rerender-transitions.md +40 -0
- package/skills/react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
- package/skills/react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/skills/react-best-practices/rules/server-auth-actions.md +96 -0
- package/skills/react-best-practices/rules/server-cache-lru.md +41 -0
- package/skills/react-best-practices/rules/server-cache-react.md +76 -0
- package/skills/react-best-practices/rules/server-dedup-props.md +65 -0
- package/skills/react-best-practices/rules/server-hoist-static-io.md +142 -0
- package/skills/react-best-practices/rules/server-parallel-fetching.md +83 -0
- package/skills/react-best-practices/rules/server-serialization.md +38 -0
- package/skills/react-doctor/SKILL.md +74 -0
- package/skills/registry.json +21 -0
- package/skills/sprint-planner/SKILL.md +434 -0
- package/squads/design-delivery/README.md +10 -0
- package/squads/design-delivery/squad.yaml +30 -0
- package/squads/design-delivery/workflows/wf-design-delivery.yaml +27 -0
- package/squads/design-squad/README.md +31 -0
- package/squads/design-squad/agents/brad-frost.md +185 -0
- package/squads/design-squad/agents/dan-mall.md +178 -0
- package/squads/design-squad/agents/dave-malouf.md +198 -0
- package/squads/design-squad/agents/design-chief.md +109 -0
- package/squads/design-squad/agents/design-system-architect.md +109 -0
- package/squads/design-squad/agents/ui-engineer.md +102 -0
- package/squads/design-squad/agents/ux-designer.md +105 -0
- package/squads/design-squad/agents/visual-generator.md +108 -0
- package/squads/design-squad/checklists/output-quality.md +76 -0
- package/squads/design-squad/config/config.yaml +65 -0
- package/squads/design-squad/data/design-patterns-catalog.yaml +276 -0
- package/squads/design-squad/data/routing-catalog.yaml +95 -0
- package/squads/design-squad/squad.yaml +88 -0
- package/squads/design-squad/tasks/audit-design.md +174 -0
- package/squads/design-squad/tasks/create-component-spec.md +185 -0
- package/squads/design-squad/tasks/create-design-system.md +179 -0
- package/squads/design-squad/tasks/design-ux-flow.md +184 -0
- package/squads/design-squad/tasks/diagnose.md +138 -0
- package/squads/design-squad/tasks/generate-handoff.md +186 -0
- package/squads/design-squad/tasks/review.md +133 -0
- package/squads/design-squad/tasks/setup-design-ops.md +177 -0
- package/squads/design-squad/workflows/wf-design-system-creation.yaml +131 -0
- package/squads/design-squad/workflows/wf-feature-design.yaml +114 -0
- package/squads/git-operations/README.md +30 -0
- package/squads/git-operations/squad.yaml +27 -0
- package/squads/git-operations/workflows/wf-safe-commit.yaml +27 -0
- package/squads/git-operations/workflows/wf-ssh-setup.yaml +27 -0
- package/squads/sprint-planning/agents/sprint-chief.md +47 -0
- package/squads/sprint-planning/agents/sprint-planner-agent.md +43 -0
- package/squads/sprint-planning/agents/sprint-tracker.md +43 -0
- package/squads/sprint-planning/agents/task-importer.md +44 -0
- package/squads/sprint-planning/checklists/sprint-readiness.md +27 -0
- package/squads/sprint-planning/config/config.yaml +65 -0
- package/squads/sprint-planning/data/clickup-field-mapping.yaml +94 -0
- package/squads/sprint-planning/squad.yaml +52 -0
- package/squads/sprint-planning/tasks/close-sprint.md +43 -0
- package/squads/sprint-planning/tasks/create-sprint.md +42 -0
- package/squads/sprint-planning/tasks/import-tasks.md +39 -0
- package/squads/sprint-planning/tasks/sync-status.md +31 -0
- package/squads/sprint-planning/workflows/wf-sprint-creation.yaml +59 -0
- package/squads/sprint-planning/workflows/wf-sprint-sync.yaml +35 -0
- package/templates/adr-tmpl.yaml +76 -0
- package/templates/sprint-clickup.template.md +80 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
---
|
|
2
|
+
task: auditDesign()
|
|
3
|
+
responsavel: "@dave-malouf"
|
|
4
|
+
responsavel_type: Agent
|
|
5
|
+
atomic_layer: Task
|
|
6
|
+
elicit: true
|
|
7
|
+
|
|
8
|
+
Entrada:
|
|
9
|
+
- campo: organization_context
|
|
10
|
+
tipo: string
|
|
11
|
+
origem: User Input
|
|
12
|
+
obrigatorio: true
|
|
13
|
+
- campo: current_design_practice
|
|
14
|
+
tipo: string
|
|
15
|
+
origem: User Input
|
|
16
|
+
obrigatorio: true
|
|
17
|
+
|
|
18
|
+
Saida:
|
|
19
|
+
- campo: designAudit
|
|
20
|
+
tipo: string
|
|
21
|
+
destino: Console
|
|
22
|
+
persistido: false
|
|
23
|
+
|
|
24
|
+
Checklist:
|
|
25
|
+
- "[ ] All three lenses assessed with scores and specific findings"
|
|
26
|
+
- "[ ] Top 3-5 highest-leverage improvements identified"
|
|
27
|
+
- "[ ] Phased roadmap created with milestones"
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# Task: Design Audit & Maturity Assessment
|
|
31
|
+
|
|
32
|
+
**Task ID:** DESIGN-002
|
|
33
|
+
**Version:** 1.0.0
|
|
34
|
+
**Command:** `*audit-design`
|
|
35
|
+
**Agent:** Dave Malouf (dave-malouf) + Design Chief (design-chief)
|
|
36
|
+
**Purpose:** Assess design maturity across three lenses and identify gaps with an improvement roadmap.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Inputs
|
|
41
|
+
|
|
42
|
+
| Input | Source | Required |
|
|
43
|
+
|-------|--------|----------|
|
|
44
|
+
| `organization_context` | Company size, stage, industry | YES |
|
|
45
|
+
| `current_design_practice` | Team, tools, processes | YES |
|
|
46
|
+
| `design_artifacts` | Existing designs, systems, docs | PREFERRED |
|
|
47
|
+
| `stakeholder_concerns` | Pain points from leadership | NO |
|
|
48
|
+
| `product_portfolio` | Products/services using design | NO |
|
|
49
|
+
|
|
50
|
+
## Preconditions
|
|
51
|
+
|
|
52
|
+
1. Access to current design practice information
|
|
53
|
+
2. Understanding of organizational structure and design team placement
|
|
54
|
+
3. Willingness to assess honestly (not just validate current approach)
|
|
55
|
+
|
|
56
|
+
## Execution Phases
|
|
57
|
+
|
|
58
|
+
### Phase 1: Assess Maturity (3 Lenses)
|
|
59
|
+
|
|
60
|
+
**Lens 1: How We Work Together (People & Culture)**
|
|
61
|
+
1. Team structure — centralized, embedded, hybrid?
|
|
62
|
+
2. Role clarity — are design roles well-defined?
|
|
63
|
+
3. Career paths — do designers have growth trajectories?
|
|
64
|
+
4. Hiring practices — how is design talent evaluated?
|
|
65
|
+
5. Cross-functional collaboration — how do design, engineering, and product interact?
|
|
66
|
+
6. Design culture — is design valued at the leadership level?
|
|
67
|
+
7. Rate: Ad Hoc (1) → Emerging (2) → Defined (3) → Managed (4) → Optimized (5)
|
|
68
|
+
|
|
69
|
+
**Lens 2: How We Work (Process & Workflow)**
|
|
70
|
+
1. Design process — is there a consistent methodology?
|
|
71
|
+
2. Research practice — how are user insights gathered and used?
|
|
72
|
+
3. Handoff process — how do designs get to engineers?
|
|
73
|
+
4. Quality assurance — how is design quality verified?
|
|
74
|
+
5. Feedback loops — how do teams learn from shipped products?
|
|
75
|
+
6. Tooling — is the tool stack consistent and efficient?
|
|
76
|
+
7. Rate: Ad Hoc (1) → Emerging (2) → Defined (3) → Managed (4) → Optimized (5)
|
|
77
|
+
|
|
78
|
+
**Lens 3: What We Work On (Craft & Output)**
|
|
79
|
+
1. Design system — does one exist? Is it used consistently?
|
|
80
|
+
2. Accessibility — is WCAG compliance standard practice?
|
|
81
|
+
3. Visual consistency — are products visually coherent?
|
|
82
|
+
4. UX quality — are products usable and intuitive?
|
|
83
|
+
5. Innovation — is the team pushing design boundaries?
|
|
84
|
+
6. Documentation — are design decisions recorded and shared?
|
|
85
|
+
7. Rate: Ad Hoc (1) → Emerging (2) → Defined (3) → Managed (4) → Optimized (5)
|
|
86
|
+
|
|
87
|
+
### Phase 2: Identify Gaps
|
|
88
|
+
|
|
89
|
+
1. Map current maturity scores across all three lenses
|
|
90
|
+
2. Identify the lowest-scoring lens — this is the primary bottleneck
|
|
91
|
+
3. Within each lens, identify specific gaps:
|
|
92
|
+
- What exists but is broken or inconsistent?
|
|
93
|
+
- What is entirely missing?
|
|
94
|
+
- What is working well and should be preserved?
|
|
95
|
+
4. Cross-reference gaps — do people gaps cause process gaps cause craft gaps?
|
|
96
|
+
5. Benchmark against industry standards for the company's stage and size
|
|
97
|
+
6. Identify the 3-5 highest-leverage improvements
|
|
98
|
+
|
|
99
|
+
### Phase 3: Recommend Improvements
|
|
100
|
+
|
|
101
|
+
1. For each identified gap, recommend a specific intervention:
|
|
102
|
+
- **Quick wins** (1-2 weeks) — Low effort, immediate impact
|
|
103
|
+
- **Short-term** (1-3 months) — Moderate effort, significant improvement
|
|
104
|
+
- **Long-term** (3-12 months) — Strategic investment for lasting change
|
|
105
|
+
2. Prioritize by impact and feasibility
|
|
106
|
+
3. Identify dependencies — what must happen first?
|
|
107
|
+
4. Estimate resource requirements — people, tools, budget
|
|
108
|
+
5. Define success metrics for each improvement
|
|
109
|
+
|
|
110
|
+
### Phase 4: Build Roadmap
|
|
111
|
+
|
|
112
|
+
1. Create a phased improvement roadmap:
|
|
113
|
+
- **Phase 1 (Month 1-2):** Foundation — Quick wins + critical fixes
|
|
114
|
+
- **Phase 2 (Month 3-6):** Building — Process standardization + tooling
|
|
115
|
+
- **Phase 3 (Month 6-12):** Scaling — Culture change + advanced practices
|
|
116
|
+
2. Define milestones and checkpoints
|
|
117
|
+
3. Assign ownership for each initiative
|
|
118
|
+
4. Create a measurement plan — how will progress be tracked?
|
|
119
|
+
5. Plan for communication — how will the organization be informed and engaged?
|
|
120
|
+
6. Define the governance model for ongoing design maturity improvement
|
|
121
|
+
|
|
122
|
+
## Output Format
|
|
123
|
+
|
|
124
|
+
```yaml
|
|
125
|
+
design_audit:
|
|
126
|
+
auditors: [dave-malouf, design-chief]
|
|
127
|
+
organization: "{company}"
|
|
128
|
+
maturity_scores:
|
|
129
|
+
people_culture:
|
|
130
|
+
score: 0
|
|
131
|
+
level: "Ad Hoc | Emerging | Defined | Managed | Optimized"
|
|
132
|
+
strengths: ["{what works}"]
|
|
133
|
+
gaps: ["{what is missing}"]
|
|
134
|
+
process_workflow:
|
|
135
|
+
score: 0
|
|
136
|
+
level: "Ad Hoc | Emerging | Defined | Managed | Optimized"
|
|
137
|
+
strengths: ["{what works}"]
|
|
138
|
+
gaps: ["{what is missing}"]
|
|
139
|
+
craft_output:
|
|
140
|
+
score: 0
|
|
141
|
+
level: "Ad Hoc | Emerging | Defined | Managed | Optimized"
|
|
142
|
+
strengths: ["{what works}"]
|
|
143
|
+
gaps: ["{what is missing}"]
|
|
144
|
+
overall_maturity: 0
|
|
145
|
+
primary_bottleneck: "{lowest scoring lens}"
|
|
146
|
+
top_improvements:
|
|
147
|
+
- improvement: "{description}"
|
|
148
|
+
impact: "HIGH | MEDIUM | LOW"
|
|
149
|
+
effort: "HIGH | MEDIUM | LOW"
|
|
150
|
+
timeline: "quick_win | short_term | long_term"
|
|
151
|
+
roadmap:
|
|
152
|
+
phase_1: ["{foundation items}"]
|
|
153
|
+
phase_2: ["{building items}"]
|
|
154
|
+
phase_3: ["{scaling items}"]
|
|
155
|
+
measurement_plan: ["{metrics to track}"]
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Veto Conditions
|
|
159
|
+
|
|
160
|
+
- **NEVER** assess maturity without considering all three lenses — they are interconnected
|
|
161
|
+
- **NEVER** recommend advanced practices for an organization at Ad Hoc maturity — meet them where they are
|
|
162
|
+
- **NEVER** ignore people and culture — process and tools fail without the right culture
|
|
163
|
+
- **NEVER** create a roadmap without clear ownership and milestones
|
|
164
|
+
- **NEVER** skip the strengths assessment — build on what works, do not only focus on gaps
|
|
165
|
+
|
|
166
|
+
## Completion Criteria
|
|
167
|
+
|
|
168
|
+
- [ ] All three lenses assessed with scores and specific findings
|
|
169
|
+
- [ ] Gaps identified and cross-referenced across lenses
|
|
170
|
+
- [ ] Top 3-5 highest-leverage improvements identified
|
|
171
|
+
- [ ] Improvements prioritized by impact and feasibility
|
|
172
|
+
- [ ] Phased roadmap created with milestones
|
|
173
|
+
- [ ] Measurement plan defined for tracking progress
|
|
174
|
+
- [ ] Ownership assigned for each initiative
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
---
|
|
2
|
+
task: createComponentSpec()
|
|
3
|
+
responsavel: "@design-system-architect"
|
|
4
|
+
responsavel_type: Agent
|
|
5
|
+
atomic_layer: Task
|
|
6
|
+
elicit: true
|
|
7
|
+
|
|
8
|
+
Entrada:
|
|
9
|
+
- campo: component_name
|
|
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: componentSpec
|
|
20
|
+
tipo: string
|
|
21
|
+
destino: Console
|
|
22
|
+
persistido: false
|
|
23
|
+
|
|
24
|
+
Checklist:
|
|
25
|
+
- "[ ] All variants specified (size, intent, state, layout, content)"
|
|
26
|
+
- "[ ] Design tokens mapped with fallback chain"
|
|
27
|
+
- "[ ] Accessibility requirements complete (ARIA, keyboard, screen reader)"
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# Task: Component Specification
|
|
31
|
+
|
|
32
|
+
**Task ID:** DESIGN-004
|
|
33
|
+
**Version:** 1.0.0
|
|
34
|
+
**Command:** `*create-component-spec`
|
|
35
|
+
**Agent:** Design System Architect (design-system-architect) + Brad Frost (brad-frost)
|
|
36
|
+
**Purpose:** Create a complete component specification with variants, tokens, accessibility, and API documentation.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Inputs
|
|
41
|
+
|
|
42
|
+
| Input | Source | Required |
|
|
43
|
+
|-------|--------|----------|
|
|
44
|
+
| `component_name` | User request | YES |
|
|
45
|
+
| `component_purpose` | What problem it solves | YES |
|
|
46
|
+
| `design_system_context` | Existing tokens and patterns | PREFERRED |
|
|
47
|
+
| `tech_stack` | Framework (React, Vue, Svelte, etc.) | YES |
|
|
48
|
+
| `usage_context` | Where it will be used | PREFERRED |
|
|
49
|
+
| `reference_examples` | Existing implementations to reference | NO |
|
|
50
|
+
|
|
51
|
+
## Preconditions
|
|
52
|
+
|
|
53
|
+
1. Component purpose is clearly defined
|
|
54
|
+
2. Design token system exists (or will be created alongside)
|
|
55
|
+
3. Tech stack is known for API design
|
|
56
|
+
|
|
57
|
+
## Execution Phases
|
|
58
|
+
|
|
59
|
+
### Phase 1: Define Purpose
|
|
60
|
+
|
|
61
|
+
1. State the component's purpose — what user need does it serve?
|
|
62
|
+
2. Identify where it sits in the atomic hierarchy: atom, molecule, or organism
|
|
63
|
+
3. List use cases — where will this component appear?
|
|
64
|
+
4. Define what this component is NOT (prevent scope creep)
|
|
65
|
+
5. Check existing components — can an existing component be extended instead?
|
|
66
|
+
6. Identify component dependencies — what atoms/molecules does it compose?
|
|
67
|
+
|
|
68
|
+
### Phase 2: Design Variants
|
|
69
|
+
|
|
70
|
+
1. **Size variants** — sm, md, lg (where applicable)
|
|
71
|
+
2. **Color/intent variants** — primary, secondary, danger, warning, success, neutral
|
|
72
|
+
3. **State variants:**
|
|
73
|
+
- Default (resting state)
|
|
74
|
+
- Hover (mouse over)
|
|
75
|
+
- Focus (keyboard focus — visible focus ring)
|
|
76
|
+
- Active (being clicked/pressed)
|
|
77
|
+
- Disabled (non-interactive)
|
|
78
|
+
- Loading (async operation in progress)
|
|
79
|
+
- Error (validation failure)
|
|
80
|
+
- Selected/Checked (toggle state)
|
|
81
|
+
4. **Layout variants** — inline, block, full-width, responsive behavior
|
|
82
|
+
5. **Content variants** — with/without icon, with/without description, truncation behavior
|
|
83
|
+
6. For each variant, define visual specifications: colors, spacing, typography, borders
|
|
84
|
+
|
|
85
|
+
### Phase 3: Specify Tokens
|
|
86
|
+
|
|
87
|
+
1. Map component styles to design tokens (never use raw values):
|
|
88
|
+
- Background: `{component}-{variant}-bg`
|
|
89
|
+
- Text: `{component}-{variant}-text`
|
|
90
|
+
- Border: `{component}-{variant}-border`
|
|
91
|
+
- Shadow: `{component}-{variant}-shadow`
|
|
92
|
+
- Spacing: `{component}-padding-{size}`
|
|
93
|
+
- Typography: `{component}-font-{property}`
|
|
94
|
+
2. Define token fallback chain: component token → alias token → global token
|
|
95
|
+
3. Ensure all color tokens support dark mode theming
|
|
96
|
+
4. Document which tokens are customizable vs locked
|
|
97
|
+
5. Verify contrast ratios meet WCAG AA (4.5:1 text, 3:1 UI elements)
|
|
98
|
+
|
|
99
|
+
### Phase 4: Document API
|
|
100
|
+
|
|
101
|
+
1. **Props/Attributes:**
|
|
102
|
+
- Name, type, default value, description
|
|
103
|
+
- Required vs optional
|
|
104
|
+
- Valid values for enums
|
|
105
|
+
2. **Events/Callbacks:**
|
|
106
|
+
- Event name, payload, when it fires
|
|
107
|
+
3. **Slots/Children:**
|
|
108
|
+
- Named slots and their expected content
|
|
109
|
+
- Default slot behavior
|
|
110
|
+
4. **Accessibility:**
|
|
111
|
+
- ARIA role and attributes
|
|
112
|
+
- Keyboard interaction pattern (Tab, Enter, Space, Arrow keys, Escape)
|
|
113
|
+
- Screen reader announcement behavior
|
|
114
|
+
- Focus management (where focus goes, trap behavior)
|
|
115
|
+
- Color contrast verification
|
|
116
|
+
5. **Responsive Behavior:**
|
|
117
|
+
- Breakpoint-specific adaptations
|
|
118
|
+
- Touch target sizes (minimum 44x44px)
|
|
119
|
+
- Mobile-specific interactions
|
|
120
|
+
6. **Code Examples:**
|
|
121
|
+
- Basic usage
|
|
122
|
+
- Each variant
|
|
123
|
+
- Composition with other components
|
|
124
|
+
- Common patterns
|
|
125
|
+
|
|
126
|
+
## Output Format
|
|
127
|
+
|
|
128
|
+
```yaml
|
|
129
|
+
component_spec:
|
|
130
|
+
name: "{component name}"
|
|
131
|
+
creators: [design-system-architect, brad-frost]
|
|
132
|
+
atomic_level: "atom | molecule | organism"
|
|
133
|
+
purpose: "{what it does}"
|
|
134
|
+
dependencies: ["{required sub-components}"]
|
|
135
|
+
variants:
|
|
136
|
+
sizes: ["{size list}"]
|
|
137
|
+
intents: ["{intent list}"]
|
|
138
|
+
states: ["{state list}"]
|
|
139
|
+
tokens:
|
|
140
|
+
- token: "{token name}"
|
|
141
|
+
value: "{default value}"
|
|
142
|
+
customizable: true
|
|
143
|
+
dark_mode: "{dark value}"
|
|
144
|
+
props:
|
|
145
|
+
- name: "{prop name}"
|
|
146
|
+
type: "{type}"
|
|
147
|
+
default: "{default}"
|
|
148
|
+
required: true
|
|
149
|
+
description: "{what it controls}"
|
|
150
|
+
events:
|
|
151
|
+
- name: "{event name}"
|
|
152
|
+
payload: "{data type}"
|
|
153
|
+
description: "{when it fires}"
|
|
154
|
+
accessibility:
|
|
155
|
+
role: "{ARIA role}"
|
|
156
|
+
keyboard: ["{interaction pattern}"]
|
|
157
|
+
announcements: ["{screen reader behavior}"]
|
|
158
|
+
contrast: "verified AA"
|
|
159
|
+
responsive:
|
|
160
|
+
breakpoints: ["{adaptations}"]
|
|
161
|
+
touch_target: "44x44px minimum"
|
|
162
|
+
code_examples:
|
|
163
|
+
basic: "{code}"
|
|
164
|
+
variants: "{code}"
|
|
165
|
+
composition: "{code}"
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Veto Conditions
|
|
169
|
+
|
|
170
|
+
- **NEVER** specify a component without accessibility requirements — they are not optional
|
|
171
|
+
- **NEVER** use raw color/spacing values — always reference design tokens
|
|
172
|
+
- **NEVER** skip interactive states — hover, focus, active, and disabled are mandatory
|
|
173
|
+
- **NEVER** create a component that duplicates an existing component's purpose
|
|
174
|
+
- **NEVER** omit keyboard interaction patterns — not all users use a mouse
|
|
175
|
+
|
|
176
|
+
## Completion Criteria
|
|
177
|
+
|
|
178
|
+
- [ ] Component purpose defined with clear scope
|
|
179
|
+
- [ ] All variants specified (size, intent, state, layout, content)
|
|
180
|
+
- [ ] Design tokens mapped with fallback chain
|
|
181
|
+
- [ ] Props/API fully documented with types and defaults
|
|
182
|
+
- [ ] Accessibility requirements complete (ARIA, keyboard, screen reader)
|
|
183
|
+
- [ ] Responsive behavior defined with touch targets
|
|
184
|
+
- [ ] Code examples provided for all major use cases
|
|
185
|
+
- [ ] Dark mode token values defined
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
---
|
|
2
|
+
task: createDesignSystem()
|
|
3
|
+
responsavel: "@brad-frost"
|
|
4
|
+
responsavel_type: Agent
|
|
5
|
+
atomic_layer: Task
|
|
6
|
+
elicit: true
|
|
7
|
+
|
|
8
|
+
Entrada:
|
|
9
|
+
- campo: project_context
|
|
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: designSystem
|
|
20
|
+
tipo: string
|
|
21
|
+
destino: Console
|
|
22
|
+
persistido: false
|
|
23
|
+
|
|
24
|
+
Checklist:
|
|
25
|
+
- "[ ] Interface audit completed with inconsistencies documented"
|
|
26
|
+
- "[ ] All design tokens defined (colors, typography, spacing, borders, shadows)"
|
|
27
|
+
- "[ ] Documentation complete with examples and contribution guide"
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# Task: Atomic Design System Creation
|
|
31
|
+
|
|
32
|
+
**Task ID:** DESIGN-001
|
|
33
|
+
**Version:** 1.0.0
|
|
34
|
+
**Command:** `*create-design-system`
|
|
35
|
+
**Agent:** Brad Frost (brad-frost) + Dan Mall (dan-mall)
|
|
36
|
+
**Purpose:** Build a complete atomic design system from audit through atoms, molecules, organisms, and documentation.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Inputs
|
|
41
|
+
|
|
42
|
+
| Input | Source | Required |
|
|
43
|
+
|-------|--------|----------|
|
|
44
|
+
| `project_context` | Application or product description | YES |
|
|
45
|
+
| `brand_guidelines` | Colors, typography, logos | PREFERRED |
|
|
46
|
+
| `existing_ui` | Current interface screenshots or code | PREFERRED |
|
|
47
|
+
| `tech_stack` | Frontend framework and tools | YES |
|
|
48
|
+
| `team_size` | Design and dev team size | NO |
|
|
49
|
+
| `accessibility_requirements` | WCAG level target | NO (default: AA) |
|
|
50
|
+
|
|
51
|
+
## Preconditions
|
|
52
|
+
|
|
53
|
+
1. Project context and tech stack are defined
|
|
54
|
+
2. Brand guidelines exist (even minimal — colors and fonts at minimum)
|
|
55
|
+
3. Understanding of who will consume the design system (designers, developers, both)
|
|
56
|
+
|
|
57
|
+
## Execution Phases
|
|
58
|
+
|
|
59
|
+
### Phase 1: Audit Existing (brad-frost)
|
|
60
|
+
|
|
61
|
+
1. Conduct interface inventory — screenshot every unique component
|
|
62
|
+
2. Categorize existing UI elements by type:
|
|
63
|
+
- Colors, typography, spacing, icons, borders, shadows
|
|
64
|
+
- Buttons, inputs, labels, badges, links
|
|
65
|
+
- Cards, forms, navigation, modals, tables
|
|
66
|
+
- Page layouts, templates, responsive patterns
|
|
67
|
+
3. Identify inconsistencies — how many variations of the same component exist?
|
|
68
|
+
4. Assess current accessibility — WCAG compliance of existing elements
|
|
69
|
+
5. Document the "component zoo" — everything that exists today
|
|
70
|
+
6. Identify the 20% of components that cover 80% of the interface
|
|
71
|
+
|
|
72
|
+
### Phase 2: Define Atoms (brad-frost)
|
|
73
|
+
|
|
74
|
+
1. **Color tokens** — Define global palette, semantic colors, and component-level aliases
|
|
75
|
+
- Global: brand colors, neutrals, feedback colors (success, warning, error, info)
|
|
76
|
+
- Semantic: text-primary, text-secondary, bg-surface, bg-canvas, border-default
|
|
77
|
+
- Component: button-primary-bg, input-border, card-shadow
|
|
78
|
+
2. **Typography tokens** — Font families, sizes, weights, line heights, letter spacing
|
|
79
|
+
- Scale: xs, sm, base, lg, xl, 2xl, 3xl, 4xl
|
|
80
|
+
- Semantic: heading-1 through heading-6, body, caption, label, code
|
|
81
|
+
3. **Spacing tokens** — Consistent spacing scale (4px base unit recommended)
|
|
82
|
+
- Scale: 0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24
|
|
83
|
+
4. **Border tokens** — Radius scale, border widths, styles
|
|
84
|
+
5. **Shadow tokens** — Elevation levels (sm, md, lg, xl)
|
|
85
|
+
6. **Animation tokens** — Duration, easing, transition properties
|
|
86
|
+
7. **Breakpoint tokens** — Responsive breakpoints
|
|
87
|
+
8. Document each atom with usage guidelines
|
|
88
|
+
|
|
89
|
+
### Phase 3: Build Molecules & Organisms (brad-frost + dan-mall)
|
|
90
|
+
|
|
91
|
+
**Molecules (simple component groups):**
|
|
92
|
+
1. Button group (button + icon + label)
|
|
93
|
+
2. Input field (label + input + helper text + error message)
|
|
94
|
+
3. Search bar (input + button + icon)
|
|
95
|
+
4. Media object (image + text block)
|
|
96
|
+
5. Navigation item (icon + label + badge)
|
|
97
|
+
6. Card header (avatar + title + subtitle + action)
|
|
98
|
+
|
|
99
|
+
**Organisms (complex component groups):**
|
|
100
|
+
1. Navigation bar (logo + nav items + search + user menu)
|
|
101
|
+
2. Form section (heading + description + multiple input fields + actions)
|
|
102
|
+
3. Data table (header + rows + pagination + filters)
|
|
103
|
+
4. Card (header + media + content + footer + actions)
|
|
104
|
+
5. Modal (overlay + header + content + footer actions)
|
|
105
|
+
6. Sidebar (logo + navigation + user info + footer)
|
|
106
|
+
|
|
107
|
+
For each component:
|
|
108
|
+
- Define variants (size, color, state)
|
|
109
|
+
- Specify interactive states (default, hover, focus, active, disabled, loading)
|
|
110
|
+
- Document props/API
|
|
111
|
+
- Write accessibility requirements (ARIA roles, keyboard nav, screen reader)
|
|
112
|
+
- Create responsive behavior specification
|
|
113
|
+
|
|
114
|
+
### Phase 4: Document (dan-mall)
|
|
115
|
+
|
|
116
|
+
1. **Getting Started** — Installation, setup, and first component usage
|
|
117
|
+
2. **Design Principles** — The "why" behind design decisions
|
|
118
|
+
3. **Token Reference** — Complete token catalog with visual examples
|
|
119
|
+
4. **Component Catalog** — Each component with:
|
|
120
|
+
- Description and purpose
|
|
121
|
+
- Live examples with all variants
|
|
122
|
+
- Props/API documentation
|
|
123
|
+
- Do's and Don'ts with visual examples
|
|
124
|
+
- Accessibility notes
|
|
125
|
+
- Code snippets (copy-paste ready)
|
|
126
|
+
5. **Pattern Library** — Common compositions and layouts
|
|
127
|
+
6. **Contribution Guide** — How to add/modify components
|
|
128
|
+
7. **Governance Model** — Who approves changes, versioning, deprecation process
|
|
129
|
+
|
|
130
|
+
## Output Format
|
|
131
|
+
|
|
132
|
+
```yaml
|
|
133
|
+
design_system:
|
|
134
|
+
name: "{system name}"
|
|
135
|
+
creators: [brad-frost, dan-mall]
|
|
136
|
+
methodology: "Atomic Design"
|
|
137
|
+
tech_stack: "{framework}"
|
|
138
|
+
accessibility_target: "WCAG 2.1 AA"
|
|
139
|
+
tokens:
|
|
140
|
+
colors: "{token count}"
|
|
141
|
+
typography: "{token count}"
|
|
142
|
+
spacing: "{token count}"
|
|
143
|
+
borders: "{token count}"
|
|
144
|
+
shadows: "{token count}"
|
|
145
|
+
components:
|
|
146
|
+
atoms: ["{list}"]
|
|
147
|
+
molecules: ["{list}"]
|
|
148
|
+
organisms: ["{list}"]
|
|
149
|
+
templates: ["{list}"]
|
|
150
|
+
documentation:
|
|
151
|
+
getting_started: true
|
|
152
|
+
token_reference: true
|
|
153
|
+
component_catalog: true
|
|
154
|
+
pattern_library: true
|
|
155
|
+
contribution_guide: true
|
|
156
|
+
governance_model: true
|
|
157
|
+
governance:
|
|
158
|
+
versioning: "semver"
|
|
159
|
+
approval_process: "{description}"
|
|
160
|
+
deprecation_policy: "{description}"
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Veto Conditions
|
|
164
|
+
|
|
165
|
+
- **NEVER** skip the audit phase — building without understanding what exists creates duplication
|
|
166
|
+
- **NEVER** define components without accessibility from the start — retrofitting is 10x harder
|
|
167
|
+
- **NEVER** create tokens without a clear naming convention and hierarchy
|
|
168
|
+
- **NEVER** skip documentation — an undocumented design system will not be adopted
|
|
169
|
+
- **NEVER** build organisms before atoms and molecules are solid
|
|
170
|
+
|
|
171
|
+
## Completion Criteria
|
|
172
|
+
|
|
173
|
+
- [ ] Interface audit completed with inconsistencies documented
|
|
174
|
+
- [ ] All design tokens defined (colors, typography, spacing, borders, shadows)
|
|
175
|
+
- [ ] Atoms documented with usage guidelines
|
|
176
|
+
- [ ] Molecules and organisms built with variants and states
|
|
177
|
+
- [ ] Accessibility requirements defined for every component
|
|
178
|
+
- [ ] Documentation complete with examples and contribution guide
|
|
179
|
+
- [ ] Governance model established for ongoing maintenance
|