用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/coreindustries/core-ai-template --skill compact命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | compact |
| description | Create a token-efficient state snapshot for context preservation during long sessions. |
Create a token-efficient state snapshot for context preservation during long sessions. This is the creation side of context recovery — /resume is the reconstruction side.
/compact [--save]
--save: Write the snapshot to prd/tasks/{feature}_compact.md (default: display only)| Skill | Purpose | Output | When to Use |
|---|---|---|---|
/checkpoint | Update task tracking with progress details | Full task file update | Every 30-60 min during development |
/compact | Create minimal recovery snapshot | Dense state summary | Before context limit, before long breaks |
/checkpoint maintains detailed progress. /compact creates the minimum context needed to reconstruct working state after full context loss.
When this skill is invoked:
Autonomy:
Discipline:
Run in parallel:
git branch --show-current
git log --oneline -10
git diff --stat
git diff --cached --stat
Read in parallel:
prd/00_index.md — find active featuresprd/tasks/{feature}_tasks.md — if it existsdocs/decisions/ — any ADRs created this sessionCreate a dense state summary with these sections:
# Compact: {Feature Name}
**Branch:** {branch}
**Date:** {YYYY-MM-DD HH:MM}
**Session duration:** ~{estimated time}
## State
{2-3 sentences: what exists now that didn't before this session}
## Decisions Made
{Numbered list of decisions with one-line rationale each}
1. {Decision}: {why}
2. {Decision}: {why}
## What's Done
{Bulleted list of completed work — file paths, not descriptions}
- [x] {file or feature}
- [x] {file or feature}
## What's In Progress
- [ ] {current task}: {where it stands}
## What's Blocked
- {blocker}: {what's needed to unblock}
## Next Steps (Priority Order)
1. {First thing to do when resuming}
2. {Second thing}
3. {Third thing}
## Key Files
{Files that must be read to understand current state}
- `{file}` — {one-line role}
If --save is specified:
prd/tasks/{feature}_compact.mdprd/tasks/{feature}_compact.md"Otherwise:
/compact --save to persist this snapshot"Use /compact:
Don't use for:
/checkpoint already captured recent progress (use /compact only when you need a more condensed format)