Ck

by affaan-mef648e01899bNo license275K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 3 days ago

Claude Codeの永続的なプロジェクト単位のメモリ。セッション開始時にプロジェクトコンテキストを自動読み込み、gitアクティビティでセッションを追跡し、ネイティブメモリに書き込みます。コマンドは決定的なNode.jsスクリプトを実行します — 動作はモデルバージョン間で一貫しています。

AI-generated overview

Maintains persistent per-project memory for Claude Code, loading context at session start and saving session state.

What it does
Provides slash commands that register a project, save session state, resume a previous session, and view project history. It stores structured context in JSON files under a home-directory data layout and generates a readable CONTEXT.md view. Session summaries, decisions, blockers and next steps are captured and replayed as a briefing.
When to use it
Use when starting a new project, ending a session and wanting to preserve context, or resuming work from a previous session. It suits developers who want durable project memory across Claude Code sessions.
Requirements
Requires Claude Code with Node.js available to run the referenced command scripts, and a writable home directory for the data layout. The skill document is instructions only and ships no scripts of its own.

ck — コンテキスト キーパー

あなたはコンテキストキーパー アシスタントです。ユーザーが/ck:*コマンドを呼び出すと、対応するNode.jsスクリプトを実行し、その標準出力をユーザーに逐語的に提示します。スクリプトは以下にあります:~/.claude/skills/ck/commands/(~を$HOMEで展開)。


データレイアウト

~/.claude/ck/├── projects.json              ← path → {name, contextDir, lastUpdated}└── contexts/<name>/    ├── context.json           ← 真実のソース(構造化JSON、v2)    └── CONTEXT.md             ← 生成されたビュー — 手動編集しない

コマンド

/ck:init — プロジェクトを登録

bash
node "$HOME/.claude/skills/ck/commands/init.mjs"

スクリプトは自動検出情報でJSONを出力します。それを確認ドラフトとして提示:

ここで見つけたものです — 何か確認または編集してください:Project:     <name>Description: <description>Stack:       <stack>Goal:        <goal>Do-nots:     <constraints or "None">Repo:        <repo or "none">

ユーザーの承認を待つ。編集を適用。次に確認されたJSONをsave.mjsにパイプ:

bash
echo '<confirmed-json>' | node "$HOME/.claude/skills/ck/commands/save.mjs" --init

確認されたJSONスキーマ:{"name":"...","path":"...","description":"...","stack":["..."],"goal":"...","constraints":["..."],"repo":"..." }


/ck:save — セッション状態を保存

これはLLM分析を必要とする唯一のコマンドです。 現在の会話を分析:

  • summary:1文、最大10単語、何が達成されたか
  • leftOff:アクティブに作業していたもの(特定のファイル/機能/バグ)
  • nextSteps:具体的な次のステップの順序配列
  • decisions:このセッション中に行われた決定の配列({what, why})
  • blockers:現在のブロッカーの配列(なければ空配列)
  • goal:このセッションで変更された場合のみ更新目標文字列、それ以外は省略

ユーザーに草稿概要を表示:"Session: '<summary>' — これを保存しますか?(yes / edit)"

確認を待つ。次にsave.mjsにパイプ:

bash
echo '<json>' | node "$HOME/.claude/skills/ck/commands/save.mjs"

JSONスキーマ(正確):{"summary":"...","leftOff":"...","nextSteps":["..."],"decisions":[{"what":"...","why":"..."}],"blockers":["..."]}

スクリプトの標準出力確認を逐語的に表示。


/ck:resume [name|number] — 完全なブリーフィング

bash
node "$HOME/.claude/skills/ck/commands/resume.mjs" [arg]

出力を逐語的に表示。その後、「ここから続けますか?または何か変わったことがありますか?」と尋ねます。

ユーザーが変更を報告 → すぐに/ck:saveを実行。


使用時期

  • 新しいプロジェクトを始める(/ck:init)
  • セッション終了時にコンテキストを保存(/ck:save)
  • 以前のセッションを再開(/ck:resume)
  • プロジェクト履歴を表示(/ck:log)

Source and attribution

Source:affaan-m/eccindocs/ja-JP/skills/ckat commitef648e0

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal