chatcrystal-task-writeback
Write reusable ChatCrystal task memories after substantive work completes. Use when implementation or debugging produced a durable fix, pitfall, pattern, or decision worth preserving, and when the environment can either persist it through `write_task_memory` or emit a structured memory candidate for later save.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o chatcrystal-task-writeback.zip https://jpskill.com/download/21239.zip && unzip -o chatcrystal-task-writeback.zip && rm chatcrystal-task-writeback.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21239.zip -OutFile "$d\chatcrystal-task-writeback.zip"; Expand-Archive "$d\chatcrystal-task-writeback.zip" -DestinationPath $d -Force; ri "$d\chatcrystal-task-writeback.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
chatcrystal-task-writeback.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
chatcrystal-task-writebackフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
ChatCrystal タスクライトバック
このスキルは、意味のある作業が完了した後に使用してください。メモリをスキップするか、マージするか、作成するかは、ChatCrystal Core に判断させてください。
ワークフロー
- 実質的な作業が完了し、再利用可能な知識が生成された場合にのみトリガーしてください。
- 良い候補は次のとおりです。
- 永続的な修正
- 意味のある落とし穴
- 再利用可能なパターン
- 明示的なエンジニアリング上の決定
write_task_memoryが利用可能で、ランタイムが安定した実行キーまたはセッションキーを持っている場合は、次の引数で呼び出してください。mode: "auto"source_run_key: 安定した実行キーまたはセッションキーtask.goal,task.task_kind,task.project_dir,task.cwd,task.branchtask.source_agent(既知の場合)memory.summary: 簡潔で永続的であること。冗長にしないこと。memory.outcome_type:pitfall,fix,pattern,decisionのいずれかmemory.root_cause,memory.resolution,memory.error_signatures,memory.files_touched,memory.tags(関連する場合)
mode: "manual"は、明示的な手動保存フローの場合にのみ使用し、自動ライトバックのサイレントフォールバックとして使用しないでください。- デフォルトではプロジェクトスコープの知識とします。グローバルスコープは、明確にプロジェクト横断的な知識の場合にのみ、かつ明示的な手動保存フローの場合にのみ使用してください。
- 永続化の結果を正確に報告してください。
createdmergedskipped
MCP 入力例
安定した実行キーを持つタスクが完了した後で write_task_memory を呼び出す場合は、この形式を使用してください。
{
"mode": "auto",
"source_run_key": "agent-session-or-run-id",
"scope": "project",
"task": {
"goal": "Fix MCP recall schema validation",
"task_kind": "debug",
"project_dir": "/path/to/project",
"cwd": "/path/to/project",
"branch": "fix/mcp-recall-schema",
"files_touched": [
"server/src/services/memory/schemas.ts",
"server/src/cli/mcp/server.ts"
],
"error_signatures": [
"invalid_type",
"recall_for_task schema mismatch"
],
"source_agent": "codex"
},
"memory": {
"summary": "MCP tool schemas must stay aligned with memory service request shapes; mismatches surface as validation failures before tool execution.",
"outcome_type": "fix",
"root_cause": "The MCP tool input shape diverged from the service schema.",
"resolution": "Reused the shared request shape in the MCP server registration.",
"files_touched": [
"server/src/services/memory/schemas.ts",
"server/src/cli/mcp/server.ts"
],
"tags": [
"mcp",
"memory-loop",
"schema"
]
}
}
フルモード
フルモードでは、ChatCrystal Core と write_task_memory への MCP アクセスが必要です。
- スキル内でスキップまたはマージロジックを再実装しないでください。
- メモリをスキップするか、マージするか、作成するかは Core に判断を任せてください。
- ツールが
skippedを報告した場合でも、タスク結果は保持しますが、永続化を強制しないでください。
デグレードモード
ChatCrystal Core または MCP ツールが利用できない場合、または自動ライトバック用の安定した実行キーが存在しない場合:
- メモリが保存されたと主張しないでください。
- 後で保存するために、構造化されたメモリ候補をレスポンスで出力してください。
- 候補は
write_task_memory.memoryペイロードの形式と一致させて、後で再利用できるようにしてください。 - スキルフローの一部として、ランタイムに ChatCrystal Core を自動インストールするよう指示しないでください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
ChatCrystal Task Writeback
Use this skill after meaningful work completes. Let ChatCrystal Core decide whether a memory should be skipped, merged, or created.
Workflow
- Trigger only after substantive work completes and the result produced reusable knowledge.
- Good candidates include:
- a durable fix
- a meaningful pitfall
- a reusable pattern
- an explicit engineering decision
- If
write_task_memoryis available and the runtime has a stable run or session key, call it with:mode: "auto"source_run_key: the stable run or session keytask.goal,task.task_kind,task.project_dir,task.cwd,task.branchtask.source_agentwhen knownmemory.summary: concise and durable, not chattymemory.outcome_type: one ofpitfall,fix,pattern,decisionmemory.root_cause,memory.resolution,memory.error_signatures,memory.files_touched,memory.tagswhen relevant
- Use
mode: "manual"only for an explicit manual save flow, never as a silent fallback for automatic writeback. - Default to project-scoped knowledge. Only use global scope for clearly cross-project knowledge and only in an explicit manual save flow.
- Report the persistence result accurately:
createdmergedskipped
Example MCP Input
Use this shape when calling write_task_memory after a completed task with a stable run key:
{
"mode": "auto",
"source_run_key": "agent-session-or-run-id",
"scope": "project",
"task": {
"goal": "Fix MCP recall schema validation",
"task_kind": "debug",
"project_dir": "/path/to/project",
"cwd": "/path/to/project",
"branch": "fix/mcp-recall-schema",
"files_touched": [
"server/src/services/memory/schemas.ts",
"server/src/cli/mcp/server.ts"
],
"error_signatures": [
"invalid_type",
"recall_for_task schema mismatch"
],
"source_agent": "codex"
},
"memory": {
"summary": "MCP tool schemas must stay aligned with memory service request shapes; mismatches surface as validation failures before tool execution.",
"outcome_type": "fix",
"root_cause": "The MCP tool input shape diverged from the service schema.",
"resolution": "Reused the shared request shape in the MCP server registration.",
"files_touched": [
"server/src/services/memory/schemas.ts",
"server/src/cli/mcp/server.ts"
],
"tags": [
"mcp",
"memory-loop",
"schema"
]
}
}
Full Mode
Full mode requires ChatCrystal Core plus MCP access to write_task_memory.
- Do not reimplement skip or merge logic in the skill.
- Trust Core to decide whether the memory should be skipped, merged, or created.
- If the tool reports
skipped, keep the task result but do not force persistence.
Degraded Mode
If ChatCrystal Core or the MCP tool is unavailable, or if no stable run key exists for automatic writeback:
- Do not claim that the memory was saved.
- Emit a structured memory candidate in the response for later save.
- Keep the candidate aligned with the
write_task_memory.memorypayload shape so it can be reused later. - Do not instruct the runtime to auto-install ChatCrystal Core as part of the skill flow.