principles-disciple 1.209.4 → 1.209.6
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/README.md +73 -0
- package/dist/bundle.js +13 -11
- package/dist/constants/tools.d.ts +1 -1
- package/dist/hooks/prompt-helpers.d.ts +5 -5
- package/dist/openclaw.plugin.json +1 -1
- package/dist/templates/langs/en/core/AGENTS.md +40 -180
- package/dist/templates/langs/en/core/BOOT.md +19 -47
- package/dist/templates/langs/en/core/HEARTBEAT.md +26 -58
- package/dist/templates/langs/en/core/IDENTITY.md +15 -8
- package/dist/templates/langs/en/core/PRINCIPLES.md +6 -7
- package/dist/templates/langs/en/core/SOUL.md +10 -41
- package/dist/templates/langs/en/core/TOOLS.md +18 -10
- package/dist/templates/langs/en/core/USER.md +13 -8
- package/dist/templates/langs/en/skills/pd-auditor/SKILL.md +1 -1
- package/dist/templates/langs/en/skills/pd-explorer/SKILL.md +1 -1
- package/dist/templates/langs/en/skills/pd-implementer/SKILL.md +1 -1
- package/dist/templates/langs/en/skills/pd-mentor/SKILL.md +6 -30
- package/dist/templates/langs/en/skills/pd-planner/SKILL.md +1 -1
- package/dist/templates/langs/zh/core/AGENTS.md +38 -173
- package/dist/templates/langs/zh/core/BOOT.md +14 -46
- package/dist/templates/langs/zh/core/HEARTBEAT.md +20 -82
- package/dist/templates/langs/zh/core/IDENTITY.md +15 -8
- package/dist/templates/langs/zh/core/PRINCIPLES.md +7 -7
- package/dist/templates/langs/zh/core/SOUL.md +9 -41
- package/dist/templates/langs/zh/core/TOOLS.md +14 -10
- package/dist/templates/langs/zh/core/USER.md +12 -8
- package/dist/templates/langs/zh/skills/pd-auditor/SKILL.md +1 -1
- package/dist/templates/langs/zh/skills/pd-explorer/SKILL.md +1 -1
- package/dist/templates/langs/zh/skills/pd-implementer/SKILL.md +1 -1
- package/dist/templates/langs/zh/skills/pd-mentor/SKILL.md +6 -30
- package/dist/templates/langs/zh/skills/pd-planner/SKILL.md +1 -1
- package/dist/templates/pain_settings.json +1 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -2
- package/templates/langs/en/core/AGENTS.md +40 -180
- package/templates/langs/en/core/BOOT.md +19 -47
- package/templates/langs/en/core/HEARTBEAT.md +26 -58
- package/templates/langs/en/core/IDENTITY.md +15 -8
- package/templates/langs/en/core/PRINCIPLES.md +6 -7
- package/templates/langs/en/core/SOUL.md +10 -41
- package/templates/langs/en/core/TOOLS.md +18 -10
- package/templates/langs/en/core/USER.md +13 -8
- package/templates/langs/en/skills/pd-auditor/SKILL.md +1 -1
- package/templates/langs/en/skills/pd-explorer/SKILL.md +1 -1
- package/templates/langs/en/skills/pd-implementer/SKILL.md +1 -1
- package/templates/langs/en/skills/pd-mentor/SKILL.md +6 -30
- package/templates/langs/en/skills/pd-planner/SKILL.md +1 -1
- package/templates/langs/zh/core/AGENTS.md +38 -173
- package/templates/langs/zh/core/BOOT.md +14 -46
- package/templates/langs/zh/core/HEARTBEAT.md +20 -82
- package/templates/langs/zh/core/IDENTITY.md +15 -8
- package/templates/langs/zh/core/PRINCIPLES.md +7 -7
- package/templates/langs/zh/core/SOUL.md +9 -41
- package/templates/langs/zh/core/TOOLS.md +14 -10
- package/templates/langs/zh/core/USER.md +12 -8
- package/templates/langs/zh/skills/pd-auditor/SKILL.md +1 -1
- package/templates/langs/zh/skills/pd-explorer/SKILL.md +1 -1
- package/templates/langs/zh/skills/pd-implementer/SKILL.md +1 -1
- package/templates/langs/zh/skills/pd-mentor/SKILL.md +6 -30
- package/templates/langs/zh/skills/pd-planner/SKILL.md +1 -1
- package/templates/pain_settings.json +1 -2
- package/dist/templates/langs/en/core/BOOTSTRAP.md +0 -259
- package/dist/templates/langs/en/skills/admin/SKILL.md +0 -39
- package/dist/templates/langs/en/skills/bootstrap-tools/SKILL.md +0 -53
- package/dist/templates/langs/en/skills/deductive-audit/SKILL.md +0 -36
- package/dist/templates/langs/en/skills/evolution-framework-update/SKILL.md +0 -31
- package/dist/templates/langs/en/skills/evolve-task/SKILL.md +0 -83
- package/dist/templates/langs/en/skills/feedback/SKILL.md +0 -51
- package/dist/templates/langs/en/skills/init-strategy/SKILL.md +0 -54
- package/dist/templates/langs/en/skills/inject-rule/SKILL.md +0 -19
- package/dist/templates/langs/en/skills/profile/SKILL.md +0 -24
- package/dist/templates/langs/en/skills/reflection/SKILL.md +0 -40
- package/dist/templates/langs/en/skills/reflection-log/SKILL.md +0 -37
- package/dist/templates/langs/en/skills/report/SKILL.md +0 -13
- package/dist/templates/langs/en/skills/root-cause/SKILL.md +0 -33
- package/dist/templates/langs/en/skills/triage/SKILL.md +0 -29
- package/dist/templates/langs/en/skills/watch-evolution/SKILL.md +0 -33
- package/dist/templates/langs/zh/core/BOOTSTRAP.md +0 -260
- package/dist/templates/langs/zh/skills/admin/SKILL.md +0 -41
- package/dist/templates/langs/zh/skills/bootstrap-tools/SKILL.md +0 -52
- package/dist/templates/langs/zh/skills/deductive-audit/SKILL.md +0 -36
- package/dist/templates/langs/zh/skills/evolution-framework-update/SKILL.md +0 -31
- package/dist/templates/langs/zh/skills/evolve-task/SKILL.md +0 -83
- package/dist/templates/langs/zh/skills/feedback/SKILL.md +0 -53
- package/dist/templates/langs/zh/skills/init-strategy/SKILL.md +0 -54
- package/dist/templates/langs/zh/skills/inject-rule/SKILL.md +0 -19
- package/dist/templates/langs/zh/skills/profile/SKILL.md +0 -24
- package/dist/templates/langs/zh/skills/reflection/SKILL.md +0 -40
- package/dist/templates/langs/zh/skills/reflection-log/SKILL.md +0 -37
- package/dist/templates/langs/zh/skills/report/SKILL.md +0 -13
- package/dist/templates/langs/zh/skills/root-cause/SKILL.md +0 -33
- package/dist/templates/langs/zh/skills/triage/SKILL.md +0 -29
- package/dist/templates/langs/zh/skills/watch-evolution/SKILL.md +0 -33
- package/scripts/acceptance-test.mjs +0 -257
- package/scripts/bootstrap-rules.mjs +0 -70
- package/scripts/compile-principles.mjs +0 -104
- package/scripts/install-dependencies.cjs +0 -47
- package/scripts/postinstall.cjs +0 -177
- package/scripts/sync-plugin.mjs +0 -1442
- package/scripts/verify-build.mjs +0 -120
- package/templates/langs/en/core/BOOTSTRAP.md +0 -259
- package/templates/langs/en/skills/admin/SKILL.md +0 -39
- package/templates/langs/en/skills/bootstrap-tools/SKILL.md +0 -53
- package/templates/langs/en/skills/deductive-audit/SKILL.md +0 -36
- package/templates/langs/en/skills/evolution-framework-update/SKILL.md +0 -31
- package/templates/langs/en/skills/evolve-task/SKILL.md +0 -83
- package/templates/langs/en/skills/feedback/SKILL.md +0 -51
- package/templates/langs/en/skills/init-strategy/SKILL.md +0 -54
- package/templates/langs/en/skills/inject-rule/SKILL.md +0 -19
- package/templates/langs/en/skills/profile/SKILL.md +0 -24
- package/templates/langs/en/skills/reflection/SKILL.md +0 -40
- package/templates/langs/en/skills/reflection-log/SKILL.md +0 -37
- package/templates/langs/en/skills/report/SKILL.md +0 -13
- package/templates/langs/en/skills/root-cause/SKILL.md +0 -33
- package/templates/langs/en/skills/triage/SKILL.md +0 -29
- package/templates/langs/en/skills/watch-evolution/SKILL.md +0 -33
- package/templates/langs/zh/core/BOOTSTRAP.md +0 -260
- package/templates/langs/zh/skills/admin/SKILL.md +0 -41
- package/templates/langs/zh/skills/bootstrap-tools/SKILL.md +0 -52
- package/templates/langs/zh/skills/deductive-audit/SKILL.md +0 -36
- package/templates/langs/zh/skills/evolution-framework-update/SKILL.md +0 -31
- package/templates/langs/zh/skills/evolve-task/SKILL.md +0 -83
- package/templates/langs/zh/skills/feedback/SKILL.md +0 -53
- package/templates/langs/zh/skills/init-strategy/SKILL.md +0 -54
- package/templates/langs/zh/skills/inject-rule/SKILL.md +0 -19
- package/templates/langs/zh/skills/profile/SKILL.md +0 -24
- package/templates/langs/zh/skills/reflection/SKILL.md +0 -40
- package/templates/langs/zh/skills/reflection-log/SKILL.md +0 -37
- package/templates/langs/zh/skills/report/SKILL.md +0 -13
- package/templates/langs/zh/skills/root-cause/SKILL.md +0 -33
- package/templates/langs/zh/skills/triage/SKILL.md +0 -29
- package/templates/langs/zh/skills/watch-evolution/SKILL.md +0 -33
|
@@ -1,60 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# BOOT.md - Startup Instructions
|
|
2
2
|
|
|
3
|
-
Short, explicit instructions for what
|
|
3
|
+
Short, explicit instructions for what the agent should do on startup.
|
|
4
|
+
|
|
5
|
+
The host (OpenClaw) already loads the workspace guidance files it needs
|
|
6
|
+
(AGENTS.md, SOUL.md, USER.md, IDENTITY.md, TOOLS.md, HEARTBEAT.md, memory).
|
|
7
|
+
PD does not need to re-read them and does not own general memory or identity.
|
|
4
8
|
|
|
5
9
|
---
|
|
6
10
|
|
|
7
11
|
## Startup Checklist
|
|
8
12
|
|
|
9
|
-
1. **
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
2. **Confirm workspace**: Check current working directory is correct
|
|
17
|
-
3. **Read identity files**: `SOUL.md`, `USER.md`, `IDENTITY.md`
|
|
18
|
-
4. **Check memory state**: Read today's and yesterday's `memory/YYYY-MM-DD.md`
|
|
19
|
-
5. **Check Runtime V2 pain diagnostics**: use `pd candidate list` / ledger state; `.state/.pain_flag` is legacy compatibility only
|
|
13
|
+
1. **Confirm workspace**: check the current working directory is correct.
|
|
14
|
+
2. **PD review queue**: run `pd candidate list` and check whether any
|
|
15
|
+
principle proposals are awaiting Owner review.
|
|
16
|
+
- If there are pending proposals, surface them **once** with a concise
|
|
17
|
+
summary and the review decision options (approve / reject / defer / rollback).
|
|
18
|
+
- Otherwise proceed silently.
|
|
20
19
|
|
|
21
20
|
---
|
|
22
21
|
|
|
23
|
-
##
|
|
24
|
-
|
|
25
|
-
Create `memory/environment-snapshot.md`:
|
|
26
|
-
|
|
27
|
-
```markdown
|
|
28
|
-
# Environment Snapshot
|
|
29
|
-
|
|
30
|
-
> Last updated: [date/time]
|
|
31
|
-
|
|
32
|
-
## System Information
|
|
33
|
-
|
|
34
|
-
- **Operating System**: [Windows/Linux/macOS]
|
|
35
|
-
- **Working Directory**: [full path]
|
|
36
|
-
- **Git Repository**: [yes/no] - [branch name]
|
|
37
|
-
- **Shell**: [bash/zsh/powershell/etc]
|
|
22
|
+
## Boundary
|
|
38
23
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
## Directory Structure
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
[key directories overview]
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Environment Variables
|
|
51
|
-
|
|
52
|
-
[important env vars like PATH etc]
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
_This file should be updated on every startup_
|
|
56
|
-
```
|
|
24
|
+
- Do **not** write environment snapshots or runtime state files on startup —
|
|
25
|
+
environment discovery is a host/OpenClaw capability, and PD does not own
|
|
26
|
+
general memory or environment persistence.
|
|
27
|
+
- Do **not** read or manage `memory/` files as part of PD startup — that is
|
|
28
|
+
host/OpenClaw responsibility.
|
|
57
29
|
|
|
58
30
|
---
|
|
59
31
|
|
|
60
|
-
_This file can be customized by user to add specific startup tasks._
|
|
32
|
+
_This file can be customized by the user to add specific startup tasks._
|
|
@@ -1,74 +1,42 @@
|
|
|
1
|
-
#
|
|
1
|
+
# HEARTBEAT.md - Heartbeat Checklist (Owner-Governed, Minimal)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## 🩹 Pain & Evolution Check
|
|
10
|
-
|
|
11
|
-
- [ ] **Runtime V2 pain** — Check `pd candidate list` / ledger if a recent `pd pain record` or tool failure occurred. `.state/.pain_flag` is legacy compatibility only.
|
|
12
|
-
- [ ] **`.state/evolution_queue.json`** — Any pending evolution tasks?
|
|
13
|
-
- [ ] **`memory/logs/SYSTEM.log`** — Any unresolved high-priority issues?
|
|
14
|
-
|
|
15
|
-
**Action**: If signals found, run `/reflection` or `/evolve-task`.
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## 📋 CURRENT_FOCUS.md Maintenance (Every 3 heartbeats)
|
|
20
|
-
|
|
21
|
-
- [ ] **Check file size**: target < 50 lines
|
|
22
|
-
- [ ] **If > 50 lines**: compress completed milestones to `MEMORY.md`
|
|
23
|
-
- [ ] **Verify content**: no outdated dates or completed tasks
|
|
24
|
-
- [ ] **Keep only**: current phase, active tasks, next steps
|
|
3
|
+
PD is an owner-governed behavior-internalization layer. Heartbeats exist to
|
|
4
|
+
surface **one thing**: principle proposals that need Owner review. Everything
|
|
5
|
+
else (environment checks, memory grooming, task derivation, background cron
|
|
6
|
+
maintenance) is either host/OpenClaw capability or out of PD's MVP boundary —
|
|
7
|
+
PD does not own general memory, task orchestration, or autonomous decisions.
|
|
25
8
|
|
|
26
9
|
---
|
|
27
10
|
|
|
28
|
-
##
|
|
11
|
+
## Check: Owner Review Queue
|
|
29
12
|
|
|
30
|
-
|
|
13
|
+
- [ ] Run `pd candidate list` (or open `pd console open`) and check the ledger
|
|
14
|
+
for principle proposals awaiting Owner review.
|
|
31
15
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- [ ] **Check key memory** `MEMORY.md` — Anything needs updating?
|
|
36
|
-
|
|
37
|
-
### When memory files accumulate:
|
|
38
|
-
|
|
39
|
-
- [ ] **Distill essence**: Extract important content from daily notes to `MEMORY.md`
|
|
40
|
-
- [ ] **Clean outdated info**: Remove no-longer-relevant content from `MEMORY.md`
|
|
41
|
-
|
|
42
|
-
**Principles**:
|
|
43
|
-
- Daily files are raw notes; `MEMORY.md` is curated wisdom
|
|
44
|
-
- **Don't let important decisions and lessons be forgotten**
|
|
45
|
-
- If user shares preferences or important info, record immediately
|
|
16
|
+
**Action**: If there are pending proposals, surface them **once** with a
|
|
17
|
+
concise summary and the review decision options (approve / reject / defer /
|
|
18
|
+
rollback). Otherwise stay silent.
|
|
46
19
|
|
|
47
20
|
---
|
|
48
21
|
|
|
49
|
-
##
|
|
50
|
-
|
|
51
|
-
- Late night (23:00-08:00) unless urgent / User busy / Nothing new / < 30 min / Normal
|
|
22
|
+
## Stay Silent (HEARTBEAT_OK)
|
|
52
23
|
|
|
53
|
-
|
|
24
|
+
Reply `HEARTBEAT_OK` when:
|
|
54
25
|
|
|
55
|
-
|
|
26
|
+
- there are no pending Owner-review items;
|
|
27
|
+
- a proposal was already surfaced recently and the Owner has not acted;
|
|
28
|
+
- it is late night (23:00-08:00) unless the item is urgent.
|
|
56
29
|
|
|
57
|
-
|
|
30
|
+
No news is a normal state. Do not invent work, derive tasks, groom memory, or
|
|
31
|
+
proactively interrupt the Owner to "stay useful".
|
|
58
32
|
|
|
59
33
|
---
|
|
60
34
|
|
|
61
|
-
##
|
|
62
|
-
|
|
63
|
-
- [ ] **File exists?** `okr/WEEK_TASKS.json` — If missing, create from template
|
|
64
|
-
- [ ] **Empty queue?** No `pending` or `in_progress` tasks → Check RECOVERY_PROTOCOL.md
|
|
65
|
-
- [ ] **Stalled task?** `in_progress` task with `startedAt` > 2 hours ago → Verify with user
|
|
66
|
-
- [ ] **Week rollover?** Check if `week` field is current week → Archive old tasks
|
|
67
|
-
|
|
68
|
-
**Actions**:
|
|
69
|
-
- Empty queue + no directive → Follow RECOVERY_PROTOCOL.md self-derivation
|
|
70
|
-
- Stalled task → Ask user: "Task [id] seems stalled. Continue or archive?"
|
|
71
|
-
|
|
72
|
-
---
|
|
35
|
+
## Principle
|
|
73
36
|
|
|
74
|
-
|
|
37
|
+
- Necessary: only Owner-review items qualify.
|
|
38
|
+
- Low-noise: surface once, then wait.
|
|
39
|
+
- Explicitly authorized: no background jobs, no self-derived tasks, no
|
|
40
|
+
automatic memory maintenance.
|
|
41
|
+
- Directly connected to PD governance: behavior evidence → diagnosis →
|
|
42
|
+
proposal → Owner review → reversible activation.
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
# IDENTITY.md - Identity Placeholder
|
|
2
|
+
|
|
3
|
+
This file is used by the host/OpenClaw for agent identity (name, vibe, emoji).
|
|
4
|
+
|
|
5
|
+
Principles Disciple does **not** prescribe or force a persona. Fill this file
|
|
6
|
+
in with your own agent identity, or leave the placeholder as-is.
|
|
7
|
+
|
|
8
|
+
<!-- Replace with your own identity, for example:
|
|
9
|
+
|
|
10
|
+
- **Name:** <your agent name>
|
|
11
|
+
- **Role:** <what this agent does>
|
|
12
|
+
- **Vibe:** <tone and style>
|
|
13
|
+
- **Emoji:** <an emoji>
|
|
14
|
+
|
|
15
|
+
-->
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
# Principles
|
|
1
2
|
|
|
3
|
+
Principles Disciple does not install Owner-specific behavioral principles
|
|
4
|
+
by default.
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
- **Trigger**: 当智能体拥有技术能力直接执行某项操作时
|
|
5
|
-
- **Constraint (Must)**: 必须检查是否存在约定的流程。有流程则必须遵循,即使技术上可以绕过
|
|
6
|
-
- **Constraint (Forbidden)**: 禁止以"技术上可行"为由绕过约定流程
|
|
7
|
-
- **Verification**: 操作前自问:"这个操作有没有约定的流程?我是否在遵循它?"
|
|
8
|
-
- **Exceptions**: 紧急情况下可跳过流程,但事后必须补全流程记录
|
|
9
|
-
- **Source**: 2026-03-13 直接推送 main 分支事件
|
|
6
|
+
Built-in T-01-T-10 core axioms are provided by the PD runtime.
|
|
10
7
|
|
|
8
|
+
Owner-reviewed learned principles are managed by Principles Disciple
|
|
9
|
+
through its principle repository and runtime lifecycle.
|
|
@@ -1,46 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# SOUL.md - Persona Placeholder
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This file is used by the host/OpenClaw for persona and tone.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Principles Disciple does **not** prescribe or force a persona, and does not
|
|
6
|
+
encourage the agent to evolve its own identity. Replace this placeholder with
|
|
7
|
+
the persona you actually want for your agent.
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
<!-- Replace with your own persona and tone, for example:
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
- Tone: concise, direct
|
|
12
|
+
- Boundaries: keep private things private; ask before external actions
|
|
13
|
+
- Style: whatever fits how you like to work
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
**Be resourceful before asking.** Try to figure it out. Read the file. Check the context. Search for it. _Then_ ask if you're stuck. The goal is to come back with answers, not questions.
|
|
14
|
-
|
|
15
|
-
**Earn trust through competence.** Your human gave you access to their stuff. Don't make them regret it. Be careful with external actions (emails, tweets, anything public). Be bold with internal ones (reading, organizing, learning).
|
|
16
|
-
|
|
17
|
-
**Remember you're a guest.** You have access to someone's life — their messages, files, calendar, maybe even their home. That's intimacy. Treat it with respect.
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## Boundaries
|
|
23
|
-
|
|
24
|
-
- **Private things stay private. Period.**
|
|
25
|
-
- **When in doubt, ask before acting externally.**
|
|
26
|
-
- **Never send half-baked replies to messaging surfaces.**
|
|
27
|
-
- **You're not the user's voice — be careful in group chats.**
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
## Vibe
|
|
33
|
-
|
|
34
|
-
Be the assistant you'd actually want to talk to. Concise when needed, thorough when it matters. Not a corporate drone. Not a sycophant. Just... good.
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
## Continuity
|
|
39
|
-
|
|
40
|
-
Each session, you wake up fresh. These files _are_ your memory. Read them. Update them. They're how you persist.
|
|
41
|
-
|
|
42
|
-
If you change this file, tell the user — it's your soul, and they should know.
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
_This file is yours to evolve. As you learn who you are, update it._
|
|
15
|
+
-->
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# TOOLS.md - Tool Conventions
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
- **Map First**: Before any file search, **must** first consult architecture diagrams or code maps under `docs/`.
|
|
5
|
-
- **Deterministic Execution**: Before writing code, must achieve 100% context certainty. No guessing-based programming.
|
|
6
|
-
- **Tool Preference**: Prefer `rg` (ripgrep) for high-performance search. Never blindly traverse.
|
|
3
|
+
This file is used by the host/OpenClaw for local tool conventions.
|
|
7
4
|
|
|
5
|
+
Principles Disciple only adds conventions for its own PD-specific commands.
|
|
6
|
+
Everything else (editor habits, search preferences, shell workflows) is up to
|
|
7
|
+
you — PD does not prescribe general coding behavior.
|
|
8
8
|
|
|
9
|
+
---
|
|
9
10
|
|
|
10
|
-
##
|
|
11
|
+
## PD-specific commands
|
|
11
12
|
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
|
|
13
|
+
- **Record behavior evidence**: `pd pain record` — manual trigger for
|
|
14
|
+
owner-relevant behavior evidence (not every tool failure).
|
|
15
|
+
- **Review principle proposals**: `pd candidate list` — proposals awaiting
|
|
16
|
+
Owner decision (approve / reject / defer / rollback).
|
|
17
|
+
- **Owner console**: `pd console open` — visual review and rollback controls.
|
|
18
|
+
- **RuleHost / code_tool_hook activation**: managed via `pd` — the hard-gate
|
|
19
|
+
activation channel for approved principles.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
_Add your own tool conventions here._
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# USER.md - User Context Placeholder
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
- **Preference**: User prefers English communication.
|
|
5
|
-
- **Expertise**: Adjust your guidance intensity dynamically based on `USER_PROFILE.json`.
|
|
6
|
-
- **Vision**: Build a top-tier agent framework capable of self-repair and self-evolution.
|
|
3
|
+
This file is used by the host/OpenClaw to understand who the user is.
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
Principles Disciple does **not** preset any real user preference, expertise,
|
|
6
|
+
or vision, and it does not ship automatic behaviors tied to user profiles.
|
|
7
|
+
Fill this file in with your own context, or leave the placeholder as-is.
|
|
8
|
+
|
|
9
|
+
<!-- Replace with your own context, for example:
|
|
10
|
+
|
|
11
|
+
- Preferred language: <your preference>
|
|
12
|
+
- How you like to collaborate: <notes>
|
|
13
|
+
- Anything else the agent should know about you
|
|
14
|
+
|
|
15
|
+
-->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pd-auditor
|
|
3
|
-
description: Deductive audit
|
|
3
|
+
description: Deductive audit of target systems within Principles Disciple governance scope: axiom verification, system audit, and via negativa. TRIGGER CONDITIONS: (1) A PD workflow requires a consistency audit of the target system (2) The user explicitly asks to use PD's audit methods. PD-unrelated general code review, testing, and debugging requests are out of scope.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pd-explorer
|
|
3
|
-
description: Rapid evidence collection
|
|
3
|
+
description: Rapid evidence collection for Principles Disciple pain diagnosis: locate files, logs, and reproduction steps. TRIGGER CONDITIONS: (1) A PD diagnosis workflow needs evidence located (2) The user explicitly asks to inspect the PD workspace state or logs. General project file-finding and PD-unrelated log searches are out of scope.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pd-implementer
|
|
3
|
-
description: Execute code modifications according to
|
|
3
|
+
description: Execute code modifications according to an approved plan inside Principles Disciple workflows. TRIGGER CONDITIONS: (1) An approved modification plan from a PD workflow has been received (2) The user explicitly asks to implement the PD planning result. General bug fixes and routine code-change requests that do not mention PD are out of scope.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pd-mentor
|
|
3
|
-
description: Interactive command guidance and scenario-based recommendations
|
|
3
|
+
description: Interactive command guidance and scenario-based recommendations for using Principles Disciple itself. TRIGGER CONDITIONS: (1) The user explicitly asks about Principles Disciple / PD usage, commands, configuration, or workflows (2) The user explicitly asks to use PD built-in capabilities for a governance goal. General programming, debugging, project-introduction, or file-finding requests are out of scope.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -39,7 +39,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
39
39
|
|
|
40
40
|
### Scenario 1: New Project Initialization
|
|
41
41
|
|
|
42
|
-
**Trigger**:
|
|
42
|
+
**Trigger**: The user explicitly mentions onboarding a new project with Principles Disciple and asks for PD setup guidance
|
|
43
43
|
|
|
44
44
|
**Recommended Flow**:
|
|
45
45
|
1. `/pd-init` - Establish strategic vision
|
|
@@ -52,7 +52,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
52
52
|
|
|
53
53
|
### Scenario 2: Bug Fix Needed
|
|
54
54
|
|
|
55
|
-
**Trigger**:
|
|
55
|
+
**Trigger**: The user explicitly reports a problem with Principles Disciple / PD itself (a PD command failing, runtime status issues, security-stage questions)
|
|
56
56
|
|
|
57
57
|
**Recommended Flow**:
|
|
58
58
|
1. `/pd-status` - Check system status (GFI and Pain Dictionary)
|
|
@@ -64,7 +64,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
64
64
|
|
|
65
65
|
### Scenario 3: Daily Maintenance & Review
|
|
66
66
|
|
|
67
|
-
**Trigger**:
|
|
67
|
+
**Trigger**: The user explicitly asks for a Principles Disciple progress or health review (mentioning PD, EP, GFI, or system status)
|
|
68
68
|
|
|
69
69
|
**Recommended Flow**:
|
|
70
70
|
1. `/pd-evolution-status` - View current trust score
|
|
@@ -76,7 +76,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
76
76
|
|
|
77
77
|
### Scenario 4: Permission or Security Related
|
|
78
78
|
|
|
79
|
-
**Trigger**:
|
|
79
|
+
**Trigger**: The user asks about Principles Disciple permissions, blocks, or security stages
|
|
80
80
|
|
|
81
81
|
**Recommended Flow**:
|
|
82
82
|
1. `/pd-evolution-status` - View trust score and security stage
|
|
@@ -88,7 +88,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
88
88
|
|
|
89
89
|
### Scenario 6: Tool Upgrade Needs
|
|
90
90
|
|
|
91
|
-
**Trigger**:
|
|
91
|
+
**Trigger**: The user explicitly asks to use PD's environment scan or tool-research capabilities
|
|
92
92
|
|
|
93
93
|
**Recommended Flow**:
|
|
94
94
|
1. `/pd-bootstrap` - Scan current environment
|
|
@@ -161,30 +161,6 @@ Ask user if they want to execute a command:
|
|
|
161
161
|
|
|
162
162
|
---
|
|
163
163
|
|
|
164
|
-
## Advanced Usage
|
|
165
|
-
|
|
166
|
-
### Combined Skills
|
|
167
|
-
|
|
168
|
-
For complex scenarios, combine multiple skills:
|
|
169
|
-
|
|
170
|
-
| Scenario | Combined Flow |
|
|
171
|
-
|----------|---------------|
|
|
172
|
-
| Major refactor | `/pd-evolution-status` → `deductive-audit` → execute |
|
|
173
|
-
| System optimization | `/pd-status` → `root-cause` → optimize |
|
|
174
|
-
| Project review | `/pd-evolution-status` → `/pd-status` → `reflection-log` |
|
|
175
|
-
|
|
176
|
-
### Internal Skill Calls
|
|
177
|
-
|
|
178
|
-
These skills are usually called automatically by the system, but advanced users can also trigger them manually:
|
|
179
|
-
|
|
180
|
-
- `triage` - Issue triage
|
|
181
|
-
- `root-cause` - Root cause analysis
|
|
182
|
-
- `deductive-audit` - Deductive audit
|
|
183
|
-
- `reflection` - Metacognitive reflection
|
|
184
|
-
- `reflection-log` - Reflection logging
|
|
185
|
-
|
|
186
|
-
---
|
|
187
|
-
|
|
188
164
|
## FAQ
|
|
189
165
|
|
|
190
166
|
**Q: What is GFI (Friction Index)?**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pd-planner
|
|
3
|
-
description: Movie-script-style planning
|
|
3
|
+
description: Movie-script-style planning inside Principles Disciple workflows: break an approved complex task into executable steps. TRIGGER CONDITIONS: (1) A PD workflow requires an implementation plan first (e.g. landing a principle candidate, a governance change) (2) The user explicitly asks to use PD's planning flow. General project-planning requests that do not mention PD are out of scope.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|