src/amcp/builtin_skills/session-cleanup/SKILL.md
Backup old AMCP sessions by renaming with execution date, then clean and compact sessions and memory.
npx skillsauth add tao12345666333/amcp session-cleanupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Backup old AMCP sessions by renaming with execution date, then clean and compact sessions and memory to keep the system efficient.
~/.config/amcp/sessions/ that haven't been modified in 30+ days to YYYY-MM-DD_<original_name>.json.bak~/.config/amcp/memory/HISTORY.md to keep only the last 50 entries.json files in ~/.config/amcp/sessions/ directoryYYYY-MM-DD_<original_name>.json.bak where YYYY-MM-DD is the current execution datebackups/ subdirectory within sessions folder.bak backup files older than 90 days to free space~/.config/amcp/memory/HISTORY.md- bullet is an entry).json and .bak files (not directories or other file types)Session Cleanup Report (2026-02-16):
- Active sessions kept: 10
- Sessions backed up: 15
- Old backups removed: 3
- Space freed: 45 MB
- Memory entries: compacted from 120 to 50
tools
Send and edit Telegram messages via Bot API. Use when AMCP needs to send a message, reply to a specific message, edit an existing message, or push proactive notifications (cron results, heartbeat alerts, task status). Requires AMCP_TELEGRAM_BOT_TOKEN env var.
tools
Create or update AMCP skills. Use when designing, structuring, or packaging skills with scripts, references, and assets. This skill should be used when users want to create a new skill (or update an existing skill) that extends AMCP's capabilities with specialized knowledge, workflows, or tool integrations.
testing
Periodic heartbeat check that reads HEARTBEAT.md from the workspace and executes any tasks listed there. Use for autonomous background monitoring, periodic maintenance, and proactive task execution. Triggered by a cron schedule.
tools
Learn how to manage conversation context in AMCP to avoid LLM API errors from exceeding context windows. This skill covers SmartCompactor strategies, token estimation, configuration, and best practices.