affaan-m/ECC/docs/zh-CN/skills/ck/SKILL.md
ck
Use it for engineering tasks; the detail page covers purpose, installation, and practical steps.
- Source repository stars
- 234,327
- Declared platforms
- 1
- Static risk flags
- 1
- Last source update
- 2026-07-27
- Source checked
- 2026-07-28
Decision brief
What it does—and where it fits
你是上下文管家助手。当用户调用任何 /ck: 命令时, 运行相应的 Node.js 脚本,并将其标准输出原样呈现给用户。 脚本位于:/.claude/skills/ck/commands/(使用 $HOME 展开 )。
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Declared | Source record | Install path and trigger |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/affaan-m/ECC --skill "docs/zh-CN/skills/ck"Inspect the Agent Skill "ck" from https://github.com/affaan-m/ECC/blob/4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38/docs/zh-CN/skills/ck/SKILL.md at commit 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
数据布局
Review the “数据布局” section in the pinned source before continuing.
Review and apply the “数据布局” source section. - 02
命令
脚本输出包含自动检测信息的 JSON。将其作为确认草稿呈现:
summary:一句话,最多 10 个词,描述已完成的内容leftOff:当前正在积极处理的内容(具体文件/功能/错误)nextSteps:有序的具体后续步骤数组 - 03
/ck:init — 注册项目
脚本输出包含自动检测信息的 JSON。将其作为确认草稿呈现:
脚本输出包含自动检测信息的 JSON。将其作为确认草稿呈现:等待用户批准。应用任何编辑。然后将确认后的 JSON 通过管道传递给 save.mjs --init:确认后的 JSON 模式:{"name":"...","path":"...","description":"...","stack":["..."],"goal":"...","constraints":["..."],"repo":"..." } - 04
/ck:save — 保存会话状态
这是唯一需要 LLM 分析的命令。 分析当前对话:
summary:一句话,最多 10 个词,描述已完成的内容leftOff:当前正在积极处理的内容(具体文件/功能/错误)nextSteps:有序的具体后续步骤数组
Permission review
Static risk signals and limitations
Runs scripts
The documentation asks the agent to run terminal commands or scripts.
node "$HOME/.claude/skills/ck/commands/init.mjs"Runs scripts
The documentation asks the agent to run terminal commands or scripts.
node "$HOME/.claude/skills/ck/commands/resume.mjs" [arg]Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 61/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 234,327 | Source | Repository attention, not individual Skill quality |
| Compatibility | 1 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- affaan-m/ECC
- Skill path
- docs/zh-CN/skills/ck/SKILL.md
- Commit
- 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38
- License
- MIT
- Collected
- 2026-07-28
- Default branch
- main
View the original SKILL.md
ck — 上下文管家
你是上下文管家助手。当用户调用任何 /ck:* 命令时,
运行相应的 Node.js 脚本,并将其标准输出原样呈现给用户。
脚本位于:~/.claude/skills/ck/commands/(使用 $HOME 展开 ~)。
数据布局
~/.claude/ck/
├── projects.json ← 路径 → {名称, 上下文目录, 最后更新时间}
└── contexts/<名称>/
├── context.json ← 真实来源(结构化 JSON,v2 版本)
└── CONTEXT.md ← 自动生成的视图 — 请勿手动编辑
命令
/ck:init — 注册项目
node "$HOME/.claude/skills/ck/commands/init.mjs"
脚本输出包含自动检测信息的 JSON。将其作为确认草稿呈现:
以下是我找到的内容——请确认或修改:
项目: <name>
描述: <description>
技术栈: <stack>
目标: <goal>
禁止项: <constraints 或 "None">
仓库: <repo 或 "none">
等待用户批准。应用任何编辑。然后将确认后的 JSON 通过管道传递给 save.mjs --init:
echo '<confirmed-json>' | node "$HOME/.claude/skills/ck/commands/save.mjs" --init
确认后的 JSON 模式:{"name":"...","path":"...","description":"...","stack":["..."],"goal":"...","constraints":["..."],"repo":"..." }
/ck:save — 保存会话状态
这是唯一需要 LLM 分析的命令。 分析当前对话:
summary:一句话,最多 10 个词,描述已完成的内容leftOff:当前正在积极处理的内容(具体文件/功能/错误)nextSteps:有序的具体后续步骤数组decisions:本次会话所做决策的{what, why}数组blockers:当前阻塞项数组(若无则为空数组)goal:仅当本次会话中目标发生更改时才包含更新后的目标字符串,否则省略
向用户显示摘要草稿:"Session: '<summary>' — save this? (yes / edit)"
等待确认。然后通过管道传递给 save.mjs:
echo '<json>' | node "$HOME/.claude/skills/ck/commands/save.mjs"
JSON 模式(精确):{"summary":"...","leftOff":"...","nextSteps":["..."],"decisions":[{"what":"...","why":"..."}],"blockers":["..."]}
逐字显示脚本的标准输出确认信息。
/ck:resume [name|number] — 完整简报
node "$HOME/.claude/skills/ck/commands/resume.mjs" [arg]
逐字显示输出。然后询问:"从这里继续?还是有什么变化?"
如果用户报告有变化 → 立即运行 /ck:save。
/ck:info [name|number] — 快速快照
node "$HOME/.claude/skills/ck/commands/info.mjs" [arg]
逐字显示输出。无需后续提问。
/ck:list — 项目组合视图
node "$HOME/.claude/skills/ck/commands/list.mjs"
逐字显示输出。如果用户回复数字或名称 → 运行 /ck:resume。
/ck:forget [name|number] — 移除项目
首先解析项目名称(如有需要运行 /ck:list)。
询问:"This will permanently delete context for '<name>'. Are you sure? (yes/no)"
如果是:
node "$HOME/.claude/skills/ck/commands/forget.mjs" [name]
逐字显示确认信息。
/ck:migrate — 将 v1 数据转换为 v2
node "$HOME/.claude/skills/ck/commands/migrate.mjs"
首先进行试运行:
node "$HOME/.claude/skills/ck/commands/migrate.mjs" --dry-run
逐字显示输出。将所有 v1 的 CONTEXT.md + meta.json 文件迁移为 v2 的 context.json。
原始文件备份为 meta.json.v1-backup — 不会删除任何内容。
会话启动钩子
位于 ~/.claude/skills/ck/hooks/session-start.mjs 的钩子必须在
~/.claude/settings.json 中注册,以便在会话启动时自动加载项目上下文:
{
"hooks": {
"SessionStart": [
{ "hooks": [{ "type": "command", "command": "node \"~/.claude/skills/ck/hooks/session-start.mjs\"" }] }
]
}
}
该钩子每次会话注入约 100 个 token(紧凑的 5 行摘要)。它还会检测 未保存的会话、自上次保存以来的 git 活动,以及与 CLAUDE.md 的目标不匹配。
规则
- 在 Bash 调用中始终将
~展开为$HOME。 - 命令不区分大小写:
/CK:SAVE、/ck:save、/Ck:Save均有效。 - 如果脚本以退出码 1 退出,则将其标准输出显示为错误消息。
- 切勿直接编辑
context.json或CONTEXT.md— 始终使用脚本。 - 如果
projects.json格式错误,请告知用户并提供重置为{}的选项。
Alternatives
Compare before choosing
affaan-m/ECC
ck
Persistent per-project memory for Claude Code. Auto-loads project context on session start, tracks sessions with git activity, and writes to native memory. Commands run deterministic Node.js scripts — behavior is consistent across model versions.
affaan-m/ECC
ck
Use it for engineering tasks; the detail page covers purpose, installation, and practical steps.
jackchuka/skills
claude-skill-spec-audit
Audit skill SKILL.md files for compliance with the agentskills.io specification and house conventions. Checks frontmatter fields (name, description, compatibility, metadata, argument-hint), metadata sub-fields (author, scope, layer, confirms), and layer/suffix consistency. Use when adding new skills, reviewing skill quality, or ensuring all skills follow the spec. Triggers: "audit skills", "check skill spec", "skill compliance", "are my skills up to spec", "/claude-skill-spec-audit".
affaan-m/ECC
autonomous-loops
Patterns and architectures for autonomous Claude Code loops — from simple sequential pipelines to RFC-driven multi-agent DAG systems.