用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majiayu000/claude-skill-registry --skill compact命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | compact |
| description | Compact agent memory by archiving old sessions and updating Context.md |
| allowed-tools | ["Read","Write","Edit","Bash","Glob"] |
Compact an agent's memory: archive old sessions, summarize them, and refresh Context.md.
/compact # Compact current agent's memory
/compact <agent> # Compact a specific agent's memory
/compact all # Compact all 9 agents
planner, builder, checker, brainstorm, gal, legal, gitdude, fetcher, orca
When invoked, perform these steps for the target agent(s):
Determine the agent's Memory_Logs path:
AgenTeam/Planner/Memory_Logs/AgenTeam/Builder/Memory_Logs/AgenTeam/Checker/Memory_Logs/AgenTeam/BrainStorm/Memory_Logs/AgenTeam/Gal/Memory_Logs/AgenTeam/Legal/Memory_Logs/AgenTeam/GitDude/Memory_Logs/Library/Fetcher/Memory_Logs/AgenTeam/Orca/Memory_Logs/List all files in Memory_Logs/Sessions/. If there are 5 or fewer files, skip compaction (memory is fine).
If there are more than 5 session files:
Memory_Logs/Archive/[YYYY-MM]/Memory_Logs/Archive/[YYYY-MM]/sessions_summary.md:# Session Archive — [YYYY-MM]
**Agent:** [Agent Name]
**Compacted:** [today's date]
**Sessions archived:** [count]
## Summaries
### [Original filename]
**Date:** [date from content]
- [2-3 bullet summary of what happened]
- [key decisions or outcomes]
### [Next filename]
...
Read the agent's current state and update Memory_Logs/Context.md:
# Context — [Agent Name]
**Last updated:** [today's date]
*Quick startup snapshot. Read this first instead of scanning all memory files.*
---
## Project Summary
[2-3 sentences about current project state from Dashboard/Brief.md]
## Current Task
[From Checkpoint.md — current status, or "None — ready for assignment"]
## Recent Lessons
[Last 3 entries from Lessons.md]
## Active Preferences
[Key preferences from Preferences.md]
## Team Status
See Dashboard/Brief.md for full team status.
## My Recent Sessions
[1-2 line summary of each of the 3 kept sessions]
## Archived Sessions
[Count] sessions archived in Archive/. See Archive/[YYYY-MM]/sessions_summary.md for summaries.
=== COMPACTION COMPLETE ===
Agent: [name]
Sessions before: [count]
Sessions kept: [count] (latest 3)
Sessions archived: [count]
Archive location: Memory_Logs/Archive/[YYYY-MM]/
Context.md: Updated
===========================
compact all is used, process agents in order and report for eachPart of AutoMates.AI memory management system