用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/juanandresgs/claude-ctrl --skill context-preservation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | context-preservation |
| description | Generate structured context summaries for session continuity across compaction |
Generate structured context summaries when compaction is imminent or requested, ensuring session continuity without information loss.
### 1. Current Objective & Status
- **Goal**: [Robust, multi-sentence description of what we are building. Include critical details, context, and the "Definition of Done". Do not summarize into a single vague line.]
- **Status**: [Completed | In Progress | Blocked]
- **Immediate Next Step**: [The very next command or code edit required. Be specific.]
### 2. Active Context
- **Active Files**:
- `[Absolute Path]`
- `[Absolute Path]`
- **Recent Changes**: [Specific descriptions of what *just* changed in the code, referencing specific functions or logic.]
- **Variables/State**: [Key variable names, data structures, or temporary states currently in focus.]
### 3. Constraints & Decisions (CRITICAL)
- **Preferences**: [User preferences stated in this session, e.g., "no external deps", "use snake_case"]
- **Discarded Approaches**: [What did we try that failed? Do not repeat these mistakes.]
- **Architectural Rules**: [Patterns we agreed on, e.g., "Service Layer pattern", "DTOs required"]
### 4. Continuity Handoff
- "When resuming, the first thing to do is..."
Completed (all objectives achieved), In Progress (work ongoing), Blocked (explicit blocker)/Users/turla/Code/project/src/auth.ts)WRONG:
RIGHT:
WRONG:
file.ts./src/auth.tsRIGHT:
/Users/turla/Code/myproject/src/auth/oauth-handler.tsWRONG:
RIGHT:
validateTokenExpiry() function to /Users/turla/Code/myproject/src/auth/token-storage.ts (lines 42-67) that checks JWT expiration. Modified refreshToken() to call this before attempting refresh."WRONG:
RIGHT:
npm test -- --testPathPattern=oauth-handler to verify the new validateTokenExpiry() function works with expired tokens"/)