@namewta/speculo 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +7 -5
  2. package/package.json +1 -1
  3. package/template/.speculo/README.md +3 -3
  4. package/template/commands/docs-sync.md +1 -1
  5. package/template/commands/knowledge-prune.md +1 -1
  6. package/template/commands/retro.md +1 -1
  7. package/template/skills/docs-sync/assets/report-template.md +1 -1
  8. package/template/skills/docs-sync/references/workflow-scope-contract.md +2 -2
  9. package/template/skills/knowledge-prune/SKILL.md +1 -1
  10. package/template/skills/knowledge-prune/references/audit-rules.md +1 -1
  11. package/template/skills/runtime-context/SKILL.md +3 -3
  12. package/template/skills/runtime-context/references/path-resolution.md +2 -2
  13. package/template/skills/speculo-retro/SKILL.md +1 -1
  14. package/template/workflows/matt-pocock/PERSISTENCE.md +80 -0
  15. package/template/workflows/matt-pocock/WORKFLOW.md +62 -115
  16. package/template/workflows/matt-pocock/atomic-skills/ask-matt.md +21 -0
  17. package/template/workflows/matt-pocock/atomic-skills/claude-handoff.md +21 -0
  18. package/template/workflows/matt-pocock/atomic-skills/code-review.md +21 -0
  19. package/template/workflows/matt-pocock/atomic-skills/codebase-design.md +21 -0
  20. package/template/workflows/matt-pocock/atomic-skills/diagnosing-bugs.md +21 -0
  21. package/template/workflows/matt-pocock/atomic-skills/domain-modeling.md +21 -0
  22. package/template/workflows/matt-pocock/atomic-skills/grill-me.md +21 -0
  23. package/template/workflows/matt-pocock/atomic-skills/grill-with-docs.md +21 -0
  24. package/template/workflows/matt-pocock/atomic-skills/grilling.md +21 -0
  25. package/template/workflows/matt-pocock/atomic-skills/handoff.md +21 -0
  26. package/template/workflows/matt-pocock/atomic-skills/implement.md +21 -0
  27. package/template/workflows/matt-pocock/atomic-skills/improve-codebase-architecture.md +21 -0
  28. package/template/workflows/matt-pocock/atomic-skills/loop-me.md +21 -0
  29. package/template/workflows/matt-pocock/atomic-skills/prototype.md +21 -0
  30. package/template/workflows/matt-pocock/atomic-skills/research.md +21 -0
  31. package/template/workflows/matt-pocock/atomic-skills/resolving-merge-conflicts.md +21 -0
  32. package/template/workflows/matt-pocock/atomic-skills/setup-matt-pocock-skills.md +21 -0
  33. package/template/workflows/matt-pocock/atomic-skills/tdd.md +21 -0
  34. package/template/workflows/matt-pocock/atomic-skills/teach.md +21 -0
  35. package/template/workflows/matt-pocock/atomic-skills/to-spec.md +21 -0
  36. package/template/workflows/matt-pocock/atomic-skills/to-tickets.md +21 -0
  37. package/template/workflows/matt-pocock/atomic-skills/triage.md +21 -0
  38. package/template/workflows/matt-pocock/atomic-skills/wayfinder.md +21 -0
  39. package/template/workflows/matt-pocock/atomic-skills/wizard.md +21 -0
  40. package/template/workflows/matt-pocock/atomic-skills/writing-beats.md +21 -0
  41. package/template/workflows/matt-pocock/atomic-skills/writing-fragments.md +21 -0
  42. package/template/workflows/matt-pocock/atomic-skills/writing-great-skills.md +21 -0
  43. package/template/workflows/matt-pocock/atomic-skills/writing-shape.md +20 -0
  44. package/template/workflows/matt-pocock/routes/architecture.md +4 -4
  45. package/template/workflows/matt-pocock/routes/diagnose.md +1 -1
  46. package/template/workflows/matt-pocock/routes/experimental.md +6 -6
  47. package/template/workflows/matt-pocock/routes/idea-to-delivery.md +11 -11
  48. package/template/workflows/matt-pocock/routes/merge-conflicts.md +1 -1
  49. package/template/workflows/matt-pocock/routes/productivity.md +3 -3
  50. package/template/workflows/matt-pocock/routes/research-prototype.md +2 -2
  51. package/template/workflows/matt-pocock/routes/review.md +1 -1
  52. package/template/workflows/matt-pocock/routes/setup.md +1 -1
  53. package/template/workflows/matt-pocock/routes/triage.md +3 -3
  54. package/template/workflows/matt-pocock/routes/wayfinder.md +3 -3
  55. package/template/workflows/person/PERSISTENCE.md +56 -0
  56. package/template/workflows/person/WORKFLOW.md +9 -27
@@ -5,17 +5,17 @@
5
5
  ```xml
6
6
  <routes>
7
7
  <route id="handoff" order="1">
8
- <skill root="vendor:matt-pocock" path="productivity/handoff/SKILL.md" activation="adapted" />
8
+ <instructions root="workflow" path="atomic-skills/handoff.md" activation="adapted" />
9
9
  <artifact root="change" path="handoffs/{topic}.md" />
10
10
  <when>需要跨会话或分叉上下文。</when>
11
11
  </route>
12
12
  <route id="teach" order="2">
13
- <skill root="vendor:matt-pocock" path="productivity/teach/SKILL.md" activation="adapted" />
13
+ <instructions root="workflow" path="atomic-skills/teach.md" activation="adapted" />
14
14
  <artifact root="change" path="teaching/" />
15
15
  <when>用户要跨会话学习主题。</when>
16
16
  </route>
17
17
  <route id="writing-great-skills" order="3">
18
- <skill root="vendor:matt-pocock" path="productivity/writing-great-skills/SKILL.md" activation="required" />
18
+ <instructions root="workflow" path="atomic-skills/writing-great-skills.md" activation="required" />
19
19
  <artifact root="change" path="skill-authoring/report.md" />
20
20
  <when>用户要设计或审查 skill。</when>
21
21
  </route>
@@ -6,13 +6,13 @@
6
6
  <sequence>
7
7
  <phase id="research" order="1">
8
8
  <when>答案需要当前仓库之外的一手来源。</when>
9
- <skill root="vendor:matt-pocock" path="engineering/research/SKILL.md" activation="conditional" />
9
+ <instructions root="workflow" path="atomic-skills/research.md" activation="conditional" />
10
10
  <artifact root="change" path="research/{topic}.md" />
11
11
  <completion>每项结论有一手来源,文件留在当前 change。</completion>
12
12
  </phase>
13
13
  <phase id="prototype" order="2">
14
14
  <when>状态、逻辑或 UI 需要可运行答案。</when>
15
- <skill root="vendor:matt-pocock" path="engineering/prototype/SKILL.md" activation="conditional" />
15
+ <instructions root="workflow" path="atomic-skills/prototype.md" activation="conditional" />
16
16
  <artifact root="change" path="prototypes/{topic}/answer.md" />
17
17
  <completion>答案已保留;一次性代码、数据库和路由已删除或明确吸收进实现。</completion>
18
18
  </phase>
@@ -5,7 +5,7 @@
5
5
  ```xml
6
6
  <sequence>
7
7
  <phase id="fixed-point" order="1">
8
- <skill root="vendor:matt-pocock" path="engineering/code-review/SKILL.md" activation="required" />
8
+ <instructions root="workflow" path="atomic-skills/code-review.md" activation="required" />
9
9
  <completion>固定点可解析、diff 非空、规范与标准来源已记录。</completion>
10
10
  </phase>
11
11
  <phase id="parallel-axes" order="2">
@@ -7,7 +7,7 @@
7
7
  ```xml
8
8
  <sequence>
9
9
  <phase id="discover-config" order="1">
10
- <skill root="vendor:matt-pocock" path="engineering/setup-matt-pocock-skills/SKILL.md" activation="adapted" />
10
+ <instructions root="workflow" path="atomic-skills/setup-matt-pocock-skills.md" activation="adapted" />
11
11
  <completion>已展示仓库、tracker 和领域文档现状。</completion>
12
12
  </phase>
13
13
  <phase id="configure-tracker" order="2">
@@ -5,7 +5,7 @@
5
5
  ```xml
6
6
  <sequence>
7
7
  <phase id="collect" order="1">
8
- <skill root="vendor:matt-pocock" path="engineering/triage/SKILL.md" activation="adapted" />
8
+ <instructions root="workflow" path="atomic-skills/triage.md" activation="adapted" />
9
9
  <artifact root="change" path="triage/{item}/record.md" />
10
10
  <completion>完整正文、评论、标签、diff、冗余性与私有 out-of-scope 已检查。</completion>
11
11
  </phase>
@@ -14,8 +14,8 @@
14
14
  </phase>
15
15
  <phase id="validate-grill" order="3">
16
16
  <when>声明需要复现或需求仍不完整。</when>
17
- <skill root="vendor:matt-pocock" path="productivity/grilling/SKILL.md" activation="conditional" />
18
- <skill root="vendor:matt-pocock" path="engineering/domain-modeling/SKILL.md" activation="conditional" />
17
+ <instructions root="workflow" path="atomic-skills/grilling.md" activation="conditional" />
18
+ <instructions root="workflow" path="atomic-skills/domain-modeling.md" activation="conditional" />
19
19
  <completion>事实已验证,问题逐个解决。</completion>
20
20
  </phase>
21
21
  <phase id="apply" order="4">
@@ -5,9 +5,9 @@
5
5
  ```xml
6
6
  <sequence>
7
7
  <phase id="name-destination" order="1">
8
- <skill root="vendor:matt-pocock" path="engineering/wayfinder/SKILL.md" activation="required" />
9
- <skill root="vendor:matt-pocock" path="productivity/grilling/SKILL.md" activation="required" />
10
- <skill root="vendor:matt-pocock" path="engineering/domain-modeling/SKILL.md" activation="required" />
8
+ <instructions root="workflow" path="atomic-skills/wayfinder.md" activation="required" />
9
+ <instructions root="workflow" path="atomic-skills/grilling.md" activation="required" />
10
+ <instructions root="workflow" path="atomic-skills/domain-modeling.md" activation="required" />
11
11
  <completion>目的地与范围边界已确认。</completion>
12
12
  </phase>
13
13
  <phase id="map-frontier" order="2">
@@ -0,0 +1,56 @@
1
+ # Person Persistence
2
+
3
+ 本文件是 `person` 的唯一运行契约。`WORKFLOW.md` 只能引用本文件,不得复制 runtime roots、store、change 启动或副作用规则。进入 person workflow 时先读取项目根 `speculo/.speculo/workspace.json`,再执行本文件。
4
+
5
+ ## 运行时根
6
+
7
+ ```xml
8
+ <runtime-context>
9
+ <root id="workflow" base="workflows" path="person" />
10
+ <root id="state" base="state" path="person" />
11
+ </runtime-context>
12
+ ```
13
+
14
+ ## 持久化命名空间
15
+
16
+ ```xml
17
+ <persistence root="state">
18
+ <store id="index" role="index" kind="file" path="status.json" create="initialize" />
19
+ <store id="changes" role="active" kind="directory" path="changes" create="initialize" />
20
+ <store id="archive" role="archive" kind="directory" path="archive" create="initialize" />
21
+ <store id="knowledge" role="knowledge" kind="directory" path=".config" create="initialize" consumers="docs-sync,retro,knowledge-prune" />
22
+ </persistence>
23
+ ```
24
+
25
+ ## 启动协议
26
+
27
+ ```xml
28
+ <sequence>
29
+ <phase id="resolve-runtime" order="1">
30
+ <skill root="skills" path="runtime-context/SKILL.md" activation="required" />
31
+ <completion>workspace、config 与 workflow/state roots 均已解析并通过边界检查;同一运行已解析时复用结果。</completion>
32
+ </phase>
33
+ <phase id="select-change" order="2">
34
+ <artifact root="state" path="status.json" />
35
+ <completion>已选择用户指定或唯一 active change;没有 active change 时原子创建 `changes/YYYY-MM-DD-&lt;kebab-topic&gt;/.status.json` 并更新索引;多个候选时先消歧。</completion>
36
+ </phase>
37
+ </sequence>
38
+ ```
39
+
40
+ 创建 change 时初始化 schema version 1、workflow/name/timestamps、`change_status: active`、空的 `route_history`。已有 change 缺少数组时按空数组读取,在下一次真实更新时补齐,不要求迁移。
41
+
42
+ ## 状态字段
43
+
44
+ ```xml
45
+ <state-schema>
46
+ <field name="current_route" type="string|null" />
47
+ <field name="route_history" type="array" />
48
+ </state-schema>
49
+ ```
50
+
51
+ ## 路径与副作用
52
+
53
+ - route 产物只写当前 change;已声明 knowledge store 只接收 workflow 确认的长期内容。
54
+ - 用户要求的项目产物不是 Speculo 运行状态;保存项目相对指针,不把派生绝对路径写入状态。
55
+ - 发布、提交、移动或删除外部/项目资源前展示动作并取得明确确认。
56
+
@@ -3,32 +3,23 @@ id: person
3
3
  type: workflow
4
4
  workflow: person
5
5
  name: Person Workflow
6
- description: 以人物方法论为底座的显式激活型咨询 workflow
6
+ description: 以人物方法论为底座并共享独立持久化契约的咨询 workflow
7
7
  keywords: [person, methodology, consulting, 人物, 方法论]
8
8
  ---
9
9
 
10
10
  # Person Workflow
11
11
 
12
- 先读取项目根 `speculo/.speculo/workspace.json`,再解析以下 workflow/state 根。进入时读取 `status.json`,选择唯一 active change;没有 active change 时原子创建 `changes/<YYYY-MM-DD-name>/.status.json` 并追加索引。
12
+ 先读取 [PERSISTENCE.md](./PERSISTENCE.md)。该文件是 runtime roots、store、change 启动和副作用边界的唯一来源;本入口只负责选择人物方法论 route。
13
13
 
14
- ## 运行时根
14
+ ## 进入协议
15
15
 
16
16
  ```xml
17
- <runtime-context>
18
- <root id="workflow" base="workflows" path="person" />
19
- <root id="state" base="state" path="person" />
20
- </runtime-context>
21
- ```
22
-
23
- ## 持久化命名空间
24
-
25
- ```xml
26
- <persistence root="state">
27
- <store id="index" role="index" kind="file" path="status.json" create="initialize" />
28
- <store id="changes" role="active" kind="directory" path="changes" create="initialize" />
29
- <store id="archive" role="archive" kind="directory" path="archive" create="initialize" />
30
- <store id="knowledge" role="knowledge" kind="directory" path=".config" create="initialize" consumers="docs-sync,retro,knowledge-prune" />
31
- </persistence>
17
+ <sequence>
18
+ <phase id="load-persistence" order="1">
19
+ <instructions root="workflow" path="PERSISTENCE.md" activation="required" />
20
+ <completion>runtime context 与 current change 已按唯一持久化契约解析。</completion>
21
+ </phase>
22
+ </sequence>
32
23
  ```
33
24
 
34
25
  ## 路由
@@ -47,15 +38,6 @@ keywords: [person, methodology, consulting, 人物, 方法论]
47
38
  <dependencies />
48
39
  ```
49
40
 
50
- ## 状态扩展字段
51
-
52
- ```xml
53
- <state-schema>
54
- <field name="current_route" type="string" />
55
- <field name="route_history" type="array" />
56
- </state-schema>
57
- ```
58
-
59
41
  ## 状态转移
60
42
 
61
43
  ```xml