flower-trellis 0.3.0-beta.3 → 0.3.0-beta.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.
@@ -5,13 +5,14 @@ description: |
5
5
  Implement can route inline or subagent. Check defaults to check-all inline/subagent; lightweight
6
6
  trellis-check is hidden and only available when the user explicitly requests "light check" / "轻量检查".
7
7
  Invoked from Phase 2.1 target=implement and Phase 2.2 target=check/check-all of the routing-aware workflow.
8
- Trellis 0.6.1 keeps Phase 3.1 as a numbered gap; final re-checks return to Phase 2.2 before commit.
8
+ Same-cycle repair/recheck loops reuse the latest route decision instead of prompting again.
9
+ Final re-checks return to Phase 2.2 before commit.
9
10
  Skip in non-trellis projects (no .trellis/). Not for other subagents (trellis-research / trellis-debug).
10
11
  ---
11
12
 
12
13
  # Trellis 路由器:implement / check 执行模式选择
13
14
 
14
- 主 agent 进入 Phase 2.1 的实现路由或 Phase 2.2 的检查路由时调用本 skill,决定 implement / check 的执行模式。Trellis 0.6.1 Phase 3.1 是编号空洞;提交前若确实需要最终复查,应回到 Phase 2.2 再执行 check 路由。核心目标是减少重复打断:正常路由优先读取个人本地配置;用户要求临时改、重新选择或清除默认时,必须绕过配置并重新展示选项。
15
+ 主 agent 进入 Phase 2.1 实现路由或 Phase 2.2 检查路由时调用本 skillcheck 失败后的同轮修复/重检复用最近路由,不重新调用本 skill。提交前确实需要最终复查时,回到 Phase 2.2 再执行 check 路由。
15
16
 
16
17
  个人配置只写入 `.trellis/.route-prefs.tmp`。该文件匹配 `.trellis/.gitignore` 的 `*.tmp` 规则,属于开发者本地偏好,不纳入 git,也不影响其他开发者。
17
18
 
@@ -19,7 +20,9 @@ description: |
19
20
 
20
21
  ## Step 0: 识别目标与用户意图
21
22
 
22
- 个人 route 配置只决定“已获准执行后的模式”,不是开工授权。读取 `.trellis/.route-prefs.tmp` 前,必须确认当前 workflow 已允许进入对应 target:implement 需要任务已完成规划确认并处于 `in_progress`;check 用于 Phase 2.2 检查执行,或用户明确要求最终复查 / 轻量检查。最终复查只有在 Phase 2.2 结果缺失、check 后代码变更、风险较高或用户明确要求复查时才回到 Phase 2.2 并重新进入 check 路由。如果仍在 planning、等待用户确认,或用户表达“等一下 / 我再想想”,停止,不读取个人配置。
23
+ 个人 route 配置只决定“已获准执行后的模式”,不是开工授权。读取 `.trellis/.route-prefs.tmp` 前,必须确认当前 workflow 已允许进入对应 target:implement 需要任务已完成规划确认并处于 `in_progress`;check 用于 Phase 2.2 首次检查执行,或用户明确要求最终复查 / 轻量检查。最终复查只有在 Phase 2.2 结果缺失、check 后代码在同轮修复闭环外发生变化、风险较高或用户明确要求复查时才回到 Phase 2.2 并重新进入 check 路由。如果仍在 planning、等待用户确认,或用户表达“等一下 / 我再想想”,停止,不读取个人配置。
24
+
25
+ check 刚发现问题或用户指出刚检查过的实现有问题时,同轮修复/重检复用最近 implement/check 路由;除非用户明确要求重选/临时改/清除默认,不再调用本 skill。
23
26
 
24
27
  Codex inline mode 只表示主会话默认直接执行,不是 route 选项过滤器。即使当前上下文出现 `<codex-mode>inline...do not dispatch...</codex-mode>` 或 `workflow-state:in_progress-inline`,也不能推断“只能 inline”或跳过 subagent 选项;仍必须读取 `.trellis/.route-prefs.tmp`,或在无有效配置时展示正常 inline/subagent 选项。若本 skill 的紧邻路由决定是 subagent,本步骤允许主 agent dispatch 对应 implement/check sub-agent;禁止的是绕过 `trellis-route` 直接 dispatch。
25
28
 
@@ -238,11 +241,12 @@ OLD_CHECK=$(awk -F= '$1=="check"{print $2}' "$PREF_FILE" 2>/dev/null | tail -n 1
238
241
  1. **个人配置私有**:`.trellis/.route-prefs.tmp` 是本地偏好,gitignored,不能进入提交计划。
239
242
  2. **正常路由少打断**:命中个人配置时直接输出路由决定,不再重复询问。
240
243
  3. **显式覆盖优先于配置**:用户要求临时改、重新选择或清除默认时,必须重新展示选项,不能让配置优先。
241
- 4. **check 默认全面检查**:普通 check 路由只展示 `check-all` inline/subagent,不推荐轻量 `trellis-check`。
242
- 5. **轻量 check 是隐藏逃生口**:只有用户明确请求 `light check` / `轻量检查` 时才可走轻量 `trellis-check`。
243
- 6. **决策与执行分离**:本 skill 只输出指令,下一轮由主 agent 调工具。
244
- 7. **严格执行用户选择**:路由结论一旦输出,主 agent 必须按指令执行,不可“出于谨慎”再换路径。
245
- 8. **Codex inline 不裁剪选项**:Codex inline 是默认执行模式,不是只能 inline 的强制模式;route 明确选中 subagent 时,本步骤可按 subagent 路径执行。
244
+ 4. **失败闭环复用路由**:check 发现问题后的同一轮修复/重检沿用最近一次 implement/check 路由,不再次询问模式。
245
+ 5. **check 默认全面检查**:普通 check 路由只展示 `check-all` inline/subagent,不推荐轻量 `trellis-check`。
246
+ 6. **轻量 check 是隐藏逃生口**:只有用户明确请求 `light check` / `轻量检查` 时才可走轻量 `trellis-check`。
247
+ 7. **决策与执行分离**:本 skill 只输出指令,下一轮由主 agent 调工具。
248
+ 8. **严格执行用户选择**:路由结论一旦输出,主 agent 必须按指令执行,不可“出于谨慎”再换路径。
249
+ 9. **Codex inline 不裁剪选项**:Codex inline 是默认执行模式,不是只能 inline 的强制模式;route 明确选中 subagent 时,本步骤可按 subagent 路径执行。
246
250
 
247
251
  ---
248
252
 
@@ -254,6 +258,8 @@ OLD_CHECK=$(awk -F= '$1=="check"{print $2}' "$PREF_FILE" 2>/dev/null | tail -n 1
254
258
  - 在普通 check 选项里展示 `Check inline` / `Check subagent`。
255
259
  - 没有用户明确请求时,把 check 降级到轻量 `trellis-check`。
256
260
  - `AskUserQuestion` / `request_user_input` 不可用时,记录为 inline 或 subagent 路径并继续。
261
+ - 没有有效 check 配置、用户选择或最近本轮 check 路由决定时,自动执行 inline check。
262
+ - check 发现问题后,把同一轮修复/重检当成新的 route 边界再次询问模式。
257
263
  - 给 check 任何模式附加“跳过编译”指令。
258
264
  - 询问后忽视用户答案默认 subagent。
259
265
  - 因 `<codex-mode>` 或 `in_progress-inline` 提到 inline,就自行把无配置 route 结果改成 inline 或隐藏 subagent 选项。
@@ -5,13 +5,14 @@ description: |
5
5
  Implement can route inline or subagent. Check defaults to check-all inline/subagent; lightweight
6
6
  trellis-check is hidden and only available when the user explicitly requests "light check" / "轻量检查".
7
7
  Invoked from Phase 2.1 target=implement and Phase 2.2 target=check/check-all of the routing-aware workflow.
8
- Trellis 0.6.1 keeps Phase 3.1 as a numbered gap; final re-checks return to Phase 2.2 before commit.
8
+ Same-cycle repair/recheck loops reuse the latest route decision instead of prompting again.
9
+ Final re-checks return to Phase 2.2 before commit.
9
10
  Skip in non-trellis projects (no .trellis/). Not for other subagents (trellis-research / trellis-debug).
10
11
  ---
11
12
 
12
13
  # Trellis 路由器:implement / check 执行模式选择
13
14
 
14
- 主 agent 进入 Phase 2.1 的实现路由或 Phase 2.2 的检查路由时调用本 skill,决定 implement / check 的执行模式。Trellis 0.6.1 Phase 3.1 是编号空洞;提交前若确实需要最终复查,应回到 Phase 2.2 再执行 check 路由。核心目标是减少重复打断:正常路由优先读取个人本地配置;用户要求临时改、重新选择或清除默认时,必须绕过配置并重新展示选项。
15
+ 主 agent 进入 Phase 2.1 实现路由或 Phase 2.2 检查路由时调用本 skillcheck 失败后的同轮修复/重检复用最近路由,不重新调用本 skill。提交前确实需要最终复查时,回到 Phase 2.2 再执行 check 路由。
15
16
 
16
17
  个人配置只写入 `.trellis/.route-prefs.tmp`。该文件匹配 `.trellis/.gitignore` 的 `*.tmp` 规则,属于开发者本地偏好,不纳入 git,也不影响其他开发者。
17
18
 
@@ -19,7 +20,9 @@ description: |
19
20
 
20
21
  ## Step 0: 识别目标与用户意图
21
22
 
22
- 个人 route 配置只决定“已获准执行后的模式”,不是开工授权。读取 `.trellis/.route-prefs.tmp` 前,必须确认当前 workflow 已允许进入对应 target:implement 需要任务已完成规划确认并处于 `in_progress`;check 用于 Phase 2.2 检查执行,或用户明确要求最终复查 / 轻量检查。最终复查只有在 Phase 2.2 结果缺失、check 后代码变更、风险较高或用户明确要求复查时才回到 Phase 2.2 并重新进入 check 路由。如果仍在 planning、等待用户确认,或用户表达“等一下 / 我再想想”,停止,不读取个人配置。
23
+ 个人 route 配置只决定“已获准执行后的模式”,不是开工授权。读取 `.trellis/.route-prefs.tmp` 前,必须确认当前 workflow 已允许进入对应 target:implement 需要任务已完成规划确认并处于 `in_progress`;check 用于 Phase 2.2 首次检查执行,或用户明确要求最终复查 / 轻量检查。最终复查只有在 Phase 2.2 结果缺失、check 后代码在同轮修复闭环外发生变化、风险较高或用户明确要求复查时才回到 Phase 2.2 并重新进入 check 路由。如果仍在 planning、等待用户确认,或用户表达“等一下 / 我再想想”,停止,不读取个人配置。
24
+
25
+ check 刚发现问题或用户指出刚检查过的实现有问题时,同轮修复/重检复用最近 implement/check 路由;除非用户明确要求重选/临时改/清除默认,不再调用本 skill。
23
26
 
24
27
  Codex inline mode 只表示主会话默认直接执行,不是 route 选项过滤器。即使当前上下文出现 `<codex-mode>inline...do not dispatch...</codex-mode>` 或 `workflow-state:in_progress-inline`,也不能推断“只能 inline”或跳过 subagent 选项;仍必须读取 `.trellis/.route-prefs.tmp`,或在无有效配置时展示正常 inline/subagent 选项。若本 skill 的紧邻路由决定是 subagent,本步骤允许主 agent dispatch 对应 implement/check sub-agent;禁止的是绕过 `trellis-route` 直接 dispatch。
25
28
 
@@ -238,11 +241,12 @@ OLD_CHECK=$(awk -F= '$1=="check"{print $2}' "$PREF_FILE" 2>/dev/null | tail -n 1
238
241
  1. **个人配置私有**:`.trellis/.route-prefs.tmp` 是本地偏好,gitignored,不能进入提交计划。
239
242
  2. **正常路由少打断**:命中个人配置时直接输出路由决定,不再重复询问。
240
243
  3. **显式覆盖优先于配置**:用户要求临时改、重新选择或清除默认时,必须重新展示选项,不能让配置优先。
241
- 4. **check 默认全面检查**:普通 check 路由只展示 `check-all` inline/subagent,不推荐轻量 `trellis-check`。
242
- 5. **轻量 check 是隐藏逃生口**:只有用户明确请求 `light check` / `轻量检查` 时才可走轻量 `trellis-check`。
243
- 6. **决策与执行分离**:本 skill 只输出指令,下一轮由主 agent 调工具。
244
- 7. **严格执行用户选择**:路由结论一旦输出,主 agent 必须按指令执行,不可“出于谨慎”再换路径。
245
- 8. **Codex inline 不裁剪选项**:Codex inline 是默认执行模式,不是只能 inline 的强制模式;route 明确选中 subagent 时,本步骤可按 subagent 路径执行。
244
+ 4. **失败闭环复用路由**:check 发现问题后的同一轮修复/重检沿用最近一次 implement/check 路由,不再次询问模式。
245
+ 5. **check 默认全面检查**:普通 check 路由只展示 `check-all` inline/subagent,不推荐轻量 `trellis-check`。
246
+ 6. **轻量 check 是隐藏逃生口**:只有用户明确请求 `light check` / `轻量检查` 时才可走轻量 `trellis-check`。
247
+ 7. **决策与执行分离**:本 skill 只输出指令,下一轮由主 agent 调工具。
248
+ 8. **严格执行用户选择**:路由结论一旦输出,主 agent 必须按指令执行,不可“出于谨慎”再换路径。
249
+ 9. **Codex inline 不裁剪选项**:Codex inline 是默认执行模式,不是只能 inline 的强制模式;route 明确选中 subagent 时,本步骤可按 subagent 路径执行。
246
250
 
247
251
  ---
248
252
 
@@ -254,6 +258,8 @@ OLD_CHECK=$(awk -F= '$1=="check"{print $2}' "$PREF_FILE" 2>/dev/null | tail -n 1
254
258
  - 在普通 check 选项里展示 `Check inline` / `Check subagent`。
255
259
  - 没有用户明确请求时,把 check 降级到轻量 `trellis-check`。
256
260
  - `AskUserQuestion` / `request_user_input` 不可用时,记录为 inline 或 subagent 路径并继续。
261
+ - 没有有效 check 配置、用户选择或最近本轮 check 路由决定时,自动执行 inline check。
262
+ - check 发现问题后,把同一轮修复/重检当成新的 route 边界再次询问模式。
257
263
  - 给 check 任何模式附加“跳过编译”指令。
258
264
  - 询问后忽视用户答案默认 subagent。
259
265
  - 因 `<codex-mode>` 或 `in_progress-inline` 提到 inline,就自行把无配置 route 结果改成 inline 或隐藏 subagent 选项。
@@ -1,6 +1,8 @@
1
1
  <!-- BEGIN skill-garden workflow-state in_progress_inline v0.6 -->
2
2
  HIGHEST PRIORITY SKILL-GARDEN STATE GUARD (in_progress-inline):
3
- Inline mode does not skip or constrain `trellis-route`: at Phase 2.1, route `implement` first; at Phase 2.2, route `check` before running check/check-all.
3
+ Inline mode does not skip or constrain route: Phase 2.1 routes `implement`; Phase 2.2 routes `check` before check/check-all.
4
+ On check failure or a user-reported issue in the just-checked work, reuse the latest implement/check route; reroute only on explicit reselect/override or a new independent check stage.
5
+ No valid check route/preference -> ask numbered route choices and wait; inline mode is not permission to default to inline check.
4
6
  After `trellis-check` / `trellis-check-all`, stop and report; point the user to Phase 3.4 `trellis-push` (or commit-only when needed). Do not run `/trellis:finish-work` unless the user explicitly asks after Phase 3.4 is complete.
5
7
  This guard overrides any lower `Flow: ... -> /trellis:finish-work` line in this state block.
6
8
  At Phase 3.4, code commit/push still goes through `trellis-push` (commit-only for commit-without-push); never bare `git commit`/`git push` on code (hub: Code Commit Confirmation Gate).
@@ -1,9 +1,10 @@
1
1
  <!-- BEGIN skill-garden workflow-state in_progress v0.6 -->
2
2
  HIGHEST PRIORITY SKILL-GARDEN STATE GUARD (in_progress):
3
- At Phase 2.1, invoke `trellis-route(implement)` first.
4
- At Phase 2.2, invoke `trellis-route(check)` before running or dispatching check/check-all.
5
- Do not spawn `trellis-implement` at Phase 2.1 or `trellis-check` / `trellis-check-all` at Phase 2.2 unless `trellis-route` just selected subagent mode.
6
- If routing helper is unavailable at the Phase 2.1 or Phase 2.2 route boundary, ask the same numbered route choices in normal chat and wait for the user's selection.
3
+ Phase 2.1: run `trellis-route(implement)` first.
4
+ Phase 2.2: run `trellis-route(check)` before check/check-all.
5
+ On check failure or a user-reported issue in the just-checked work, reuse the latest implement/check route; reroute only on explicit reselect/override or a new independent check stage.
6
+ Do not spawn `trellis-implement` or `trellis-check*` unless route selected subagent, including a reused same-cycle subagent route.
7
+ If the helper is unavailable, ask numbered route choices and wait; do not default to inline check.
7
8
  After `trellis-check` / `trellis-check-all`, stop and report; point the user to Phase 3.4 `trellis-push` (or commit-only when needed). Do not run `/trellis:finish-work` unless the user explicitly asks after Phase 3.4 is complete.
8
9
  This guard overrides any lower `Flow: ... -> /trellis:finish-work` line in this state block.
9
10
  At Phase 3.4, code commit/push goes through `trellis-push` (commit-only mode for commit-without-push); never bare `git commit`/`git push` on code (hub: Code Commit Confirmation Gate).
@@ -6,15 +6,19 @@
6
6
 
7
7
  **Priority**: This hub overrides any conflicting Trellis workflow, skill, or command text for the scoped behaviors below.
8
8
 
9
- **Scope**: Phase 2.1 implement routing, Phase 2.2 check/check-all routing, post-check stop, Phase 3.4 code commit/push via trellis-push, explicit Phase 3.5 finish-work bookkeeping, and push-progress recovery. State blocks should keep only one short skill-garden sentinel per state; long-form rules live here.
9
+ **Scope**: Phase 2.1 implement routing, Phase 2.2 check/check-all routing, same-cycle repair/recheck route reuse, post-check stop, Phase 3.4 trellis-push, explicit Phase 3.5 finish-work bookkeeping, and push-progress recovery. State blocks should keep one short skill-garden sentinel; long-form rules live here.
10
10
 
11
11
  **Mechanical rule**: use this hub as the source of truth. Do not add separate top-level skill-garden override sections or multiple skill-garden sentinels inside the same `workflow-state:*` block.
12
12
 
13
13
  #### Routing Gate
14
14
 
15
- Before Phase 2.1 implementation mode selection or Phase 2.2 check/check-all execution runs from the main session, the immediately preceding routing decision must come from `trellis-route` or from the same numbered fallback choices shown in normal chat when the helper is unavailable.
15
+ Before the initial Phase 2.1 implement route or initial Phase 2.2 check/check-all route, the immediately preceding routing decision must come from `trellis-route` or the same numbered fallback choices.
16
16
 
17
- Phase 2.2 is the normal Trellis check execution point. It may dispatch `trellis-check` / `trellis-check-all` only when `trellis-route(target=check)` just selected a subagent mode. If a pre-commit re-check is needed because the Phase 2.2 result is missing, code changed after check, risk is high, or the user explicitly asks for final re-check, return to Phase 2.2 and invoke `trellis-route(check)`.
17
+ Phase 2.2 is the normal check execution point. Dispatch `trellis-check` / `trellis-check-all` only when `trellis-route(target=check)` selected subagent for this check cycle.
18
+
19
+ On check failure or a user-reported issue in the just-checked work, stay in the same repair/recheck loop and reuse the latest implement/check route. Do not rerun `trellis-route` just because check failed.
20
+
21
+ Rerun `trellis-route(check)` only for a new independent check stage: missing 2.2 result, code changed outside the same repair loop, high risk, explicit final re-check, or explicit route reselect/override/clear.
18
22
 
19
23
  `trellis-route` may use the gitignored personal preference file `.trellis/.route-prefs.tmp` to skip repeated prompts. This file is developer-local state and must never be staged or committed.
20
24
 
@@ -22,14 +26,14 @@ Personal route preferences are execution-mode preferences only, never authorizat
22
26
 
23
27
  `trellis-route` returns 2 normal modes for `target=implement` (inline/subagent) and 2 normal modes for `target=check` (check-all inline/check-all subagent). Lightweight `trellis-check` is a hidden escape hatch only when the user explicitly asks for `light check` / `轻量检查`; it is not shown in normal check options.
24
28
 
25
- If the platform cannot call `AskUserQuestion` / `request_user_input`, ask the same numbered choices in normal chat and wait for the user's reply. Tool unavailability is not permission to record inline/subagent or to dispatch a sub-agent directly.
29
+ If `AskUserQuestion` / `request_user_input` is unavailable, ask the same numbered choices in normal chat and wait. Tool unavailability is not permission to choose inline/subagent, dispatch directly, or run inline check by default.
26
30
 
27
31
  Before invoking the skill, never:
28
32
  - write pre-questions ("ready to start? / shall I proceed?")
29
33
  - state "I lean towards X" or preview the inline/subagent options
30
34
  - surface route options ahead of time
31
35
 
32
- At Phase 2.1 and Phase 2.2 boundaries, do not ask meta continuation questions such as "continue?", "what's next?", or "X or Y?" when the answer determines the next workflow phase. Invoke `trellis-route(implement|check)` first, or ask the same numbered route choices if the helper is unavailable.
36
+ At initial Phase 2.1/2.2 boundaries, do not ask meta continuation questions. Invoke `trellis-route(implement|check)` first, or ask the numbered route choices if the helper is unavailable. Inside same-cycle repair/recheck, reuse the existing route.
33
37
 
34
38
  If the user says "temporary override", "reselect", "use X this time", "clear route default", or equivalent, the personal preference file must not take priority. `trellis-route` must show the override options again and let the user choose whether the choice is one-time, saved as the new default, or clears the default.
35
39
 
@@ -1,7 +1,7 @@
1
1
  {
2
- "syncedAt": "2026-06-17T10:26:06.193Z",
2
+ "syncedAt": "2026-06-25T06:19:19.136Z",
3
3
  "syncedFrom": "vendor/skill-garden/.trellis",
4
- "sourceCommit": "397d566da03bc22f7fd5170fdc99812f874adf7a",
4
+ "sourceCommit": "26a0f2f310760e776130219a8287f8205dc20614",
5
5
  "variants": {
6
6
  "old": {
7
7
  "claudeSkills": [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flower-trellis",
3
- "version": "0.3.0-beta.3",
3
+ "version": "0.3.0-beta.4",
4
4
  "description": "一键安装/升级 Trellis 并自动融合 skill-garden 强化包(默认 Claude + agents)",
5
5
  "type": "module",
6
6
  "bin": {