principles-disciple 1.81.0 → 1.83.0

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 (60) hide show
  1. package/openclaw.plugin.json +1 -1
  2. package/package.json +4 -4
  3. package/src/commands/strategy.ts +0 -18
  4. package/src/i18n/commands.ts +0 -12
  5. package/src/index.ts +4 -22
  6. package/templates/langs/en/core/BOOTSTRAP.md +4 -18
  7. package/templates/langs/en/skills/bootstrap-tools/SKILL.md +1 -1
  8. package/templates/langs/en/skills/init-strategy/SKILL.md +1 -1
  9. package/templates/langs/en/skills/pd-mentor/SKILL.md +8 -23
  10. package/templates/langs/zh/core/BOOTSTRAP.md +2 -15
  11. package/templates/langs/zh/skills/bootstrap-tools/SKILL.md +1 -1
  12. package/templates/langs/zh/skills/init-strategy/SKILL.md +1 -1
  13. package/templates/langs/zh/skills/pd-mentor/SKILL.md +7 -22
  14. package/tests/commands/strategy.test.ts +3 -18
  15. package/templates/langs/en/skills/ai-sprint-orchestration/EXAMPLES.md +0 -63
  16. package/templates/langs/en/skills/ai-sprint-orchestration/REFERENCE.md +0 -136
  17. package/templates/langs/en/skills/ai-sprint-orchestration/SKILL.md +0 -67
  18. package/templates/langs/en/skills/ai-sprint-orchestration/references/agent-registry.json +0 -143
  19. package/templates/langs/en/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +0 -107
  20. package/templates/langs/en/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +0 -107
  21. package/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +0 -95
  22. package/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +0 -98
  23. package/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +0 -58
  24. package/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +0 -190
  25. package/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +0 -310
  26. package/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +0 -683
  27. package/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +0 -604
  28. package/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +0 -32
  29. package/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +0 -707
  30. package/templates/langs/en/skills/ai-sprint-orchestration/scripts/run.mjs +0 -3455
  31. package/templates/langs/en/skills/evolve-system/SKILL.md +0 -46
  32. package/templates/langs/en/skills/manage-okr/SKILL.md +0 -96
  33. package/templates/langs/en/skills/pd-daily/SKILL.md +0 -199
  34. package/templates/langs/en/skills/pd-grooming/SKILL.md +0 -46
  35. package/templates/langs/zh/skills/ai-sprint-orchestration/EXAMPLES.md +0 -63
  36. package/templates/langs/zh/skills/ai-sprint-orchestration/REFERENCE.md +0 -136
  37. package/templates/langs/zh/skills/ai-sprint-orchestration/SKILL.md +0 -67
  38. package/templates/langs/zh/skills/ai-sprint-orchestration/references/agent-registry.json +0 -143
  39. package/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +0 -107
  40. package/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +0 -107
  41. package/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/nocturnal-trinity-quality-enhancement.json +0 -111
  42. package/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +0 -95
  43. package/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +0 -98
  44. package/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +0 -58
  45. package/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +0 -190
  46. package/templates/langs/zh/skills/ai-sprint-orchestration/runtime/.gitignore +0 -2
  47. package/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +0 -310
  48. package/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +0 -683
  49. package/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +0 -604
  50. package/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +0 -32
  51. package/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +0 -707
  52. package/templates/langs/zh/skills/ai-sprint-orchestration/scripts/run.mjs +0 -3455
  53. package/templates/langs/zh/skills/ai-sprint-orchestration/test/archive.test.mjs +0 -230
  54. package/templates/langs/zh/skills/ai-sprint-orchestration/test/contract-enforcement.test.mjs +0 -672
  55. package/templates/langs/zh/skills/ai-sprint-orchestration/test/decision.test.mjs +0 -1321
  56. package/templates/langs/zh/skills/ai-sprint-orchestration/test/run.test.mjs +0 -1435
  57. package/templates/langs/zh/skills/evolve-system/SKILL.md +0 -46
  58. package/templates/langs/zh/skills/manage-okr/SKILL.md +0 -109
  59. package/templates/langs/zh/skills/pd-daily/SKILL.md +0 -283
  60. package/templates/langs/zh/skills/pd-grooming/SKILL.md +0 -46
@@ -2,7 +2,7 @@
2
2
  "id": "principles-disciple",
3
3
  "name": "Principles Disciple",
4
4
  "description": "Evolutionary programming agent framework with strategic guardrails and reflection loops.",
5
- "version": "1.81.0",
5
+ "version": "1.83.0",
6
6
  "activation": {
7
7
  "onCapabilities": [
8
8
  "hook"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "principles-disciple",
3
- "version": "1.81.0",
3
+ "version": "1.83.0",
4
4
  "description": "Native OpenClaw plugin for Principles Disciple",
5
5
  "type": "module",
6
6
  "main": "./dist/bundle.js",
@@ -52,12 +52,12 @@
52
52
  "@types/ws": "^8.5.13",
53
53
  "@typescript-eslint/eslint-plugin": "^8.58.2",
54
54
  "@typescript-eslint/parser": "^8.58.0",
55
- "@vitest/coverage-v8": "^4.1.5",
55
+ "@vitest/coverage-v8": "^4.1.8",
56
56
  "esbuild": "^0.28.0",
57
- "eslint": "^10.2.1",
57
+ "eslint": "^10.4.1",
58
58
  "jsdom": "^29.1.1",
59
59
  "typescript": "^6.0.3",
60
- "vitest": "^4.1.5",
60
+ "vitest": "^4.1.8",
61
61
  "ws": "^8.18.0"
62
62
  },
63
63
  "peerDependencies": {
@@ -19,21 +19,3 @@ export function handleInitStrategy(ctx: PluginCommandContext): PluginCommandResu
19
19
  `Then update \`${userContextPath}\` with key user preferences discovered.`,
20
20
  };
21
21
  }
22
-
23
- export function handleManageOkr(ctx: PluginCommandContext): PluginCommandResult {
24
- const workspaceDir = resolvePluginCommandWorkspaceDir(ctx, 'strategy:manageOkr');
25
- const wctx = WorkspaceContext.fromHookContext({ workspaceDir, ...ctx.config });
26
-
27
- const focusPath = wctx.resolve('CURRENT_FOCUS').replace(workspaceDir, '').replace(/^\/+/, '');
28
- const weekStatePath = wctx.resolve('WEEK_STATE').replace(workspaceDir, '').replace(/^\/+/, '');
29
-
30
- return {
31
- text:
32
- `📊 **OKR Management**\n\n` +
33
- `The Agent will analyze recent work and align sub-agent objectives.\n\n` +
34
- `**Instructions for Agent:** Read \`${focusPath}\` and \`${weekStatePath}\`. ` +
35
- `Compare them against recent session history. ` +
36
- `Update OKRs as needed and output a brief alignment report. ` +
37
- `If OKRs are stale (>7 days), prompt the user for a re-alignment conversation.`,
38
- };
39
- }
@@ -21,10 +21,6 @@ export const commandDescriptions: Record<string, Record<SupportedLanguage, strin
21
21
  zh: '初始化工作区(生成 PRINCIPLES.md、THINKING_OS.md 等)',
22
22
  en: 'Initialize workspace (generate PRINCIPLES.md, THINKING_OS.md, etc.)'
23
23
  },
24
- 'pd-okr': {
25
- zh: '管理 OKR 目标与关键结果',
26
- en: 'Manage OKR goals and key results'
27
- },
28
24
  'pd-bootstrap': {
29
25
  zh: '扫描环境工具并建议升级',
30
26
  en: 'Scan environment tools and suggest upgrades'
@@ -37,14 +33,6 @@ export const commandDescriptions: Record<string, Record<SupportedLanguage, strin
37
33
  zh: '管理思维模型 [status|propose|audit](默认关闭,/pd-context thinking on 开启)',
38
34
  en: 'Manage Thinking OS [status|propose|audit] (off by default, enable via /pd-context thinking on)'
39
35
  },
40
- 'pd-daily': {
41
- zh: '配置并发送进化日报',
42
- en: 'Configure and send daily evolution report'
43
- },
44
- 'pd-grooming': {
45
- zh: '工作区清理与大扫除',
46
- en: 'Workspace cleanup and grooming'
47
- },
48
36
  'pd-help': {
49
37
  zh: '显示所有命令和使用指南',
50
38
  en: 'Show all commands and usage guide'
package/src/index.ts CHANGED
@@ -32,7 +32,7 @@ import { handleBeforeReset, handleBeforeCompaction, handleAfterCompaction } from
32
32
  import { handleLlmOutput } from './hooks/llm.js';
33
33
  import { handleSubagentEnded } from './hooks/subagent.js';
34
34
  import * as TrajectoryCollector from './hooks/trajectory-collector.js';
35
- import { handleInitStrategy, handleManageOkr } from './commands/strategy.js';
35
+ import { handleInitStrategy } from './commands/strategy.js';
36
36
  import { handleBootstrapTools, handleResearchTools } from './commands/capabilities.js';
37
37
  import { handleThinkingOs } from './commands/thinking-os.js';
38
38
  import { handlePainCommand, handlePainReportCommand } from './commands/pain.js';
@@ -603,24 +603,12 @@ const plugin = {
603
603
 
604
604
  registerCommandWithAlias('pd-init', 'pdi', getCommandDescription('pd-init', language), (ctx: any) => handleInitStrategy(ctx));
605
605
 
606
- registerCommandWithAlias('pd-okr', 'pdk', getCommandDescription('pd-okr', language), (ctx: any) => handleManageOkr(ctx));
607
-
608
606
  registerCommandWithAlias('pd-bootstrap', 'pdb', getCommandDescription('pd-bootstrap', language), (ctx: any) => handleBootstrapTools(ctx));
609
-
607
+
610
608
  registerCommandWithAlias('pd-research', 'pdr', getCommandDescription('pd-research', language), (ctx: any) => handleResearchTools(ctx));
611
-
609
+
612
610
  registerCommandWithAlias('pd-thinking', 'pdt', getCommandDescription('pd-thinking', language), (ctx: any) => handleThinkingOs(ctx), { acceptsArgs: true });
613
-
614
- registerCommandWithAlias('pd-daily', 'pdd', getCommandDescription('pd-daily', language), () => ({
615
- text: language === 'zh'
616
- ? "请执行 pd-daily 技能来配置并发送进化日报。系统将引导你完成配置流程,包括发送时间、渠道和报告风格偏好。"
617
- : "Please execute the pd-daily skill to configure and send your daily evolution report. The system will guide you through the configuration process."
618
- }));
619
- registerCommandWithAlias('pd-grooming', 'pdg', getCommandDescription('pd-grooming', language), () => ({
620
- text: language === 'zh'
621
- ? "请执行 pd-grooming 技能来执行大扫除。例如输入: '执行 pd-grooming 技能'"
622
- : "Please execute the pd-grooming skill to clean up. For example: 'Execute pd-grooming skill'"
623
- }));
611
+
624
612
  registerCommandWithAlias('pd-help', 'pdh', getCommandDescription('pd-help', language), () => {
625
613
  if (language === 'zh') {
626
614
  return { text: `
@@ -636,10 +624,7 @@ const plugin = {
636
624
  ## 状态查询
637
625
  | 短命令 | 长命令 | 用途 |
638
626
  |--------|--------|------|
639
- | \`/pdk\` | \`/pd-okr\` | OKR 目标管理 |
640
627
  | \`/pdt\` | \`/pd-thinking\` | 思维模型管理 |
641
- | \`/pdd\` | \`/pd-daily\` | 进化日报 |
642
- | \`/pdg\` | \`/pd-grooming\` | 工作区清理 |
643
628
 
644
629
  ## 其他命令
645
630
  | 命令 | 用途 |
@@ -667,10 +652,7 @@ const plugin = {
667
652
  ## Status
668
653
  | Short | Full | Purpose |
669
654
  |-------|------|---------|
670
- | \`/pdk\` | \`/pd-okr\` | OKR goal management |
671
655
  | \`/pdt\` | \`/pd-thinking\` | Mental model management |
672
- | \`/pdd\` | \`/pd-daily\` | Evolution report |
673
- | \`/pdg\` | \`/pd-grooming\` | Workspace cleanup |
674
656
 
675
657
  ## Other Commands
676
658
  | Command | Purpose |
@@ -145,12 +145,11 @@ If the user has clear project goals, run `/init-strategy` skill to:
145
145
 
146
146
  ## ⏰ Cron Jobs Initialization (Recommended)
147
147
 
148
- **Why you need this:** Your HEARTBEAT.md has been simplified to reduce token cost. But the tasks that were removed (grooming, health checks, strategy alignment, weekly governance) are still important — they just moved here. Without these cron jobs, your workspace will accumulate temp files, drift from strategy, and lose track of weekly progress.
148
+ **Why you need this:** Your HEARTBEAT.md has been simplified to reduce token cost. But the tasks that were removed (health checks, strategy alignment, weekly governance) are still important — they just moved here. Without these cron jobs, your workspace will drift from strategy and lose track of weekly progress.
149
149
 
150
150
  **How to install:** Ask the user for permission, then execute the CLI commands below. Each command creates a background task that runs automatically.
151
151
 
152
152
  **What you get:**
153
- - Clean workspace (no temp file buildup)
154
153
  - Early warning on tool failures
155
154
  - Automatic strategy alignment
156
155
  - Weekly governance with evidence-based task validation
@@ -158,24 +157,11 @@ If the user has clear project goals, run `/init-strategy` skill to:
158
157
 
159
158
  ### Ask the User
160
159
 
161
- > "I can set up background cron jobs for automatic maintenance: cleanup, health checks, strategy alignment, and weekly governance. Should I configure them?"
160
+ > "I can set up background cron jobs for automatic maintenance: health checks, strategy alignment, and weekly governance. Should I configure them?"
162
161
 
163
162
  If the user agrees, **execute these commands:**
164
163
 
165
- ### 1. Grooming (Daily at 2 AM)
166
-
167
- **What it does:** Cleans workspace temp files daily to prevent clutter buildup.
168
-
169
- ```bash
170
- openclaw cron add --name "pd-grooming-daily" \
171
- --cron "0 2 * * *" --tz "UTC" \
172
- --session isolated \
173
- --light-context \
174
- --no-deliver \
175
- --message 'Execute pd-grooming skill: Check workspace root, clean temp files and digital clutter. Follow safety rules strictly. Do not delete business code.'
176
- ```
177
-
178
- ### 2. Health Check (Every 4 hours)
164
+ ### 1. Health Check (Every 4 hours)
179
165
 
180
166
  **What it does:** Verifies core tools (rg, node, python) are available and alerts on failure.
181
167
 
@@ -220,7 +206,7 @@ openclaw cron add --name "weekly-governance" \
220
206
  --cron "0 0 * * 0" --tz "UTC" \
221
207
  --session isolated \
222
208
  --timeout 300000 \
223
- --message 'Execute weekly governance: 1) Validate CURRENT_FOCUS.md claims (PR merged? docs exist? tests pass?), 2) Update WEEK_STATE.json metrics, 3) Record to WEEK_EVENTS.jsonl, 4) If task queue empty, derive tasks from OKR and notify user'
209
+ --message 'Execute weekly governance: 1) Validate CURRENT_FOCUS.md claims (PR merged? docs exist? tests pass?), 2) Update WEEK_STATE.json metrics, 3) Record to WEEK_EVENTS.jsonl, 4) If task queue empty, remind user to plan next phase tasks'
224
210
  ```
225
211
 
226
212
  **JSON config reference:**
@@ -46,7 +46,7 @@ Your goal is to equip the agent team with the most advanced weapons. By analyzin
46
46
  ## Environment Capabilities
47
47
  Check @.state/SYSTEM_CAPABILITIES.json for high-performance tools (e.g., ripgrep, ast-grep) available in this environment. Use them!
48
48
  ```
49
- - Prompt user to run `/manage-okr` or `/admin diagnose` to let Agent perceive new capabilities.
49
+ - Prompt user to run `/pd-status` or `/admin diagnose` to let Agent perceive new capabilities.
50
50
 
51
51
  ## Core Principles
52
52
  - **Prefer New Over Old**: Dare to recommend new tools to replace old ones (e.g., recommend `pnpm` over `npm`, `vitest` over `jest`), but explain the reasoning.
@@ -51,4 +51,4 @@ Based on user's responses, extract 1-3 macro **Objectives (O)**.
51
51
  ```
52
52
 
53
53
  ## Completion
54
- After writing, prompt user: "✅ Strategic anchor locked. Recommend running `/manage-okr` for quarterly/iteration-level task breakdown."
54
+ After writing, prompt user: "✅ Strategic anchor locked. Recommend running `/pd-status` to check system status, or use `/pd-bootstrap` to scan environment tools."
@@ -25,16 +25,13 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
25
25
 
26
26
  | Command | Purpose | Use Case |
27
27
  |---------|---------|----------|
28
- | `/pd-init` | Initialize strategy and OKRs | New project startup |
29
- | `/pd-okr` | Objectives and Key Results management | Weekly/monthly review |
28
+ | `/pd-init` | Initialize strategy | New project startup |
30
29
  | `/pd-bootstrap` | Environment tool scan and upgrade | Tool upgrade |
31
30
  | `/pd-research` | Initiate tool upgrade research | Deep research |
32
31
  | `/pd-thinking` | Manage mental models and candidates | Metacognition |
33
32
  | `/pd-evolve` | Execute full evolution loop | Bug fix |
34
- | `/pd-daily` | Configure and send evolution daily report | Daily review |
35
33
  | `/pd-evolution-status` | View trust score and security stage | Permission check |
36
34
  | `/pd-status` | View system status (GFI and Pain Dictionary) | Health check |
37
- | `/pd-grooming` | Workspace digital cleanup | Entropy reduction |
38
35
  | `/pd-help` | Get interactive command guidance | This skill |
39
36
 
40
37
  ---
@@ -46,7 +43,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
46
43
  **Trigger**: User says "I just created a new project" or similar
47
44
 
48
45
  **Recommended Flow**:
49
- 1. `/pd-init` - Establish strategic vision and OKR framework
46
+ 1. `/pd-init` - Establish strategic vision
50
47
  2. `/pd-bootstrap` - Scan environment tools, get capability list
51
48
  3. `/pd-thinking` - Establish project's mental model baseline
52
49
 
@@ -71,26 +68,14 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
71
68
  **Trigger**: User says "what did I do today", "check progress", "give me a report"
72
69
 
73
70
  **Recommended Flow**:
74
- 1. `/pd-daily` - Send today's evolution report
75
- 2. `/pd-evolution-status` - View current trust score
76
- 3. `/pd-okr` - Check OKR alignment
71
+ 1. `/pd-evolution-status` - View current trust score
72
+ 2. `/pd-status` - Check GFI and Pain Dictionary status
77
73
 
78
- **Script**: "Daily report in hand, evolution I command. Let me help you review today's achievements."
74
+ **Script**: "Let me help you review the current system status."
79
75
 
80
76
  ---
81
77
 
82
- ### Scenario 4: Messy Workspace
83
-
84
- **Trigger**: User says "project is too messy", "too many files", "need to organize"
85
-
86
- **Recommended Flow**:
87
- 1. `/pd-grooming` - Start workspace cleanup
88
-
89
- **Script**: "Digital cleanliness is a virtue. Let me help you reduce entropy."
90
-
91
- ---
92
-
93
- ### Scenario 5: Permission or Security Related
78
+ ### Scenario 4: Permission or Security Related
94
79
 
95
80
  **Trigger**: User says "not enough permissions", "blocked", "security level"
96
81
 
@@ -186,8 +171,8 @@ For complex scenarios, combine multiple skills:
186
171
  | Scenario | Combined Flow |
187
172
  |----------|---------------|
188
173
  | Major refactor | `/pd-evolve` → `deductive-audit` → execute |
189
- | System optimization | `/pd-status` → `evolve-system` → `root-cause` |
190
- | Project review | `/pd-daily` → `/pd-okr` → `reflection-log` |
174
+ | System optimization | `/pd-status` → `root-cause` → optimize |
175
+ | Project review | `/pd-evolution-status` → `/pd-status` → `reflection-log` |
191
176
 
192
177
  ### Internal Skill Calls
193
178
 
@@ -162,20 +162,7 @@ memory/
162
162
 
163
163
  如果用户同意,**执行以下命令:**
164
164
 
165
- ### 1. 熵减巡检(每天凌晨 2 点)
166
-
167
- **功能:** 每天清理工作区临时文件,保持项目整洁。
168
-
169
- ```bash
170
- openclaw cron add --name "pd-grooming-daily" \
171
- --cron "0 2 * * *" --tz "UTC" \
172
- --session isolated \
173
- --light-context \
174
- --no-deliver \
175
- --message '执行 pd-grooming 技能:检查工作区根目录,清理临时文件和数字垃圾。严格遵循安全红线,不要删除业务代码。'
176
- ```
177
-
178
- ### 2. 环境健康检查(每 4 小时)
165
+ ### 1. 环境健康检查(每 4 小时)
179
166
 
180
167
  **功能:** 验证核心工具(rg, node, python)是否可用,异常时告警。
181
168
 
@@ -220,7 +207,7 @@ openclaw cron add --name "weekly-governance" \
220
207
  --cron "0 0 * * 0" --tz "UTC" \
221
208
  --session isolated \
222
209
  --timeout 300000 \
223
- --message '执行周治理:1) 验证 CURRENT_FOCUS.md 声称(PR 合并?文档存在?测试通过?),2) 更新 WEEK_STATE.json 指标,3) 记录到 WEEK_EVENTS.jsonl,4) 如果任务队列为空,从 OKR 推导任务并通知用户'
210
+ --message '执行周治理:1) 验证 CURRENT_FOCUS.md 声称(PR 合并?文档存在?测试通过?),2) 更新 WEEK_STATE.json 指标,3) 记录到 WEEK_EVENTS.jsonl,4) 如果任务队列为空,提醒用户规划下一阶段任务'
224
211
  ```
225
212
 
226
213
  **JSON 配置参考:**
@@ -46,7 +46,7 @@ disable-model-invocation: true
46
46
  ## Environment Capabilities
47
47
  Check @.state/SYSTEM_CAPABILITIES.json for high-performance tools (e.g., ripgrep, ast-grep) available in this environment. Use them!
48
48
  ```
49
- - 提示用户运行 `/manage-okr` 或 `/admin diagnose` 以让 Agent 感知新能力。
49
+ - 提示用户运行 `/pd-status` 或 `/admin diagnose` 以让 Agent 感知新能力。
50
50
  ## 核心原则
51
51
  - **喜新厌旧**: 敢于推荐新工具替代旧工具(如推荐 `pnpm` 替 `npm`,推荐 `vitest` 替 `jest`),但要说明理由。
52
52
  - **安全第一**: 在安装前必须获得用户明确授权。
@@ -51,4 +51,4 @@ disable-model-invocation: true
51
51
  ```
52
52
 
53
53
  ## 结项
54
- 完成写入后,提示用户:“✅ 战略锚点已锁定。建议运行 `/manage-okr` 进行季度/迭代级的任务拆解。”
54
+ 完成写入后,提示用户:”✅ 战略锚点已锁定。建议运行 `/pd-status` 查看系统状态,或使用 `/pd-bootstrap` 扫描环境工具。”
@@ -25,16 +25,13 @@ disable-model-invocation: true
25
25
 
26
26
  | 命令 | 用途 | 适用场景 |
27
27
  |------|------|----------|
28
- | `/pd-init` | 初始化战略与OKR | 新项目启动 |
29
- | `/pd-okr` | 目标与关键结果管理 | 周/月度复盘 |
28
+ | `/pd-init` | 初始化战略 | 新项目启动 |
30
29
  | `/pd-bootstrap` | 环境工具扫描与升级 | 装备升级 |
31
30
  | `/pd-research` | 发起工具升级研究 | 深度调研 |
32
31
  | `/pd-thinking` | 管理思维模型与候选方案 | 元认知管理 |
33
32
  | `/pd-evolve` | 执行完整进化循环 | 问题修复 |
34
- | `/pd-daily` | 配置并发送进化日报 | 日常查看 |
35
33
  | `/pd-evolution-status` | 查看EP等级与安全状态 | 状态查询 |
36
34
  | `/pd-status` | 查看系统状态(GFI和痛苦词典) | 健康检查 |
37
- | `/pd-grooming` | 工作区数字大扫除 | 熵减维护 |
38
35
  | `/pd-help` | 获取交互式命令引导 | 本技能 |
39
36
 
40
37
  ---
@@ -71,26 +68,14 @@ disable-model-invocation: true
71
68
  **触发条件**: 用户说"今天干了什么"、"看看进度"、"汇报一下"
72
69
 
73
70
  **推荐流程**:
74
- 1. `/pd-daily` - 发送今日进化日报
75
- 2. `/pd-evolution-status` - 查看当前信任积分
76
- 3. `/pd-okr` - 检查 OKR 对齐情况
71
+ 1. `/pd-evolution-status` - 查看当前信任积分
72
+ 2. `/pd-status` - 查看 GFI 和痛苦词典状态
77
73
 
78
- **话术**: "日报在手,进化我有。让我帮你回顾今天的成果。"
74
+ **话术**: "让我帮你回顾一下系统状态。"
79
75
 
80
76
  ---
81
77
 
82
- ### 场景 4: 工作区太乱
83
-
84
- **触发条件**: 用户说"项目太乱了"、"文件一堆"、"需要整理"
85
-
86
- **推荐流程**:
87
- 1. `/pd-grooming` - 启动工作区大扫除
88
-
89
- **话术**: "数字洁癖是一种美德。让我帮你熵减。"
90
-
91
- ---
92
-
93
- ### 场景 5: 权限或安全相关
78
+ ### 场景 4: 权限或安全相关
94
79
 
95
80
  **触发条件**: 用户说"权限不够"、"被拦截了"、"安全等级"
96
81
 
@@ -186,8 +171,8 @@ disable-model-invocation: true
186
171
  | 场景 | 组合流程 |
187
172
  |------|----------|
188
173
  | 大型重构 | `/pd-evolve` → `deductive-audit` → 执行 |
189
- | 系统优化 | `/pd-status` → `evolve-system` → `root-cause` |
190
- | 项目复盘 | `/pd-daily` → `/pd-okr` → `reflection-log` |
174
+ | 系统优化 | `/pd-status` → `root-cause` → 优化实施 |
175
+ | 项目复盘 | `/pd-evolution-status` → `/pd-status` → `reflection-log` |
191
176
 
192
177
  ### 内部技能调用
193
178
 
@@ -1,9 +1,9 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { handleInitStrategy, handleManageOkr } from '../../src/commands/strategy';
2
+ import { handleInitStrategy } from '../../src/commands/strategy';
3
3
 
4
4
  describe('Slash Commands Hook', () => {
5
5
  it('should handle /init-strategy command', () => {
6
- const mockCtx = {
6
+ const mockCtx = {
7
7
  workspaceDir: '/mock/workspace',
8
8
  commandBody: '/init-strategy',
9
9
  channel: 'cli',
@@ -16,19 +16,4 @@ describe('Slash Commands Hook', () => {
16
16
  expect(result).toBeDefined();
17
17
  expect(result.text).toContain('Strategy Initialization');
18
18
  });
19
-
20
- it('should handle /manage-okr command', () => {
21
- const mockCtx = {
22
- workspaceDir: '/mock/workspace',
23
- commandBody: '/manage-okr',
24
- channel: 'cli',
25
- isAuthorizedSender: true,
26
- config: {} as any
27
- };
28
-
29
- const result = handleManageOkr(mockCtx as any);
30
-
31
- expect(result).toBeDefined();
32
- expect(result.text).toContain('OKR Management');
33
- });
34
- });
19
+ });
@@ -1,63 +0,0 @@
1
- # AI Sprint Orchestration Examples
2
-
3
- ## Example 1: baseline + validation
4
-
5
- ```powershell
6
- node scripts/run.mjs --self-check
7
- node scripts/run.mjs --help
8
- node scripts/run.mjs --task workflow-validation-minimal
9
- node scripts/run.mjs --task workflow-validation-minimal-verify
10
- ```
11
-
12
- ## Example 2: custom runtime root
13
-
14
- ```powershell
15
- node scripts/run.mjs --task workflow-validation-minimal --runtime-root D:/Temp/ai-sprint-runtime
16
- ```
17
-
18
- ## Example 3: classify a failure
19
-
20
- - `workflow bug`: package-local script still writes to repo-root `ops/ai-sprints`
21
- - `agent behavior issue`: reviewer omits `VERDICT` or malformed `DIMENSIONS`
22
- - `environment issue`: `acpx` missing or workspace not writable
23
- - `sample-spec issue`: validation spec asks for a field that the current product sample does not implement
24
-
25
- ## Example 4: when to stop
26
-
27
- Stop the iteration after classification if:
28
-
29
- - the issue belongs to `packages/openclaw-plugin`
30
- - the issue depends on `D:/Code/openclaw`
31
- - the fix would require dashboard/stageGraph/self-optimization sprint expansion
32
- - the problem is a sample-side or product-side gap rather than workflow plumbing
33
-
34
- ## Example 5: start from a complex bugfix template
35
-
36
- 1. Copy `references/specs/bugfix-complex-template.json`
37
- 2. Replace every placeholder in `taskContract`
38
- 3. Narrow `executionScope` to the smallest useful round
39
- 4. Run the packaged entrypoint with the edited spec:
40
-
41
- ```powershell
42
- node scripts/run.mjs --task custom-bugfix --task-spec D:/path/to/your-bugfix-spec.json
43
- ```
44
-
45
- ## Example 6: start from a complex feature template
46
-
47
- 1. Copy `references/specs/feature-complex-template.json`
48
- 2. Fill `Goal`, `In scope`, `Out of scope`, `Validation commands`, and `Expected artifacts`
49
- 3. Confirm the spec does not require product-side closure outside this milestone
50
- 4. Run:
51
-
52
- ```powershell
53
- node scripts/run.mjs --task custom-feature --task-spec D:/path/to/your-feature-spec.json
54
- ```
55
-
56
- ## Example 7: inspect checkpoint summary before continuation
57
-
58
- When a round ends in `revise`, inspect:
59
-
60
- - `stages/<stage>/checkpoint-summary.md`
61
- - `stages/<stage>/handoff.json`
62
-
63
- The next round should use the checkpoint summary as the primary carry-forward context and only fall back to full prior decision text when needed.
@@ -1,136 +0,0 @@
1
- # AI Sprint Orchestration Reference
2
-
3
- ## Package layout
4
-
5
- - `scripts/run.mjs`: package-local orchestrator entrypoint
6
- - `scripts/lib/`: decision, contract validation, state store, spec loading, archive helpers
7
- - `references/specs/`: built-in validation specs
8
- - `references/agent-registry.json`: package-local agent/model registry
9
- - `references/workflow-v1-acceptance-checklist.md`: handoff checklist
10
- - `runtime/`: default location for run artifacts
11
-
12
- ## Runtime layout
13
-
14
- Default runtime root:
15
-
16
- - `packages/openclaw-plugin/templates/langs/<lang>/skills/ai-sprint-orchestration/runtime`
17
-
18
- Subdirectories:
19
-
20
- - `runs/<run-id>/`
21
- - `archive/<run-id>/`
22
- - `tmp/sprint-agent/<run-id>/...`
23
-
24
- Override with either:
25
-
26
- - `--runtime-root <path>`
27
- - `AI_SPRINT_RUNTIME_ROOT=<path>`
28
-
29
- ## Self check
30
-
31
- Run this first in a newly installed environment:
32
-
33
- - `node scripts/run.mjs --self-check`
34
-
35
- It verifies:
36
-
37
- - package-local references exist
38
- - built-in specs load
39
- - `agent-registry.json` exists
40
- - `acpx` is callable
41
- - runtime root is writable
42
-
43
- ## Built-in specs
44
-
45
- - `workflow-validation-minimal`
46
- - `workflow-validation-minimal-verify`
47
- - `bugfix-complex-template` (copy and fill before use)
48
- - `feature-complex-template` (copy and fill before use)
49
-
50
- These built-in specs are package self-checks. They validate the workflow package itself, not product features.
51
-
52
- ## Key artifacts
53
-
54
- For each run, inspect:
55
-
56
- - `sprint.json`
57
- - `timeline.md`
58
- - `latest-summary.md`
59
- - `decision.md`
60
- - `scorecard.json`
61
-
62
- Important persisted fields:
63
-
64
- - `outputQuality`
65
- - `qualityReasons`
66
- - `validation`
67
- - `nextRunRecommendation`
68
- - `failureClassification`
69
- - `failureSource`
70
- - `recommendedNextAction`
71
-
72
- Per-stage carry-forward artifact:
73
-
74
- - `checkpoint-summary.md`
75
-
76
- The next round should prefer `checkpoint-summary.md` as carry-forward context before falling back to a full prior `decision.md` or `handoff.json`.
77
-
78
- ## Failure classification
79
-
80
- Use exactly one:
81
-
82
- - `workflow bug`: orchestration logic, artifact layout, CLI, validation, persistence
83
- - `agent behavior issue`: output quality or format drift despite correct workflow prompts/contracts
84
- - `environment issue`: missing binaries, permissions, filesystem, PATH, runtime access
85
- - `sample-spec issue`: the spec itself, or sample-side/product-side gaps that should not be fixed in this workflow milestone
86
-
87
- ## Minimum task contract for complex work
88
-
89
- Complex bugfix and feature specs must explicitly provide:
90
-
91
- - `Goal`
92
- - `In scope`
93
- - `Out of scope`
94
- - `Validation commands`
95
- - `Expected artifacts`
96
-
97
- If any of these are missing or left as placeholders, the packaged skill refuses to start the sprint.
98
-
99
- ## Execution scope limits
100
-
101
- Complex specs may define:
102
-
103
- - `maxFiles`
104
- - `maxChecks`
105
- - `maxDeliverables`
106
-
107
- The producer should declare `PLANNED_FILES`, `PLANNED_CHECKS`, and `DELIVERABLES` in the worklog before editing code. If one round would exceed scope, narrow the round or continue in a later round instead of forcing a large change through one execution.
108
-
109
- ## Synchronization rule
110
-
111
- Source of truth remains:
112
-
113
- - the repository copy at `packages/openclaw-plugin/templates/langs/zh/skills/ai-sprint-orchestration`
114
-
115
- Sync the packaged copy only when the change affects:
116
-
117
- - package-local CLI behavior
118
- - validation behavior
119
- - artifact layout
120
- - package-local references or runtime assumptions
121
-
122
- Do not blindly mirror every upstream orchestrator edit into this package.
123
-
124
- ## Current work-unit direction
125
-
126
- This package now supports a finer-grained `work-unit` layer to force tighter context boundaries between bounded units:
127
-
128
- - `workUnitId`
129
- - `workUnitGoal`
130
- - `allowedFiles`
131
- - `unitChecks`
132
- - `unitDeliverables`
133
- - `unitSummary`
134
- - `carryForwardSummary`
135
-
136
- Continuation should prefer the shorter `carryForwardSummary` before falling back to a full prior decision or handoff. The goal is to minimize cross-unit context while preserving the smallest necessary state for the next unit.