@juancr11/sibu 0.4.0 → 0.4.2

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.
@@ -1,5 +1,8 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
1
4
  export const SIBU_PACKAGE_NAME = '@juancr11/sibu';
2
- export const SIBU_VERSION = '0.1.0';
5
+ export const SIBU_VERSION = readPackageVersion();
3
6
  export const STATE_RELATIVE_PATH = '.sibu/state.json';
4
7
  export const NPM_VERSION_LOOKUP_MODE_ENV = 'SIBU_NPM_LOOKUP_MODE';
5
8
  export const NPM_VERSION_OVERRIDE_ENV = 'SIBU_NPM_LATEST_VERSION';
@@ -103,7 +106,7 @@ export const SELECTABLE_FRAMEWORK_SKILLS = [
103
106
  id: 'react',
104
107
  name: 'React',
105
108
  description: 'Install guidance for React components, props, state ownership, and component boundaries',
106
- routingInstruction: 'For tasks that create or change React components, component responsibility, props, state ownership, or presentational vs data-owning boundaries, use `react`.',
109
+ routingInstruction: 'For React component changes involving responsibility, props, state ownership, or presentational/data-owning boundaries, use `react`.',
107
110
  templateRelativePath: 'skills/react/SKILL.md',
108
111
  targetRelativePathsByAgent: {
109
112
  codex: '.agents/skills/react/SKILL.md',
@@ -116,7 +119,7 @@ export const SELECTABLE_FRAMEWORK_SKILLS = [
116
119
  id: 'nextjs',
117
120
  name: 'Next.js',
118
121
  description: 'Install guidance for Next.js App Router and framework-specific files',
119
- routingInstruction: 'For tasks that change Next.js App Router or framework-specific files, including `src/app/**`, pages, layouts, route handlers, loading/error/not-found files, metadata, or Server/Client Component boundaries, use `nextjs`.',
122
+ 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 boundariesuse `nextjs`.',
120
123
  templateRelativePath: 'skills/nextjs/SKILL.md',
121
124
  targetRelativePathsByAgent: {
122
125
  codex: '.agents/skills/nextjs/SKILL.md',
@@ -131,7 +134,7 @@ export const SELECTABLE_ARCHITECTURE_SKILLS = [
131
134
  id: 'ddd-hexagonal',
132
135
  name: 'DDD + Hexagonal Architecture',
133
136
  description: 'Install back-end architecture guidance for DDD, ports/adapters, and inward dependencies',
134
- routingInstruction: 'For any back-end work, use `ddd-hexagonal`. This includes new features, refactors, bug fixes, persistence, external integrations, application/service boundaries, domain modeling, and architectural tradeoffs.',
137
+ routingInstruction: 'For backend features, refactors, bug fixes, persistence, external integrations, application/service boundaries, domain modeling, or architectural tradeoffs, use `ddd-hexagonal`.',
135
138
  templateRelativePath: 'skills/architecture/ddd-hexagonal/SKILL.md',
136
139
  targetRelativePathsByAgent: {
137
140
  codex: '.agents/skills/ddd-hexagonal/SKILL.md',
@@ -159,7 +162,7 @@ export const SELECTABLE_WORKFLOW_SKILLS = [
159
162
  id: 'ai-prompt-engineer-master',
160
163
  name: 'AI Prompt Engineer Master',
161
164
  description: 'Install guidance for creating, rewriting, optimizing, compressing, and evaluating AI prompts',
162
- routingInstruction: 'For requests to create, rewrite, optimize, compress, evaluate, or systematize prompts for AI models, agents, tools, coding assistants, product workflows, or reusable prompt templates, use `ai-prompt-engineer-master`.',
165
+ 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
166
  templateRelativePath: 'skills/ai-prompt-engineer-master/SKILL.md',
164
167
  targetRelativePathsByAgent: {
165
168
  codex: '.agents/skills/ai-prompt-engineer-master/SKILL.md',
@@ -172,7 +175,7 @@ export const SELECTABLE_WORKFLOW_SKILLS = [
172
175
  id: 'ux-expert',
173
176
  name: 'UX Expert',
174
177
  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.',
178
+ 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
179
  templateRelativePath: 'skills/ux-expert/SKILL.md',
177
180
  targetRelativePathsByAgent: {
178
181
  codex: '.agents/skills/ux-expert/SKILL.md',
@@ -229,3 +232,14 @@ export function resolveSelectableSkillById(skillId) {
229
232
  }
230
233
  return { ok: false, message: `Unknown skill \`${skillId}\`. Run \`sibu skills list\` to see available skills.` };
231
234
  }
235
+ function readPackageVersion() {
236
+ const packageJsonPath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..', 'package.json');
237
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
238
+ if (!isPackageJsonWithVersion(packageJson)) {
239
+ throw new Error(`Could not read Sibu version from ${packageJsonPath}.`);
240
+ }
241
+ return packageJson.version;
242
+ }
243
+ function isPackageJsonWithVersion(value) {
244
+ return Boolean(value && typeof value === 'object' && typeof value.version === 'string');
245
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juancr11/sibu",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "CLI for setting up a local AI-augmented development workflow.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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
- - If the workflow is healthy, mention that the Sibu check passed and proceed with the requested work.
53
- - If `.sibu/state.json` is missing because the project has not been initialized, tell the user to run `sibu init` once before continuing.
54
- - If managed workflow files are missing, unrecorded, modified, or generated from older templates, tell the user to run `sibu sync` to review and repair them.
55
- - If `sibu doctor` cannot run because Sibu is unavailable, tell the user how to install or run Sibu for this project before relying on template status.
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`.
@@ -1,12 +1,11 @@
1
1
  {
2
- "templateVersion": "47",
2
+ "templateVersion": "49",
3
3
  "templates": {
4
4
  "AGENTS.md": {
5
- "version": "20",
5
+ "version": "21",
6
6
  "description": "Project-level agent instructions and Sibu maintenance guidance.",
7
7
  "changes": [
8
- "Routes User Story implementation requests to the AI implementation plan executor, even when the story plan may still be missing.",
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": "3",
41
+ "version": "4",
43
42
  "description": "Mandatory product vision writer skill installed once at the shared .agents/skills workspace path.",
44
43
  "changes": [
45
- "Changes product vision discovery to ask one question at a time so users can shape the vision through a focused interview instead of answering a large batch up front."
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": "2",
48
+ "version": "3",
50
49
  "description": "Mandatory feature brief writer skill installed once at the shared .agents/skills workspace path.",
51
50
  "changes": [
52
- "Clarifies that agents must not draft feature briefs from vague feature requests and should ask one focused discovery question at a time until the feature intent is clear.",
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": "9",
55
+ "version": "10",
58
56
  "description": "Mandatory technical design writer skill installed once at the shared .agents/skills workspace path.",
59
57
  "changes": [
60
- "Requires UI-related technical designs to read ux.md and treat UX mockups as binding implementation goals instead of redesign targets."
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,38 +101,38 @@
103
101
  ]
104
102
  },
105
103
  "skills/scrum-master-planner/SKILL.md": {
106
- "version": "3",
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
- "Requires UI-related Scrum planning to read ux.md and preserve binding mockups in Epics and User Stories."
107
+ "Compresses Scrum planning guidance while preserving required inputs, pragmatic story splitting, output paths, sequencing rules, and UX mockup binding."
110
108
  ]
111
109
  },
112
110
  "skills/ai-implementation-planner/SKILL.md": {
113
- "version": "5",
111
+ "version": "6",
114
112
  "description": "Mandatory AI implementation planner skill for turning one approved User Story into small, story-local implementation step files.",
115
113
  "changes": [
116
- "Requires UI-related implementation plans to read ux.md and turn binding mockups into implementation steps without redesigning them."
114
+ "Compresses implementation-planning guidance while preserving exact story input requirements, source context, output path conventions, step-file format, and plan-quality checks."
117
115
  ]
118
116
  },
119
117
  "skills/ai-implementation-plan-executor/SKILL.md": {
120
- "version": "6",
118
+ "version": "8",
121
119
  "description": "Mandatory AI implementation plan executor skill for implementing existing story implementation plans one reviewed step at a time.",
122
120
  "changes": [
123
- "Requires UI-related implementation execution to read ux.md and implement binding mockups without redesigning them."
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."
124
122
  ]
125
123
  },
126
124
  "skills/ai-prompt-engineer-master/SKILL.md": {
127
- "version": "1",
125
+ "version": "2",
128
126
  "description": "Selectable AI prompt engineering skill for prompt creation, optimization, compression, and evaluation.",
129
127
  "changes": [
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."
128
+ "Compresses the prompt quality checklist while preserving quality-first token discipline, missing-context behavior, output pattern, and prompt verification guidance."
131
129
  ]
132
130
  },
133
131
  "skills/ux-expert/SKILL.md": {
134
- "version": "1",
132
+ "version": "2",
135
133
  "description": "Selectable UX expert skill for UI-changing features, responsive design, flows, states, accessibility, and binding mockups.",
136
134
  "changes": [
137
- "Adds an optional UX expert skill for UI-changing features, including implementation-ready UX guidance and binding mockups."
135
+ "Compresses UX guidance while preserving product grounding, no-code boundary, phone-first design, output location, concrete mockup requirements, and binding downstream mockup authority."
138
136
  ]
139
137
  }
140
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 implementing any step, read:
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
@@ -38,11 +36,11 @@ docs/features/<feature-slug>/ux.md # when the story, step, or feature has UI im
38
36
 
39
37
  Also read `docs/product-vision.md` when product fit, target user, scope boundaries, or success signals are ambiguous.
40
38
 
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.
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.
42
40
 
43
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.
44
42
 
45
- Before changing code, read and apply the implementation skills required by the plan and repository routing:
43
+ Before the first implementation step that changes code, read and apply the implementation skills required by the plan and repository routing:
46
44
 
47
45
  - always read and apply `clean-code`
48
46
  - read and apply architecture skills when relevant, such as `command-pattern` or `ddd-hexagonal`
@@ -51,20 +49,26 @@ Before changing code, read and apply the implementation skills required by the p
51
49
 
52
50
  Inspect existing code, tests, scripts, and docs only as needed for the current step.
53
51
 
54
- ## Hard start rule
52
+ ## Context reuse rule
55
53
 
56
- If the user provides a User Story file and the matching `.impl_plan/` folder does not exist, is empty, or has no ordered `.md` step files:
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.
57
55
 
58
- 1. Stop.
59
- 2. Tell the user the implementation plan is missing.
60
- 3. Instruct the user to use `templates/skills/ai-implementation-planner/SKILL.md` to create the implementation plan first.
61
- 4. Do not infer steps from the story or technical design.
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
62
66
 
63
- If the user provides an `.impl_plan/` folder and it does not exist, is empty, or has no ordered `.md` step files:
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:
64
68
 
65
69
  1. Stop.
66
70
  2. Tell the user the implementation plan is missing or invalid.
67
- 3. Instruct the user to use `templates/skills/ai-implementation-planner/SKILL.md` to create or repair the implementation plan first.
71
+ 3. Instruct the user to use `templates/skills/ai-implementation-planner/SKILL.md` to create or repair it first.
68
72
  4. Do not infer steps from the story or technical design.
69
73
 
70
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 a set of concrete Markdown step files an AI coding agent can execute to complete the story safely and completely.
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
 
@@ -93,9 +91,7 @@ File naming rules:
93
91
 
94
92
  ## Planning rules
95
93
 
96
- Create pragmatic implementation step files, not a second technical design.
97
-
98
- 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.
99
95
 
100
96
  Do:
101
97
 
@@ -144,7 +140,7 @@ From the technical design, identify:
144
140
 
145
141
  ### 3. Inspect the repository narrowly
146
142
 
147
- Inspect only the files and commands needed to make the checklist actionable. Useful targets include:
143
+ Inspect only files and commands needed to make the checklist actionable, such as:
148
144
 
149
145
  - existing feature folders or handlers related to the story
150
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 the product vision required by this skill.
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. Prefer the fewest questions needed to produce a useful document, but ask as many one-at-a-time questions as needed when the feature is underdefined.
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
- Only move to drafting once the feature intent, target user or scenario, desired outcome, and rough MVP boundary are clear enough to avoid inventing the product direction.
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 the document unless the user has already provided enough source material.
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. Use clear headings, short paragraphs, and bullets where they improve readability.
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
- If the user has only a rough idea, produce a sharper first-pass vision with clearly stated assumptions.
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
 
@@ -64,11 +64,7 @@ Rules:
64
64
 
65
65
  ## Planning rule
66
66
 
67
- Create the smallest useful planning structure.
68
-
69
- 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.
70
-
71
- 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.
72
68
 
73
69
  ## Workflow
74
70
 
@@ -139,7 +135,7 @@ Adapt headings only when it improves clarity. Keep the Epic brief short.
139
135
 
140
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.
141
137
 
142
- Each User Story should be independently understandable and should represent a reviewable slice of work.
138
+ Each User Story should be independently understandable and reviewable.
143
139
 
144
140
  Use this structure:
145
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
 
@@ -83,7 +81,7 @@ Use the same kebab-case feature slug as the feature brief.
83
81
 
84
82
  ## Output format
85
83
 
86
- Use this structure as a starting point, not a contract. Delete sections that do not add value.
84
+ Use this structure as a starting point. Delete sections that do not add value.
87
85
 
88
86
  ```md
89
87
  # Technical Design: <Feature Name>
@@ -15,9 +15,7 @@ Require a product artifact such as `docs/features/<feature-slug>/feature_brief.m
15
15
 
16
16
  ## Mockup authority rule
17
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.
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.
21
19
 
22
20
  ## Confirmation behavior
23
21
 
@@ -29,7 +27,7 @@ Design for user experience first, component reuse second. Prefer clear task comp
29
27
 
30
28
  ## Phone-first responsive rule
31
29
 
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.
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.
33
31
 
34
32
  ## Workflow
35
33
 
@@ -47,7 +45,7 @@ Write to `docs/features/<feature-slug>/ux.md` using the feature artifact slug. K
47
45
 
48
46
  ## Mockup requirements
49
47
 
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.
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.
51
49
 
52
50
  ## Output format
53
51