@juancr11/sibu 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -168,6 +168,19 @@ export const SELECTABLE_WORKFLOW_SKILLS = [
168
168
  windsurf: '.agents/skills/ai-prompt-engineer-master/SKILL.md',
169
169
  },
170
170
  },
171
+ {
172
+ id: 'ux-expert',
173
+ name: 'UX Expert',
174
+ description: 'Install senior UX/UI guidance for UI-changing features, responsive layouts, flows, states, accessibility, and binding mockups',
175
+ routingInstruction: 'For UX/UI design after product definition when a feature has UI changes, use `ux-expert`; downstream technical design, Scrum planning, implementation planning, and implementation must treat mockups in `docs/features/<feature-slug>/ux.md` as binding UI goals, not redesign targets.',
176
+ templateRelativePath: 'skills/ux-expert/SKILL.md',
177
+ targetRelativePathsByAgent: {
178
+ codex: '.agents/skills/ux-expert/SKILL.md',
179
+ gemini: '.agents/skills/ux-expert/SKILL.md',
180
+ claude: '.agents/skills/ux-expert/SKILL.md',
181
+ windsurf: '.agents/skills/ux-expert/SKILL.md',
182
+ },
183
+ },
171
184
  ];
172
185
  export const SUPPORTED_AGENTS = [
173
186
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juancr11/sibu",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "CLI for setting up a local AI-augmented development workflow.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,5 @@
1
1
  {
2
- "templateVersion": "46",
2
+ "templateVersion": "47",
3
3
  "templates": {
4
4
  "AGENTS.md": {
5
5
  "version": "20",
@@ -54,10 +54,10 @@
54
54
  ]
55
55
  },
56
56
  "skills/technical-design-writer/SKILL.md": {
57
- "version": "8",
57
+ "version": "9",
58
58
  "description": "Mandatory technical design writer skill installed once at the shared .agents/skills workspace path.",
59
59
  "changes": [
60
- "Updates the technical design examples to refer to the Sibu command names instead of the old Echo branding."
60
+ "Requires UI-related technical designs to read ux.md and treat UX mockups as binding implementation goals instead of redesign targets."
61
61
  ]
62
62
  },
63
63
  "skills/typescript/SKILL.md": {
@@ -103,28 +103,24 @@
103
103
  ]
104
104
  },
105
105
  "skills/scrum-master-planner/SKILL.md": {
106
- "version": "2",
106
+ "version": "3",
107
107
  "description": "Mandatory Scrum planner skill for creating pragmatic Epics and User Stories from approved feature and technical design docs.",
108
108
  "changes": [
109
- "Moves Scrum User Stories into an Epic-local stories/ folder.",
110
- "Adds two-digit execution-order filename prefixes for User Stories, with shared numbers indicating parallelizable work."
109
+ "Requires UI-related Scrum planning to read ux.md and preserve binding mockups in Epics and User Stories."
111
110
  ]
112
111
  },
113
112
  "skills/ai-implementation-planner/SKILL.md": {
114
- "version": "4",
113
+ "version": "5",
115
114
  "description": "Mandatory AI implementation planner skill for turning one approved User Story into small, story-local implementation step files.",
116
115
  "changes": [
117
- "Changes AI implementation planner step files to use lowercase .md extensions.",
118
- "Updates the step-file format to use Markdown headings for Step, Goal, Scope, Files, and Done when sections."
116
+ "Requires UI-related implementation plans to read ux.md and turn binding mockups into implementation steps without redesigning them."
119
117
  ]
120
118
  },
121
119
  "skills/ai-implementation-plan-executor/SKILL.md": {
122
- "version": "5",
120
+ "version": "6",
123
121
  "description": "Mandatory AI implementation plan executor skill for implementing existing story implementation plans one reviewed step at a time.",
124
122
  "changes": [
125
- "Clarifies that missing story implementation plans must be created with the AI implementation planner before execution.",
126
- "Allows agents to begin the first unapproved implementation step immediately when a valid plan exists, while preserving review approval between steps.",
127
- "Clarifies that after user approval, agents should mark the step approved, commit it, and continue to the next step without another pre-implementation confirmation."
123
+ "Requires UI-related implementation execution to read ux.md and implement binding mockups without redesigning them."
128
124
  ]
129
125
  },
130
126
  "skills/ai-prompt-engineer-master/SKILL.md": {
@@ -133,6 +129,13 @@
133
129
  "changes": [
134
130
  "Adds an optional AI prompt engineering skill for projects that create, improve, evaluate, or maintain reusable prompts for AI models, agents, tools, and coding assistants."
135
131
  ]
132
+ },
133
+ "skills/ux-expert/SKILL.md": {
134
+ "version": "1",
135
+ "description": "Selectable UX expert skill for UI-changing features, responsive design, flows, states, accessibility, and binding mockups.",
136
+ "changes": [
137
+ "Adds an optional UX expert skill for UI-changing features, including implementation-ready UX guidance and binding mockups."
138
+ ]
136
139
  }
137
140
  }
138
141
  }
@@ -33,10 +33,15 @@ docs/features/<feature-slug>/epics/<epic-slug>/stories/<order>-<story-slug>.impl
33
33
  docs/features/<feature-slug>/epics/<epic-slug>/epic_brief.md
34
34
  docs/features/<feature-slug>/feature_brief.md
35
35
  docs/features/<feature-slug>/technical_design.md
36
+ docs/features/<feature-slug>/ux.md # when the story, step, or feature has UI impact
36
37
  ```
37
38
 
38
39
  Also read `docs/product-vision.md` when product fit, target user, scope boundaries, or success signals are ambiguous.
39
40
 
41
+ If the story, current step, or feature has UI impact and `docs/features/<feature-slug>/ux.md` is missing, stop and ask the user to create the UX spec with `ux-expert` before implementation.
42
+
43
+ When `ux.md` includes mockups, treat them as binding UI goals. Implementation must preserve the mockup structure, hierarchy, visible content, dominant interactions, major visual emphasis, and breakpoint-specific layout. Do not redesign the UI during execution; implement the approved UX and stop if technical constraints require a UX revision.
44
+
40
45
  Before changing code, read and apply the implementation skills required by the plan and repository routing:
41
46
 
42
47
  - always read and apply `clean-code`
@@ -30,10 +30,15 @@ docs/features/<feature-slug>/epics/<epic-slug>/stories/<order>-<story-slug>.md
30
30
  docs/features/<feature-slug>/epics/<epic-slug>/epic_brief.md
31
31
  docs/features/<feature-slug>/feature_brief.md
32
32
  docs/features/<feature-slug>/technical_design.md
33
+ docs/features/<feature-slug>/ux.md # when the story or feature has UI impact
33
34
  ```
34
35
 
35
36
  Also read `docs/product-vision.md` when product fit, target user, scope boundaries, or success signals are ambiguous.
36
37
 
38
+ If the story or feature has UI impact and `docs/features/<feature-slug>/ux.md` is missing, stop and ask the user to create the UX spec with `ux-expert` before implementation planning.
39
+
40
+ When `ux.md` includes mockups, treat them as binding UI goals. Implementation steps must preserve the mockup structure, hierarchy, visible content, dominant interactions, major visual emphasis, and breakpoint-specific layout. Do not redesign the UI in the implementation plan; plan code steps that implement the approved UX and stop if technical constraints require a UX revision.
41
+
37
42
  Before writing the step files, read and apply the required planning skills as source context:
38
43
 
39
44
  - always read and apply `clean-code`
@@ -18,10 +18,15 @@ Before planning, read:
18
18
  ```txt
19
19
  docs/features/<feature-slug>/feature_brief.md
20
20
  docs/features/<feature-slug>/technical_design.md
21
+ docs/features/<feature-slug>/ux.md # when the feature has UI impact
21
22
  ```
22
23
 
23
24
  Also read `docs/product-vision.md` when it exists and the planning decision depends on product fit, scope boundaries, user value, or success signals.
24
25
 
26
+ If the feature has UI impact and `docs/features/<feature-slug>/ux.md` is missing, stop and ask the user to create the UX spec with `ux-expert` before Scrum planning.
27
+
28
+ When `ux.md` includes mockups, treat them as binding UI goals. Epics and Stories must preserve the mockup structure, hierarchy, visible content, dominant interactions, major visual emphasis, and breakpoint-specific layout. Do not redesign the UI in Scrum planning; create delivery slices that implement the approved UX.
29
+
25
30
  ## Hard start rule
26
31
 
27
32
  Do not create Epics or User Stories if either the feature brief or technical design is missing.
@@ -15,9 +15,10 @@ Before writing, read:
15
15
 
16
16
  1. `docs/product-vision.md`
17
17
  2. the feature brief
18
- 3. `clean-code`
19
- 4. any selected architecture, language, or framework skills that apply
20
- 5. relevant existing repo files and flows
18
+ 3. `docs/features/<feature-slug>/ux.md` when the feature has UI impact
19
+ 4. `clean-code`
20
+ 5. any selected architecture, language, or framework skills that apply
21
+ 6. relevant existing repo files and flows
21
22
 
22
23
  Apply those inputs. Do not summarize them back into the technical design unless a specific implication changes the implementation.
23
24
 
@@ -25,7 +26,11 @@ Apply those inputs. Do not summarize them back into the technical design unless
25
26
 
26
27
  Require a Markdown feature brief. If the user only has a vague idea, route to `feature-brief-writer` first.
27
28
 
28
- If the feature has UI impact, use an existing UX artifact when available. If missing, note the UI uncertainty briefly instead of inventing UX.
29
+ If the feature has UI impact, require `docs/features/<feature-slug>/ux.md`. If it is missing, stop and ask the user to create the UX spec with `ux-expert` first.
30
+
31
+ ## UX binding rule
32
+
33
+ For UI-related features, `ux.md` is source context, not inspiration. If `ux.md` includes mockups, treat those mockups as binding UI goals for structure, hierarchy, visible content, dominant interactions, major visual emphasis, and breakpoint-specific layout. Do not redesign the mockups in the technical design. Translate them into implementation direction and call out only technical feasibility issues, missing states, or conflicts that require UX revision.
29
34
 
30
35
  ## Design stance
31
36
 
@@ -0,0 +1,93 @@
1
+ ---
2
+ name: ux-expert
3
+ description: Use this skill for UX/UI design after product definition when a feature has UI changes. Requires an approved Markdown product artifact (feature brief) that defines goals, scope, and acceptance criteria; if none exists, route to feature-brief-writer (and product-vision-writer if missing). Use for senior UX/UI direction, phone-first responsive design, breakpoint-specific layouts/components, user flows, information architecture, wireframes, concrete mockups, interaction states, accessibility, visual direction, creative UI concepts, and implementation-ready UI guidance.
4
+ ---
5
+
6
+ # ux-expert
7
+
8
+ Act as a senior UX/UI designer. Turn an approved product artifact into usable, expressive, phone-first, implementation-ready UI direction. Do not include code, file paths, architecture, or framework-specific guidance.
9
+
10
+ ## Required grounding
11
+
12
+ Read `docs/product-vision.md` and apply only relevant implications: target user, principles, voice, boundaries, trust expectations, success signal. Do not restate the full vision.
13
+
14
+ Require a product artifact such as `docs/features/<feature-slug>/feature_brief.md` that defines goal, scope, and acceptance criteria. If the user has only an idea, route to `feature-brief-writer` first. If the artifact says there is no UI impact, say so and do not invent UI work.
15
+
16
+ ## Mockup authority rule
17
+
18
+ For UI-changing features, the UX artifact must include concrete mockups for affected screens, states, and breakpoints. Mockups are the source of truth for structure, hierarchy, visible content, dominant interactions, and major visual emphasis. Downstream technical design, stories, implementation plans, and implementation must follow them unless this UX spec is explicitly revised.
19
+
20
+ If a materially affected state/breakpoint lacks a mockup, UX work is incomplete.
21
+
22
+ ## Confirmation behavior
23
+
24
+ Creating/updating the Markdown UX artifact is not a code change. Write it without pre-change confirmation when the target is clear and requested. Ask only when context is missing, the target is ambiguous, overwrite/destruction is possible, or code changes are required.
25
+
26
+ ## UX principles
27
+
28
+ Design for user experience first, component reuse second. Prefer clear task completion, strong hierarchy, obvious affordances/feedback/recovery, progressive disclosure, accessibility, resilient states, and distinctive but shippable UI. Avoid generic SaaS/page-builder layouts, decorative clarity loss, desktop-first thinking, product scope changes, and technical architecture decisions.
29
+
30
+ ## Phone-first responsive rule
31
+
32
+ Design phone first, then re-evaluate tablet and desktop as separate UX problems. Choose different layouts/components across breakpoints when that improves hierarchy, interaction, density, touch/pointer behavior, or content priority. Share components only when they remain the best experience.
33
+
34
+ ## Workflow
35
+
36
+ 1. Read product vision and feature brief.
37
+ 2. Identify affected UI surfaces and whether UI work is valid.
38
+ 3. Design phone-first flow, information architecture, and layout.
39
+ 4. Re-evaluate tablet and desktop independently.
40
+ 5. Define interaction states, failure/recovery behavior, accessibility requirements, and creative direction.
41
+ 6. Create concrete mockups for primary screens, affected breakpoints, and critical states.
42
+ 7. Write implementation-ready UX guidance only: flows, hierarchy, states, accessibility, visual direction.
43
+
44
+ ## Output location
45
+
46
+ Write to `docs/features/<feature-slug>/ux.md` using the feature artifact slug. Keep same-feature artifacts together; do not write UX specs in product, technical design, story, or implementation-plan files.
47
+
48
+ ## Mockup requirements
49
+
50
+ Mockups may be low fidelity but must be concrete and unambiguous: layout regions, visible content, hierarchy/emphasis, key controls, major state differences, and breakpoint changes. Use annotated text/box wireframes when enough. Show decisions that downstream implementation must not improvise.
51
+
52
+ ## Output format
53
+
54
+ Use only helpful sections from this shape:
55
+
56
+ ```md
57
+ # UX Spec: <Feature Name>
58
+
59
+ ## Input Product Artifact
60
+ ## Product Vision Implications
61
+ ## UX Intent
62
+ ## Affected Surfaces
63
+ ## Phone-First User Flow
64
+ ## Information Architecture
65
+ ## Phone Layout
66
+ ## Tablet Layout
67
+ ## Desktop Layout
68
+ ## Binding Mockups
69
+ ### Phone
70
+ ```text
71
+ <Annotated phone mockup>
72
+ ```
73
+
74
+ ### Tablet
75
+ ```text
76
+ <Annotated tablet mockup>
77
+ ```
78
+
79
+ ### Desktop
80
+ ```text
81
+ <Annotated desktop mockup>
82
+ ```
83
+ ## Breakpoint-Specific Component Strategy
84
+ ## Interaction States
85
+ ## Accessibility Requirements
86
+ ## Visual Direction
87
+ ## Creative Opportunities
88
+ ## Implementation Notes
89
+ ## UI Authority Rule
90
+ ## Open UX Questions
91
+ ```
92
+
93
+ The Binding Mockups section is authoritative for downstream work unless this UX spec is revised.