Skip to content
Skills Library
AI & agents · Automation

cortex-context-digest

/cortex-context-digest

整理当前会话上下文 → 记忆库. 自动判定全局 (L0 关键词/跨项目语义) vs 项目级 (默认/含 repo 特定); 用户可 --scope global|project 显式覆盖. 复用 cortex-extract 三轴 + cortex-schema 路径. 任务收尾或显式 'digest 上下文/沉淀' 触发.

Repository
ccplugin ↗
Licence
AGPL-3.0
Last repository change
27.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

AGPL-3.0, copyleft: przeróbki udostępniane innym muszą mieć tę samą licencję.

What it does and when to use it

整理当前会话上下文 → 记忆库. 自动判定全局 (L0 关键词/跨项目语义) vs 项目级 (默认/含 repo 特定); 用户可 --scope global|project 显式覆盖. 复用 cortex-extract 三轴 + cortex-schema 路径. 任务收尾或显式 'digest 上下文/沉淀' 触发.

Triggers from the description

digest 上下文/沉淀

Arguments

/cortex-context-digest [--scope global|project] [--dry-run|--apply]
Original author description

整理当前会话上下文 → 记忆库. 自动判定全局 (L0 关键词/跨项目语义) vs 项目级 (默认/含 repo 特定); 用户可 --scope global|project 显式覆盖. 复用 cortex-extract 三轴 + cortex-schema 路径. 任务收尾或显式 'digest 上下文/沉淀' 触发.

How it works

  1. 与既有 skill 边界
  2. 执行步骤 (main 会话按序执行)
  3. 路由表
Original SKILL.md headings · 32 lines, 211 words
SKILL.md preview
---
name: cortex-context-digest
description: "整理当前会话上下文 → 记忆库. 自动判定全局 (L0 关键词/跨项目语义) vs 项目级 (默认/含 repo 特定); 用户可 --scope global|project 显式覆盖. 复用 cortex-extract 三轴 + cortex-schema 路径. 任务收尾或显式 'digest 上下文/沉淀' 触发."

argument-hint: "[--scope global|project] [--dry-run|--apply]"
arguments: "[--scope 全局|项目] [--dry-run|--apply]"
user-invocable: true
disable-model-invocation: true
---

# cortex-context-digest

整理**当前会话上下文**(任务上下文 + 最近指令 + 关键决策) → 记忆库. 自动判定全局 (`~/.cortex/.wiki/memory/`) vs 项目级 (`<repo>/.wiki/memory/`); `--scope` 可强制覆盖. **不写脚本** — 由 main 会话按以下步骤调用 cortex-extract / cortex-save 落盘.

## 与既有 skill 边界

| skill | 数据源 | 落点 |
| --- | --- | --- |
| cortex-context-digest (本) | 当前会话上下文 (Read 活动任务 + 最近 N 轮对话) | 项目级默认 / 自动或 `--scope` 切全局 |
| cortex-extract | L4-inbox 文件 | 仓库内三模块 + memory |
| cortex-history-digest | `~/.claude/projects/**/*.jsonl` | 仅全局 |
| cortex-save | 一次性快速存单条 | 用户指定 |

## 执行步骤 (main 会话按序执行)

1. **Read 任务上下文**: 活动 `.trellis/tasks/<current>/` 下 prd.md / design.md / implement.md / journal-N.md
2. **Read 近期指令**: 会话最近 N 轮中用户校正 / 选型 / 决策
3. **识别学习增量**: 按 `references/triggers.md` 筛 (决策 / 选型 / 踩坑 / 规则 / L0 候选); 排除调试输出 / 客套
4. **scope 判定**: 对每条增量按 `references/scope.md` 6 优先序判 global / project
5. **dry-run plan**: 调 cortex-extract `--dry-run` 输出 JSON plan (复用其三轴判定 + cortex-schema 路径)
6. **用户审 → --apply**: 用户确认后调 cortex-extract `--apply` 或 cortex-save 落盘

## 路由表

| 任务 | 文件 |
| --- | --- |
| scope 6 优先序 + `--scope` 显式语义 + 保守 project 原因 | `references/scope.md` |
| 什么值得 digest / 不该 digest + 提取格式 | `references/triggers.md` |

依赖: cortex-schema (路径权威) + cortex-extract (三轴 + 落盘) + cortex-save (单条快存).
Files in this package (3)
  • SKILL.md 2 KB
  • references/scope.md 2 KB
  • references/triggers.md 2 KB

Versions

The database has no other skills named cortex-context-digest.

Database snapshot: 13.11.2026 · package version 58f9ef4a0a2c (SHA-256 digest of the entire package)

Downloads in the last 30 days: 4 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100cortex-setup-project
    Bootstrap Cortex for a new project or import existing session history. Use when the user says 'set up Cortex', 'seed this project', 'import my history', 'backfill memories', 'bootstrap memory', 'initialize Cortex for this project', or when starting to use Cortex on an existing…
  • 100cortex-run
    ONLY load this skill when the user explicitly types $cortex-run or /cortex-run. NEVER load this skill from auto-routing hooks or keyword matching. For auto-routed prompts, use snowflake-cortex-code:cortex-router instead.
  • 96cortex-mcp-project
    Use when working on the Cortex MCP server repo.
  • 100cortex-evolve
    Save knowledge to the cortex vault. Use when the user says "存到 cortex", "記一下", "save to cortex", "記到筆記", "cortex evolve", or when the session-suggest hook recommends saving content. Handles Notes and Projects.
  • 90Cortex
    Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN…
  • 90using-cortex
    Use when the user asks to check the cortex vault, refers to earlier work ("last time", "that project", "we discussed", "之前那個", "上次的"), asks to resume something from a previous session, or names a topic the SessionStart hook listed for this vault. Routes the request to the…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.