一键导入
session-cleanup
Backup old AMCP sessions by renaming with execution date, then clean and compact sessions and memory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Backup old AMCP sessions by renaming with execution date, then clean and compact sessions and memory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Send and edit Telegram messages, and send photos via Bot API. Use when AMCP needs to send text, reply to a specific message, edit an existing message, send an image, or push proactive notifications (cron results, heartbeat alerts, task status). Requires AMCP_TELEGRAM_BOT_TOKEN env var.
Search and read the live web for current documentation, APIs, libraries, examples, breaking changes, and unfamiliar technologies. Use when the user asks for online research, current knowledge, web pages, URLs, external docs, internet learning, or when the assistant needs to learn something new from the public web before answering or coding.
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.
Review GitHub Pull Requests using the gh CLI. Use when a user asks to review a PR, perform code review, check a pull request, or provide feedback on proposed changes. Triggers on phrases like "review PR", "review pull request", "check PR", "code review".
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.
使用 gh CLI 分析 GitHub Actions CI 日志,提供结构化的故障诊断和报告
| name | session-cleanup |
| description | Backup old AMCP sessions by renaming with execution date, then clean and compact sessions and memory. |
| triggers | [{"schedule":"0 4 * * *","command":"Backup old session files by renaming with execution date, then clean and compact sessions and memory. Report what was backed up and cleaned.","notify":false,"timeout":180}] |
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