Install
openclaw skills install scribeScans OpenClaw logs, config files, chat history, cursor history, behavior, desires, tastes, and drafts to take comprehensive daily and weekly notes with summaries.
openclaw skills install scribeComprehensive note-taking system that scans multiple OpenClaw data sources to generate daily and weekly notes with summaries.
Scribe automatically scans and analyzes:
Generates structured markdown notes with summaries at the top of each file.
clawhub install scribe
Or clone into your skills directory:
git clone https://github.com/Org/scribe.git workspace/skills/scribe
Generate a daily note covering the last 24 hours:
python3 workspace/skills/scribe/scripts/scribe.py --mode daily
Generate a weekly note covering the last 7 days:
python3 workspace/skills/scribe/scripts/scribe.py --mode weekly
Generate both notes at once:
python3 workspace/skills/scribe/scripts/scribe.py --mode both
Get results in JSON format:
python3 workspace/skills/scribe/scripts/scribe.py --mode daily --json
Example 1: Daily Note Generation
Scenario: You want a daily summary of OpenClaw activity.
Action: Run python3 workspace/skills/scribe/scripts/scribe.py --mode daily.
Outcome: A markdown file workspace/Notes/daily/YYYY-MM-DD.md with a summary at the top, followed by detailed sections for logs, chat history, memory, drafts, behavior, and config.
Example 2: Weekly Summary
Scenario: You want a weekly overview of patterns and trends.
Action: Run python3 workspace/skills/scribe/scripts/scribe.py --mode weekly.
Outcome: A markdown file workspace/Notes/weekly/YYYY-MM-DD.md with weekly statistics, trends, and activity summaries.
Example 3: Cron Job Integration
Scenario: Automate daily note generation.
Action: Add a cron job that runs scribe.py --mode daily every day at midnight.
Outcome: Daily notes are automatically generated and saved to workspace/Notes/daily/.
python3 workspace/skills/scribe/scripts/scribe.py --mode daily # Generate daily note
python3 workspace/skills/scribe/scripts/scribe.py --mode weekly # Generate weekly note
python3 workspace/skills/scribe/scripts/scribe.py --mode both # Generate both
python3 workspace/skills/scribe/scripts/scribe.py --mode daily --json # JSON output
python3 workspace/skills/scribe/scripts/scribe.py --openclaw-home /path/to/openclaw # Custom home directory
daily, weekly, or both (default: daily)~/.openclaw).log files in logs/ directory for errors, warnings, gateway events, and subagent spawnsopenclaw.jsonstate.vscdb) for recent chat messagesmemory/YYYY-MM-DD.md) and long-term memory (MEMORY.md)*draft*.txt, *draft*.md, blog/**/*.md, tweet*.txtBEHAVIOR.md, DESIRES.md, TASTES.md, PREFERENCES.mdworkspace/Notes/daily/YYYY-MM-DD.md and weekly notes to workspace/Notes/weekly/YYYY-MM-DD.md# Daily Summary - YYYY-MM-DD HH:MM:SS
- **Logs**: X errors, Y warnings
- **Gateway Events**: Z events
- **Subagent Activity**: N spawns
- **Chat Messages**: M messages
- **Daily Notes**: K files
- **Drafts**: L draft files
- **Config**: Loaded successfully
---
# Daily Note
## Logs
### Errors (X)
- [error details]
### Warnings (Y)
- [warning details]
## Chat History
Found M messages in the last 24 hours.
### User (X messages)
- [message previews]
## Memory Files
### Daily Notes (K)
- **YYYY-MM-DD**: [content preview]
## Drafts
### [draft path]
- Size: X bytes
- Modified: [timestamp]
- Preview: [content preview]
## Behavior & Preferences
### Behavior Files
- **BEHAVIOR.md**: [content preview]
## Configuration
### Model Preferences
- Default: [model]
- Aliases: X configured
# Weekly Summary - YYYY-MM-DD HH:MM:SS
[Summary statistics]
---
# Weekly Note - YYYY-MM-DD to YYYY-MM-DD
## Weekly Summary
- **Total Errors**: X
- **Total Warnings**: Y
- **Gateway Events**: Z
- **Subagent Spawns**: N
## Chat Activity (M messages)
- **User**: X messages
- **Assistant**: Y messages
## Memory Activity (K daily notes)
- **YYYY-MM-DD**: X bytes
## Drafts (L files)
- **[path]**: X bytes (modified: [timestamp])
## Trends & Patterns
- ⚠️ **Error Rate**: X errors this week
- 🤖 **Subagent Activity**: N spawns this week
- 💬 **Chat Activity**: M messages this week
~/.openclaw directory structureworkspace/Notes/ directoryExample Cron Job Configuration:
{
"payload": {
"kind": "agentTurn",
"message": "Run scribe.py --mode daily to generate daily notes.",
"model": "openrouter/google/gemini-2.5-flash",
"thinking": "low",
"timeoutSeconds": 300
},
"schedule": {
"kind": "cron",
"cron": "0 0 * * *"
},
"delivery": {
"mode": "announce"
},
"sessionTarget": "isolated",
"name": "Daily Scribe Note"
}
Or run directly via shell script:
# Add to crontab (crontab -e)
# Run daily at midnight
0 0 * * * /Users/ghost/.openclaw/workspace/skills/scribe/scripts/scribe.py --mode daily >> /Users/ghost/.openclaw/logs/scribe.log 2>&1
openclaw.json (config only, no secrets), logs/*.log, memory/*.md, and Cursor SQLite databasesworkspace/Notes/ directoryworkspace/Notes/daily/ and workspace/Notes/weekly/ directories