AgentSkillsCN

memory-maintenance

维护结构化记忆的完整性与容量约束。当记忆可能陈旧、不一致、容量过大,或在长时间会话后需要运行健康检查与压缩操作时使用。

SKILL.md
--- frontmatter
name: memory-maintenance
description: Maintain structured memory integrity and size constraints. Use when memory may be stale, inconsistent, oversized, or after long sessions to run health and compaction.

Memory Maintenance

Run this skill to keep memory healthy and concise.

Steps

  1. Run health check:
    • .\scripts\gtd.ps1 health
  2. If issues are detected and safe to repair:
    • .\scripts\gtd.ps1 health -Repair
  3. If state is large or stale:
    • .\scripts\gtd.ps1 compact
  4. Re-run progress:
    • .\scripts\gtd.ps1 progress

Output Contract

  • Report issues found and what was repaired.
  • Report whether compaction archived entries.
  • Confirm resulting next action.