Awesome-openclaw-skills remember-all-prompts-daily
Preserve conversation continuity across token compaction cycles by extracting and archiving all prompts with date-wise entries. Automatically triggers at 95% token usage (pre-compaction) and 1% (new sprint start) to export session history, then ingests archived summaries on session restart to restore context.
git clone https://github.com/sundial-org/awesome-openclaw-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/remember-all-prompts-daily" ~/.claude/skills/sundial-org-awesome-openclaw-skills-remember-all-prompts-daily && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/remember-all-prompts-daily" ~/.openclaw/skills/sundial-org-awesome-openclaw-skills-remember-all-prompts-daily && rm -rf "$T"
skills/remember-all-prompts-daily/SKILL.mdRemember All Prompts Daily
This skill maintains conversation continuity across token budget cycles by automatically archiving your session history before compaction and restoring it when a new session begins.
How It Works
1. Extraction Trigger (95% Token Usage)
When token usage approaches 95%:
- Run
to extract current session historyexport_prompts.py - Format all prompts/responses with timestamps
- Append to
with date-wise entrymemory/remember-all-prompts-daily.md - Marks the archive point so compaction can proceed
2. Fresh Session Trigger (1% Token Usage)
When a new session starts (fresh 1% token usage):
- Check if
existsmemory/remember-all-prompts-daily.md - Read the most recent entry
- Ingest it as "past conversation summary" to restore context
- Continues naturally from where the previous session ended
3. Daily File Structure
# Remember All Prompts Daily ## [DATE: 2026-01-26] ### Session 1 (09:00 - 09:47) [All prompts and responses from session] ### Session 2 (10:15 - 11:30) [All prompts and responses from session]
Scripts
scripts/export_prompts.py
scripts/export_prompts.pyExtracts all prompts/responses from current session and archives them.
Usage:
python scripts/export_prompts.py
What it does:
- Uses
to fetch all messages from current sessionsessions_history() - Formats with timestamps and message IDs
- Appends to
memory/remember-all-prompts-daily.md - Includes metadata (token count, duration, etc.)
scripts/ingest_prompts.py
scripts/ingest_prompts.pyReads the daily archive and injects it as context on session start.
Usage:
python scripts/ingest_prompts.py
What it does:
- Reads
(if exists)memory/remember-all-prompts-daily.md - Extracts most recent session
- Returns formatted summary for ingestion into new session
Integration
Heartbeat Check
Add to
HEARTBEAT.md to monitor token usage:
Check token usage - if >95%, export session history
Cron Job (Optional)
For automatic triggers:
# Check token at regular intervals clawdbot cron add --text "Check token usage and export if needed" --schedule "*/15 * * * *"
Example Flow
Session 1:
- Chat normally
- Token reaches 95%
- export_prompts.py runs automatically
- All prompts archived to daily file
- Session compacts
Session 2 (New Sprint):
- Fresh 1% token budget
- ingest_prompts.py reads archive
- "Here's what we discussed yesterday..."
- Context restored, conversation continues seamlessly
Manual Usage
Export Right Now
python skills/remember-all-prompts-daily/scripts/export_prompts.py
View Today's Archive
cat memory/remember-all-prompts-daily.md | tail -100
Ingest Previous Session
python skills/remember-all-prompts-daily/scripts/ingest_prompts.py
Token Monitoring
Monitor token usage via:
session_status # Shows current token usage %
When you see token usage approaching 95%, the skill can auto-trigger, or you can manually export.
Notes
- Runs only in main session (direct chat with Ateeb)
- Respects privacy — only stores your actual prompts and responses
- Daily file auto-rotates at midnight (one entry per date)
- Can be manually triggered anytime