Use this skill to turn an agent's daily work into durable learning. The goal is not to claim a biological brain, but to approximate useful brain-like behavior through external memory, retrieval practice, error correction, concept linking, dream-like recombination, human-readable dream description, and strategic review.
When the tian-dao reasoning skill is available, use it as the deduction engine for dream review: eight-dimensional deduction, probability branches, causal chains, butterfly effects, terminal states, contradiction analysis, inversion, and calibration.
Run the loop as:
Before installing, enabling, or copying this skill for a bot, ask the user for a daily dream review time. Do not silently choose a schedule.
Ask:
What time should this bot run its daily dream review and cognitive consolidation? Please include timezone if different from the current environment.
If the user declines, install the skill but mark dream automation as manual. If they answer, write the schedule with:
bash cognitive-self-training/scripts/configure_dream_schedule.sh . "23:30" "Asia/Shanghai"
Then create the host automation using the current platform's automation system. For Codex Desktop, create a thread heartbeat if the user wants the review in the current conversation; create a cron automation only if they want a separate recurring job.
Prefer a project-local store so learning remains scoped and inspectable:
bash cognitive-self-training/scripts/init_cognitive_training.sh .
If the skill is installed elsewhere, run the script from that installed skill path. If scripts are unavailable, create the structure in references/storage-schema.md. For dream scheduling details, read references/dream-protocol.md and references/automation.md. For dream description style configuration, read references/dream-styles.md.
Use this root selection:
~/.openclaw/workspace/.cognitive-training/..cognitive-training/.AGENTS.md, SOUL.md, TOOLS.md, MEMORY.md, CLAUDE.md, or .github/copilot-instructions.md.Never record secrets, tokens, private keys, raw environment dumps, full private transcripts, health data, or third-party personal data. Store short redacted summaries instead.
When this skill activates:
.cognitive-training/.principles.md, strategy.md, cards.md, graph.md, and today's daily/YYYY-MM-DD.md if present.Due: <= today.Use source transparency when acting from stored learning: cite the file and entry id, such as Using CT-20260422-003 from .cognitive-training/cards.md.
Log a training event when any of these happen:
Ignore one-off instructions unless they reveal a reusable preference or principle.
At the end of a work session or when the user asks for a daily review:
.cognitive-training/inbox/, .learnings/ if present, command failures, user corrections, and completed task summaries.cards.md with the next due date and graph.md with new links.principles.md.daily/YYYY-MM-DD.md with:Run dream review during the scheduled time, or whenever the user asks the bot to "dream", "nightly review", "sleep on it", "deeply consolidate", or "research today's lessons".
Use the full protocol in references/dream-protocol.md. The short version:
.cognitive-training/dream-style-config.md.dreams/YYYY-MM-DD.md.The dream description is not decorative filler. It must preserve traceability:
For each due card, ask or self-run three forms of recall:
After answering, compare against the stored source. Update the card only after comparison. If the answer was vague, score it low even if the direction was correct.
For each important new idea, add at least three links:
For complex learning, build a mini transfer matrix:
| Source Idea | Near Transfer | Far Transfer | Counterexample | Next Experiment |
|---|---|---|---|---|
| --- | --- | --- | --- | --- |
Prefer concrete task links over abstract associations. A useful connection changes future behavior.
After consolidation, write or update strategy.md:
Use this wording:
## Strategy YYYY-MM-DD
- Focus:
- Why it matters:
- Practice:
- Prevention rule:
- Next evidence to seek:
Promote a lesson from cards into principles.md when any are true:
For OpenClaw workspaces, promotion targets are:
SOUL.md: behavioral style, principles, communication norms.AGENTS.md: workflows, delegation, planning, review loops.TOOLS.md: tool gotchas, command patterns, integration constraints.MEMORY.md: durable facts and preferences for the main session.For generic coding agents, use AGENTS.md, CLAUDE.md, or .github/copilot-instructions.md only with user approval or explicit project convention.
When the user asks for a review or training cycle, respond with:
## Daily Cognitive Review
### Learned Today
- ...
### Recall Drills
- Card:
- Prompt:
- Answer:
- Score:
- Next due:
### Connections
- ...
### Mistakes Or Gaps
- ...
### Tomorrow's Strategy
- Focus:
- Practice:
- Prevention rule:
### Memory Updates
- Created:
- Updated:
- Promoted:
- Deferred:
Keep the final user-facing summary concise. Put detailed logs in .cognitive-training/.
When the user asks for dream review, use exactly these top-level sections and do not add extra top-level sections:
## Dream Review
- Selected style:
- Dream scene:
- Reasoning map:
## Dream Recurrence Statement
- Why this dream scene recurs today:
- What learning pattern it rehearses:
## Tian-Dao Deduction
- Causal chain:
- Branches:
- Butterfly points:
- Terminal states:
## Research Hypotheses
- Hypothesis:
- Evidence needed:
- Confidence:
## Tomorrow's Practice
-
## Store Updates
-
## Summary Narrative
- Write one novel-like concluding paragraph in Chinese, no more than 300 Chinese characters.
- Fully describe the dream details, the review experience, and how the knowledge understanding improved.
If the agent cannot find prior memory, initialize the store and run only today's capture. If sources conflict, prefer the most specific and most recent source, then ask the user when the conflict affects behavior. If a card becomes stale or wrong, mark it Status: retired and add the replacement entry instead of deleting history.
共 1 个版本