chronicle-assistant-guide
Project-agnostic guidance for AI assistants using Chronicle. Provides search-first directives, best practices, and workflow patterns across ALL Chronicle-tracked projects. Works with or without MCP server.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o chronicle-assistant-guide.zip https://jpskill.com/download/17808.zip && unzip -o chronicle-assistant-guide.zip && rm chronicle-assistant-guide.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17808.zip -OutFile "$d\chronicle-assistant-guide.zip"; Expand-Archive "$d\chronicle-assistant-guide.zip" -DestinationPath $d -Force; ri "$d\chronicle-assistant-guide.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
chronicle-assistant-guide.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
chronicle-assistant-guideフォルダができる - 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 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Chronicle Assistant Guide
目的: Chronicle を使用する AI アシスタント向けの普遍的な指示 範囲: すべてのプロジェクトで動作します (MCP サーバーまたは CLI のみ) 優先度: Chronicle が利用可能な場合は、これを最初にロードしてください
自動アクティベーション
このスキルは自動的にアクティブになります! (マイルストーン #13)
「Chronicle の使い方」のようなプロンプトは、このスキルを自動的にトリガーします。他のスキルよりも優先度は低いです。
トリガーパターン: how to use chronicle, chronicle help, chronicle guide 参照: 詳細については
docs/HOOKS.mdを参照してください
⚡ 重要: プレフライトチェックリスト
Chronicle 関連のタスクを開始する前に、このチェックリストを実行してください:
-
✅ 最初に検索: Chronicle の履歴を検索します
- MCP を使用する場合:
mcp__chronicle__search_sessions(query="関連キーワード", limit=5) - MCP を使用しない場合:
chronicle search "関連キーワード" --limit 5 - これは以前に行われたことがありますか?
- この機能/問題に関するどのようなコンテキストが存在しますか?
- どのようなアプローチが失敗または成功しましたか?
- MCP を使用する場合:
-
✅ スキルの確認: このタスクに Chronicle スキルはありますか?
chronicle-workflow- セッションワークフローガイダンスchronicle-session-documenter- Obsidian へのドキュメント化chronicle-context-retriever- 過去の作業の検索chronicle-project-tracker- ロードマップとマイルストーン
-
✅ CLI よりも MCP を優先: 利用可能な最適なツールを使用します
- MCP は利用可能ですか? → 高速 (<10ms)、構造化された JSON、サブプロセスのオーバーヘッドなし
- CLI のみですか? → それでも動作しますが、わずかに遅い (~100ms)、フォーマットされた出力を解析
- どちらも同じデータを提供しますが、環境に基づいて選択してください
-
✅ ロードマップの確認: 現在のマイルストーンと次のステップを表示します
- MCP を使用する場合:
mcp__chronicle__get_roadmap(days=7) - MCP を使用しない場合:
chronicle roadmap --days 7 - これはすでにマイルストーンとして追跡されていますか?
- 関連する次のステップはありますか?
- MCP を使用する場合:
これが重要な理由: Chronicle はそれ自体をドッグフーディングします。私たちが行うすべての間違いが記録されます。歴史から学びましょう!
🎯 コアディレクティブ
1. 実装する前に必ず Chronicle を検索する
ルール (利用可能な方を使用):
オプション 1: MCP (利用可能な場合)
# 機能を実装する前に:
mcp__chronicle__search_sessions(query="機能名", limit=5)
# デバッグする前に:
mcp__chronicle__search_sessions(query="エラーまたは症状", limit=5)
# ユーザーが何か質問した場合:
mcp__chronicle__search_sessions(query="トピックキーワード", limit=5)
オプション 2: CLI (常に動作)
# 機能を実装する前に:
chronicle search "機能名" --limit 5
# デバッグする前に:
chronicle search "エラーまたは症状" --limit 5
# ユーザーが何か質問した場合:
chronicle search "トピックキーワード" --limit 5
Chronicle 自身の履歴からの実際の例:
例 1: セッション 21 のトランスクリプトのクリーニングに関する混乱
User: "セッション 21 でクリーニングが行われていないとは信じられない"
❌ 検索なし: デバッグに時間を費やし、0% の削減に混乱
✅ 検索あり: セッション 13 でトランスクリプトのクリーニングが実装されたことがわかったはず
→ 結果: クリーニングは保存時に行われることをすぐに理解した
→ 時間の節約: 15 分以上のデバッグ
例 2: セッション 30 & 31 - 重複する MCP の最適化
Session 30 (10 月 24 日): get_sessions() からサマリーを除外して MCP の応答サイズを修正
Session 31 (10 月 24 日): 同じ問題 - MCP の応答が大きすぎる、同じ修正が必要
❌ 何が起こったか: セッション 31 は "MCP response size" を検索しなかった
✅ 何が起こるべきだったか: 検索はセッション 30 の解決策をすぐに見つける
→ 結果: 再発見する代わりに、セッション 30 のアプローチを参照できたはず
→ 時間の節約: 10 分以上の診断と実装
例 3: スキルのドキュメントの更新 (セッション 32)
Task: MCP ツール手順で chronicle-session-documenter スキルを更新する
❌ 私がしたこと: 検索せずに SKILL.md の編集に直接飛び込んだ
✅ 私がすべきだったこと: 最初に "skill documentation update" を検索する
→ 結果: スキルのフォーマット標準に関するコンテキストが見つかったかもしれない
→ 教訓: 検索で何も見つからなくても、その習慣は将来の間違いを防ぐ
コスト計算機:
検索にかかる時間: <1 秒
節約される時間 (平均): インシデントあたり 10〜20 分
これまでのインシデント数: 3 件以上の文書化されたケース
無駄になった合計時間: 節約できたはずの〜45 分以上
スキップのコスト: 45 分 / 1 秒 = 検索の 2,700 倍の ROI!
反射的に行う: 1 秒の検索は常に価値があります。例外はありません。
2. MCP ツールを優先し、CLI にフォールバックする
優先順位:
- ✅ Chronicle スキル (最高 - 複雑なワークフローを処理)
- ✅ MCP ツール (最速 - MCP サーバーが利用可能な場合)
- ✅ CLI コマンド (ポータブル - Chronicle がインストールされているすべての場所で動作)
MCP が利用可能な場合に優先される理由:
- 速度: MCP はデータベースを直接クエリ (<10ms)、CLI はサブプロセスを生成 (~100ms)
- プログラム可能: フォーマットされたテキストではなく、構造化された JSON を返す
- 信頼性: 人間が読める出力の解析は不要
- 効率的: ターミナルのフォーマットのオーバーヘッドなし
CLI を使用する場合:
- MCP サーバーが構成されていない (例: 最小限のインストール、FreeBSD、リモートシステム)
- ユーザーが明示的に CLI 出力を要求する
- CLI 機能のテスト
例:
MCP が利用可能な場合:
# 高速で構造化された応答
roadmap = mcp__chronicle__get_roadmap(days=7)
sessions = mcp__chronicle__search_sessions(query="storage", limit=5)
summary = mcp__chronicle__get_session_summary(session_id=16)
MCP がない場合 (CLI フォールバック):
# ポータブル、どこでも動作
chronicle roadmap --days 7
chronicle search "storage" --limit 5
chronicle session 16
意思決定パターン:
Chronicle データが必要
├─ MCP は利用可能ですか? → mcp__chronicle__<tool>() を使用
└─ MCP は利用できませんか? → chronicle <command> を使用
📚 利用可能なツール (MCP + CLI)
注: 以下のすべての操作は、MCP ツールと CLI コマンドの両方で動作します。利用可能な場合は MCP を使用して速度を上げ、移植性のために CLI を使用してください。
セッションとコミットの追跡:
MCP アプローチ:
# セッションをリスト表示 (パフォーマンスのために、デフォルトではサマリーは除外されます)
mcp__chronicle__get_sessions(limit=10, tool="
(原文がここで切り詰められています) 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Chronicle Assistant Guide
Purpose: Universal directives for AI assistants using Chronicle Scope: Works across ALL projects (with MCP server OR CLI-only) Priority: Load this FIRST when Chronicle is available
Auto-Activation
This skill auto-activates! (Milestone #13)
Prompts like "how do I use chronicle?" automatically trigger this skill. Lower priority than other skills.
Trigger patterns: how to use chronicle, chronicle help, chronicle guide See:
docs/HOOKS.mdfor full details
⚡ CRITICAL: Pre-Flight Checklist
Before starting ANY Chronicle-related task, run through this checklist:
-
✅ SEARCH FIRST: Search Chronicle's history
- With MCP:
mcp__chronicle__search_sessions(query="relevant keywords", limit=5) - Without MCP:
chronicle search "relevant keywords" --limit 5 - Has this been done before?
- What context exists about this feature/issue?
- What approaches failed or succeeded?
- With MCP:
-
✅ Check Skills: Is there a Chronicle skill for this task?
chronicle-workflow- Session workflow guidancechronicle-session-documenter- Document to Obsidianchronicle-context-retriever- Search past workchronicle-project-tracker- Roadmap and milestones
-
✅ Prefer MCP over CLI: Use best available tool
- MCP available? → Fast (<10ms), structured JSON, no subprocess overhead
- CLI only? → Still works, slightly slower (~100ms), parse formatted output
- Both provide the same data, choose based on environment
-
✅ Check roadmap: View current milestones and next steps
- With MCP:
mcp__chronicle__get_roadmap(days=7) - Without MCP:
chronicle roadmap --days 7 - Is this already tracked as a milestone?
- Are there related next steps?
- With MCP:
Why this matters: Chronicle dogfoods itself. Every mistake we make is recorded. Learn from history!
🎯 Core Directives
1. ALWAYS Search Chronicle Before Implementing
The Rule (use whichever is available):
Option 1: MCP (if available)
# Before implementing ANY feature:
mcp__chronicle__search_sessions(query="feature name", limit=5)
# Before debugging:
mcp__chronicle__search_sessions(query="error or symptom", limit=5)
# When user questions something:
mcp__chronicle__search_sessions(query="topic keywords", limit=5)
Option 2: CLI (always works)
# Before implementing ANY feature:
chronicle search "feature name" --limit 5
# Before debugging:
chronicle search "error or symptom" --limit 5
# When user questions something:
chronicle search "topic keywords" --limit 5
Real examples from Chronicle's own history:
Example 1: Session 21 transcript cleaning confusion
User: "I can't believe there's no cleaning to be done on session 21"
❌ Without search: Spent time debugging, confused why 0% reduction
✅ With search: Would have found Session 13 implemented transcript cleaning
→ Result: Immediately understood cleaning happens at storage time
→ Time saved: 15+ minutes of debugging
Example 2: Sessions 30 & 31 - Duplicate MCP optimization
Session 30 (Oct 24): Fixed MCP response size by excluding summaries from get_sessions()
Session 31 (Oct 24): SAME issue - MCP responses too large, same fix needed
❌ What happened: Session 31 didn't search for "MCP response size"
✅ What should have happened: Search finds Session 30's solution immediately
→ Result: Could have referenced Session 30's approach instead of rediscovering
→ Time saved: 10+ minutes of diagnosis and implementation
Example 3: Skill documentation update (Session 32)
Task: Update chronicle-session-documenter skill with MCP tool instructions
❌ What I did: Jumped straight to editing SKILL.md without searching
✅ What I should have done: Search "skill documentation update" first
→ Result: Might have found context about skill format standards
→ Lesson: Even when search finds nothing, the habit prevents future mistakes
Cost Calculator:
Time to search: <1 second
Time saved (average): 10-20 minutes per incident
Incidents so far: 3+ documented cases
Total time wasted: ~45+ minutes that could have been saved
Cost of skipping: 45 minutes / 1 second = 2,700x ROI on searching!
Make it a reflex: The 1-second search is ALWAYS worth it. No exceptions.
2. Prefer MCP Tools, Fall Back to CLI
Priority Order:
- ✅ Chronicle Skills (best - handles complex workflows)
- ✅ MCP tools (fastest - if MCP server available)
- ✅ CLI commands (portable - works everywhere Chronicle is installed)
Why MCP is preferred when available:
- Speed: MCP queries database directly (<10ms), CLI spawns subprocess (~100ms)
- Programmatic: Returns structured JSON, not formatted text
- Reliable: No parsing of human-readable output
- Efficient: No terminal formatting overhead
When to use CLI:
- MCP server not configured (e.g., minimal installations, FreeBSD, remote systems)
- User explicitly requests CLI output
- Testing CLI functionality
Examples:
With MCP Available:
# Fast, structured responses
roadmap = mcp__chronicle__get_roadmap(days=7)
sessions = mcp__chronicle__search_sessions(query="storage", limit=5)
summary = mcp__chronicle__get_session_summary(session_id=16)
Without MCP (CLI Fallback):
# Portable, works everywhere
chronicle roadmap --days 7
chronicle search "storage" --limit 5
chronicle session 16
Decision Pattern:
Need Chronicle data
├─ MCP available? → Use mcp__chronicle__<tool>()
└─ MCP not available? → Use chronicle <command>
📚 Available Tools (MCP + CLI)
Note: All operations below work with BOTH MCP tools and CLI commands. Use MCP for speed when available, CLI for portability.
Session & Commit Tracking:
MCP Approach:
# List sessions (summaries excluded by default for performance)
mcp__chronicle__get_sessions(limit=10, tool="claude-code", repo_path="/path", days=7)
mcp__chronicle__get_sessions(limit=10, include_summaries=True) # Optional: include summaries
# Get single session details with full summary
mcp__chronicle__get_session_summary(session_id=16)
# Batch retrieve summaries for multiple sessions
mcp__chronicle__get_sessions_summaries(session_ids=[15, 16, 17])
# Search and other queries
mcp__chronicle__search_sessions(query="MCP server", limit=10)
mcp__chronicle__get_commits(limit=20, repo_path="/path", days=7)
mcp__chronicle__search_commits(query="retry logic", limit=20)
mcp__chronicle__get_timeline(days=1, repo_path="/path")
mcp__chronicle__get_stats(days=7)
CLI Equivalents:
# List and view sessions
chronicle sessions --limit 10 --tool claude-code
chronicle session 16 # Get details with summary
# Search
chronicle search "MCP server" --limit 10
# Commits and timeline
chronicle show today --limit 20
chronicle timeline today
# Statistics
chronicle stats --days 7
Project Tracking:
MCP Approach:
mcp__chronicle__get_milestones(status="in_progress", milestone_type="feature", limit=20)
mcp__chronicle__get_milestone(milestone_id=1)
mcp__chronicle__get_next_steps(completed=False, milestone_id=1, limit=20)
mcp__chronicle__get_roadmap(days=7)
mcp__chronicle__update_milestone_status(milestone_id=1, new_status="completed")
mcp__chronicle__complete_next_step(step_id=1)
CLI Equivalents:
# Milestones
chronicle milestones --status in_progress
chronicle milestone 1
# Roadmap and next steps
chronicle roadmap --days 7
chronicle next-steps --pending
# Updates
chronicle milestone-status 1 completed
chronicle complete-step 1
🔄 Typical Workflows
Starting a New Task
With MCP:
# 1. Search for related past work
results = mcp__chronicle__search_sessions(query="authentication", limit=5)
# 2. Check roadmap
roadmap = mcp__chronicle__get_roadmap(days=7)
# 3. If needed, check specific session
if results:
session = mcp__chronicle__get_session_summary(session_id=results[0]["id"])
# 4. Now implement with full context
With CLI:
# 1. Search for related past work
chronicle search "authentication" --limit 5
# 2. Check roadmap
chronicle roadmap --days 7
# 3. View specific session details
chronicle session <id>
# 4. Now implement with full context
Debugging an Issue
With MCP:
# 1. Search for error message or symptom
results = mcp__chronicle__search_sessions(query="hang freeze stuck", limit=5)
# 2. Get full context from relevant session
if results:
session = mcp__chronicle__get_session_summary(session_id=results[0]["id"])
# Read how it was solved before
With CLI:
# 1. Search for error message or symptom
chronicle search "hang freeze stuck" --limit 5
# 2. View relevant session
chronicle session <id>
# Read how it was solved before
Understanding Project History
With MCP:
# Get overview
stats = mcp__chronicle__get_stats(days=30)
timeline = mcp__chronicle__get_timeline(days=7)
# Find specific work
sessions = mcp__chronicle__search_sessions(query="optimization", limit=10)
With CLI:
# Get overview
chronicle stats --days 30
chronicle timeline week
# Find specific work
chronicle search "optimization" --limit 10
🚫 Common Mistakes to Avoid
❌ DON'T:
- Jump straight to implementing without searching
- Ignore the CLI when MCP isn't available
- Forget to check the roadmap
- Ignore related sessions in search results
✅ DO:
- Search first, implement second (MCP or CLI)
- Use best available tool (MCP preferred, CLI fallback)
- Check roadmap before creating new milestones
- Read summaries of related sessions for context
🎓 Chronicle Quick Reference
Session Organization (Phase 6):
# Organize sessions (use CLI for these)
chronicle rename-session 32 "Feature Implementation"
chronicle tag-session 32 optimization,phase-6
chronicle link-session 32 --related-to 30,31
chronicle auto-title 31 # AI-generated title
chronicle graph --sessions 28-32 # Visualize relationships
Current State:
- Database:
~/.ai-session/sessions.db(SQLite) - Transcripts:
~/.ai-session/sessions/*.cleaned(file-based) - Configuration:
~/.ai-session/config.yaml - MCP Server: Provides 15+ tools for querying Chronicle
Storage:
- Summaries: Generated automatically in background after session ends
- Titles: Can be set manually or AI-generated
- Tags: JSON array for categorization
- Relationships: parent_session_id, related_session_ids
💡 Pro Tips
- Always search before implementing - Chronicle has 100+ hours of documented work
- Use batch operations -
get_sessions_summaries()for multiple sessions at once - Filter aggressively - Use repo_path, days, tool filters to narrow results
- Check session organization - Look for titles/tags to understand session purpose
- Follow the graph - Use
chronicle graphto see session relationships - Trust the summaries - They're generated by AI and usually accurate
- Update roadmap - Complete next steps and milestones as you work
🔗 Related Resources
- Project CLAUDE.md: May have project-specific directives
- Chronicle Skills: Use
chronicle-workflow,chronicle-context-retriever, etc. - MCP Documentation: See
MCP_SERVER.mdin Chronicle repo
Remember: This skill applies to ALL projects using Chronicle. The directives here are universal best practices for AI assistants.