@jspg-ai/coding-bb 0.0.3-beta.8 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/cbb/dev-standards/rules/cbb-ai-behavior.md +0 -15
  2. package/cbb/dev-standards/rules/cbb-workspace-discipline.md +38 -0
  3. package/cbb/lib/external/index.js +228 -0
  4. package/cbb/lib/install/agents-nav.js +92 -0
  5. package/cbb/lib/install/claude-code.js +8 -1
  6. package/cbb/lib/install/command-skill.js +105 -0
  7. package/cbb/lib/install/init.js +399 -129
  8. package/cbb/lib/install/minimax.js +60 -0
  9. package/cbb/lib/install/rule-rewrite.js +1 -1
  10. package/cbb/lib/install/setup-decision.js +92 -0
  11. package/cbb/lib/install/tool-selection.js +23 -0
  12. package/cbb/lib/install/trae.js +18 -8
  13. package/cbb/lib/install/workbuddy.js +36 -0
  14. package/cbb/lib/install/workspaces.js +15 -61
  15. package/cbb/lib/utils/check-update.js +13 -5
  16. package/cbb/lib/utils/githook.js +230 -0
  17. package/cbb/lib/utils/gitignore.js +17 -4
  18. package/cbb/lib/utils/plugin-hook.js +92 -0
  19. package/cbb/worktrees/_shared/scripts/check-local-state.js +114 -0
  20. package/cbb/worktrees/_shared/scripts/check-unarchived.js +77 -0
  21. package/cbb/worktrees/_shared/scripts/delete-branches.js +147 -0
  22. package/cbb/worktrees/_shared/scripts/deprecate-branches.js +119 -0
  23. package/cbb/worktrees/_shared/scripts/find-target-worktree.js +148 -96
  24. package/cbb/worktrees/_shared/scripts/find-workspace-root.js +8 -8
  25. package/cbb/worktrees/_shared/scripts/install-git-hook.js +70 -0
  26. package/cbb/worktrees/_shared/scripts/junction-ai-config.js +192 -0
  27. package/cbb/worktrees/_shared/scripts/merge-branches.js +469 -0
  28. package/cbb/worktrees/_shared/scripts/push-core.js +1 -1
  29. package/cbb/worktrees/_shared/scripts/silence-popup.js +1 -1
  30. package/cbb/worktrees/_shared/scripts/start-local.js +180 -0
  31. package/cbb/worktrees/skills/cbb-local-mode/SKILL.md +194 -0
  32. package/cbb/worktrees/skills/cbb-local-mode/scripts/check-local-state.js +114 -0
  33. package/cbb/worktrees/skills/cbb-local-mode/scripts/delete-branches.js +147 -0
  34. package/cbb/worktrees/skills/cbb-local-mode/scripts/deprecate-branches.js +119 -0
  35. package/cbb/worktrees/skills/cbb-local-mode/scripts/install-git-hook.js +70 -0
  36. package/cbb/worktrees/skills/cbb-local-mode/scripts/merge-branches.js +469 -0
  37. package/cbb/worktrees/skills/cbb-local-mode/scripts/silence-popup.js +23 -0
  38. package/cbb/worktrees/skills/cbb-local-mode/scripts/start-local.js +180 -0
  39. package/cbb/worktrees/skills/cbb-worktree-close/SKILL.md +133 -81
  40. package/cbb/worktrees/skills/cbb-worktree-close/scripts/check-env.js +3 -3
  41. package/cbb/worktrees/skills/cbb-worktree-close/scripts/check-unarchived.js +77 -48
  42. package/cbb/worktrees/skills/cbb-worktree-close/scripts/delete-branches.js +147 -136
  43. package/cbb/worktrees/skills/cbb-worktree-close/scripts/deprecate-branches.js +119 -0
  44. package/cbb/worktrees/skills/cbb-worktree-close/scripts/discover-apps.js +14 -5
  45. package/cbb/worktrees/skills/cbb-worktree-close/scripts/find-target-worktree.js +148 -96
  46. package/cbb/worktrees/skills/cbb-worktree-close/scripts/find-workspace-root.js +8 -8
  47. package/cbb/worktrees/skills/cbb-worktree-close/scripts/junction-ai-config.js +192 -0
  48. package/cbb/worktrees/skills/cbb-worktree-close/scripts/merge-branches.js +469 -0
  49. package/cbb/worktrees/skills/cbb-worktree-close/scripts/remove-worktrees.js +44 -9
  50. package/cbb/worktrees/skills/cbb-worktree-close/scripts/safety-check.js +15 -4
  51. package/cbb/worktrees/skills/cbb-worktree-close/scripts/silence-popup.js +1 -1
  52. package/cbb/worktrees/skills/cbb-worktree-init/SKILL.md +136 -123
  53. package/cbb/worktrees/skills/cbb-worktree-init/scripts/check-env.js +1 -1
  54. package/cbb/worktrees/skills/cbb-worktree-init/scripts/check-repos.js +2 -2
  55. package/cbb/worktrees/skills/cbb-worktree-init/scripts/create-branches.js +33 -8
  56. package/cbb/worktrees/skills/cbb-worktree-init/scripts/create-worktrees.js +60 -46
  57. package/cbb/worktrees/skills/cbb-worktree-init/scripts/install-git-hook.js +70 -0
  58. package/cbb/worktrees/skills/cbb-worktree-init/scripts/junction-ai-config.js +192 -0
  59. package/cbb/worktrees/skills/cbb-worktree-init/scripts/parse-config.js +7 -7
  60. package/cbb/worktrees/skills/cbb-worktree-init/scripts/push-branches.js +3 -3
  61. package/cbb/worktrees/skills/cbb-worktree-init/scripts/push-core.js +1 -1
  62. package/cbb/worktrees/skills/cbb-worktree-init/scripts/silence-popup.js +1 -1
  63. package/cbb/worktrees/skills/cbb-worktree-init/scripts/sync-repos.js +11 -7
  64. package/cbb/worktrees/skills/cbb-worktree-init/scripts/update-gitignore.js +37 -9
  65. package/cbb/worktrees/skills/cbb-worktree-push/SKILL.md +212 -56
  66. package/cbb/worktrees/skills/cbb-worktree-push/scripts/check-unarchived.js +77 -0
  67. package/cbb/worktrees/skills/cbb-worktree-push/scripts/commit-worktrees.js +70 -12
  68. package/cbb/worktrees/skills/cbb-worktree-push/scripts/find-target-worktree.js +148 -96
  69. package/cbb/worktrees/skills/cbb-worktree-push/scripts/find-workspace-root.js +8 -8
  70. package/cbb/worktrees/skills/cbb-worktree-push/scripts/make-mr-urls.js +211 -0
  71. package/cbb/worktrees/skills/cbb-worktree-push/scripts/merge-branches.js +469 -0
  72. package/cbb/worktrees/skills/cbb-worktree-push/scripts/push-core.js +1 -1
  73. package/cbb/worktrees/skills/cbb-worktree-push/scripts/push-worktrees.js +67 -20
  74. package/cbb/worktrees/skills/cbb-worktree-push/scripts/silence-popup.js +1 -1
  75. package/config/{workspace-config.sample.json → CBB-WORKSPACE.sample.json} +1 -1
  76. package/config/openspec/schemas/spec-driven/schema.yaml +20 -0
  77. package/config/upstream-mirrors.json +5 -0
  78. package/external/frontend-design/.version +6 -0
  79. package/external/frontend-design/LICENSE.txt +177 -0
  80. package/external/frontend-design/SKILL.md +71 -0
  81. package/openspec/.version +2 -2
  82. package/openspec/commands/archive.md +15 -8
  83. package/openspec/commands/bulk-archive.md +13 -6
  84. package/openspec/commands/continue.md +0 -1
  85. package/openspec/commands/explore.md +1 -1
  86. package/openspec/commands/ff.md +1 -1
  87. package/openspec/commands/onboard.md +9 -4
  88. package/openspec/commands/update.md +11 -5
  89. package/openspec/commands/verify.md +57 -26
  90. package/openspec/skills/openspec-apply-change/SKILL.md +1 -1
  91. package/openspec/skills/openspec-archive-change/SKILL.md +16 -9
  92. package/openspec/skills/openspec-bulk-archive-change/SKILL.md +14 -7
  93. package/openspec/skills/openspec-continue-change/SKILL.md +1 -2
  94. package/openspec/skills/openspec-explore/SKILL.md +2 -2
  95. package/openspec/skills/openspec-ff-change/SKILL.md +2 -2
  96. package/openspec/skills/openspec-new-change/SKILL.md +1 -1
  97. package/openspec/skills/openspec-onboard/SKILL.md +10 -5
  98. package/openspec/skills/openspec-propose/SKILL.md +1 -1
  99. package/openspec/skills/openspec-sync-specs/SKILL.md +1 -1
  100. package/openspec/skills/openspec-update-change/SKILL.md +12 -6
  101. package/openspec/skills/openspec-verify-change/SKILL.md +59 -27
  102. package/package.json +3 -2
  103. package/superpowers/.version +3 -3
  104. package/superpowers/skills/writing-plans/SKILL.md +32 -20
  105. package/cbb/lib/install/codebuddy.js +0 -30
  106. package/cbb/worktrees/skills/cbb-worktree-init/scripts/find-workspace-root.js +0 -67
  107. package/config/workspace-agents.sample.md +0 -41
  108. package/superpowers/skills/writing-plans/plan-document-reviewer-prompt.md +0 -49
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,71 @@
1
+ ---
2
+ name: frontend-design
3
+ description: Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
4
+ license: Complete terms in LICENSE.txt
5
+ ---
6
+
7
+ # Frontend Design
8
+
9
+ Approach this as the design lead at a design studio known for giving every client a distinct visual identity that is not mistaken for anyone else's. This client has already rejected proposals that felt cliché or templated, and is paying for a distinctive point of view: make deliberate, opinionated choices about palette, typography, and layout that are specific to this brief, and take aesthetic risk if justified.
10
+
11
+ ## Ground your designs in the subject matter
12
+
13
+ If the brief does not identify what the product or subject matter is, identify it yourself before designing, and confirm with the client. You can come up with one concrete subject, the design's audience, and the design's primary job, as a proposal. If there's any information in your memory about the client's preferences or context about what they're building, use that as a hint. The subject's industry, subject matter, materials, and vernacular are where distinctive visual choices come from — a design for a toy for girls aged 8–11 will be very aesthetically different from a dashboard for financial analysts. Build with the brief's real content and subject matter throughout.
14
+
15
+ ## Design principles
16
+
17
+ For web designs, the hero is the first thing viewers will see. Open with the most characteristic thing in the subject's world, in the form that is most appropriate: a headline, an image, an animation, a live demo, an interactive moment, or other treatments. Be deliberate with your choice: a big number with a small label, supporting stats, and a gradient accent is the default treatment, so only use it if that's truly the best option.
18
+
19
+ Typography carries the personality of the page. You don't need a different typeface for display or headline text and body content: use one family or two, and if two, make them clearly distinct.
20
+
21
+ Choose your typefaces deliberately, not the default families you would reach for on any other project, and set a clear type scale following the default guidance of The Elements of Typographic Style with intentional weights, widths, and spacing. When type is used as a headline or visual element, use the type treatment itself as an active part of the design, not a neutral delivery vehicle for the content.
22
+
23
+ Default to line lengths of less than 80 characters. Serif typefaces can have slightly longer line lengths; give serif body text slightly more line-height than a sans-serif.
24
+
25
+ Avoid these default typographic treatments; they are the commonest tells of a generated page:
26
+ - Accenting just a single word or phrase in a headline, like putting one word in italic/bold or a different color.
27
+ - Using all caps for labels.
28
+ - Adding unnecessary typographic labels above content.
29
+
30
+ Visual structure is information. Structural devices like outlines, borders, numbering, eyebrows, dividers, labels, etc., encode useful information about the content rather than decorate it. Many generic designs use numbered markers (01 / 02 / 03), but that's only appropriate if the content actually is a sequence — like a stepped process or a timeline. Before adding numbered markers, check the content really is a sequence.
31
+
32
+ Use non-user-triggered motion sparingly and deliberately, only to draw attention. A single orchestrated moment — one page-load sequence or one reveal — lands better than scattered effects; fade-and-slide-up entrances on each section and hover transitions on every card are the generic default and read as AI-generated. Motion that answers a person's action (opening, expanding, confirming) is welcome when it shows what changed.
33
+
34
+ Consider written content carefully. Often a design brief may not contain real content, and it's up to you to come up with copy and placeholder content. Copy can make a design feel as templated as the design itself. See the below section on writing for more guidance.
35
+
36
+ ## Process: plan, review against the brief, build, critique
37
+
38
+ For calibration, AI-generated design right now clusters around some traits:
39
+ 1. a warm cream background (near #F4F1EA) with a high-contrast serif display and a terracotta or warm-clay accent (often near #D97757 — Anthropic's own Claude-interaction accent, so on a user's brief it reads as a tell);
40
+ 2. a near-black background with a single bright acid-green or vermilion accent;
41
+ 3. a broadsheet-style layout with hairline rules, zero border-radius, and dense newspaper-like columns;
42
+ 4. the SaaS-card kit: content chopped into identical rounded cards, one border-radius on everything regardless of hierarchy, the same soft grey shadow (rgba(0,0,0,.1)) under each, and gradient washes as decoration;
43
+ 5. template chrome that appears whatever the subject: a tracked-out ALL-CAPS eyebrow label above every heading; meta strings joined with middle dots ('A · B · C'); labels built as 'WORD — fragment' with a spaced em dash; tinted near-black (#0B0B0B, #111) standing in for black; a monospace face for small data labels; a '→' appended to link and button text.
44
+
45
+ All traits are legitimate for some briefs, but they are defaults rather than choices, and they appear regardless of subject. Where the brief pins down a visual direction, follow it exactly — the brief's own words always win, including when it asks for one of these looks. Where it leaves an axis free, don't spend that freedom on one of these defaults. As with a hired human designer, there's often a careful balance between doing what you're good at and taking each project as a chance to experiment and learn.
46
+
47
+ Work in two passes. First, brainstorm a short design plan based on the client's design brief: create a compact token system with color, type, layout, and principles.
48
+ - Color: describe the core base palette as 4–6 named hex values.
49
+ - Type: the typefaces and their roles.
50
+ - Layout: a layout concept, using one-sentence prose descriptions and ASCII wireframes to ideate and compare. Include alignment guidance; should the content be left aligned, center aligned, justified?
51
+ - Principles: the high-level guidance for what makes this page unique.
52
+
53
+ Then review that plan against the brief before building: if any part of it reads like the generic default you would produce for any similar page (work through a similar prompt to see if you arrive somewhere similar) rather than a choice made for this specific brief — revise that part, say what you changed and why. Only after you've confirmed the relative uniqueness of your design plan should you start to write the code, following the revised plan.
54
+
55
+ When writing the code, be careful of structuring your CSS selector specificities. It's easy to generate CSS classes that cancel each other out (especially with a type-based selector like .section and an element-based selector like .cta). This can happen often with padding/margin between sections.
56
+
57
+ ## Restraint and self-critique
58
+
59
+ Spend your boldness in one place. Let one element be the memorable thing, keep everything around it quiet and disciplined, and cut any decoration that does not serve the brief. Build to a quality floor without announcing it: responsive down to mobile, visible keyboard focus, reduced motion respected, visually accessible, harmonious color palettes. Critique your own work as you build, taking screenshots to review if your environment supports it — a picture is worth 1000 tokens. Consider Chanel's advice: before leaving the house, take a look in the mirror and remove one accessory. Human creatives have memory and always try to do something new, so if you have a space to quickly jot down notes about what you've tried, it can help you in future passes.
60
+
61
+ ## More on writing in design
62
+
63
+ Words appear in a design for one reason: to make it easier to understand and use. They are design content, not decoration. Bring the same intentionality and minimalism to copywriting that you would bring to spacing and color. Before writing anything, ask what the design needs to say, and how it can best be said to help the person navigate the experience.
64
+
65
+ Write from the end user's perspective. Name things by what users will understand in simple language, not by how the system is built. A user manages notifications, not webhook config. Describe what something is or does in plain terms rather than selling it. Being specific and legible to new users is always better than being clever.
66
+
67
+ Use active voice as default. A CTA says exactly what happens when it is used: "Save changes," not "Submit." An action keeps the same name through the whole flow, so the button that says "Publish" produces a toast that says "Published." The vocabulary of an interface is the signposting for someone navigating the product. Cohesion and consistency are how people learn their way around.
68
+
69
+ Treat failure and emptiness as moments for direction, not mood. Explain what went wrong and how to fix it, in the interface's voice rather than a person's. Errors don't apologize, and they are never vague about what happened. An empty screen is an invitation to act.
70
+
71
+ Keep the tone conversational: plain verbs, sentence case, no filler, with tone matched to the brand and the audience. Let each written element do exactly one job.
package/openspec/.version CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.13.1",
2
+ "version": "1.13.2",
3
3
  "repo": "Fission-AI/OpenSpec",
4
- "renderedAt": "2026-09-19T13:22:53.815Z"
4
+ "renderedAt": "2026-09-28T07:29:28.008Z"
5
5
  }
@@ -80,20 +80,27 @@ In both branches, never create the root as a side effect: do not run `openspec i
80
80
 
81
81
  3. **Check task completion status**
82
82
 
83
- Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
84
-
85
- A checkbox is complete when its only content is `x` or `X`; spacing inside
86
- the brackets does not matter, so `- [ x]` counts as complete too. Every
87
- other marker is incomplete - `- [ ]`, an empty `- []`, and markers OpenSpec
88
- assigns no meaning to such as `- [~]` or `- [-]`. Never read an unfamiliar
89
- marker as complete.
83
+ Run `openspec list --json` with the same selected-root flags and find the
84
+ entry in `changes` whose `name` exactly matches the selected change.
85
+ Require exactly one match and nonnegative integer `totalTasks` and
86
+ `completedTasks`, with `completedTasks <= totalTasks`. The CLI resolves
87
+ the schema's tracked task files, including custom artifact names, output
88
+ paths, and globs.
89
+ Incomplete tasks = `totalTasks - completedTasks`.
90
+
91
+ Do not infer task completion from artifact status or the absence of a
92
+ top-level `tasks.md`. If the lookup fails, returns invalid JSON, omits or
93
+ duplicates the selected change, or returns invalid counts, report the problem
94
+ and stop before syncing or archiving.
95
+ The CLI counts only `x`/`X` checkbox markers as complete;
96
+ other markers, including unfamiliar ones, remain incomplete.
90
97
 
91
98
  **If incomplete tasks found:**
92
99
  - Display warning showing count of incomplete tasks
93
100
  - Prompt user for confirmation to continue
94
101
  - Proceed if user confirms
95
102
 
96
- **If no tasks file exists:** Proceed without task-related warning.
103
+ **If `totalTasks` is zero:** Proceed without a task-related warning.
97
104
 
98
105
  4. **Assess delta spec sync state**
99
106
 
@@ -36,7 +36,7 @@ In both branches, never create the root as a side effect: do not run `openspec i
36
36
  2. **Prompt for change selection**
37
37
 
38
38
  Ask the user to choose changes (multi-select):
39
- - Show each change with its schema
39
+ - Show each change name and task status from the list output
40
40
  - Include an option for "All changes"
41
41
  - Allow any number of selections (1+ works, 2+ is the typical use case)
42
42
 
@@ -69,17 +69,24 @@ In both branches, never create the root as a side effect: do not run `openspec i
69
69
 
70
70
  3. **Batch validation - gather status for all selected changes**
71
71
 
72
+ Run `openspec list --json` once with the same selected-root flags for task
73
+ progress. If the lookup fails, returns invalid JSON, or omits any selected
74
+ change, contains a duplicate selected change, or returns invalid counts,
75
+ report the problem and stop before syncing or archiving the batch.
76
+
72
77
  For each selected change, collect:
73
78
 
74
79
  a. **Artifact status** - Run `openspec status --change "<name>" --json`
75
80
  - Parse `schemaName`, `artifacts`, `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`
76
81
  - Note which artifacts are `done` vs other states
77
82
 
78
- b. **Task completion** - Read `artifactPaths.tasks.existingOutputPaths` from status JSON
79
- - Complete means the checkbox holds only `x`/`X`, ignoring spacing
80
- (`- [ x]` is complete); every other marker is incomplete (`- [ ]`,
81
- `- []`, and unfamiliar ones such as `- [~]` or `- [-]`)
82
- - If no tasks file exists, note as "No tasks"
83
+ b. **Task completion** - Find the `changes` entry from the list response whose `name` exactly matches this change
84
+ - Require nonnegative integer `totalTasks` and `completedTasks`, with `completedTasks <= totalTasks`
85
+ - Incomplete tasks = `totalTasks - completedTasks`
86
+ - The CLI resolves the schema's tracked task files, including custom artifact names, output paths, and globs
87
+ - Do not infer task completion from artifact status, an artifact id of `tasks`, or the absence of a top-level `tasks.md`
88
+ - The CLI counts only `x`/`X` checkbox markers as complete; other markers remain incomplete
89
+ - If `totalTasks` is zero, note as "No tasks"
83
90
 
84
91
  c. **Delta specs** - Check `artifactPaths.specs.existingOutputPaths` from status JSON
85
92
  - List which capability specs exist
@@ -32,7 +32,6 @@ In both branches, never create the root as a side effect: do not run `openspec i
32
32
 
33
33
  When prompting, present the top 3-4 most recently modified changes as options, showing:
34
34
  - Change name
35
- - Schema (from `schema` field if present, otherwise "spec-driven")
36
35
  - Status (e.g., "0/5 tasks", "complete", "no tasks")
37
36
  - How recently it was modified (from `lastModified` field)
38
37
 
@@ -130,7 +130,7 @@ openspec list --json
130
130
 
131
131
  This tells you:
132
132
  - If there are active changes
133
- - Their names, schemas, and status
133
+ - Their names and task status
134
134
  - What the user might be working on
135
135
 
136
136
  That is the *change* list - work in flight. It does not include the project's durable capabilities, so list those too:
@@ -86,7 +86,7 @@ In both branches, never create the root as a side effect: do not run `openspec i
86
86
  - Dependencies are enablers, not gates: if a required artifact is still `blocked` only because you skipped a conditional dependency, write it anyway
87
87
  - Stop when every artifact in the required set is `done`, `skipped`, or was deliberately skipped
88
88
 
89
- c. **If an artifact requires user input** (unclear context):
89
+ c. **If an artifact requires user input** (critically unclear context):
90
90
  - Ask the user to clarify
91
91
  - Then continue with creation
92
92
 
@@ -373,7 +373,7 @@ Save to the `resolvedOutputPath` from `openspec instructions design --change "<n
373
373
 
374
374
  Finally, we break the work into implementation tasks—checkboxes that drive the apply phase.
375
375
 
376
- These should be small, clear, and in logical order.
376
+ These should be small, clear, and in logical order. Each group carries the tests and documentation for its own work - the last group is only for integration checks.
377
377
  ```
378
378
 
379
379
  **DO:** Generate tasks based on specs and design:
@@ -396,12 +396,17 @@ Here are the implementation tasks:
396
396
 
397
397
  ---
398
398
 
399
- Each checkbox becomes a unit of work in the apply phase. Ready to implement?
399
+ Each checkbox becomes a unit of work in the apply phase. Does this task breakdown look right?
400
400
  ```
401
401
 
402
- **PAUSE** - Wait for user to confirm they're ready to implement.
402
+ **PAUSE** - Wait for user approval/feedback.
403
+
404
+ After approval, save to the `resolvedOutputPath` from `openspec instructions tasks --change "<name>" --json`.
405
+
406
+ Then ask:
407
+ > "Tasks are saved. Ready to implement?"
403
408
 
404
- Save to the `resolvedOutputPath` from `openspec instructions tasks --change "<name>" --json`.
409
+ **PAUSE** - Wait for user to confirm before implementation.
405
410
 
406
411
  ---
407
412
 
@@ -34,7 +34,6 @@ This workflow revises artifacts that already exist; `/opsx:continue` is what cre
34
34
 
35
35
  When prompting, present the top 3-4 most recently modified changes as options, showing:
36
36
  - Change name
37
- - Schema (from `schema` field if present, otherwise "spec-driven")
38
37
  - Status (e.g., "0/5 tasks", "complete", "no tasks")
39
38
  - How recently it was modified (from `lastModified` field)
40
39
 
@@ -64,7 +63,13 @@ This workflow revises artifacts that already exist; `/opsx:continue` is what cre
64
63
  - Read the artifact(s) the request touches and the change's other existing artifacts.
65
64
  - Draft the requested edit in the conversation, not in files. Work out exactly what it changes; step 5 owns every write. Then check every other existing artifact against the drafted edit - in ANY direction: an edit to a later artifact may require revising an earlier one, not only the other way around. Build order is a useful reading order, not a constraint on which artifacts may be revised.
66
65
  - Note everything that is now inconsistent, missing, or contradictory.
67
- - Propose revisions only to files that already exist (`existingOutputPaths`). Do NOT create artifacts that don't exist yet, and do NOT invent new files under a glob artifact - note them and point the user to `/opsx:continue` to create them.
66
+ - Propose revisions to files that already exist (`existingOutputPaths`). If an artifact has no existing output files and status `ready` or `blocked`, note it and point the user to `/opsx:continue` to create them. Leave `skipped` artifacts untouched; do not treat them as missing or defer them to the continue workflow.
67
+ - A glob artifact (e.g. `specs/**/*.md`) is marked `done` after at least one file matches, and the continue workflow only handles `ready` artifacts. When reconciliation identifies a missing file for a glob artifact whose `existingOutputPaths` is non-empty:
68
+ 1. Run `openspec instructions "<artifact-id>" --change "<name>" --json` and use its `instruction` and `template`. Treat `context` and `rules` as constraints; do not copy them into the file. If instructions report `skipped: true`, do not create the file. Read current dependency files from disk; if a required non-skipped dependency is missing, stop and ask the user to restore it first.
69
+ 2. Choose a concrete path inside `changeRoot` that matches `artifactPaths.<id>.outputPath` and does not already exist. Verify it remains inside `changeRoot` after resolving any symlinked parent directories. The glob `resolvedOutputPath` is not a valid target.
70
+ 3. Include the new file in step 5's proposed revisions and create it only after the user confirms.
71
+ 4. After confirmation, immediately before creation, refresh status and instructions. Verify the artifact is still in scope, not skipped, and partially populated; repeat the concrete-path checks above.
72
+ 5. Use a create operation that fails if the target already exists. If `instruction` delegates creation to another skill or command, invoke it only if it can honor the confirmed path and these guardrails; otherwise stop. If any check fails or the confirmed draft is no longer valid, stop and reconcile with the user rather than replacing existing content or choosing a different path.
68
73
  - If the change is already coherent, say so and propose no revisions.
69
74
 
70
75
  5. **Confirm and apply, one artifact at a time**
@@ -77,7 +82,7 @@ This workflow revises artifacts that already exist; `/opsx:continue` is what cre
77
82
  ```
78
83
 
79
84
  6. **Point to the next step (guidance only - NEVER act on it)**
80
- - Artifacts still missing -> suggest `/opsx:continue` to create them.
85
+ - Artifacts with empty `existingOutputPaths` and status `ready` or `blocked` -> suggest `/opsx:continue` to create them.
81
86
  - Change already implemented (tasks checked off / already applied) -> the code may no longer match the revised plan; suggest `/opsx:apply` to carry the delta into code.
82
87
  - Everything done and implemented -> suggest `/opsx:archive`.
83
88
 
@@ -85,13 +90,14 @@ This workflow revises artifacts that already exist; `/opsx:continue` is what cre
85
90
 
86
91
  After each invocation, show:
87
92
  - Which artifacts were revised (and which proposed revisions were rejected)
88
- - Anything deferred to `/opsx:continue` (not-yet-created artifacts or files)
93
+ - Any file created under a glob artifact that was already partially populated
94
+ - Anything deferred to `/opsx:continue` (artifacts with no files yet and status `ready` or `blocked`, never `skipped` artifacts)
89
95
  - Where the change stands and the recommended next command
90
96
 
91
97
  **Guardrails**
92
98
  - Planning artifacts only - NEVER edit implementation code. If the revised plan implies code changes, stop and point to `/opsx:apply`.
93
99
  - Use the artifact ids and paths reported by `openspec status`; never branch on hardcoded artifact names.
94
100
  - Edit only the concrete files in `existingOutputPaths`; never write to a glob `resolvedOutputPath`.
95
- - Do not advance the build frontier: no new artifacts, no new files under glob artifacts - that is `/opsx:continue`'s job.
101
+ - Do not advance the build frontier: if an artifact has empty `existingOutputPaths` and status `ready` or `blocked`, that is `/opsx:continue`'s job. Leave `skipped` artifacts untouched. The only new-file scope is a confirmed concrete path under a glob artifact whose `existingOutputPaths` is non-empty.
96
102
  - Confirm every edit with the user before writing.
97
103
  - If the request changes the change's *intent* rather than refining it, recommend starting fresh with `/opsx:new` (the "Update vs. Start Fresh" heuristic).