← スキル一覧に戻る

context-memory
by ymgn
⭐ 0🍴 0📅 2026年1月20日
SKILL.md
name: context-memory description: Shared project memory management for /context-save and /context-load slash-style commands; use when the user wants to write or read case-specific memory (spec, decisions, next steps, logs) under ~/ai-memory so multiple agents can share context.
Context Memory
Overview
Maintain a shared, case-scoped memory in ~/ai-memory that multiple agents can read and write. Use slash-style commands to save or load project context, work logs, and next steps.
Command Parsing
Treat the following as explicit commands, not general questions:
/context-save <CASE-ID> <TEXT...>/context-save <CASE-ID>(no text provided)/context-load <CASE-ID>
Parsing rules:
<CASE-ID>is the first token after the command.- Everything after
<CASE-ID>is<TEXT...>and must be saved verbatim. - If no text is provided, generate a single-line, compact summary of the recent conversation that is easy to skim later.
Memory Structure
Each case ID maps to a directory:
~/ai-memory/<CASE-ID>/
spec.md
decisions.md
next.md
log.md
File purposes:
spec.md: project purpose, scope, constraints.decisions.md: confirmed decisions and rationale.next.md: immediate next actions.log.md: time-stamped work log (append-only).
Save Workflow
When /context-save is issued:
- Parse
<CASE-ID>and<TEXT...>. - If no text is provided, summarize the most recent discussion into one single line.
- Append the line to
log.mdwith a timestamp. - Create the case directory and files if they do not exist.
Use the script:
python3 ~/.codex/skills/context-memory/scripts/context_save.py <CASE-ID> "<TEXT...>"
If you generated the summary yourself, pass it as <TEXT...>.
Load Workflow
When /context-load is issued:
- Parse
<CASE-ID>. - Read
spec.md,decisions.md,next.md, thenlog.md. - Present the content in a concise way so work can resume quickly.
Use the script:
python3 ~/.codex/skills/context-memory/scripts/context_load.py <CASE-ID>
Resources
scripts/
context_save.py: creates case directory/files if missing and appends a timestamped log entry.context_load.py: reads the case memory files and prints them in order.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です