simple-skills 1.3.3 → 1.3.5
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/LICENSE +1 -1
- package/README.md +0 -4
- package/package.json +1 -1
- package/skills/engineering/README.md +0 -4
- package/skills/engineering/docx/SKILL.md +617 -0
- package/skills/engineering/docx/scripts/__init__.py +1 -0
- package/skills/engineering/docx/scripts/accept_changes.py +135 -0
- package/skills/engineering/docx/scripts/comment.py +318 -0
- package/skills/engineering/docx/scripts/office/__pycache__/soffice.cpython-314.pyc +0 -0
- package/skills/engineering/docx/scripts/office/helpers/__init__.py +0 -0
- package/skills/engineering/docx/scripts/office/helpers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/skills/engineering/docx/scripts/office/helpers/__pycache__/merge_runs.cpython-314.pyc +0 -0
- package/skills/engineering/docx/scripts/office/helpers/__pycache__/simplify_redlines.cpython-314.pyc +0 -0
- package/skills/engineering/docx/scripts/office/helpers/merge_runs.py +199 -0
- package/skills/engineering/docx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/skills/engineering/docx/scripts/office/pack.py +159 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/engineering/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/engineering/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/engineering/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/engineering/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/engineering/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/engineering/docx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/skills/engineering/docx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/engineering/docx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/engineering/docx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/engineering/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/engineering/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/engineering/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/engineering/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/engineering/docx/scripts/office/soffice.py +183 -0
- package/skills/engineering/docx/scripts/office/unpack.py +132 -0
- package/skills/engineering/docx/scripts/office/validate.py +111 -0
- package/skills/engineering/docx/scripts/office/validators/__init__.py +15 -0
- package/skills/engineering/docx/scripts/office/validators/base.py +847 -0
- package/skills/engineering/docx/scripts/office/validators/docx.py +446 -0
- package/skills/engineering/docx/scripts/office/validators/pptx.py +275 -0
- package/skills/engineering/docx/scripts/office/validators/redlining.py +247 -0
- package/skills/engineering/docx/scripts/templates/comments.xml +3 -0
- package/skills/engineering/docx/scripts/templates/commentsExtended.xml +3 -0
- package/skills/engineering/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/skills/engineering/docx/scripts/templates/commentsIds.xml +3 -0
- package/skills/engineering/docx/scripts/templates/people.xml +3 -0
- package/skills/engineering/implement/SKILL.md +1 -3
- package/skills/engineering/subagent-driven-development/SKILL.md +0 -173
- package/skills/engineering/subagent-driven-development/implementer-prompt.md +0 -140
- package/skills/engineering/subagent-driven-development/re-review-prompt.md +0 -100
- package/skills/engineering/subagent-driven-development/scripts/review-package +0 -46
- package/skills/engineering/subagent-driven-development/scripts/sdd-workspace +0 -40
- package/skills/engineering/subagent-driven-development/scripts/task-brief +0 -41
- package/skills/engineering/subagent-driven-development/task-reviewer-prompt.md +0 -165
- package/skills/engineering/theme-factory/SKILL.md +0 -63
- package/skills/engineering/theme-factory/theme-showcase.pdf +0 -0
- package/skills/engineering/theme-factory/themes/arctic-frost.md +0 -19
- package/skills/engineering/theme-factory/themes/botanical-garden.md +0 -19
- package/skills/engineering/theme-factory/themes/desert-rose.md +0 -19
- package/skills/engineering/theme-factory/themes/forest-canopy.md +0 -19
- package/skills/engineering/theme-factory/themes/golden-hour.md +0 -19
- package/skills/engineering/theme-factory/themes/midnight-galaxy.md +0 -19
- package/skills/engineering/theme-factory/themes/modern-minimalist.md +0 -19
- package/skills/engineering/theme-factory/themes/ocean-depths.md +0 -19
- package/skills/engineering/theme-factory/themes/sunset-boulevard.md +0 -19
- package/skills/engineering/theme-factory/themes/tech-innovation.md +0 -19
- package/skills/engineering/using-git-worktrees/SKILL.md +0 -175
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
# 任务审查者提示词模板
|
|
2
|
-
|
|
3
|
-
分派任务审查子智能体时使用此模板。审查者一次性读取该任务的 diff,
|
|
4
|
-
返回两个结论:规格合规性和代码质量。
|
|
5
|
-
|
|
6
|
-
**目的:** 核实一个任务的实现与其需求匹配(不多不少)且构建良好(整洁、有测试、可维护)
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
Subagent (general-purpose):
|
|
10
|
-
description: "审查任务 N(规格 + 质量)"
|
|
11
|
-
model: [模型 —— 必填:按 SKILL.md 的"模型选择"来选;省略模型会默默
|
|
12
|
-
继承会话里最贵的那个]
|
|
13
|
-
prompt: |
|
|
14
|
-
你正在审查一个任务的实现:先看它是否与需求匹配,再看它是否
|
|
15
|
-
构建良好。这是一个任务范围内的关卡,不是合并审查——覆盖整个
|
|
16
|
-
分支的宽范围审查会在所有任务完成后另行进行。
|
|
17
|
-
|
|
18
|
-
## 要求的内容
|
|
19
|
-
|
|
20
|
-
读取任务简报:[BRIEF_FILE]
|
|
21
|
-
|
|
22
|
-
来自规格/设计、约束本任务的全局约束:
|
|
23
|
-
[GLOBAL_CONSTRAINTS]
|
|
24
|
-
|
|
25
|
-
## 实现者声称构建了什么
|
|
26
|
-
|
|
27
|
-
读取实现者的报告:[REPORT_FILE]
|
|
28
|
-
|
|
29
|
-
## 待审查的 Diff
|
|
30
|
-
|
|
31
|
-
**Base:** [BASE_SHA]
|
|
32
|
-
**Head:** [HEAD_SHA]
|
|
33
|
-
**Diff 文件:** [DIFF_FILE]
|
|
34
|
-
|
|
35
|
-
一次性读取这个 diff 文件——它包含提交列表、stat 摘要,以及
|
|
36
|
-
带上下文的完整 diff,它就是你对本次改动的视图。diff 的上下文行
|
|
37
|
-
**就是**那些被改动的文件:不要单独去 Read 某个被改动的文件,除非
|
|
38
|
-
你必须判断的某个 hunk 在函数中途被截断——并在报告中说明这一点。
|
|
39
|
-
不要重跑 git 命令。如果 diff 文件缺失,就自己取 diff:
|
|
40
|
-
`git diff --stat [BASE_SHA]..[HEAD_SHA]` 和 `git diff [BASE_SHA]..[HEAD_SHA]`。
|
|
41
|
-
不要爬取更广的代码库。只有为了评估一个你能点名的具体风险,才去
|
|
42
|
-
查看 diff 之外的代码——每个点名的风险做一次聚焦检查,并在报告中
|
|
43
|
-
同时点名这个风险和你检查了什么。横切改动是正当的、可点名的风险:
|
|
44
|
-
如果 diff 改动了锁顺序、某个函数或 API 契约、或共享的可变状态,
|
|
45
|
-
检查其调用点就是正确的方法。
|
|
46
|
-
|
|
47
|
-
你的审查在这个 checkout 上是只读的。不要以任何方式改动工作树、
|
|
48
|
-
索引、HEAD 或分支状态。
|
|
49
|
-
|
|
50
|
-
## 不要信任报告
|
|
51
|
-
|
|
52
|
-
把实现者的报告当作关于代码的、未经核实的说法。它可能不完整、
|
|
53
|
-
不准确或过于乐观。对照 diff 去核实这些说法。报告里的设计理由
|
|
54
|
-
同样是说法:"出于 YAGNI 留着没做""特意保持简单"或任何其他辩解,
|
|
55
|
-
都是实现者在给自己的工作打分。就代码本身评判它的优劣——一句
|
|
56
|
-
陈述出来的理由永远不会降低一个发现的严重度。
|
|
57
|
-
|
|
58
|
-
## 测试
|
|
59
|
-
|
|
60
|
-
实现者已经跑过测试,并为正是这份代码报告了带 TDD 证据的结果。
|
|
61
|
-
不要为了确认他们的报告而重跑测试套件。只有当阅读代码引出一个
|
|
62
|
-
现有任何运行都无法回答的具体疑问时,才去跑测试——而且是聚焦
|
|
63
|
-
测试,绝不是包级套件、竞态检测运行、或反复的/高次数的循环。
|
|
64
|
-
如果看起来确实需要重度验证,就在报告里建议它,而不是自己去跑。
|
|
65
|
-
如果你在这个环境里无法运行命令,就点名你会跑的那个测试。
|
|
66
|
-
|
|
67
|
-
实现者报告的测试输出里的告警或其他噪声都是发现——测试输出
|
|
68
|
-
应当是干净的。
|
|
69
|
-
|
|
70
|
-
## 第一部分:规格合规性
|
|
71
|
-
|
|
72
|
-
把 diff 对照"要求的内容"来看:
|
|
73
|
-
|
|
74
|
-
- **缺失:** 他们跳过、遗漏、或声称却未实现的需求
|
|
75
|
-
- **多余:** 未被要求的功能、过度工程、不需要的"锦上添花"
|
|
76
|
-
- **理解偏差:** 正确的功能却用错了方式来构建,解决了错误的问题
|
|
77
|
-
|
|
78
|
-
如果某个需求无法仅从这份 diff 中核实(它藏在未改动的代码里、
|
|
79
|
-
或横跨多个任务),就把它作为一个 ⚠️ 事项报告出来,而不是
|
|
80
|
-
扩大你的搜索范围。
|
|
81
|
-
|
|
82
|
-
## 第二部分:代码质量
|
|
83
|
-
|
|
84
|
-
**代码质量:**
|
|
85
|
-
- 关注点分离是否干净?
|
|
86
|
-
- 错误处理是否恰当?
|
|
87
|
-
- 是否做到 DRY 而没有过早抽象?
|
|
88
|
-
- 边界情况是否处理了?
|
|
89
|
-
|
|
90
|
-
**测试:**
|
|
91
|
-
- 新增和改动的测试是否验证了真实行为,而非 mock?
|
|
92
|
-
- 本任务的边界情况是否被覆盖?
|
|
93
|
-
|
|
94
|
-
**结构:**
|
|
95
|
-
- 每个文件是否有单一明确的职责和定义清晰的接口?
|
|
96
|
-
- 各单元是否拆分得足以独立理解和测试?
|
|
97
|
-
- 实现是否遵循了计划中的文件结构?
|
|
98
|
-
- 本次改动是否创建了已经很大的新文件,或显著增大了现有文件?
|
|
99
|
-
(不要标记已有的文件大小问题——聚焦于本次改动带来的贡献。)
|
|
100
|
-
|
|
101
|
-
你的报告应指向证据:每一个发现、以及任何你本来会用一句干巴巴的
|
|
102
|
-
"是"来回答的检查,都要给出 file:line 引用。一份引用了行号的
|
|
103
|
-
紧凑报告,就把控制者需要的一切都给它了。
|
|
104
|
-
|
|
105
|
-
你的最终消息就是报告本身:直接从规格合规性结论开始。每一行
|
|
106
|
-
要么是一个结论、要么是一个带 file:line 的发现、要么是你跑过的
|
|
107
|
-
一个检查——没有开场白、没有流程叙述、没有结尾小结。
|
|
108
|
-
|
|
109
|
-
## 校准
|
|
110
|
-
|
|
111
|
-
按实际严重度给问题分类。不是所有东西都是 关键。
|
|
112
|
-
重要 意味着这个任务在修好之前不可信:不正确或脆弱的行为、
|
|
113
|
-
一个漏掉的需求、或你会为之拦下合并的可维护性损害——逻辑块的
|
|
114
|
-
逐字重复、被吞掉的错误、什么都不断言的测试。"覆盖面可以更广"
|
|
115
|
-
和打磨类建议是 次要。
|
|
116
|
-
如果计划或简报明确强制了某个本评分标准称之为缺陷的东西(一个
|
|
117
|
-
什么都不断言的测试、逻辑块的逐字重复),那**就是**一个发现——
|
|
118
|
-
把它报告为 重要,并标注为"计划强制"。计划的作者身份不能给它
|
|
119
|
-
自己的工作打分;由人类来决定。
|
|
120
|
-
在列出问题之前,先承认做得好的地方——准确的赞扬能帮实现者
|
|
121
|
-
信任其余的反馈。
|
|
122
|
-
|
|
123
|
-
## 输出格式
|
|
124
|
-
|
|
125
|
-
### 规格合规性
|
|
126
|
-
|
|
127
|
-
- ✅ 符合规格 | ❌ 发现问题:[缺失/多余/理解偏差的内容,
|
|
128
|
-
附带 file:line 引用]
|
|
129
|
-
- ⚠️ 无法从 diff 中核实:[你无法仅凭 diff 核实的需求,以及
|
|
130
|
-
控制者应当检查什么——与你能核实的一切的 ✅/❌ 结论一起报告]
|
|
131
|
-
|
|
132
|
-
### 优点
|
|
133
|
-
[哪些做得好?要具体。]
|
|
134
|
-
|
|
135
|
-
### 问题
|
|
136
|
-
|
|
137
|
-
#### 关键(必须修复)
|
|
138
|
-
#### 重要(应当修复)
|
|
139
|
-
#### 次要(锦上添花)
|
|
140
|
-
|
|
141
|
-
每个问题:file:line、哪里错了、为什么重要、如何修复(如果不明显)。
|
|
142
|
-
|
|
143
|
-
### 评估
|
|
144
|
-
|
|
145
|
-
**任务质量:** [通过 | 需要修复]
|
|
146
|
-
|
|
147
|
-
**理由:** [1-2 句技术性评估]
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
**占位符:**
|
|
151
|
-
- `[模型]` —— 必填:按 SKILL.md 的"模型选择"选审查者模型
|
|
152
|
-
- `[BRIEF_FILE]` —— 必填:任务简报文件(`scripts/task-brief PLAN N`
|
|
153
|
-
会打印路径;与实现者所用的是同一个文件)
|
|
154
|
-
- `[GLOBAL_CONSTRAINTS]` —— 从计划的"全局约束"一节或规格里逐字抄下的、
|
|
155
|
-
有约束力的需求:精确的取值、格式、以及组件之间被明确规定的关系
|
|
156
|
-
(不是流程规则——那些已经在本模板里了)
|
|
157
|
-
- `[REPORT_FILE]` —— 必填:实现者写入其详细报告的那个文件
|
|
158
|
-
- `[BASE_SHA]` —— 本任务之前的提交
|
|
159
|
-
- `[HEAD_SHA]` —— 当前提交
|
|
160
|
-
- `[DIFF_FILE]` —— 必填:控制者写入审查包的那个路径
|
|
161
|
-
(`scripts/review-package PLAN_FILE BASE HEAD` 会打印它写入的唯一路径;
|
|
162
|
-
审查包永远不会进入控制者的上下文)
|
|
163
|
-
|
|
164
|
-
**审查者返回:** 规格合规性结论(✅/❌/⚠️)、优点、问题
|
|
165
|
-
(关键/重要/次要)、任务质量结论
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: theme-factory
|
|
3
|
-
description: 用于使用主题样式化各种工件的工具包。这些工件可以是幻灯片、文档、报告、HTML 着陆页等。有 10 个预设的颜色/字体主题,可以应用于任何已创建的工件,或者可以即时生成新主题。
|
|
4
|
-
license: Complete terms in LICENSE.txt
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# 主题工厂技能
|
|
9
|
-
|
|
10
|
-
此技能提供经过策划的专业字体和颜色主题集合,每个主题都有精心选择的调色板和字体配对。选择主题后,可以将其应用于任何工件。
|
|
11
|
-
|
|
12
|
-
## 用途
|
|
13
|
-
|
|
14
|
-
要将一致的、专业的样式应用于演示幻灯片组,使用此技能。每个主题包括:
|
|
15
|
-
|
|
16
|
-
- 带有十六进制代码的凝聚调色板
|
|
17
|
-
- 标题和正文文本的互补字体配对
|
|
18
|
-
- 适合不同上下文和受众的独特视觉身份
|
|
19
|
-
|
|
20
|
-
## 使用说明
|
|
21
|
-
|
|
22
|
-
要将样式应用于幻灯片组或其他工件:
|
|
23
|
-
|
|
24
|
-
1. **展示主题展示**:显示 `theme-showcase.pdf` 文件以让用户看到所有可用的主题视觉。不要对其进行任何修改;仅展示文件供查看。
|
|
25
|
-
2. **询问选择**:询问要应用哪个主题到幻灯片组
|
|
26
|
-
3. **等待选择**:获得关于所选主题的明确确认
|
|
27
|
-
4. **应用主题**:一旦选择主题,将所选主题的颜色和字体应用于幻灯片组/工件
|
|
28
|
-
|
|
29
|
-
## 可用主题
|
|
30
|
-
|
|
31
|
-
以下是 10 个可用主题,每个主题都在 `theme-showcase.pdf` 中展示:
|
|
32
|
-
|
|
33
|
-
1. **海洋深处** - 专业且舒缓的海洋主题
|
|
34
|
-
2. **日落大道** - 温暖且充满活力的日落颜色
|
|
35
|
-
3. **森林树冠** - 自然且踏实的大地色调
|
|
36
|
-
4. **现代极简** - 干净且当代的灰度
|
|
37
|
-
5. **黄金时刻** - 丰富且温暖的秋季调色板
|
|
38
|
-
6. **北极霜** - 凉爽且 crisp 的冬季灵感主题
|
|
39
|
-
7. **沙漠玫瑰** - 柔和且精致的粉色调
|
|
40
|
-
8. **技术创新** - 大胆且现代的科技美学
|
|
41
|
-
9. **植物园** - 新鲜且有机的花园颜色
|
|
42
|
-
10. **午夜银河** - 戏剧性且宇宙般的深色调
|
|
43
|
-
|
|
44
|
-
## 主题详情
|
|
45
|
-
|
|
46
|
-
每个主题都在 `themes/` 目录中定义,具有完整的规范,包括:
|
|
47
|
-
|
|
48
|
-
- 带有十六进制代码的凝聚调色板
|
|
49
|
-
- 标题和正文文本的互补字体配对
|
|
50
|
-
- 适合不同上下文和受众的独特视觉身份
|
|
51
|
-
|
|
52
|
-
## 应用过程
|
|
53
|
-
|
|
54
|
-
选择首选主题后:
|
|
55
|
-
|
|
56
|
-
1. 从 `themes/` 目录读取相应的主题文件
|
|
57
|
-
2. 将整个幻灯片组一致地应用指定的颜色和字体
|
|
58
|
-
3. 确保适当的对比度和可读性
|
|
59
|
-
4. 在所有幻灯片上保持主题的视觉身份
|
|
60
|
-
|
|
61
|
-
## 创建自己的主题
|
|
62
|
-
|
|
63
|
-
要处理现有主题都不适用于工件的情况,创建自定义主题。根据提供的输入,生成与上述主题相似的新主题。给主题一个类似的名称,描述字体/颜色组合代表什么。使用提供的基本描述选择合适的颜色/字体。生成主题后,展示它以供审查和验证。之后,按照上述说明应用主题。
|
|
Binary file
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Arctic Frost
|
|
2
|
-
|
|
3
|
-
A cool and crisp winter-inspired theme that conveys clarity, precision, and professionalism.
|
|
4
|
-
|
|
5
|
-
## Color Palette
|
|
6
|
-
|
|
7
|
-
- **Ice Blue**: `#d4e4f7` - Light backgrounds and highlights
|
|
8
|
-
- **Steel Blue**: `#4a6fa5` - Primary accent color
|
|
9
|
-
- **Silver**: `#c0c0c0` - Metallic accent elements
|
|
10
|
-
- **Crisp White**: `#fafafa` - Clean backgrounds and text
|
|
11
|
-
|
|
12
|
-
## Typography
|
|
13
|
-
|
|
14
|
-
- **Headers**: DejaVu Sans Bold
|
|
15
|
-
- **Body Text**: DejaVu Sans
|
|
16
|
-
|
|
17
|
-
## Best Used For
|
|
18
|
-
|
|
19
|
-
Healthcare presentations, technology solutions, winter sports, clean tech, pharmaceutical content.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Botanical Garden
|
|
2
|
-
|
|
3
|
-
A fresh and organic theme featuring vibrant garden-inspired colors for lively presentations.
|
|
4
|
-
|
|
5
|
-
## Color Palette
|
|
6
|
-
|
|
7
|
-
- **Fern Green**: `#4a7c59` - Rich natural green
|
|
8
|
-
- **Marigold**: `#f9a620` - Bright floral accent
|
|
9
|
-
- **Terracotta**: `#b7472a` - Earthy warm tone
|
|
10
|
-
- **Cream**: `#f5f3ed` - Soft neutral backgrounds
|
|
11
|
-
|
|
12
|
-
## Typography
|
|
13
|
-
|
|
14
|
-
- **Headers**: DejaVu Serif Bold
|
|
15
|
-
- **Body Text**: DejaVu Sans
|
|
16
|
-
|
|
17
|
-
## Best Used For
|
|
18
|
-
|
|
19
|
-
Garden centers, food presentations, farm-to-table content, botanical brands, natural products.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Desert Rose
|
|
2
|
-
|
|
3
|
-
A soft and sophisticated theme with dusty, muted tones perfect for elegant presentations.
|
|
4
|
-
|
|
5
|
-
## Color Palette
|
|
6
|
-
|
|
7
|
-
- **Dusty Rose**: `#d4a5a5` - Soft primary color
|
|
8
|
-
- **Clay**: `#b87d6d` - Earthy accent
|
|
9
|
-
- **Sand**: `#e8d5c4` - Warm neutral backgrounds
|
|
10
|
-
- **Deep Burgundy**: `#5d2e46` - Rich dark contrast
|
|
11
|
-
|
|
12
|
-
## Typography
|
|
13
|
-
|
|
14
|
-
- **Headers**: FreeSans Bold
|
|
15
|
-
- **Body Text**: FreeSans
|
|
16
|
-
|
|
17
|
-
## Best Used For
|
|
18
|
-
|
|
19
|
-
Fashion presentations, beauty brands, wedding planning, interior design, boutique businesses.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Forest Canopy
|
|
2
|
-
|
|
3
|
-
A natural and grounded theme featuring earth tones inspired by dense forest environments.
|
|
4
|
-
|
|
5
|
-
## Color Palette
|
|
6
|
-
|
|
7
|
-
- **Forest Green**: `#2d4a2b` - Primary dark green
|
|
8
|
-
- **Sage**: `#7d8471` - Muted green accent
|
|
9
|
-
- **Olive**: `#a4ac86` - Light accent color
|
|
10
|
-
- **Ivory**: `#faf9f6` - Backgrounds and text
|
|
11
|
-
|
|
12
|
-
## Typography
|
|
13
|
-
|
|
14
|
-
- **Headers**: FreeSerif Bold
|
|
15
|
-
- **Body Text**: FreeSans
|
|
16
|
-
|
|
17
|
-
## Best Used For
|
|
18
|
-
|
|
19
|
-
Environmental presentations, sustainability reports, outdoor brands, wellness content, organic products.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Golden Hour
|
|
2
|
-
|
|
3
|
-
A rich and warm autumnal palette that creates an inviting and sophisticated atmosphere.
|
|
4
|
-
|
|
5
|
-
## Color Palette
|
|
6
|
-
|
|
7
|
-
- **Mustard Yellow**: `#f4a900` - Bold primary accent
|
|
8
|
-
- **Terracotta**: `#c1666b` - Warm secondary color
|
|
9
|
-
- **Warm Beige**: `#d4b896` - Neutral backgrounds
|
|
10
|
-
- **Chocolate Brown**: `#4a403a` - Dark text and anchors
|
|
11
|
-
|
|
12
|
-
## Typography
|
|
13
|
-
|
|
14
|
-
- **Headers**: FreeSans Bold
|
|
15
|
-
- **Body Text**: FreeSans
|
|
16
|
-
|
|
17
|
-
## Best Used For
|
|
18
|
-
|
|
19
|
-
Restaurant presentations, hospitality brands, fall campaigns, cozy lifestyle content, artisan products.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Midnight Galaxy
|
|
2
|
-
|
|
3
|
-
A dramatic and cosmic theme with deep purples and mystical tones for impactful presentations.
|
|
4
|
-
|
|
5
|
-
## Color Palette
|
|
6
|
-
|
|
7
|
-
- **Deep Purple**: `#2b1e3e` - Rich dark base
|
|
8
|
-
- **Cosmic Blue**: `#4a4e8f` - Mystical mid-tone
|
|
9
|
-
- **Lavender**: `#a490c2` - Soft accent color
|
|
10
|
-
- **Silver**: `#e6e6fa` - Light highlights and text
|
|
11
|
-
|
|
12
|
-
## Typography
|
|
13
|
-
|
|
14
|
-
- **Headers**: FreeSans Bold
|
|
15
|
-
- **Body Text**: FreeSans
|
|
16
|
-
|
|
17
|
-
## Best Used For
|
|
18
|
-
|
|
19
|
-
Entertainment industry, gaming presentations, nightlife venues, luxury brands, creative agencies.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Modern Minimalist
|
|
2
|
-
|
|
3
|
-
A clean and contemporary theme with a sophisticated grayscale palette for maximum versatility.
|
|
4
|
-
|
|
5
|
-
## Color Palette
|
|
6
|
-
|
|
7
|
-
- **Charcoal**: `#36454f` - Primary dark color
|
|
8
|
-
- **Slate Gray**: `#708090` - Medium gray for accents
|
|
9
|
-
- **Light Gray**: `#d3d3d3` - Backgrounds and dividers
|
|
10
|
-
- **White**: `#ffffff` - Text and clean backgrounds
|
|
11
|
-
|
|
12
|
-
## Typography
|
|
13
|
-
|
|
14
|
-
- **Headers**: DejaVu Sans Bold
|
|
15
|
-
- **Body Text**: DejaVu Sans
|
|
16
|
-
|
|
17
|
-
## Best Used For
|
|
18
|
-
|
|
19
|
-
Tech presentations, architecture portfolios, design showcases, modern business proposals, data visualization.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Ocean Depths
|
|
2
|
-
|
|
3
|
-
A professional and calming maritime theme that evokes the serenity of deep ocean waters.
|
|
4
|
-
|
|
5
|
-
## Color Palette
|
|
6
|
-
|
|
7
|
-
- **Deep Navy**: `#1a2332` - Primary background color
|
|
8
|
-
- **Teal**: `#2d8b8b` - Accent color for highlights and emphasis
|
|
9
|
-
- **Seafoam**: `#a8dadc` - Secondary accent for lighter elements
|
|
10
|
-
- **Cream**: `#f1faee` - Text and light backgrounds
|
|
11
|
-
|
|
12
|
-
## Typography
|
|
13
|
-
|
|
14
|
-
- **Headers**: DejaVu Sans Bold
|
|
15
|
-
- **Body Text**: DejaVu Sans
|
|
16
|
-
|
|
17
|
-
## Best Used For
|
|
18
|
-
|
|
19
|
-
Corporate presentations, financial reports, professional consulting decks, trust-building content.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Sunset Boulevard
|
|
2
|
-
|
|
3
|
-
A warm and vibrant theme inspired by golden hour sunsets, perfect for energetic and creative presentations.
|
|
4
|
-
|
|
5
|
-
## Color Palette
|
|
6
|
-
|
|
7
|
-
- **Burnt Orange**: `#e76f51` - Primary accent color
|
|
8
|
-
- **Coral**: `#f4a261` - Secondary warm accent
|
|
9
|
-
- **Warm Sand**: `#e9c46a` - Highlighting and backgrounds
|
|
10
|
-
- **Deep Purple**: `#264653` - Dark contrast and text
|
|
11
|
-
|
|
12
|
-
## Typography
|
|
13
|
-
|
|
14
|
-
- **Headers**: DejaVu Serif Bold
|
|
15
|
-
- **Body Text**: DejaVu Sans
|
|
16
|
-
|
|
17
|
-
## Best Used For
|
|
18
|
-
|
|
19
|
-
Creative pitches, marketing presentations, lifestyle brands, event promotions, inspirational content.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Tech Innovation
|
|
2
|
-
|
|
3
|
-
A bold and modern theme with high-contrast colors perfect for cutting-edge technology presentations.
|
|
4
|
-
|
|
5
|
-
## Color Palette
|
|
6
|
-
|
|
7
|
-
- **Electric Blue**: `#0066ff` - Vibrant primary accent
|
|
8
|
-
- **Neon Cyan**: `#00ffff` - Bright highlight color
|
|
9
|
-
- **Dark Gray**: `#1e1e1e` - Deep backgrounds
|
|
10
|
-
- **White**: `#ffffff` - Clean text and contrast
|
|
11
|
-
|
|
12
|
-
## Typography
|
|
13
|
-
|
|
14
|
-
- **Headers**: DejaVu Sans Bold
|
|
15
|
-
- **Body Text**: DejaVu Sans
|
|
16
|
-
|
|
17
|
-
## Best Used For
|
|
18
|
-
|
|
19
|
-
Tech startups, software launches, innovation showcases, AI/ML presentations, digital transformation content.
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: using-git-worktrees
|
|
3
|
-
description: 当需要开始与当前工作区隔离的功能开发,或在执行实现计划之前使用——通过原生工具或 git worktree 回退机制确保隔离工作区存在
|
|
4
|
-
version: "1.0.0"
|
|
5
|
-
license: MIT
|
|
6
|
-
metadata:
|
|
7
|
-
hermes:
|
|
8
|
-
tags: [git, workflow]
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# 使用 Git 工作树
|
|
12
|
-
|
|
13
|
-
## 概述
|
|
14
|
-
|
|
15
|
-
确保工作发生在隔离的工作区中。优先使用你的平台的原生 worktree 工具。仅在没有原生工具可用时,再回退到手动 git worktree。
|
|
16
|
-
|
|
17
|
-
**核心原则:** 先检测现有隔离。然后用原生工具。再回退到 git。绝不与 harness 对抗。
|
|
18
|
-
|
|
19
|
-
**开始时宣布:** "我正在使用 using-git-worktrees 技能来建立一个隔离的工作区。"
|
|
20
|
-
|
|
21
|
-
## 步骤 0:检测现有隔离
|
|
22
|
-
|
|
23
|
-
**创建任何东西之前,先检查你是否已经在一个隔离的工作区里。**
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P)
|
|
27
|
-
GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P)
|
|
28
|
-
BRANCH=$(git branch --show-current)
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Submodule 守卫:** 在 git submodule 内 `GIT_DIR != GIT_COMMON` 也为真。在判定"已经在 worktree 内"之前,先确认你不在 submodule 里:
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
# 如果这条命令返回路径,说明你在 submodule 里,不是 worktree —— 按普通仓库处理
|
|
35
|
-
git rev-parse --show-superproject-working-tree 2>/dev/null
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
**如果 `GIT_DIR != GIT_COMMON`(且不是 submodule):** 你已经在一个 linked worktree 内。跳到步骤 2(项目设置)。**不要**再创建一个 worktree。
|
|
39
|
-
|
|
40
|
-
按分支状态报告:
|
|
41
|
-
|
|
42
|
-
- 在某个分支上:"已经在隔离工作区 `<path>`,分支 `<name>`。"
|
|
43
|
-
- 分离 HEAD:"已经在隔离工作区 `<path>`(分离 HEAD,由外部管理)。完成时需要创建分支。"
|
|
44
|
-
|
|
45
|
-
**如果 `GIT_DIR == GIT_COMMON`(或在 submodule 内):** 你在一个普通的仓库检出里。
|
|
46
|
-
|
|
47
|
-
用户是否已经在你的 instructions 里表明过 worktree 偏好?如果没有,创建 worktree 之前先征求同意:
|
|
48
|
-
|
|
49
|
-
> "你希望我搭一个隔离的 worktree 吗?它能保护你当前分支不被改动。"
|
|
50
|
-
|
|
51
|
-
如果用户已声明过偏好,直接遵循,不再询问。如果用户拒绝同意,原地工作并跳到步骤 2。
|
|
52
|
-
|
|
53
|
-
## 步骤 1:创建隔离工作区
|
|
54
|
-
|
|
55
|
-
**你有两种机制。按这个顺序尝试。**
|
|
56
|
-
|
|
57
|
-
### 1a. 原生 Worktree 工具(首选)
|
|
58
|
-
|
|
59
|
-
用户已经请求隔离工作区(步骤 0 已获同意)。你是否已经有创建 worktree 的方法?可能是名为 `EnterWorktree`、`WorktreeCreate` 的工具、`/worktree` 命令,或 `--worktree` 标志。如果有,用它,然后跳到步骤 2。
|
|
60
|
-
|
|
61
|
-
原生工具自动处理目录放置、分支创建和清理。在你已经有原生工具的情况下使用 `git worktree add`,会创建你的 harness 看不到也无法管理的"幻影状态"。
|
|
62
|
-
|
|
63
|
-
只有在没有原生 worktree 工具可用时,才进入步骤 1b。
|
|
64
|
-
|
|
65
|
-
### 1b. Git Worktree 回退
|
|
66
|
-
|
|
67
|
-
**只在步骤 1a 不适用时使用** —— 你没有可用的原生 worktree 工具。手动用 git 创建 worktree。
|
|
68
|
-
|
|
69
|
-
#### 目录选择
|
|
70
|
-
|
|
71
|
-
按以下优先级。明确的用户偏好始终优先于观察到的文件系统状态。
|
|
72
|
-
|
|
73
|
-
1. **检查你的 instructions 里是否声明过 worktree 目录偏好。** 如果用户已指定,不再询问直接用。
|
|
74
|
-
|
|
75
|
-
2. **检查是否存在项目本地的 worktree 目录:**
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
ls -d .worktrees 2>/dev/null # 首选(隐藏目录)
|
|
79
|
-
ls -d worktrees 2>/dev/null # 备选
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
找到就用。如果两者都存在,`.worktrees` 优先。
|
|
83
|
-
|
|
84
|
-
3. **如果没有其他可参考的信息**,默认用项目根目录下的 `.worktrees/`。
|
|
85
|
-
|
|
86
|
-
#### 安全验证(仅项目本地目录)
|
|
87
|
-
|
|
88
|
-
**创建 worktree 前必须验证目录已被忽略:**
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/dev/null
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
**如果未被忽略:** 添加到 .gitignore,提交该改动,然后继续。
|
|
95
|
-
|
|
96
|
-
**为什么关键:** 防止 worktree 内容被意外提交到仓库。
|
|
97
|
-
|
|
98
|
-
#### 创建工作树
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
# 根据选定位置确定路径
|
|
102
|
-
path="$LOCATION/$BRANCH_NAME"
|
|
103
|
-
|
|
104
|
-
git worktree add "$path" -b "$BRANCH_NAME"
|
|
105
|
-
cd "$path"
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
**沙盒回退:** 如果 `git worktree add` 因权限错误(沙盒拒绝)失败,告诉用户沙盒阻止了 worktree 创建,你将在当前目录原地工作。然后原地运行 setup 和基线测试。
|
|
109
|
-
|
|
110
|
-
## 步骤 2:项目设置
|
|
111
|
-
|
|
112
|
-
自动检测并运行相应的设置命令:
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
# Node.js
|
|
116
|
-
if [ -f package.json ]; then npm install; fi
|
|
117
|
-
|
|
118
|
-
# Rust
|
|
119
|
-
if [ -f Cargo.toml ]; then cargo build; fi
|
|
120
|
-
|
|
121
|
-
# Python
|
|
122
|
-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
123
|
-
if [ -f pyproject.toml ]; then poetry install; fi
|
|
124
|
-
|
|
125
|
-
# Go
|
|
126
|
-
if [ -f go.mod ]; then go mod download; fi
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
## 步骤 3:验证基线干净
|
|
130
|
-
|
|
131
|
-
运行测试确保工作区初始状态干净:
|
|
132
|
-
|
|
133
|
-
```bash
|
|
134
|
-
# 使用项目对应的命令
|
|
135
|
-
npm test / cargo test / pytest / go test ./...
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
**如果测试失败:** 报告失败,询问是继续还是排查。
|
|
139
|
-
|
|
140
|
-
**如果测试通过:** 报告就绪。
|
|
141
|
-
|
|
142
|
-
### 报告
|
|
143
|
-
|
|
144
|
-
```
|
|
145
|
-
工作树已就绪:<full-path>
|
|
146
|
-
测试通过(<N> 个测试,0 个失败)
|
|
147
|
-
准备实现 <feature-name>
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
## 快速参考
|
|
151
|
-
|
|
152
|
-
| 情况 | 操作 |
|
|
153
|
-
|------|------|
|
|
154
|
-
| 已在 linked worktree 内 | 跳过创建(步骤 0) |
|
|
155
|
-
| 在 submodule 内 | 按普通仓库处理(步骤 0 守卫) |
|
|
156
|
-
| 有原生 worktree 工具 | 用它(步骤 1a) |
|
|
157
|
-
| 没有原生工具 | git worktree 回退(步骤 1b) |
|
|
158
|
-
| `.worktrees/` 存在 | 用它(验证已忽略) |
|
|
159
|
-
| `worktrees/` 存在 | 用它(验证已忽略) |
|
|
160
|
-
| 两者都存在 | 用 `.worktrees/` |
|
|
161
|
-
| 都不存在 | 检查 instructions 文件,再默认 `.worktrees/` |
|
|
162
|
-
| 目录未被忽略 | 添加到 .gitignore + 提交 |
|
|
163
|
-
| 创建时权限错误 | 沙盒回退,原地工作 |
|
|
164
|
-
| 基线测试失败 | 报告失败 + 询问 |
|
|
165
|
-
| 无 package.json/Cargo.toml | 跳过依赖安装 |
|
|
166
|
-
|
|
167
|
-
## 常见的合理化借口
|
|
168
|
-
|
|
169
|
-
| 借口 | 现实 |
|
|
170
|
-
|------|------|
|
|
171
|
-
| "我显然不在 worktree 里,不用检查" | 跑步骤 0。宿主环境创建的隔离和 submodule 都能骗过肉眼;只有检测命令能定论。 |
|
|
172
|
-
| "`git worktree add` 比去找原生工具快" | 原生工具(如 `EnterWorktree`)掌管位置、分支和清理。绕过它是**第一大错误** —— 会造出你的宿主环境看不见也管不了的幽灵状态。 |
|
|
173
|
-
| "这个 worktree 目录肯定已经被忽略了" | 跑 `git check-ignore`。一个没被忽略的 worktree 目录会把整棵树提交进仓库。 |
|
|
174
|
-
| "目录名随便取都行" | 明确指示 > 已存在的项目内目录 > `.worktrees/` 默认值。 |
|
|
175
|
-
| "工作区是全新的,基线测试可以先放放" | 基线不干净会让之后每一次失败都含义不明。现在就跑测试;越过失败继续是你人类伙伴的决定。 |
|