Skip to content
Back to skills

Remember All Prompts Daily

ASecurity

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.

  • 651 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added February 10, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add sundial-org/awesome-openclaw-skills --skill remember-all-prompts-daily --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Remember All Prompts Daily?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Remember All Prompts Daily
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sundial-org-remember-all-prompts-daily/badge)](https://www.skillsdirectory.com/skills/sundial-org-remember-all-prompts-daily)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: remember-all-prompts-daily
description: 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.
---

# Remember 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 `export_prompts.py` to extract current session history
- Format all prompts/responses with timestamps
- Append to `memory/remember-all-prompts-daily.md` with date-wise entry
- 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 `memory/remember-all-prompts-daily.md` exists
- 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`
Extracts all prompts/responses from current session and archives them.

**Usage:**
```bash
python scripts/export_prompts.py
```

**What it does:**
- Uses `sessions_history()` to fetch all messages from current session
- Formats with timestamps and message IDs
- Appends to `memory/remember-all-prompts-daily.md`
- Includes metadata (token count, duration, etc.)

### `scripts/ingest_prompts.py`
Reads the daily archive and injects it as context on session start.

**Usage:**
```bash
python scripts/ingest_prompts.py
```

**What it does:**
- Reads `memory/remember-all-prompts-daily.md` (if exists)
- 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:
```bash
# Check token at regular intervals
clawdbot cron add --text "Check token usage and export if needed" --schedule "*/15 * * * *"
```

## Example Flow

**Session 1:**
1. Chat normally
2. Token reaches 95%
3. export_prompts.py runs automatically
4. All prompts archived to daily file
5. Session compacts

**Session 2 (New Sprint):**
1. Fresh 1% token budget
2. ingest_prompts.py reads archive
3. "Here's what we discussed yesterday..."
4. Context restored, conversation continues seamlessly

## Manual Usage

### Export Right Now
```bash
python skills/remember-all-prompts-daily/scripts/export_prompts.py
```

### View Today's Archive
```bash
cat memory/remember-all-prompts-daily.md | tail -100
```

### Ingest Previous Session
```bash
python skills/remember-all-prompts-daily/scripts/ingest_prompts.py
```

## Token Monitoring

Monitor token usage via:
```bash
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

Files in this skill

  • SKILL.md3.5 KB
  • scripts/check_token_usage.py2.4 KB
  • scripts/export_prompts.py3.5 KB
  • scripts/ingest_prompts.py2.5 KB
  • scripts/setup_cron.py2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.