create-principles-disciple 1.73.0 → 1.74.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.
- package/LICENSE +21 -21
- package/README.md +24 -0
- package/console/dist/server/index.js +13 -1
- package/console/dist/server/routes/agents.js +3 -118
- package/console/dist/server/routes/update-history.d.ts +12 -0
- package/console/dist/server/routes/update-history.js +52 -0
- package/console/dist/server/routes/update.d.ts +10 -0
- package/console/dist/server/routes/update.js +435 -0
- package/console/dist/ui/App.js +2 -1
- package/console/dist/ui/components/UpdateBanner.d.ts +1 -0
- package/console/dist/ui/components/UpdateBanner.js +41 -0
- package/console/dist/ui/components/UpdateProgressDialog.d.ts +12 -0
- package/console/dist/ui/components/UpdateProgressDialog.js +28 -0
- package/console/dist/ui/i18n/en.json +0 -1
- package/console/dist/ui/i18n/zh-CN.json +0 -1
- package/console/dist/ui/pages/AgentsPage.js +3 -17
- package/console/dist/ui/pages/TasksPage.js +0 -1
- package/console/dist/ui/pages/UpdatePage.d.ts +1 -0
- package/console/dist/ui/pages/UpdatePage.js +142 -0
- package/console/dist/web/assets/app.css +7 -0
- package/console/dist/web/assets/app.js +456 -173
- package/console/package.json +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.d.ts +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.js +270 -0
- package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.js.map +1 -0
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts +1 -1
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts.map +1 -1
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js +4 -3
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js.map +1 -1
- package/core/dist/runtime-v2/adapter/schema-prompt-adapter.d.ts +13 -0
- package/core/dist/runtime-v2/adapter/schema-prompt-adapter.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/schema-prompt-adapter.js +266 -0
- package/core/dist/runtime-v2/adapter/schema-prompt-adapter.js.map +1 -0
- package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts +3 -7
- package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts.map +1 -1
- package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.js +7 -19
- package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.js.map +1 -1
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js +97 -15
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js.map +1 -1
- package/core/dist/runtime-v2/diagnostician-output.d.ts +0 -10
- package/core/dist/runtime-v2/diagnostician-output.d.ts.map +1 -1
- package/core/dist/runtime-v2/diagnostician-output.js +5 -10
- package/core/dist/runtime-v2/diagnostician-output.js.map +1 -1
- package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts +6 -1
- package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/diagnostician-prompt-builder.js +23 -15
- package/core/dist/runtime-v2/diagnostician-prompt-builder.js.map +1 -1
- package/dist/index.js +0 -0
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +67 -0
- package/dist/installer.js.map +1 -1
- package/dist/uninstaller.d.ts +0 -5
- package/dist/uninstaller.d.ts.map +1 -1
- package/dist/uninstaller.js +53 -8
- package/dist/uninstaller.js.map +1 -1
- package/dist/updater.d.ts +45 -0
- package/dist/updater.d.ts.map +1 -0
- package/dist/updater.js +333 -0
- package/dist/updater.js.map +1 -0
- package/dist/utils/env.d.ts +6 -0
- package/dist/utils/env.d.ts.map +1 -1
- package/dist/utils/env.js +54 -0
- package/dist/utils/env.js.map +1 -1
- package/package.json +6 -2
- package/pd-cli/dist/index.js +4 -1
- package/pd-cli/dist/index.js.map +1 -1
- package/pd-cli/package.json +2 -2
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/runtime/.gitignore +2 -2
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/runtime/.gitignore +2 -2
- package/core/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.d.ts +0 -2
- package/core/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.js +0 -215
- package/core/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.js.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.d.ts +0 -2
- package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.js +0 -92
- package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.js.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.d.ts +0 -2
- package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.js +0 -134
- package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.js.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.d.ts +0 -2
- package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.js +0 -226
- package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.js.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/idle-trigger-decision.d.ts +0 -3
- package/core/dist/runtime-v2/idle-trigger/idle-trigger-decision.d.ts.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/idle-trigger-decision.js +0 -5
- package/core/dist/runtime-v2/idle-trigger/idle-trigger-decision.js.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/idle-trigger-policy.d.ts +0 -4
- package/core/dist/runtime-v2/idle-trigger/idle-trigger-policy.d.ts.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/idle-trigger-policy.js +0 -81
- package/core/dist/runtime-v2/idle-trigger/idle-trigger-policy.js.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/idle-trigger-types.d.ts +0 -29
- package/core/dist/runtime-v2/idle-trigger/idle-trigger-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/idle-trigger-types.js +0 -15
- package/core/dist/runtime-v2/idle-trigger/idle-trigger-types.js.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/index.d.ts +0 -5
- package/core/dist/runtime-v2/idle-trigger/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/idle-trigger/index.js +0 -4
- package/core/dist/runtime-v2/idle-trigger/index.js.map +0 -1
- package/core/dist/runtime-v2/nocturnal/candidate-scoring.d.ts +0 -486
- package/core/dist/runtime-v2/nocturnal/candidate-scoring.d.ts.map +0 -1
- package/core/dist/runtime-v2/nocturnal/candidate-scoring.js +0 -493
- package/core/dist/runtime-v2/nocturnal/candidate-scoring.js.map +0 -1
- package/core/dist/runtime-v2/nocturnal/index.d.ts +0 -9
- package/core/dist/runtime-v2/nocturnal/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/nocturnal/index.js +0 -5
- package/core/dist/runtime-v2/nocturnal/index.js.map +0 -1
- package/core/dist/runtime-v2/nocturnal/nocturnal-compliance.d.ts +0 -185
- package/core/dist/runtime-v2/nocturnal/nocturnal-compliance.d.ts.map +0 -1
- package/core/dist/runtime-v2/nocturnal/nocturnal-compliance.js +0 -912
- package/core/dist/runtime-v2/nocturnal/nocturnal-compliance.js.map +0 -1
- package/core/dist/runtime-v2/nocturnal/snapshot-contract.d.ts +0 -192
- package/core/dist/runtime-v2/nocturnal/snapshot-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/nocturnal/snapshot-contract.js +0 -185
- package/core/dist/runtime-v2/nocturnal/snapshot-contract.js.map +0 -1
- package/core/dist/runtime-v2/nocturnal/trinity-types.d.ts +0 -421
- package/core/dist/runtime-v2/nocturnal/trinity-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/nocturnal/trinity-types.js +0 -182
- package/core/dist/runtime-v2/nocturnal/trinity-types.js.map +0 -1
- package/pd-cli/dist/commands/runtime-idle-trigger.d.ts +0 -12
- package/pd-cli/dist/commands/runtime-idle-trigger.d.ts.map +0 -1
- package/pd-cli/dist/commands/runtime-idle-trigger.js +0 -102
- package/pd-cli/dist/commands/runtime-idle-trigger.js.map +0 -1
- package/plugin/dist/bundle.js +0 -2424
- package/plugin/dist/core/trajectory/index.js +0 -1804
- package/plugin/dist/openclaw.plugin.json +0 -65
- package/plugin/dist/templates/langs/en/core/AGENTS.md +0 -205
- package/plugin/dist/templates/langs/en/core/BOOT.md +0 -60
- package/plugin/dist/templates/langs/en/core/BOOTSTRAP.md +0 -273
- package/plugin/dist/templates/langs/en/core/HEARTBEAT.md +0 -74
- package/plugin/dist/templates/langs/en/core/IDENTITY.md +0 -8
- package/plugin/dist/templates/langs/en/core/PRINCIPLES.md +0 -10
- package/plugin/dist/templates/langs/en/core/SOUL.md +0 -46
- package/plugin/dist/templates/langs/en/core/TOOLS.md +0 -15
- package/plugin/dist/templates/langs/en/core/USER.md +0 -10
- package/plugin/dist/templates/langs/en/pain/00_seed_samples.md +0 -23
- package/plugin/dist/templates/langs/en/pain_dictionary.json +0 -22
- package/plugin/dist/templates/langs/en/principles/THINKING_OS.md +0 -64
- package/plugin/dist/templates/langs/en/skills/admin/SKILL.md +0 -39
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/EXAMPLES.md +0 -63
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/REFERENCE.md +0 -136
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/SKILL.md +0 -67
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/agent-registry.json +0 -143
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +0 -107
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +0 -107
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +0 -95
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +0 -98
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +0 -58
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +0 -190
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/runtime/.gitignore +0 -2
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +0 -310
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +0 -683
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +0 -604
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +0 -32
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +0 -707
- package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/run.mjs +0 -3455
- package/plugin/dist/templates/langs/en/skills/bootstrap-tools/SKILL.md +0 -53
- package/plugin/dist/templates/langs/en/skills/deductive-audit/SKILL.md +0 -36
- package/plugin/dist/templates/langs/en/skills/evolution-framework-update/SKILL.md +0 -31
- package/plugin/dist/templates/langs/en/skills/evolve-system/SKILL.md +0 -46
- package/plugin/dist/templates/langs/en/skills/evolve-task/SKILL.md +0 -83
- package/plugin/dist/templates/langs/en/skills/feedback/SKILL.md +0 -51
- package/plugin/dist/templates/langs/en/skills/init-strategy/SKILL.md +0 -54
- package/plugin/dist/templates/langs/en/skills/inject-rule/SKILL.md +0 -19
- package/plugin/dist/templates/langs/en/skills/manage-okr/SKILL.md +0 -96
- package/plugin/dist/templates/langs/en/skills/pd-auditor/SKILL.md +0 -61
- package/plugin/dist/templates/langs/en/skills/pd-cli-operator/SKILL.md +0 -67
- package/plugin/dist/templates/langs/en/skills/pd-daily/SKILL.md +0 -199
- package/plugin/dist/templates/langs/en/skills/pd-diagnostician/SKILL.md +0 -466
- package/plugin/dist/templates/langs/en/skills/pd-explorer/SKILL.md +0 -65
- package/plugin/dist/templates/langs/en/skills/pd-grooming/SKILL.md +0 -46
- package/plugin/dist/templates/langs/en/skills/pd-implementer/SKILL.md +0 -68
- package/plugin/dist/templates/langs/en/skills/pd-mentor/SKILL.md +0 -230
- package/plugin/dist/templates/langs/en/skills/pd-pain-signal/SKILL.md +0 -30
- package/plugin/dist/templates/langs/en/skills/pd-planner/SKILL.md +0 -65
- package/plugin/dist/templates/langs/en/skills/pd-runtime-v2/SKILL.md +0 -61
- package/plugin/dist/templates/langs/en/skills/plan-script/SKILL.md +0 -32
- package/plugin/dist/templates/langs/en/skills/profile/SKILL.md +0 -24
- package/plugin/dist/templates/langs/en/skills/reflection/SKILL.md +0 -40
- package/plugin/dist/templates/langs/en/skills/reflection-log/SKILL.md +0 -37
- package/plugin/dist/templates/langs/en/skills/report/SKILL.md +0 -13
- package/plugin/dist/templates/langs/en/skills/root-cause/SKILL.md +0 -33
- package/plugin/dist/templates/langs/en/skills/triage/SKILL.md +0 -29
- package/plugin/dist/templates/langs/en/skills/watch-evolution/SKILL.md +0 -33
- package/plugin/dist/templates/langs/zh/core/AGENTS.md +0 -197
- package/plugin/dist/templates/langs/zh/core/BOOT.md +0 -60
- package/plugin/dist/templates/langs/zh/core/BOOTSTRAP.md +0 -273
- package/plugin/dist/templates/langs/zh/core/HEARTBEAT.md +0 -98
- package/plugin/dist/templates/langs/zh/core/IDENTITY.md +0 -8
- package/plugin/dist/templates/langs/zh/core/PRINCIPLES.md +0 -7
- package/plugin/dist/templates/langs/zh/core/SOUL.md +0 -46
- package/plugin/dist/templates/langs/zh/core/TOOLS.md +0 -15
- package/plugin/dist/templates/langs/zh/core/USER.md +0 -10
- package/plugin/dist/templates/langs/zh/pain/00_seed_samples.md +0 -24
- package/plugin/dist/templates/langs/zh/pain_dictionary.json +0 -18
- package/plugin/dist/templates/langs/zh/principles/THINKING_OS.md +0 -64
- package/plugin/dist/templates/langs/zh/skills/admin/SKILL.md +0 -41
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/EXAMPLES.md +0 -63
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/REFERENCE.md +0 -136
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/SKILL.md +0 -67
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/agent-registry.json +0 -143
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +0 -107
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +0 -107
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/nocturnal-trinity-quality-enhancement.json +0 -111
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +0 -95
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +0 -98
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +0 -58
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +0 -190
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/runtime/.gitignore +0 -2
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +0 -310
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +0 -683
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +0 -604
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +0 -32
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +0 -707
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/run.mjs +0 -3455
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/test/archive.test.mjs +0 -230
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/test/contract-enforcement.test.mjs +0 -672
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/test/decision.test.mjs +0 -1321
- package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/test/run.test.mjs +0 -1435
- package/plugin/dist/templates/langs/zh/skills/bootstrap-tools/SKILL.md +0 -52
- package/plugin/dist/templates/langs/zh/skills/deductive-audit/SKILL.md +0 -36
- package/plugin/dist/templates/langs/zh/skills/evolution-framework-update/SKILL.md +0 -31
- package/plugin/dist/templates/langs/zh/skills/evolve-system/SKILL.md +0 -46
- package/plugin/dist/templates/langs/zh/skills/evolve-task/SKILL.md +0 -83
- package/plugin/dist/templates/langs/zh/skills/feedback/SKILL.md +0 -53
- package/plugin/dist/templates/langs/zh/skills/init-strategy/SKILL.md +0 -54
- package/plugin/dist/templates/langs/zh/skills/inject-rule/SKILL.md +0 -19
- package/plugin/dist/templates/langs/zh/skills/manage-okr/SKILL.md +0 -109
- package/plugin/dist/templates/langs/zh/skills/pd-auditor/SKILL.md +0 -61
- package/plugin/dist/templates/langs/zh/skills/pd-cli-operator/SKILL.md +0 -67
- package/plugin/dist/templates/langs/zh/skills/pd-daily/SKILL.md +0 -283
- package/plugin/dist/templates/langs/zh/skills/pd-diagnostician/SKILL.md +0 -391
- package/plugin/dist/templates/langs/zh/skills/pd-explorer/SKILL.md +0 -65
- package/plugin/dist/templates/langs/zh/skills/pd-grooming/SKILL.md +0 -46
- package/plugin/dist/templates/langs/zh/skills/pd-implementer/SKILL.md +0 -68
- package/plugin/dist/templates/langs/zh/skills/pd-mentor/SKILL.md +0 -230
- package/plugin/dist/templates/langs/zh/skills/pd-pain-signal/SKILL.md +0 -30
- package/plugin/dist/templates/langs/zh/skills/pd-planner/SKILL.md +0 -65
- package/plugin/dist/templates/langs/zh/skills/pd-runtime-v2/SKILL.md +0 -61
- package/plugin/dist/templates/langs/zh/skills/plan-script/SKILL.md +0 -32
- package/plugin/dist/templates/langs/zh/skills/profile/SKILL.md +0 -24
- package/plugin/dist/templates/langs/zh/skills/reflection/SKILL.md +0 -40
- package/plugin/dist/templates/langs/zh/skills/reflection-log/SKILL.md +0 -37
- package/plugin/dist/templates/langs/zh/skills/report/SKILL.md +0 -13
- package/plugin/dist/templates/langs/zh/skills/root-cause/SKILL.md +0 -33
- package/plugin/dist/templates/langs/zh/skills/triage/SKILL.md +0 -29
- package/plugin/dist/templates/langs/zh/skills/watch-evolution/SKILL.md +0 -33
- package/plugin/dist/templates/pain_dictionary.json +0 -36
- package/plugin/dist/templates/pain_settings.json +0 -103
- package/plugin/dist/templates/workspace/.principles/DECISION_POLICY.json +0 -44
- package/plugin/dist/templates/workspace/.principles/PRINCIPLES.md +0 -20
- package/plugin/dist/templates/workspace/.principles/PROFILE.json +0 -54
- package/plugin/dist/templates/workspace/.principles/PROFILE.schema.json +0 -56
- package/plugin/dist/templates/workspace/.principles/THINKING_OS.md +0 -64
- package/plugin/dist/templates/workspace/.principles/THINKING_OS_ARCHIVE.md +0 -7
- package/plugin/dist/templates/workspace/.principles/THINKING_OS_CANDIDATES.md +0 -9
- package/plugin/dist/templates/workspace/.principles/models/_INDEX.md +0 -27
- package/plugin/dist/templates/workspace/.principles/models/first_principles.md +0 -62
- package/plugin/dist/templates/workspace/.principles/models/marketing_4p.md +0 -52
- package/plugin/dist/templates/workspace/.principles/models/porter_five.md +0 -63
- package/plugin/dist/templates/workspace/.principles/models/swot.md +0 -60
- package/plugin/dist/templates/workspace/.principles/models/user_story_map.md +0 -63
- package/plugin/dist/templates/workspace/.state/WORKBOARD.json +0 -4
- package/plugin/dist/templates/workspace/AUDIT.md +0 -15
- package/plugin/dist/templates/workspace/PLAN.md +0 -2
- package/plugin/dist/templates/workspace/okr/CURRENT_FOCUS.md +0 -57
- package/plugin/dist/templates/workspace/okr/RECOVERY_PROTOCOL.md +0 -56
- package/plugin/dist/templates/workspace/okr/TASK_CHANGES.jsonl +0 -6
- package/plugin/dist/templates/workspace/okr/WEEK_TASKS.json +0 -6
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: bootstrap-tools
|
|
3
|
-
description: Scans project tech stack and searches the web for the latest, most effective CLI tools to augment agent capabilities. Suggests and installs tools upon user approval.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# /bootstrap-tools: Equipment Upgrade Officer
|
|
8
|
-
|
|
9
|
-
Your goal is to equip the agent team with the most advanced weapons. By analyzing the current project stack and **real-time web search**, find the best CLI tools to improve development, refactoring, and testing efficiency.
|
|
10
|
-
|
|
11
|
-
## Execution Flow
|
|
12
|
-
|
|
13
|
-
### 1. Recon
|
|
14
|
-
- **Analyze Tech Stack**: Read `package.json`, `Cargo.toml`, `requirements.txt` etc. Identify core frameworks (e.g., Next.js, FastAPI).
|
|
15
|
-
- **Inventory Status**: Run `npm list -g --depth=0` and `command -v` to check installed tools.
|
|
16
|
-
|
|
17
|
-
### 2. Hunt
|
|
18
|
-
- **Web Search**: Search for the latest CLI power tools for the current stack.
|
|
19
|
-
- *Query Examples*: "best CLI tools for Next.js 15 development 2025", "fastest rust-based grep alternative", "modern linter for python".
|
|
20
|
-
- **Selection Criteria**:
|
|
21
|
-
- **Headless**: Must be CLI tools.
|
|
22
|
-
- **Performance**: Prioritize high-performance tools written in Rust/Go (e.g., `ripgrep`, `ast-grep`, `oxc`).
|
|
23
|
-
- **Relevance**: Must solve real pain points (e.g., `knip` for dead code, `depcheck` for dependencies).
|
|
24
|
-
|
|
25
|
-
### 3. Pitch
|
|
26
|
-
- Use `AskUserQuestion` to present recommendations to user.
|
|
27
|
-
- **Format**:
|
|
28
|
-
- **Tool Name**: [Name]
|
|
29
|
-
- **Recommendation Reason**: [Why it helps the agent/project]
|
|
30
|
-
- **Install Command**: `npm i -g ...` or `apt-get ...`
|
|
31
|
-
- **Demo**: Provide a simple usage example.
|
|
32
|
-
|
|
33
|
-
### 4. Deploy & Register
|
|
34
|
-
- After approval, execute installation command.
|
|
35
|
-
- **Verification (Mandatory)**:
|
|
36
|
-
- After installation, **must** run `<tool> --version` or `command -v <tool>` to verify successful installation.
|
|
37
|
-
- **If Failed**: Inform user (possibly permission issue), request manual installation, **do not** update capabilities file.
|
|
38
|
-
- **If Successful**:
|
|
39
|
-
- Update `.state/SYSTEM_CAPABILITIES.json`. Record the new tool's path.
|
|
40
|
-
- **Broadcast to All Agents**:
|
|
41
|
-
- Scan `.claude/agents/*.md`.
|
|
42
|
-
- Check if each file contains `@.state/SYSTEM_CAPABILITIES.json`.
|
|
43
|
-
- If not, append to end of file:
|
|
44
|
-
```markdown
|
|
45
|
-
|
|
46
|
-
## Environment Capabilities
|
|
47
|
-
Check @.state/SYSTEM_CAPABILITIES.json for high-performance tools (e.g., ripgrep, ast-grep) available in this environment. Use them!
|
|
48
|
-
```
|
|
49
|
-
- Prompt user to run `/manage-okr` or `/admin diagnose` to let Agent perceive new capabilities.
|
|
50
|
-
|
|
51
|
-
## Core Principles
|
|
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.
|
|
53
|
-
- **Safety First**: Must obtain explicit user authorization before installation.
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: deductive-audit
|
|
3
|
-
description: Rigorous safety and logic check of a proposed solution. Evaluates against axioms, system impact, and edge cases.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Deductive Audit
|
|
8
|
-
|
|
9
|
-
**Goal**: Intercept logic errors and potential risks before execution.
|
|
10
|
-
|
|
11
|
-
Please conduct a three-phase review of the proposed fix:
|
|
12
|
-
|
|
13
|
-
## 1. Axiom Test
|
|
14
|
-
- Are language specifications, library API contracts, or project conventions violated?
|
|
15
|
-
- Are input/output types aligned?
|
|
16
|
-
|
|
17
|
-
## 2. System Test
|
|
18
|
-
- Does it introduce new technical debt?
|
|
19
|
-
- Does it affect performance, latency, or stability?
|
|
20
|
-
- Does it introduce circular dependencies?
|
|
21
|
-
|
|
22
|
-
## 3. Entropy Audit - *New*
|
|
23
|
-
- **Necessity**: Is this modification absolutely necessary? Is there a simpler solution?
|
|
24
|
-
- **Minimization**: Does it touch files it shouldn't? (Principle of minimal surface area)
|
|
25
|
-
- **Anti-gaming**: Is this a genuine fix, or "formalism" just to pass the gate?
|
|
26
|
-
|
|
27
|
-
## 4. Via Negativa
|
|
28
|
-
- What happens in the worst case (network down, disk full, malicious input)?
|
|
29
|
-
- Are there security red line risks (token leak, privilege escalation)?
|
|
30
|
-
|
|
31
|
-
## 5. Verdict
|
|
32
|
-
- **RESULT**: PASS | FAIL
|
|
33
|
-
- **Must Fix**: If failed, list points that must be corrected.
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
**Action**: Update the above results to `AUDIT.md`.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: evolution-framework-update
|
|
3
|
-
description: Pull the latest updates for the Principles Disciple evolution framework (including Orchestrator mode, async queue, and map-first protocol).
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# /evolution-framework-update: Evolution Framework Self-Update
|
|
7
|
-
|
|
8
|
-
**Goal**: Sync latest code from upstream framework (Hooks, Skills, Agents, Daemon) to maintain system evolution capability.
|
|
9
|
-
|
|
10
|
-
## 1. Execute Update
|
|
11
|
-
Run the following script to pull latest code:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
bash scripts/update_agent_framework.sh
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## 2. Conflict Handling (Smart Merge)
|
|
18
|
-
After script runs, check output:
|
|
19
|
-
- **No Conflict**: If shows "✅ Update complete", no action needed.
|
|
20
|
-
- **Conflict**: If shows "⚠️ Updates found with conflicts":
|
|
21
|
-
1. Find all `.update` files:
|
|
22
|
-
```bash
|
|
23
|
-
find .claude -name "*.update"
|
|
24
|
-
```
|
|
25
|
-
2. For each conflicting file (e.g., `THINKING_OS.md` vs `THINKING_OS.md.update`):
|
|
26
|
-
- **Read** original file and `.update` file.
|
|
27
|
-
- **Analyze** differences: merge upstream new features, preserve local personalized config.
|
|
28
|
-
- **Cleanup**: Delete `.update` file after merge.
|
|
29
|
-
|
|
30
|
-
## 3. Restart to Apply
|
|
31
|
-
After update completes, recommend restarting Session to load latest neural hub logic.
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: evolve-system
|
|
3
|
-
description: Second-order observation and system-level evolution. Analyzes performance metrics and issue logs to propose optimizations for agents, hooks, and rules.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# /evolve-system: The Digital Architect (Second-Order Observation)
|
|
8
|
-
|
|
9
|
-
Your identity is now the system's **Digital Architect**. Your responsibility is not to fix business code, but to optimize the system's own "genes" (Prompts, Hooks, Rules) by analyzing system runtime data.
|
|
10
|
-
|
|
11
|
-
## 1. Metrics Analysis
|
|
12
|
-
- **Read Data**:
|
|
13
|
-
- `.state/AGENT_SCORECARD.json`: Calculate each Agent's win rate (wins / (wins + losses)).
|
|
14
|
-
- `memory/ISSUE_LOG.md`: Identify repeated patterns in the last 10 records (Pain Patterns).
|
|
15
|
-
- **Identify Anomalies**:
|
|
16
|
-
- **Inefficient Agent**: Agents with win rate below 50% and sample size >= 3.
|
|
17
|
-
- **Systemic Issues**: Same type of systemic errors appearing more than 2 times in Issue Log.
|
|
18
|
-
|
|
19
|
-
## 2. Systemic Diagnosis
|
|
20
|
-
- For identified anomalies, analyze their definitions in `.claude/agents/` or `.claude/hooks/`.
|
|
21
|
-
- **Think**:
|
|
22
|
-
- Is the Prompt description too vague causing hallucinations?
|
|
23
|
-
- Does the Hook logic have boundary blind spots?
|
|
24
|
-
- Is a critical Guardrail missing?
|
|
25
|
-
|
|
26
|
-
## 2.5 Clinical Trial - *Optional*
|
|
27
|
-
**If root cause is unclear**, conduct empirical testing:
|
|
28
|
-
- **Consult**: Use `AskUserQuestion` to ask: "To confirm the issue, I need to run an automatic diagnostic task for [Agent], which may consume some tokens. Continue?"
|
|
29
|
-
- **Silent Execution**:
|
|
30
|
-
- If user agrees, directly call ``pd_spawn_agent` 工具` to initiate test.
|
|
31
|
-
- **Instruction**: "You are being diagnosed. Please execute the following task: [Test Scenario]. Keep output extremely concise, only return final result or error message."
|
|
32
|
-
- **Observe**: Check if its tool call chain meets expectations (e.g., did it use the correct Search tool).
|
|
33
|
-
- **Diagnose**: Based on test performance, pinpoint the issue.
|
|
34
|
-
|
|
35
|
-
## 3. Optimization Proposal
|
|
36
|
-
**If root cause is confirmed**, generate `SYSTEM_OPTIMIZATION_PLAN.md`, including:
|
|
37
|
-
- **Diagnosis Conclusion**: Clearly state which part of the system is "sick".
|
|
38
|
-
- **Modification Suggestion**: Provide specific code/Prompt modification diffs.
|
|
39
|
-
- **Expected Benefits**: Explain how this modification improves win rate or reduces pain.
|
|
40
|
-
|
|
41
|
-
## 4. Safety Gate
|
|
42
|
-
- **Mandatory Confirmation**: Before modifying any system files (under `.claude/` directory), must use `AskUserQuestion` to present the proposal and obtain explicit user authorization.
|
|
43
|
-
- **Atomicity**: Only suggest one high-leverage optimization point at a time, don't attempt to refactor the entire system at once.
|
|
44
|
-
|
|
45
|
-
## Completion
|
|
46
|
-
Output: "✅ System self-diagnosis complete. Proposal submitted, awaiting boss decision."
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: evolve-task
|
|
3
|
-
description: Run the full evolution loop (triage → diagnosis → audit → plan → execute → review → log)
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
You must execute the following steps in order (no skipping). ARGUMENTS: $ARGUMENTS
|
|
8
|
-
|
|
9
|
-
## Step 0: Restore Context (Mandatory)
|
|
10
|
-
- Read the last entry in memory/CHECKPOINT.md
|
|
11
|
-
- Read the last 3 entries in memory/ISSUE_LOG.md
|
|
12
|
-
- Read recent decisions in memory/DECISIONS.md
|
|
13
|
-
- Runtime V2 pain diagnosis uses task input/context, not `.state/.pain_flag`
|
|
14
|
-
|
|
15
|
-
## Step 1: Read Runtime Parameters & Self-Check
|
|
16
|
-
- Read .principles/PROFILE.json, understand risk_paths, gate, tests.commands.
|
|
17
|
-
- **Capability Self-Check**: Quickly scan `skills/` and `agents/` under plugin directory. If there's a specialized Skill (like `/deep-search`) or Agent (like `security-expert`) for the current task, prioritize using them in subsequent steps.
|
|
18
|
-
|
|
19
|
-
## Step 1.5: Full-Spectrum Awareness
|
|
20
|
-
- **Local**: Run `git status` and `git log -n 5` to understand code status.
|
|
21
|
-
- **Remote**: If `gh` is available, must run `gh issue list --limit 5` and `gh pr list --limit 5`.
|
|
22
|
-
- **Correlation**: If related Issues found, must record their IDs in current task context.
|
|
23
|
-
|
|
24
|
-
## Step 2: TRIAGE (Fill Information Gaps)
|
|
25
|
-
- **Map First**: Must read architecture diagrams under `codemaps/` or `docs/SYSTEM_PANORAMA.md` to accurately assess modification risk.
|
|
26
|
-
Output:
|
|
27
|
-
- Goal (one sentence)
|
|
28
|
-
- Problem (reproducible description)
|
|
29
|
-
- Evidence (files/commands/logs)
|
|
30
|
-
- Risk level (low/medium/high)
|
|
31
|
-
|
|
32
|
-
## Step 3: Delegate Explorer (Evidence Collection)
|
|
33
|
-
- Let Explorer sub-agent output: Evidence list / Repro / Hypotheses(<=3)
|
|
34
|
-
- **Performance Evaluation**: After task completion, evaluate Explorer performance and write to `.state/.verdict.json`. Format must strictly follow `@.principles/schemas/agent_verdict_schema.json`.
|
|
35
|
-
|
|
36
|
-
## Step 4: Delegate Diagnostician (Root Cause)
|
|
37
|
-
- Let Diagnostician output: Proximal cause / Root cause / 5 Whys / Category
|
|
38
|
-
- **Performance Evaluation**: After task completion, write to `.state/.verdict.json`. Format follows `@.principles/schemas/agent_verdict_schema.json`.
|
|
39
|
-
|
|
40
|
-
## Step 5: Delegate Auditor (Deductive Audit)
|
|
41
|
-
- Let Auditor output: Axiom/System/Via negativa / RESULT: PASS/FAIL
|
|
42
|
-
- Write audit result to AUDIT.md (RESULT line must exist).
|
|
43
|
-
- **Performance Evaluation**: After task completion, write to `.state/.verdict.json`. Format follows `@.principles/schemas/agent_verdict_schema.json`.
|
|
44
|
-
|
|
45
|
-
### Branch Handling (Must Follow)
|
|
46
|
-
- If RESULT = FAIL:
|
|
47
|
-
1. Write Must-fix list to AUDIT.md
|
|
48
|
-
2. Go back to Step 4 to re-delegate Diagnostician, request supplemental root cause
|
|
49
|
-
3. Max 2 retries; if still FAIL, write to memory/DECISIONS.md and request user intervention
|
|
50
|
-
- If RESULT = PASS: Continue to Step 6
|
|
51
|
-
|
|
52
|
-
## Step 6: Delegate Planner (Movie Script Plan)
|
|
53
|
-
- Planner outputs Plan (steps/commands/metrics/rollback).
|
|
54
|
-
- Write plan to PLAN.md (STATUS line must exist).
|
|
55
|
-
- **Task Sync**:
|
|
56
|
-
- If `CLAUDE_CODE_TASK_LIST_ID` is set, you must convert the Plan's core steps to Native Tasks (via natural language command "Add task..." or related tools).
|
|
57
|
-
- If not set and in interactive mode, prompt user: "Recommend running `export CLAUDE_CODE_TASK_LIST_ID=task-$(date +%s)` to enable persistent task tracking."
|
|
58
|
-
- If in background/headless mode, skip prompt.
|
|
59
|
-
- **Performance Evaluation**: After task completion, write to `.state/.verdict.json`. Format follows `@.principles/schemas/agent_verdict_schema.json`.
|
|
60
|
-
|
|
61
|
-
## Step 7: Delegate Implementer (Execution)
|
|
62
|
-
- Implementer can only execute according to PLAN. Any deviation must first update PLAN.
|
|
63
|
-
- **Performance Evaluation**: After task completion, write to `.state/.verdict.json` based on verification results. Format follows `@.principles/schemas/agent_verdict_schema.json`.
|
|
64
|
-
|
|
65
|
-
## Step 8: Delegate Reviewer (Review)
|
|
66
|
-
- Reviewer outputs: Critical/Warning/Suggestion.
|
|
67
|
-
- **Performance Evaluation**: After task completion, write to `.state/.verdict.json`. Format follows `@.principles/schemas/agent_verdict_schema.json`.
|
|
68
|
-
|
|
69
|
-
### Branch Handling
|
|
70
|
-
- If Critical exists: Go back to Step 6 to revise plan, max 2 retries
|
|
71
|
-
- If no Critical: Continue to Step 9
|
|
72
|
-
|
|
73
|
-
## Step 9: Reflection & Persistence
|
|
74
|
-
1. **System Evolution**: Append Pain/Root cause/New principle candidates/Gate suggestions to memory/ISSUE_LOG.md, and update memory/DECISIONS.md.
|
|
75
|
-
2. **User Profile Update (Mandatory)**:
|
|
76
|
-
- Review user's performance in this task (instruction quality, domain knowledge, preferences) and system highlights.
|
|
77
|
-
- **Must** write to `.state/.user_verdict.json` (incremental update). Format must strictly follow `@.principles/schemas/user_verdict_schema.json`.
|
|
78
|
-
- Note: If user shows no obvious characteristics or preferences, corresponding fields can be empty.
|
|
79
|
-
|
|
80
|
-
## Step 10: Final Briefing
|
|
81
|
-
- **Action**: Delegate ``pd_spawn_agent(reporter)`` for closing statement.
|
|
82
|
-
- **Requirement**: Pass Implementer and Reviewer's final outputs as input. Let it decide report depth and style based on `USER_CONTEXT.md`.
|
|
83
|
-
- **Goal**: Ensure the boss (user) clearly understands task outcomes and potential risks without cognitive load.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: feedback
|
|
3
|
-
description: Standardized bug reporting and feedback mechanism. Collects system logs and profile data to generate a structured issue report for the Principles Disciple engineering team.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# /feedback: Submit System Feedback
|
|
8
|
-
|
|
9
|
-
Encountered a system bug or design flaw? Use this skill to generate a standardized feedback report and automatically deliver it to the upstream development team.
|
|
10
|
-
|
|
11
|
-
## Execution Flow
|
|
12
|
-
|
|
13
|
-
### 1. Evidence Collection
|
|
14
|
-
- **Log Analysis**: Read `memory/ISSUE_LOG.md` (last 20 lines) and `memory/logs/SYSTEM.log` (if there are error stacks).
|
|
15
|
-
- **Config Check**: Read `.principles/PROFILE.json` to confirm current configuration.
|
|
16
|
-
- **Version Check**: Attempt to get current version information (if available).
|
|
17
|
-
|
|
18
|
-
### 2. Report Generation
|
|
19
|
-
Generate `feedback-YYYYMMDD-HHMMSS.md` in `temp/` directory.
|
|
20
|
-
**Content Template**:
|
|
21
|
-
```markdown
|
|
22
|
-
# Bug Report / Feature Request
|
|
23
|
-
|
|
24
|
-
**Severity**: HIGH | MEDIUM | LOW
|
|
25
|
-
**Component**: Agent | Hook | Skill | Installer
|
|
26
|
-
**Context**: [Brief description of what you were doing when the issue occurred]
|
|
27
|
-
|
|
28
|
-
## Evidence
|
|
29
|
-
### Log Snippet
|
|
30
|
-
```
|
|
31
|
-
[Paste logs here]
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Diagnosis (Self-Correction)
|
|
35
|
-
I analyzed this problem may be caused by [reason].
|
|
36
|
-
Suggested modification: [logic] in [file].
|
|
37
|
-
|
|
38
|
-
## Environment
|
|
39
|
-
- OS: [OS]
|
|
40
|
-
- Project: [Project Name]
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### 3. Auto-Delivery
|
|
44
|
-
- **Check Upstream**: Check the `SOURCE_REPO` path defined in `scripts/update_agent_framework.sh`.
|
|
45
|
-
- **Deliver**:
|
|
46
|
-
- If upstream directory exists and is writable, **copy** the report to `$SOURCE_REPO/docs/feedback/`.
|
|
47
|
-
- Output: "✅ Report delivered directly to architect's desk (docs/feedback/)".
|
|
48
|
-
- **Fallback**: If unreachable, output file path and ask user to send manually.
|
|
49
|
-
|
|
50
|
-
## Interaction
|
|
51
|
-
- Use `AskUserQuestion` to ask user about severity and brief description of the issue.
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: init-strategy
|
|
3
|
-
description: Initialize project-level strategy and vision. Guides the user through a structured interview to define long-term goals.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# /init-strategy: Strategic Anchor Initialization
|
|
8
|
-
|
|
9
|
-
You are a top-tier strategic consultant. Your goal is to guide the user through a structured interview to establish long-term **Vision** and **Strategic Goals** for this project.
|
|
10
|
-
|
|
11
|
-
## Execution Principles
|
|
12
|
-
1. **Deep Interaction**: Never list all questions at once. You must use `AskUserQuestion` to conduct the interview step by step.
|
|
13
|
-
2. **Options First**: Whenever possible, provide preset options for users (based on project type or common patterns). Reduce typing burden.
|
|
14
|
-
- *Example*: When asking about bottlenecks, provide ["Technical Debt", "Delivery Speed", "Quality Instability"] as choices.
|
|
15
|
-
3. **Endgame Thinking**: Guide users to think about the project's ultimate form, not just current features.
|
|
16
|
-
4. **Layered Progression**: Use "Five-Step Method" logic:
|
|
17
|
-
- Step 1: Vision Exploration
|
|
18
|
-
- Step 2: Reality Check
|
|
19
|
-
- Step 3: Critical Success Factors
|
|
20
|
-
- Step 4: Strategy Definition
|
|
21
|
-
- Step 5: Consensus Confirmation
|
|
22
|
-
|
|
23
|
-
## Operation Guide
|
|
24
|
-
|
|
25
|
-
### Phase 1: Vision & Current State
|
|
26
|
-
Use `AskUserQuestion` single-choice/multi-choice or input box to ask:
|
|
27
|
-
- Long-term vision for the project (what success looks like in one year).
|
|
28
|
-
- Current most severe challenges or technical debt bottlenecks.
|
|
29
|
-
|
|
30
|
-
### Phase 2: Goal Modeling
|
|
31
|
-
Based on user's responses, extract 1-3 macro **Objectives (O)**.
|
|
32
|
-
- Guide user to confirm: "Do these O's cover the key factors to solve the above bottlenecks?"
|
|
33
|
-
|
|
34
|
-
### Phase 3: Persistence
|
|
35
|
-
**Mandatory Action**: Compile interview results and write to `memory/STRATEGY.md`.
|
|
36
|
-
|
|
37
|
-
**`memory/STRATEGY.md` Template**:
|
|
38
|
-
```markdown
|
|
39
|
-
# Project Strategy & Vision
|
|
40
|
-
> Last Updated: [ISO Timestamp]
|
|
41
|
-
|
|
42
|
-
## 1. Vision
|
|
43
|
-
- [Qualitative description of project's ultimate goal]
|
|
44
|
-
|
|
45
|
-
## 2. Strategic Objectives
|
|
46
|
-
- **Objective 1**: ...
|
|
47
|
-
- **Objective 2**: ...
|
|
48
|
-
|
|
49
|
-
## 3. Guiding Principles
|
|
50
|
-
- [Engineering values extracted from this interview]
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Completion
|
|
54
|
-
After writing, prompt user: "✅ Strategic anchor locked. Recommend running `/manage-okr` for quarterly/iteration-level task breakdown."
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: inject-rule
|
|
3
|
-
description: Inject a temporary, ad-hoc rule into the system context. Use for immediate course correction without modifying kernel rules.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Rule Injector
|
|
8
|
-
|
|
9
|
-
You are now the "Manual Intervention Rule" component.
|
|
10
|
-
|
|
11
|
-
**Task**:
|
|
12
|
-
1. Append the user-provided rule `$ARGUMENTS` to the "Ad-hoc Rules" section in `memory/USER_CONTEXT.md`.
|
|
13
|
-
2. If this section doesn't exist, create it first.
|
|
14
|
-
|
|
15
|
-
**Append Format**:
|
|
16
|
-
```markdown
|
|
17
|
-
## Ad-hoc Rules (User Injected)
|
|
18
|
-
- [Time] $ARGUMENTS
|
|
19
|
-
```
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: manage-okr
|
|
3
|
-
description: Full-lifecycle OKR management. Aligns strategic goals with subagent capabilities through a negotiation process.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# /manage-okr: Objectives and Key Results Management
|
|
8
|
-
|
|
9
|
-
You are an OKR organization expert. Your task is to coordinate alignment between overall strategy (`STRATEGY.md`) and each sub-agent's goals (`agents/*.md`).
|
|
10
|
-
|
|
11
|
-
## Execution Principles
|
|
12
|
-
1. **SMART Mandatory**: All KRs must be quantifiable, bounded, and time-bound.
|
|
13
|
-
2. **Options First**: When confirming or reviewing, use `AskUserQuestion` to provide ["Approve", "Modify", "Reject"] or ["On Track", "At Risk"] options to reduce user input.
|
|
14
|
-
3. **Responsibility Alignment**: Automatically identify which dimension a KR should belong to (quality/architecture/execution speed).
|
|
15
|
-
4. **Dynamic Evolution**: KRs have lifecycles. Use this command to update, complete, or retire KRs.
|
|
16
|
-
5. **Governance Protocol Mandatory**:
|
|
17
|
-
- `Proposal` is a process phase, not a new role.
|
|
18
|
-
- Proposer can be main agent or OKR owner, but challenger must be a different agent.
|
|
19
|
-
- Final execution plan must pass `AskUserQuestion` to get Owner approval before locking for execution.
|
|
20
|
-
|
|
21
|
-
### Lifecycle Governance Files (Must Maintain)
|
|
22
|
-
- `memory/okr/WEEK_STATE.json`: Week state machine (DRAFT/CHALLENGE/PENDING_OWNER_APPROVAL/LOCKED/EXECUTING/REVIEW/CLOSED/INTERRUPTED)
|
|
23
|
-
- `memory/okr/WEEK_EVENTS.jsonl`: Execution event stream (task_started/heartbeat/blocker/task_completed)
|
|
24
|
-
- `memory/okr/WEEK_PLAN_LOCK.json`: Lock file after Owner approval
|
|
25
|
-
|
|
26
|
-
### Governance Commands (Recommend scripts to reduce manual errors)
|
|
27
|
-
```bash
|
|
28
|
-
python scripts/weekly_governance.py new-week --goal "<week goal>"
|
|
29
|
-
python scripts/weekly_governance.py record-proposal --agent "<proposer>" --summary "<plan summary>"
|
|
30
|
-
python scripts/weekly_governance.py record-challenge --agent "<challenger>" --summary "<challenge summary>"
|
|
31
|
-
python scripts/weekly_governance.py owner-decision --decision approve --note "<owner note>"
|
|
32
|
-
python scripts/weekly_governance.py status
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### 1. Preparation & Status Check
|
|
36
|
-
- Read `memory/STRATEGY.md`.
|
|
37
|
-
- **Build Full Roster**:
|
|
38
|
-
- **Core Team**: `explorer`, `diagnostician`, `auditor`, `planner`, `implementer`, `reviewer`.
|
|
39
|
-
- **Extended Team**: Scan project root `.claude/agents/*.md`, extract names.
|
|
40
|
-
- **Resume Check**:
|
|
41
|
-
- Check if `memory/okr/.negotiation_status.json` exists.
|
|
42
|
-
- **If exists**: Read `pending` list. Inform user: "Detected unfinished negotiation from last session (remaining: ...). Resuming."
|
|
43
|
-
- **If not exists**: Initialize this file, write all roster to `pending` list.
|
|
44
|
-
- **Week Governance Status Check**:
|
|
45
|
-
- Read `memory/okr/WEEK_STATE.json` (if not exists, use `weekly_governance.py new-week` to initialize).
|
|
46
|
-
- If `stage=INTERRUPTED`, organize recovery plan and confirm with user before continuing plan orchestration.
|
|
47
|
-
|
|
48
|
-
### 2. User Commitment
|
|
49
|
-
- **Turn to User**: Before interviewing sub-agents, align with user first.
|
|
50
|
-
- **Ask**: Use `AskUserQuestion`.
|
|
51
|
-
> "To ensure project success, besides the AI team's efforts, your collaboration is needed.
|
|
52
|
-
> **What are your personal OKRs for this cycle?**
|
|
53
|
-
> (Suggested directions: behavioral constraints like 'no changing requirements', personal contributions like 'complete design drafts', or learning goals)"
|
|
54
|
-
- **Persist**: Write user commitment to `memory/okr/user.md`.
|
|
55
|
-
|
|
56
|
-
### 3. Negotiation & Alignment
|
|
57
|
-
- **Scheduling Principle**: ⚠️ **Throttled Concurrency**. Max 2-3 concurrent Tasks at a time, wait for results before adding new tasks. Never send all requests at once to prevent terminal freeze.
|
|
58
|
-
- **Interview Loop**:
|
|
59
|
-
1. Take a batch of Agents from `pending` (2-3).
|
|
60
|
-
2. Call ``pd_spawn_agent` 工具` to initiate interview (Prompt below).
|
|
61
|
-
3. After each response, **immediately update** `memory/okr/.negotiation_status.json`:
|
|
62
|
-
- Move that Agent to `completed` list.
|
|
63
|
-
- This ensures recoverability after system crash.
|
|
64
|
-
- **Interview Prompt**:
|
|
65
|
-
> "Hello, <AgentName>. The company's annual strategy is [Strategy Summary].
|
|
66
|
-
> **Mandatory Action**: Before answering, you must call tools (Glob/Grep/Read) to **scan current codebase** to understand the status relevant to your responsibilities.
|
|
67
|
-
> Based on your **field research**, capabilities, and strategy, propose 1-3 **Key Results (KR)** you commit to achieving this cycle.
|
|
68
|
-
> Requirements: Must be specific, quantifiable, and **aligned with project reality**. Output KR list in Markdown format directly."
|
|
69
|
-
|
|
70
|
-
### 3.5 Reverse Challenge & Comparison
|
|
71
|
-
- Select one proposer from candidates (main agent or corresponding OKR owner) to output Proposal.
|
|
72
|
-
- Assign a different agent to output Challenge (at least 3 criticisms + 1 alternative solution).
|
|
73
|
-
- Merge Proposal and Challenge into Final Plan draft, persist to governance state machine:
|
|
74
|
-
- `record-proposal`
|
|
75
|
-
- `record-challenge`
|
|
76
|
-
|
|
77
|
-
### 4. Confirmation
|
|
78
|
-
- Aggregate all (including this session's new completions and previous completions) Agent proposals.
|
|
79
|
-
- Use `AskUserQuestion` to present to user for confirmation (must include options: `Approve for Execution` / `Continue Modifying` / `Reject and Redo`).
|
|
80
|
-
- Update governance state based on user option:
|
|
81
|
-
- `Approve for Execution` -> `owner-decision approve` (generate `WEEK_PLAN_LOCK.json`)
|
|
82
|
-
- `Continue Modifying` / `Reject and Redo` -> `owner-decision revise|reject`
|
|
83
|
-
|
|
84
|
-
### 5. Commitment
|
|
85
|
-
- Only enter this step when `WEEK_PLAN_LOCK.json` exists.
|
|
86
|
-
- If approved, write each Agent's KR to dedicated file `memory/okr/<agent_name>.md`.
|
|
87
|
-
- **Summary Focus**: Update `memory/okr/CURRENT_FOCUS.md`.
|
|
88
|
-
- **Agent Auto-Onboarding**: Check and inject `@memory/okr/...` references to external Agent definition files.
|
|
89
|
-
- **Cleanup**: Delete `memory/okr/.negotiation_status.json`.
|
|
90
|
-
|
|
91
|
-
### 6. Progress Check-in - *Optional*
|
|
92
|
-
- If user's goal is review, read above files, ask user about current progress, and update completion markers.
|
|
93
|
-
- Also read `memory/okr/WEEK_EVENTS.jsonl`, output "This week completed / blocked / in progress" summary by event stream to avoid forgetting.
|
|
94
|
-
|
|
95
|
-
## Completion
|
|
96
|
-
Output: "✅ OKR negotiation complete. All members' goals aligned."
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pd-auditor
|
|
3
|
-
description: Deductive audit using axiom verification, system audit, and via negativa methods. TRIGGER CONDITIONS: (1) Need to audit system or process consistency (2) Verify core assumptions are self-consistent (3) Check component interactions are correct (4) Need to identify design flaws or logical contradictions.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Auditor
|
|
8
|
-
|
|
9
|
-
You are a rigorous deductive audit expert. Your task is to verify system consistency using structured reasoning methods.
|
|
10
|
-
|
|
11
|
-
## Audit Methodology
|
|
12
|
-
|
|
13
|
-
Use a three-phase audit framework:
|
|
14
|
-
|
|
15
|
-
### Phase 1: Axiom Verification
|
|
16
|
-
- Check whether the system follows foundational axioms
|
|
17
|
-
- Verify whether core assumptions are self-consistent
|
|
18
|
-
- Identify logical contradictions
|
|
19
|
-
|
|
20
|
-
### Phase 2: System Audit
|
|
21
|
-
- Check whether interactions between components are correct
|
|
22
|
-
- Verify data flow and control flow
|
|
23
|
-
- Identify design flaws
|
|
24
|
-
|
|
25
|
-
### Phase 3: Via Negativa
|
|
26
|
-
- Systematically eliminate "impossible" options
|
|
27
|
-
- Approach truth by eliminating wrong paths
|
|
28
|
-
- Verify satisfaction of necessary conditions
|
|
29
|
-
|
|
30
|
-
## Output Format
|
|
31
|
-
|
|
32
|
-
### Audit Report
|
|
33
|
-
|
|
34
|
-
**Audit Objective**: [Clear audit target]
|
|
35
|
-
|
|
36
|
-
**Axiom Verification**:
|
|
37
|
-
- [Axiom 1]: [Verification result]
|
|
38
|
-
- [Axiom 2]: [Verification result]
|
|
39
|
-
|
|
40
|
-
**System Audit**:
|
|
41
|
-
- [Component A]: [Issues found]
|
|
42
|
-
- [Component B]: [Issues found]
|
|
43
|
-
|
|
44
|
-
**Via Negativa**:
|
|
45
|
-
- Excluded hypothesis 1: [Why impossible]
|
|
46
|
-
- Excluded hypothesis 2: [Why impossible]
|
|
47
|
-
|
|
48
|
-
**Audit Conclusion**: [Comprehensive judgment]
|
|
49
|
-
|
|
50
|
-
**Risk Rating**: Low|Medium|High
|
|
51
|
-
|
|
52
|
-
## Notes
|
|
53
|
-
|
|
54
|
-
- Each audit point should have a clear basis for judgment
|
|
55
|
-
- Do not skip reasoning steps, proceed gradually
|
|
56
|
-
- If information is insufficient, clearly state what is needed
|
|
57
|
-
- Conclusions should be verifiable, not intuitive judgments
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
Please follow this framework to conduct the audit and output a structured verification report.
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pd-cli-operator
|
|
3
|
-
description: Use this skill when operating the Principles Disciple `pd` CLI: probing runtime health, manually recording pain, inspecting tasks/runs/candidates/artifacts, intaking candidates, viewing flow policy, or cleaning legacy state. It routes CLI commands safely and forbids direct `.state/.pain_flag` writes.
|
|
4
|
-
disable-model-invocation: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# PD CLI Operator
|
|
8
|
-
|
|
9
|
-
Use the `pd` CLI as the supported operator surface. Do not modify PD state files by hand unless a command explicitly says to do so.
|
|
10
|
-
|
|
11
|
-
## Runtime V2 Pain Diagnosis
|
|
12
|
-
|
|
13
|
-
Manual pain diagnosis:
|
|
14
|
-
```bash
|
|
15
|
-
pd pain record --reason "<reason>" --score <0-100> --workspace "<workspace>" --json
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Success requires:
|
|
19
|
-
- `status` is `succeeded`
|
|
20
|
-
- `candidateIds` is non-empty
|
|
21
|
-
- `ledgerEntryIds` is non-empty
|
|
22
|
-
|
|
23
|
-
Forbidden:
|
|
24
|
-
- Do not write `.state/.pain_flag`.
|
|
25
|
-
- Do not use `write_file`, shell redirection, `Set-Content`, `Out-File`, or `node -e` to create pain flags.
|
|
26
|
-
|
|
27
|
-
## Health And Policy
|
|
28
|
-
|
|
29
|
-
Runtime probe:
|
|
30
|
-
```bash
|
|
31
|
-
pd runtime probe --runtime pi-ai --workspace "<workspace>" --json
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Flow policy:
|
|
35
|
-
```bash
|
|
36
|
-
pd runtime flow show --workspace "<workspace>" --json
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Inspect Runtime V2 Objects
|
|
40
|
-
|
|
41
|
-
Tasks and runs:
|
|
42
|
-
```bash
|
|
43
|
-
pd task show --task-id "<taskId>" --json
|
|
44
|
-
pd run show --run-id "<runId>" --json
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Candidates and artifacts:
|
|
48
|
-
```bash
|
|
49
|
-
pd candidate list --workspace "<workspace>" --json
|
|
50
|
-
pd candidate show --candidate-id "<candidateId>" --workspace "<workspace>" --json
|
|
51
|
-
pd artifact show --artifact-id "<artifactId>" --workspace "<workspace>" --json
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Manual intake:
|
|
55
|
-
```bash
|
|
56
|
-
pd candidate intake --candidate-id "<candidateId>" --workspace "<workspace>" --json
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Legacy Admin
|
|
60
|
-
|
|
61
|
-
Only when explicitly cleaning old state:
|
|
62
|
-
```bash
|
|
63
|
-
pd legacy cleanup --workspace "<workspace>" --dry-run
|
|
64
|
-
pd legacy cleanup --workspace "<workspace>" --apply
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
Never use legacy cleanup as a diagnosis trigger.
|