@juancr11/sibu 0.3.0 → 0.4.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/bin/shared/catalog.js +17 -4
- package/package.json +1 -1
- package/templates/AGENTS.md +4 -8
- package/templates/manifest.json +24 -23
- package/templates/skills/ai-implementation-plan-executor/SKILL.md +22 -13
- package/templates/skills/ai-implementation-planner/SKILL.md +8 -7
- package/templates/skills/ai-prompt-engineer-master/SKILL.md +1 -10
- package/templates/skills/feature-brief-writer/SKILL.md +3 -7
- package/templates/skills/product-vision-writer/SKILL.md +3 -15
- package/templates/skills/scrum-master-planner/SKILL.md +7 -6
- package/templates/skills/technical-design-writer/SKILL.md +11 -8
- package/templates/skills/ux-expert/SKILL.md +91 -0
package/bin/shared/catalog.js
CHANGED
|
@@ -103,7 +103,7 @@ export const SELECTABLE_FRAMEWORK_SKILLS = [
|
|
|
103
103
|
id: 'react',
|
|
104
104
|
name: 'React',
|
|
105
105
|
description: 'Install guidance for React components, props, state ownership, and component boundaries',
|
|
106
|
-
routingInstruction: 'For
|
|
106
|
+
routingInstruction: 'For React component changes involving responsibility, props, state ownership, or presentational/data-owning boundaries, use `react`.',
|
|
107
107
|
templateRelativePath: 'skills/react/SKILL.md',
|
|
108
108
|
targetRelativePathsByAgent: {
|
|
109
109
|
codex: '.agents/skills/react/SKILL.md',
|
|
@@ -116,7 +116,7 @@ export const SELECTABLE_FRAMEWORK_SKILLS = [
|
|
|
116
116
|
id: 'nextjs',
|
|
117
117
|
name: 'Next.js',
|
|
118
118
|
description: 'Install guidance for Next.js App Router and framework-specific files',
|
|
119
|
-
routingInstruction: 'For
|
|
119
|
+
routingInstruction: 'For Next.js App Router or framework-specific changes—`src/app/**`, pages, layouts, route handlers, loading/error/not-found files, metadata, or Server/Client boundaries—use `nextjs`.',
|
|
120
120
|
templateRelativePath: 'skills/nextjs/SKILL.md',
|
|
121
121
|
targetRelativePathsByAgent: {
|
|
122
122
|
codex: '.agents/skills/nextjs/SKILL.md',
|
|
@@ -131,7 +131,7 @@ export const SELECTABLE_ARCHITECTURE_SKILLS = [
|
|
|
131
131
|
id: 'ddd-hexagonal',
|
|
132
132
|
name: 'DDD + Hexagonal Architecture',
|
|
133
133
|
description: 'Install back-end architecture guidance for DDD, ports/adapters, and inward dependencies',
|
|
134
|
-
routingInstruction: 'For
|
|
134
|
+
routingInstruction: 'For backend features, refactors, bug fixes, persistence, external integrations, application/service boundaries, domain modeling, or architectural tradeoffs, use `ddd-hexagonal`.',
|
|
135
135
|
templateRelativePath: 'skills/architecture/ddd-hexagonal/SKILL.md',
|
|
136
136
|
targetRelativePathsByAgent: {
|
|
137
137
|
codex: '.agents/skills/ddd-hexagonal/SKILL.md',
|
|
@@ -159,7 +159,7 @@ export const SELECTABLE_WORKFLOW_SKILLS = [
|
|
|
159
159
|
id: 'ai-prompt-engineer-master',
|
|
160
160
|
name: 'AI Prompt Engineer Master',
|
|
161
161
|
description: 'Install guidance for creating, rewriting, optimizing, compressing, and evaluating AI prompts',
|
|
162
|
-
routingInstruction: 'For
|
|
162
|
+
routingInstruction: 'For prompt creation, rewriting, optimization, compression, evaluation, or reusable templates for AI models, agents, tools, coding assistants, or product workflows, use `ai-prompt-engineer-master`.',
|
|
163
163
|
templateRelativePath: 'skills/ai-prompt-engineer-master/SKILL.md',
|
|
164
164
|
targetRelativePathsByAgent: {
|
|
165
165
|
codex: '.agents/skills/ai-prompt-engineer-master/SKILL.md',
|
|
@@ -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 for UI-changing features, use `ux-expert`; downstream design, planning, and implementation must treat `docs/features/<feature-slug>/ux.md` mockups 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
package/templates/AGENTS.md
CHANGED
|
@@ -49,13 +49,9 @@ At the start of each session in this repository, run `sibu doctor` once before m
|
|
|
49
49
|
|
|
50
50
|
After `sibu doctor` finishes, guide the user based on the outcome:
|
|
51
51
|
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
52
|
+
- Healthy workflow: mention that the Sibu check passed and proceed.
|
|
53
|
+
- Missing `.sibu/state.json`: tell the user to run `sibu init` once before continuing.
|
|
54
|
+
- Missing, unrecorded, modified, or older managed files: tell the user to run `sibu sync` to review and repair them.
|
|
55
|
+
- Sibu unavailable: tell the user how to install or run Sibu before relying on template status.
|
|
56
56
|
|
|
57
57
|
Sibu records managed workflow file metadata in `.sibu/state.json`, including template versions, file hashes, selected agent support, and whether files are `managed`, `customized`, or `unmanaged`.
|
|
58
|
-
|
|
59
|
-
If `.sibu/state.json` is missing because Sibu has not been adopted in the project, ask the user to run `sibu init` once.
|
|
60
|
-
If workflow files may be missing, modified, unrecorded, or drifted from the recorded Sibu state, ask the user to run `sibu doctor` first.
|
|
61
|
-
If `sibu doctor` reports missing managed files, unrecorded expected files, local edits, or older templates, ask the user to run `sibu sync`.
|
package/templates/manifest.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"templateVersion": "
|
|
2
|
+
"templateVersion": "49",
|
|
3
3
|
"templates": {
|
|
4
4
|
"AGENTS.md": {
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "21",
|
|
6
6
|
"description": "Project-level agent instructions and Sibu maintenance guidance.",
|
|
7
7
|
"changes": [
|
|
8
|
-
"
|
|
9
|
-
"Clarifies that the executor should direct users to the AI implementation planner when a User Story has no implementation plan."
|
|
8
|
+
"Tightens Sibu maintenance outcome guidance while preserving startup health checks, safety, confirmation, routing, and workflow repair instructions."
|
|
10
9
|
]
|
|
11
10
|
},
|
|
12
11
|
".codex/config.toml": {
|
|
@@ -39,25 +38,24 @@
|
|
|
39
38
|
]
|
|
40
39
|
},
|
|
41
40
|
"skills/product-vision-writer/SKILL.md": {
|
|
42
|
-
"version": "
|
|
41
|
+
"version": "4",
|
|
43
42
|
"description": "Mandatory product vision writer skill installed once at the shared .agents/skills workspace path.",
|
|
44
43
|
"changes": [
|
|
45
|
-
"
|
|
44
|
+
"Compresses discovery and drafting guidance while preserving one-question-at-a-time discovery, output location, incomplete-input handling, and product-vision quality expectations."
|
|
46
45
|
]
|
|
47
46
|
},
|
|
48
47
|
"skills/feature-brief-writer/SKILL.md": {
|
|
49
|
-
"version": "
|
|
48
|
+
"version": "3",
|
|
50
49
|
"description": "Mandatory feature brief writer skill installed once at the shared .agents/skills workspace path.",
|
|
51
50
|
"changes": [
|
|
52
|
-
"
|
|
53
|
-
"Adds minimum context guidance so feature briefs are written only after the feature intent, target user or scenario, desired outcome, and rough MVP boundary are clear."
|
|
51
|
+
"Compresses feature-brief guidance while preserving product-vision grounding, vague-request stop behavior, minimum context requirements, and feature brief output location."
|
|
54
52
|
]
|
|
55
53
|
},
|
|
56
54
|
"skills/technical-design-writer/SKILL.md": {
|
|
57
|
-
"version": "
|
|
55
|
+
"version": "10",
|
|
58
56
|
"description": "Mandatory technical design writer skill installed once at the shared .agents/skills workspace path.",
|
|
59
57
|
"changes": [
|
|
60
|
-
"
|
|
58
|
+
"Compresses technical-design wording while preserving required grounding, UX binding, delegation boundaries, output location, and smallest-useful-design guidance."
|
|
61
59
|
]
|
|
62
60
|
},
|
|
63
61
|
"skills/typescript/SKILL.md": {
|
|
@@ -103,35 +101,38 @@
|
|
|
103
101
|
]
|
|
104
102
|
},
|
|
105
103
|
"skills/scrum-master-planner/SKILL.md": {
|
|
106
|
-
"version": "
|
|
104
|
+
"version": "4",
|
|
107
105
|
"description": "Mandatory Scrum planner skill for creating pragmatic Epics and User Stories from approved feature and technical design docs.",
|
|
108
106
|
"changes": [
|
|
109
|
-
"
|
|
110
|
-
"Adds two-digit execution-order filename prefixes for User Stories, with shared numbers indicating parallelizable work."
|
|
107
|
+
"Compresses Scrum planning guidance while preserving required inputs, pragmatic story splitting, output paths, sequencing rules, and UX mockup binding."
|
|
111
108
|
]
|
|
112
109
|
},
|
|
113
110
|
"skills/ai-implementation-planner/SKILL.md": {
|
|
114
|
-
"version": "
|
|
111
|
+
"version": "6",
|
|
115
112
|
"description": "Mandatory AI implementation planner skill for turning one approved User Story into small, story-local implementation step files.",
|
|
116
113
|
"changes": [
|
|
117
|
-
"
|
|
118
|
-
"Updates the step-file format to use Markdown headings for Step, Goal, Scope, Files, and Done when sections."
|
|
114
|
+
"Compresses implementation-planning guidance while preserving exact story input requirements, source context, output path conventions, step-file format, and plan-quality checks."
|
|
119
115
|
]
|
|
120
116
|
},
|
|
121
117
|
"skills/ai-implementation-plan-executor/SKILL.md": {
|
|
122
|
-
"version": "
|
|
118
|
+
"version": "8",
|
|
123
119
|
"description": "Mandatory AI implementation plan executor skill for implementing existing story implementation plans one reviewed step at a time.",
|
|
124
120
|
"changes": [
|
|
125
|
-
"
|
|
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."
|
|
121
|
+
"Adds context reuse guidance so story implementation plans load broad context once, then continue step-by-step using cached context unless scope, validation, or file changes require rereading."
|
|
128
122
|
]
|
|
129
123
|
},
|
|
130
124
|
"skills/ai-prompt-engineer-master/SKILL.md": {
|
|
131
|
-
"version": "
|
|
125
|
+
"version": "2",
|
|
132
126
|
"description": "Selectable AI prompt engineering skill for prompt creation, optimization, compression, and evaluation.",
|
|
133
127
|
"changes": [
|
|
134
|
-
"
|
|
128
|
+
"Compresses the prompt quality checklist while preserving quality-first token discipline, missing-context behavior, output pattern, and prompt verification guidance."
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"skills/ux-expert/SKILL.md": {
|
|
132
|
+
"version": "2",
|
|
133
|
+
"description": "Selectable UX expert skill for UI-changing features, responsive design, flows, states, accessibility, and binding mockups.",
|
|
134
|
+
"changes": [
|
|
135
|
+
"Compresses UX guidance while preserving product grounding, no-code boundary, phone-first design, output location, concrete mockup requirements, and binding downstream mockup authority."
|
|
135
136
|
]
|
|
136
137
|
}
|
|
137
138
|
}
|
|
@@ -7,9 +7,7 @@ description: Execute an existing ai-implementation-planner story implementation
|
|
|
7
7
|
|
|
8
8
|
## Purpose
|
|
9
9
|
|
|
10
|
-
Execute one existing story implementation plan, one ordered step file at a time, with human review between steps.
|
|
11
|
-
|
|
12
|
-
This skill owns implementation execution from an existing `.impl_plan/` folder. It does not create implementation plans, change story scope, or skip user review gates.
|
|
10
|
+
Execute one existing story implementation plan, one ordered step file at a time, with human review between steps. This skill owns execution from an existing `.impl_plan/` folder; it does not create plans, change story scope, or skip review gates.
|
|
13
11
|
|
|
14
12
|
## Required source context
|
|
15
13
|
|
|
@@ -25,7 +23,7 @@ or:
|
|
|
25
23
|
docs/features/<feature-slug>/epics/<epic-slug>/stories/<order>-<story-slug>.impl_plan/
|
|
26
24
|
```
|
|
27
25
|
|
|
28
|
-
Before
|
|
26
|
+
Before starting a story implementation plan, read once:
|
|
29
27
|
|
|
30
28
|
```txt
|
|
31
29
|
docs/features/<feature-slug>/epics/<epic-slug>/stories/<order>-<story-slug>.md
|
|
@@ -33,11 +31,16 @@ docs/features/<feature-slug>/epics/<epic-slug>/stories/<order>-<story-slug>.impl
|
|
|
33
31
|
docs/features/<feature-slug>/epics/<epic-slug>/epic_brief.md
|
|
34
32
|
docs/features/<feature-slug>/feature_brief.md
|
|
35
33
|
docs/features/<feature-slug>/technical_design.md
|
|
34
|
+
docs/features/<feature-slug>/ux.md # when the story, step, or feature has UI impact
|
|
36
35
|
```
|
|
37
36
|
|
|
38
37
|
Also read `docs/product-vision.md` when product fit, target user, scope boundaries, or success signals are ambiguous.
|
|
39
38
|
|
|
40
|
-
|
|
39
|
+
If the story, any 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.
|
|
40
|
+
|
|
41
|
+
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.
|
|
42
|
+
|
|
43
|
+
Before the first implementation step that changes code, read and apply the implementation skills required by the plan and repository routing:
|
|
41
44
|
|
|
42
45
|
- always read and apply `clean-code`
|
|
43
46
|
- read and apply architecture skills when relevant, such as `command-pattern` or `ddd-hexagonal`
|
|
@@ -46,20 +49,26 @@ Before changing code, read and apply the implementation skills required by the p
|
|
|
46
49
|
|
|
47
50
|
Inspect existing code, tests, scripts, and docs only as needed for the current step.
|
|
48
51
|
|
|
49
|
-
##
|
|
52
|
+
## Context reuse rule
|
|
50
53
|
|
|
51
|
-
|
|
54
|
+
At the start of a story implementation plan, read all required source context, relevant implementation skills, and all ordered step files once. Build a concise execution context summary and rely on it for the rest of the story.
|
|
52
55
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
After each approved step, do not reread unchanged broad context before continuing. For the next step, inspect only:
|
|
57
|
+
|
|
58
|
+
- the next step file if it was not already read
|
|
59
|
+
- files changed by previous steps when needed
|
|
60
|
+
- validation output
|
|
61
|
+
- current `git status` and relevant diffs
|
|
62
|
+
|
|
63
|
+
Reread broad source context only when scope changes, validation fails in a way that requires it, required context was missing, relevant source files changed outside the plan, or the user asks to reconsider direction.
|
|
64
|
+
|
|
65
|
+
## Hard start rule
|
|
57
66
|
|
|
58
|
-
If the
|
|
67
|
+
If the provided User Story has no matching `.impl_plan/`, or the provided `.impl_plan/` folder is missing, empty, or has no ordered `.md` step files:
|
|
59
68
|
|
|
60
69
|
1. Stop.
|
|
61
70
|
2. Tell the user the implementation plan is missing or invalid.
|
|
62
|
-
3. Instruct the user to use `templates/skills/ai-implementation-planner/SKILL.md` to create or repair
|
|
71
|
+
3. Instruct the user to use `templates/skills/ai-implementation-planner/SKILL.md` to create or repair it first.
|
|
63
72
|
4. Do not infer steps from the story or technical design.
|
|
64
73
|
|
|
65
74
|
If required source context is missing:
|
|
@@ -7,9 +7,7 @@ description: Turn one approved User Story Markdown file into LLM-sized implement
|
|
|
7
7
|
|
|
8
8
|
## Purpose
|
|
9
9
|
|
|
10
|
-
Turn one approved User Story into
|
|
11
|
-
|
|
12
|
-
This skill owns implementation planning for one story at a time. It does not own product scope, technical design decisions, Scrum planning, or code implementation.
|
|
10
|
+
Turn one approved User Story into concrete Markdown step files an AI coding agent can execute safely and completely. This skill owns implementation planning for one story at a time, not product scope, technical design decisions, Scrum planning, or code implementation.
|
|
13
11
|
|
|
14
12
|
## Required input
|
|
15
13
|
|
|
@@ -30,10 +28,15 @@ docs/features/<feature-slug>/epics/<epic-slug>/stories/<order>-<story-slug>.md
|
|
|
30
28
|
docs/features/<feature-slug>/epics/<epic-slug>/epic_brief.md
|
|
31
29
|
docs/features/<feature-slug>/feature_brief.md
|
|
32
30
|
docs/features/<feature-slug>/technical_design.md
|
|
31
|
+
docs/features/<feature-slug>/ux.md # when the story or feature has UI impact
|
|
33
32
|
```
|
|
34
33
|
|
|
35
34
|
Also read `docs/product-vision.md` when product fit, target user, scope boundaries, or success signals are ambiguous.
|
|
36
35
|
|
|
36
|
+
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.
|
|
37
|
+
|
|
38
|
+
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.
|
|
39
|
+
|
|
37
40
|
Before writing the step files, read and apply the required planning skills as source context:
|
|
38
41
|
|
|
39
42
|
- always read and apply `clean-code`
|
|
@@ -88,9 +91,7 @@ File naming rules:
|
|
|
88
91
|
|
|
89
92
|
## Planning rules
|
|
90
93
|
|
|
91
|
-
Create pragmatic implementation step files, not a second technical design.
|
|
92
|
-
|
|
93
|
-
Each step file must be a concrete implementation step, not a discovery, scope-confirmation, or generic review step. The skill performs source reading and targeted inspection before writing the step files; each step tells the AI what to change, where to change it, how to implement it at a high level, and how to know that step is done.
|
|
94
|
+
Create pragmatic implementation step files, not a second technical design. Each step must be concrete—not discovery, scope confirmation, or generic review—and tell the AI what to change, where, at what high level, and how to know it is done.
|
|
94
95
|
|
|
95
96
|
Do:
|
|
96
97
|
|
|
@@ -139,7 +140,7 @@ From the technical design, identify:
|
|
|
139
140
|
|
|
140
141
|
### 3. Inspect the repository narrowly
|
|
141
142
|
|
|
142
|
-
Inspect only
|
|
143
|
+
Inspect only files and commands needed to make the checklist actionable, such as:
|
|
143
144
|
|
|
144
145
|
- existing feature folders or handlers related to the story
|
|
145
146
|
- entrypoints or command wiring mentioned by the technical design
|
|
@@ -48,16 +48,7 @@ Do not trade quality away for fewer tokens. First define the quality bar, then f
|
|
|
48
48
|
|
|
49
49
|
## Prompt quality checklist
|
|
50
50
|
|
|
51
|
-
A strong prompt usually has:
|
|
52
|
-
|
|
53
|
-
- **Role or perspective** only when it changes behavior.
|
|
54
|
-
- **Task** stated as a concrete outcome.
|
|
55
|
-
- **Context** limited to information the model needs.
|
|
56
|
-
- **Constraints** that prevent real failures.
|
|
57
|
-
- **Output format** specific enough for the consumer.
|
|
58
|
-
- **Missing-context behavior** so the model does not invent facts.
|
|
59
|
-
- **Tone/style** only when user-facing quality depends on it.
|
|
60
|
-
- **Validation criteria** for important workflows.
|
|
51
|
+
A strong prompt usually has: role only when useful, a concrete task, necessary context, failure-preventing constraints, sufficient output format, missing-context behavior, user-facing tone only when needed, and validation criteria for important workflows.
|
|
61
52
|
|
|
62
53
|
## Token discipline rules
|
|
63
54
|
|
|
@@ -7,9 +7,7 @@ description: Use this skill to define business-level feature briefs that stay lo
|
|
|
7
7
|
|
|
8
8
|
## Purpose
|
|
9
9
|
|
|
10
|
-
Create concise feature briefs that explain what a feature is, why it matters, who it serves, and how it follows
|
|
11
|
-
|
|
12
|
-
Every feature shaped with this skill must stay loyal to `docs/product-vision.md`: it should support the product's purpose, fit its intended audience, respect its boundaries, and move in the same direction as its success signals.
|
|
10
|
+
Create concise feature briefs that explain what a feature is, why it matters, who it serves, and how it follows `docs/product-vision.md`: purpose, audience, boundaries, and success signals.
|
|
13
11
|
|
|
14
12
|
This skill owns the product/business shape of a feature. It does not own UI interaction design, technical architecture, implementation plans, data models, APIs, or task breakdowns.
|
|
15
13
|
|
|
@@ -92,9 +90,7 @@ Do not ask the user to answer a large questionnaire all at once. Keep the interv
|
|
|
92
90
|
|
|
93
91
|
### 3. Gather the minimum required feature context
|
|
94
92
|
|
|
95
|
-
Ask only for missing information that materially affects the brief.
|
|
96
|
-
|
|
97
|
-
Clarify:
|
|
93
|
+
Ask only for missing information that materially affects the brief. Use as few questions as possible, one at a time when underdefined. Clarify:
|
|
98
94
|
|
|
99
95
|
- what feature or capability the user wants
|
|
100
96
|
- what the user means by broad labels such as MVP, onboarding, sync, analytics, or automation
|
|
@@ -106,7 +102,7 @@ Clarify:
|
|
|
106
102
|
- what should stay out of scope
|
|
107
103
|
- known constraints, risks, or open decisions
|
|
108
104
|
|
|
109
|
-
|
|
105
|
+
Draft only once feature intent, target user/scenario, desired outcome, and rough MVP boundary are clear enough to avoid invention.
|
|
110
106
|
|
|
111
107
|
### 4. Write a business-level brief
|
|
112
108
|
|
|
@@ -15,13 +15,7 @@ Default output path: `docs/product-vision.md`.
|
|
|
15
15
|
|
|
16
16
|
### 1. Start with discovery, not drafting
|
|
17
17
|
|
|
18
|
-
Ask focused questions before writing
|
|
19
|
-
|
|
20
|
-
Ask one question at a time. Wait for the user's answer before asking the next discovery question.
|
|
21
|
-
|
|
22
|
-
Prefer the fewest questions that can produce a useful document. Ask follow-ups only when an answer materially changes the document or when a critical input is missing.
|
|
23
|
-
|
|
24
|
-
Cover these areas over the course of the interview:
|
|
18
|
+
Ask focused questions before writing unless the user already provided enough source material. Ask one question at a time and use the fewest questions that can produce a useful document. Cover these areas over the interview:
|
|
25
19
|
|
|
26
20
|
- **Product essence:** What is the product? What should it help people do, feel, or become?
|
|
27
21
|
- **Current context:** Is this a new concept, an active project, or an existing product?
|
|
@@ -52,9 +46,7 @@ If the user's answers conflict, resolve the conflict explicitly in the draft by
|
|
|
52
46
|
|
|
53
47
|
### 3. Draft the product vision document
|
|
54
48
|
|
|
55
|
-
Write in Markdown
|
|
56
|
-
|
|
57
|
-
Recommended structure:
|
|
49
|
+
Write in Markdown with clear headings, short paragraphs, and useful bullets. Recommended structure:
|
|
58
50
|
|
|
59
51
|
```markdown
|
|
60
52
|
# <Product Name> Product Vision
|
|
@@ -107,11 +99,7 @@ Use the user's own language when it is vivid or revealing. Improve clarity witho
|
|
|
107
99
|
|
|
108
100
|
### 5. Handle incomplete inputs
|
|
109
101
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
If the user has an existing product, make the document reflect what the product is today and what it must protect or change.
|
|
113
|
-
|
|
114
|
-
If there is not enough context to write responsibly, ask the smallest possible follow-up question set instead of inventing details.
|
|
102
|
+
For rough ideas, produce a sharper first-pass vision with clear assumptions. For existing products, reflect what the product is today and what it must protect or change. If context is still insufficient, ask the smallest useful follow-up instead of inventing details.
|
|
115
103
|
|
|
116
104
|
### 6. Save the document
|
|
117
105
|
|
|
@@ -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.
|
|
@@ -59,11 +64,7 @@ Rules:
|
|
|
59
64
|
|
|
60
65
|
## Planning rule
|
|
61
66
|
|
|
62
|
-
Create the smallest useful planning structure.
|
|
63
|
-
|
|
64
|
-
If one Epic with one User Story fully captures the work, create one Epic and one User Story. Add more Epics or User Stories only when there are meaningfully distinct outcomes, delivery slices, risks, dependencies, validation paths, or contributor ownership boundaries.
|
|
65
|
-
|
|
66
|
-
Avoid Agile theater. Do not create multiple Epics or Stories just because Scrum artifacts usually appear in groups.
|
|
67
|
+
Create the smallest useful planning structure. Use one Epic and one User Story when that fully captures the work. Add more only for distinct outcomes, delivery slices, risks, dependencies, validation paths, or contributor ownership boundaries. Avoid Agile theater.
|
|
67
68
|
|
|
68
69
|
## Workflow
|
|
69
70
|
|
|
@@ -134,7 +135,7 @@ Adapt headings only when it improves clarity. Keep the Epic brief short.
|
|
|
134
135
|
|
|
135
136
|
Within each Epic, decide the order of execution before writing User Story files. Use the lowest practical sequence number for the first story that should be implemented, then increment only when later stories depend on earlier work. If two or more stories can be developed at the same time, give them the same order number.
|
|
136
137
|
|
|
137
|
-
Each User Story should be independently understandable and
|
|
138
|
+
Each User Story should be independently understandable and reviewable.
|
|
138
139
|
|
|
139
140
|
Use this structure:
|
|
140
141
|
|
|
@@ -5,9 +5,7 @@ description: Use this skill to turn an approved feature brief into a concise, im
|
|
|
5
5
|
|
|
6
6
|
# technical-design-writer
|
|
7
7
|
|
|
8
|
-
Write the smallest useful technical design doc for an approved feature.
|
|
9
|
-
|
|
10
|
-
The doc should help a human say, “cool, I understand the implementation direction,” and help a later coding agent say, “nice, I know what to do next.” Avoid filler, generic engineering advice, and restating other skills.
|
|
8
|
+
Write the smallest useful technical design doc for an approved feature: enough for a human to understand the implementation direction and a later coding agent to know what to do next. Avoid filler, generic engineering advice, and restating other skills.
|
|
11
9
|
|
|
12
10
|
## Grounding
|
|
13
11
|
|
|
@@ -15,9 +13,10 @@ Before writing, read:
|
|
|
15
13
|
|
|
16
14
|
1. `docs/product-vision.md`
|
|
17
15
|
2. the feature brief
|
|
18
|
-
3. `
|
|
19
|
-
4.
|
|
20
|
-
5.
|
|
16
|
+
3. `docs/features/<feature-slug>/ux.md` when the feature has UI impact
|
|
17
|
+
4. `clean-code`
|
|
18
|
+
5. any selected architecture, language, or framework skills that apply
|
|
19
|
+
6. relevant existing repo files and flows
|
|
21
20
|
|
|
22
21
|
Apply those inputs. Do not summarize them back into the technical design unless a specific implication changes the implementation.
|
|
23
22
|
|
|
@@ -25,7 +24,11 @@ Apply those inputs. Do not summarize them back into the technical design unless
|
|
|
25
24
|
|
|
26
25
|
Require a Markdown feature brief. If the user only has a vague idea, route to `feature-brief-writer` first.
|
|
27
26
|
|
|
28
|
-
If the feature has UI impact,
|
|
27
|
+
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.
|
|
28
|
+
|
|
29
|
+
## UX binding rule
|
|
30
|
+
|
|
31
|
+
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
32
|
|
|
30
33
|
## Design stance
|
|
31
34
|
|
|
@@ -78,7 +81,7 @@ Use the same kebab-case feature slug as the feature brief.
|
|
|
78
81
|
|
|
79
82
|
## Output format
|
|
80
83
|
|
|
81
|
-
Use this structure as a starting point
|
|
84
|
+
Use this structure as a starting point. Delete sections that do not add value.
|
|
82
85
|
|
|
83
86
|
```md
|
|
84
87
|
# Technical Design: <Feature Name>
|
|
@@ -0,0 +1,91 @@
|
|
|
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 revised. UX work is incomplete if a materially affected state/breakpoint lacks a mockup.
|
|
19
|
+
|
|
20
|
+
## Confirmation behavior
|
|
21
|
+
|
|
22
|
+
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.
|
|
23
|
+
|
|
24
|
+
## UX principles
|
|
25
|
+
|
|
26
|
+
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.
|
|
27
|
+
|
|
28
|
+
## Phone-first responsive rule
|
|
29
|
+
|
|
30
|
+
Design phone first, then re-evaluate tablet and desktop separately. Choose different layouts/components across breakpoints when they improve hierarchy, interaction, density, touch/pointer behavior, or content priority. Share components only when they remain the best experience.
|
|
31
|
+
|
|
32
|
+
## Workflow
|
|
33
|
+
|
|
34
|
+
1. Read product vision and feature brief.
|
|
35
|
+
2. Identify affected UI surfaces and whether UI work is valid.
|
|
36
|
+
3. Design phone-first flow, information architecture, and layout.
|
|
37
|
+
4. Re-evaluate tablet and desktop independently.
|
|
38
|
+
5. Define interaction states, failure/recovery behavior, accessibility requirements, and creative direction.
|
|
39
|
+
6. Create concrete mockups for primary screens, affected breakpoints, and critical states.
|
|
40
|
+
7. Write implementation-ready UX guidance only: flows, hierarchy, states, accessibility, visual direction.
|
|
41
|
+
|
|
42
|
+
## Output location
|
|
43
|
+
|
|
44
|
+
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.
|
|
45
|
+
|
|
46
|
+
## Mockup requirements
|
|
47
|
+
|
|
48
|
+
Mockups may be low fidelity but must be concrete: layout regions, visible content, hierarchy/emphasis, key controls, major state differences, and breakpoint changes. Use annotated text/box wireframes when enough. Show decisions downstream implementation must not improvise.
|
|
49
|
+
|
|
50
|
+
## Output format
|
|
51
|
+
|
|
52
|
+
Use only helpful sections from this shape:
|
|
53
|
+
|
|
54
|
+
```md
|
|
55
|
+
# UX Spec: <Feature Name>
|
|
56
|
+
|
|
57
|
+
## Input Product Artifact
|
|
58
|
+
## Product Vision Implications
|
|
59
|
+
## UX Intent
|
|
60
|
+
## Affected Surfaces
|
|
61
|
+
## Phone-First User Flow
|
|
62
|
+
## Information Architecture
|
|
63
|
+
## Phone Layout
|
|
64
|
+
## Tablet Layout
|
|
65
|
+
## Desktop Layout
|
|
66
|
+
## Binding Mockups
|
|
67
|
+
### Phone
|
|
68
|
+
```text
|
|
69
|
+
<Annotated phone mockup>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Tablet
|
|
73
|
+
```text
|
|
74
|
+
<Annotated tablet mockup>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Desktop
|
|
78
|
+
```text
|
|
79
|
+
<Annotated desktop mockup>
|
|
80
|
+
```
|
|
81
|
+
## Breakpoint-Specific Component Strategy
|
|
82
|
+
## Interaction States
|
|
83
|
+
## Accessibility Requirements
|
|
84
|
+
## Visual Direction
|
|
85
|
+
## Creative Opportunities
|
|
86
|
+
## Implementation Notes
|
|
87
|
+
## UI Authority Rule
|
|
88
|
+
## Open UX Questions
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
The Binding Mockups section is authoritative for downstream work unless this UX spec is revised.
|