@jspg-ai/coding-bb 0.0.3-beta.30 → 0.0.3-beta.32
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/cbb/lib/external/index.js +228 -0
- package/cbb/lib/install/claude-code.js +3 -3
- package/cbb/lib/install/init.js +125 -30
- package/cbb/lib/install/minimax.js +2 -2
- package/cbb/lib/install/tool-selection.js +8 -30
- package/cbb/worktrees/skills/cbb-local-mode/SKILL.md +1 -1
- package/cbb/worktrees/skills/cbb-worktree-init/SKILL.md +1 -1
- package/cbb/worktrees/skills/cbb-worktree-push/SKILL.md +32 -40
- package/config/upstream-mirrors.json +5 -0
- package/external/frontend-design/.version +6 -0
- package/external/frontend-design/LICENSE.txt +177 -0
- package/external/frontend-design/SKILL.md +71 -0
- package/openspec/.version +2 -2
- package/openspec/commands/archive.md +15 -8
- package/openspec/commands/bulk-archive.md +13 -6
- package/openspec/commands/continue.md +0 -1
- package/openspec/commands/explore.md +1 -1
- package/openspec/commands/ff.md +1 -1
- package/openspec/commands/onboard.md +9 -4
- package/openspec/commands/update.md +11 -5
- package/openspec/commands/verify.md +57 -26
- package/openspec/skills/openspec-apply-change/SKILL.md +1 -1
- package/openspec/skills/openspec-archive-change/SKILL.md +16 -9
- package/openspec/skills/openspec-bulk-archive-change/SKILL.md +14 -7
- package/openspec/skills/openspec-continue-change/SKILL.md +1 -2
- package/openspec/skills/openspec-explore/SKILL.md +2 -2
- package/openspec/skills/openspec-ff-change/SKILL.md +2 -2
- package/openspec/skills/openspec-new-change/SKILL.md +1 -1
- package/openspec/skills/openspec-onboard/SKILL.md +10 -5
- package/openspec/skills/openspec-propose/SKILL.md +1 -1
- package/openspec/skills/openspec-sync-specs/SKILL.md +1 -1
- package/openspec/skills/openspec-update-change/SKILL.md +12 -6
- package/openspec/skills/openspec-verify-change/SKILL.md +59 -27
- package/package.json +3 -2
- package/superpowers/.version +3 -3
- package/superpowers/skills/writing-plans/SKILL.md +32 -20
- package/superpowers/skills/writing-plans/plan-document-reviewer-prompt.md +0 -49
|
@@ -21,7 +21,7 @@ description: "提交并推送当前需求的所有关联仓库(跨 worktree
|
|
|
21
21
|
- **本技能支持两层执行位置**(与 `cbb-worktree-close` 对称):
|
|
22
22
|
- 工作空间根目录(`WS_ROOT/`)
|
|
23
23
|
- worktree 内部(`WS_ROOT/.worktrees/worktree-<需求名>/` 或其子目录)
|
|
24
|
-
-
|
|
24
|
+
- 输入约定:**自由文本**(需求名等)直接在对话中提问并等待回复;**固定选项多选**使用 `AskUserQuestion`。**例外:commit 信息由 agent 自行生成,不提问、不等待确认**
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
@@ -56,7 +56,7 @@ node "<skill_dir>/scripts/<name>.js" <参数>
|
|
|
56
56
|
|------|------|------|
|
|
57
57
|
| **A. cbb 工作空间根** | cwd(或其 git 顶层)含 `CBB-WORKSPACE.json`;`find-workspace-root.js` 退出码 0 | 走 **Step 1 → 6** 的跨 worktree 批量流程 |
|
|
58
58
|
| **B. worktree 内** | cwd 命中 `<ws_root>/.worktrees/worktree-<需求名>/` | 用 cwd 反推 `<需求名>`,走 **Step 1 → 6** 批量流程 |
|
|
59
|
-
| **C. 普通 git 仓库** | 在 git 仓库内,但无 `CBB-WORKSPACE.json`(`find-workspace-root.js` 退出码 1) | **降级为单仓库提交推送**:不调 worktree 脚本,按常规 `git add -u` →
|
|
59
|
+
| **C. 普通 git 仓库** | 在 git 仓库内,但无 `CBB-WORKSPACE.json`(`find-workspace-root.js` 退出码 1) | **降级为单仓库提交推送**:不调 worktree 脚本,按常规 `git add -u` → agent 生成 commit 信息 → `git commit` → `git push`(信息生成规则与 A/B 场景一致:精炼最简、5–50 字符) |
|
|
60
60
|
| **D. 非 git 目录** | `git rev-parse --is-inside-work-tree` 失败 | 说明"当前目录不是 git 仓库",终止,不做任何操作 |
|
|
61
61
|
|
|
62
62
|
**判场景与定位(A/B 场景):**
|
|
@@ -74,9 +74,9 @@ node "<skill_dir>/scripts/find-workspace-root.js"
|
|
|
74
74
|
**场景 C 降级流程**(普通仓库误触):
|
|
75
75
|
|
|
76
76
|
1. `git status` 报告改动现状
|
|
77
|
-
2.
|
|
77
|
+
2. agent 基于改动内容生成 commit 信息(精炼最简,5–50 字符;规则见 Step 3)
|
|
78
78
|
3. `git add -u`(默认不含未追踪文件;用户明确要求时才 `git add -A`)
|
|
79
|
-
4. `git commit -m "
|
|
79
|
+
4. `git commit -m "<agent 生成的信息>"`
|
|
80
80
|
5. `git push`(无 upstream 时先询问用户是否 `-u`)
|
|
81
81
|
6. 汇报结果;**不要**提及 worktree 批量流程
|
|
82
82
|
|
|
@@ -111,36 +111,27 @@ node "<skill_dir>/scripts/commit-worktrees.js" "<ws_root>" "<branch>" --message
|
|
|
111
111
|
- `skipped (skip-repo)`:用户指定跳过
|
|
112
112
|
- `failed`:错误
|
|
113
113
|
|
|
114
|
-
> ⓘ **dry-run
|
|
114
|
+
> ⓘ **dry-run 必跑**:把将要 commit 的文件清单与 agent 生成的 commit 信息一并展示给用户(透明可见,**不停顿等待回复**),避免误纳 `.idea/` 等被 git 忽略的文件(虽然 `git add -u` 已天然排除,但 dry-run 仍是最后兜底)。
|
|
115
115
|
|
|
116
116
|
---
|
|
117
117
|
|
|
118
|
-
## Step 3
|
|
118
|
+
## Step 3:生成 commit 信息(agent 自主)
|
|
119
119
|
|
|
120
|
-
AI agent
|
|
120
|
+
AI agent 在执行 commit 前**自行生成** commit 信息,**不向用户提问、不等待确认**。
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
**生成规则(硬约束)**:
|
|
123
123
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
回复示例(统一):
|
|
135
|
-
feat(<branch>): 实现客户运费逻辑
|
|
136
|
-
|
|
137
|
-
回复示例(分别):
|
|
138
|
-
workspace: chore(<branch>): 同步 openspec 标准
|
|
139
|
-
ep-foo-app: feat(<branch>): 实现 saveClientExpectFreight
|
|
140
|
-
ep-bar-app: refactor(<branch>): 拆分 PlanService
|
|
141
|
-
```
|
|
124
|
+
| 规则 | 要求 |
|
|
125
|
+
|------|------|
|
|
126
|
+
| 长度 | **5–50 字符**(按字符计:1 个中文字 = 1,1 个英文字母 / 空格 / 标点 = 1);超出范围不得提交 |
|
|
127
|
+
| 风格 | 精炼、最简——一句话说清"改了什么",不写缘由、不换行、不堆砌 |
|
|
128
|
+
| 依据 | 以 Step 2 dry-run 的实际改动 + `openspec/changes/<branch>/tasks.md` 已完成 task 为准;禁止凭空编造 |
|
|
129
|
+
| 格式 | 沿用 Conventional Commits 前缀(`feat` / `fix` / `refactor` / `chore` / `docs` 等)+ 需求名,如 `feat(<branch>): 实现客户运费逻辑` |
|
|
130
|
+
| 多仓库 | 各仓库改动语义不同时**逐仓库分别生成**(经 `--per-repo`),禁止硬塞同一条 |
|
|
131
|
+
|
|
132
|
+
**展示时机**:生成的每条信息在 Step 2 dry-run 预览中随待提交文件一并输出(透明可见),但**不停顿等待回复**,直接进入 Step 4。
|
|
142
133
|
|
|
143
|
-
|
|
134
|
+
> ⓘ 用户若在对话中显式给出 commit 信息,直接采用(不覆盖用户意图);未给出时按上述规则自行生成。
|
|
144
135
|
|
|
145
136
|
---
|
|
146
137
|
|
|
@@ -163,7 +154,7 @@ node "<skill_dir>/scripts/commit-worktrees.js" "<ws_root>/.worktrees/worktree-<b
|
|
|
163
154
|
**选项**:
|
|
164
155
|
| 选项 | 说明 |
|
|
165
156
|
|------|------|
|
|
166
|
-
| `--message / -m` | 必填(除非 --per-repo 完全覆盖)。commit
|
|
157
|
+
| `--message / -m` | 必填(除非 --per-repo 完全覆盖)。commit 信息(agent 生成,5–50 字符) |
|
|
167
158
|
| `--per-repo "<name>:msg;<name>:msg"` | 覆盖特定仓库的 commit 信息 |
|
|
168
159
|
| `--untracked` | 同时 stage 未追踪文件(默认 `git add -u`,加此项时 `git add -A`) |
|
|
169
160
|
| `--allow-empty` | 允许空提交 |
|
|
@@ -283,11 +274,11 @@ node "<skill_dir>/scripts/make-mr-urls.js" "<ws_root>" "<branch>" "<target>" --o
|
|
|
283
274
|
|------|----------|
|
|
284
275
|
| **任何触发** | **先做 Step 0 场景识别**,再决定策略 |
|
|
285
276
|
| 场景 A:cwd 在 cbb 工作空间根 | find-workspace-root 成功 → 多个 worktree 时让用户选 |
|
|
286
|
-
| 场景 B:cwd 在 worktree 内 | 自动用 cwd
|
|
277
|
+
| 场景 B:cwd 在 worktree 内 | 自动用 cwd 反推分支,扫描后 agent 生成 commit 信息 |
|
|
287
278
|
| 场景 C:cwd 在普通 git 仓库(无 CBB-WORKSPACE.json) | **降级为单仓库提交推送**,不调用 worktree 脚本 |
|
|
288
279
|
| 场景 D:cwd 非 git 目录 | 说明情况并终止,不做任何操作 |
|
|
289
|
-
| commit
|
|
290
|
-
|
|
|
280
|
+
| commit 信息 | agent 自行生成(5–50 字符,精炼最简),不询问用户;dry-run 预览时一并展示 |
|
|
281
|
+
| 多仓库改动语义不同 | agent 逐仓库分别生成,用 `--per-repo "ep-foo:msg;ep-bar:msg"` |
|
|
291
282
|
| 仓库干净 | commit-worktrees 自动 skipped,只 push 不 commit |
|
|
292
283
|
| 仓库已有 ahead commit | commit-worktrees 自动 skipped(不重复 commit),只 push |
|
|
293
284
|
| 未追踪文件 | 默认不纳入(避免误纳 .idea);用户明确要求时加 `--untracked` |
|
|
@@ -308,10 +299,10 @@ node "<skill_dir>/scripts/make-mr-urls.js" "<ws_root>" "<branch>" "<target>" --o
|
|
|
308
299
|
- **问题:** 用户在普通仓库说"提交代码",技能被 description 匹配触发,直接跑 `find-workspace-root.js` 失败并报错终止
|
|
309
300
|
- **修复:** Step 0 先判场景;场景 C(普通 git 仓库)降级为单仓库提交推送,不调用 worktree 脚本、不提及批量流程
|
|
310
301
|
|
|
311
|
-
###
|
|
302
|
+
### commit 信息超长或空洞
|
|
312
303
|
|
|
313
|
-
- **问题:** agent
|
|
314
|
-
- **修复:** Step 3
|
|
304
|
+
- **问题:** agent 生成的 commit 信息过长(罗列全部改动、写缘由)或过于笼统("更新代码"),与"5–50 字符、精炼最简"不符
|
|
305
|
+
- **修复:** Step 3 按规则生成——以实际 diff / 已完成 task 为依据,一句话说清改了什么,长度落在 5–50 字符
|
|
315
306
|
|
|
316
307
|
### 误纳未追踪文件
|
|
317
308
|
|
|
@@ -328,10 +319,10 @@ node "<skill_dir>/scripts/make-mr-urls.js" "<ws_root>" "<branch>" "<target>" --o
|
|
|
328
319
|
- **问题:** apply 实现完 → 用户关掉 IDE → 调 close-worktree → ahead 提交永久丢失
|
|
329
320
|
- **修复:** 强烈建议 apply 完成后立即调本 skill 推送;或 close-worktree Step 3.4 兜底
|
|
330
321
|
|
|
331
|
-
###
|
|
322
|
+
### 多仓库硬塞同一条 commit 信息
|
|
332
323
|
|
|
333
324
|
- **问题:** workspace 改了 CBB-WORKSPACE.json,ep-foo-app 改了 Java 代码,硬塞同一条 "feat: 实现 XX" 信息不准确
|
|
334
|
-
- **修复:**
|
|
325
|
+
- **修复:** agent 逐仓库生成各自的 commit 信息,用 `--per-repo` 传入
|
|
335
326
|
|
|
336
327
|
### push 失败时跳过失败仓库直接继续
|
|
337
328
|
|
|
@@ -349,7 +340,7 @@ node "<skill_dir>/scripts/make-mr-urls.js" "<ws_root>" "<branch>" "<target>" --o
|
|
|
349
340
|
|
|
350
341
|
**绝不允许**
|
|
351
342
|
|
|
352
|
-
-
|
|
343
|
+
- commit 信息超出 5–50 字符范围 / 空洞无意义 / 与改动不符
|
|
353
344
|
- 默认 `git add -A` 误纳未追踪文件
|
|
354
345
|
- push 失败后跳过失败仓库直接继续
|
|
355
346
|
- 远程分支已存在时脚本自动 set-upstream-to
|
|
@@ -363,9 +354,10 @@ node "<skill_dir>/scripts/make-mr-urls.js" "<ws_root>" "<branch>" "<target>" --o
|
|
|
363
354
|
- 严格按 Step 0 → 1 → 2 → 3 → 4 → 5 → 6 顺序执行(场景 C/D 除外,按 Step 0 降级策略)
|
|
364
355
|
- 所有脚本调用以 `node "<skill_dir>/scripts/<name>.js"` 形式发起(`<skill_dir>` = 本 SKILL.md 所在目录)
|
|
365
356
|
- 执行脚本时 cwd 保持在工作空间根;场景 C 降级时按普通 git 流程
|
|
366
|
-
- Step 2 dry-run
|
|
367
|
-
- Step 3
|
|
368
|
-
- commit
|
|
357
|
+
- Step 2 dry-run 必跑,把待提交文件清单与 agent 生成的 commit 信息一并展示给用户
|
|
358
|
+
- Step 3 由 agent 自行生成 commit 信息(5–50 字符、精炼最简),不向用户提问、不等待确认;生成结果在 dry-run 预览中展示
|
|
359
|
+
- commit 信息必须依据实际 diff / 已完成 task 生成,沿用 Conventional Commits 前缀(feature/refactor/fix 等语义)
|
|
360
|
+
- 多个仓库改动语义不同时必须逐仓库分别生成(`--per-repo`),禁止硬塞同一条
|
|
369
361
|
- commit-worktrees / push-worktrees 退出码 2 时必须阻塞流程
|
|
370
362
|
- 远程分支已存在时 AI 必须先输出 commit 元信息再询问
|
|
371
363
|
- push 成功后必须走 Step 7 MR 提案(AskUserQuestion 固定选项;用户选"暂不提"则正常结束)
|
|
@@ -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
|
@@ -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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
|
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
|
|
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** -
|
|
79
|
-
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
-
|
|
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
|
|
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:
|
package/openspec/commands/ff.md
CHANGED
|
@@ -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.
|
|
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
|
|
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
|
-
|
|
409
|
+
**PAUSE** - Wait for user to confirm before implementation.
|
|
405
410
|
|
|
406
411
|
---
|
|
407
412
|
|