スキル一覧に戻る
gentritbiba

file-history

by gentritbiba

File-based history search for Claude Code. Find which sessions edited specific files and retrieve conversation context.

0🍴 0📅 2025年12月20日
GitHubで見るManusで実行

SKILL.md


name: file-history description: Use when looking for past work on specific FILES, understanding why code was written, or when user references "what we did before" on a file/feature. Uses file-history tracking for accurate results. PREFER THIS over episodic-memory for file-specific queries.

File History Context

Use this for FILE-SPECIFIC history queries. For general semantic search across all conversations, use episodic-memory instead.

When to Use This Skill

USE file-history when:

  • Looking for sessions that edited a specific file
  • Understanding why code was written a certain way
  • User says "what did we do with [filename]"
  • User asks about past changes to a component/module
  • Refactoring and need to understand original intent
  • Code seems unusual and you want the backstory

DON'T use this when:

  • General conceptual questions across all projects → use episodic-memory
  • No specific file/feature in mind → use episodic-memory
  • Looking for patterns across unrelated conversations → use episodic-memory

How to Use

Dispatch the history-context agent:

Task tool:
  description: "Find history for [file/feature]"
  prompt: "Find context for [specific file or feature]. Focus on [decisions/implementation/rationale]."
  subagent_type: "history-context"

Example prompts:

  • "Find context for src/components/AuthForm.tsx"
  • "What sessions worked on the caching implementation?"
  • "Get history for the payment processing feature"

What You Get Back

The agent will return:

  • Summary of what was done and why
  • Key decisions and rationale
  • Implementation notes
  • Full session IDs (UUIDs) for reference
  • Session file paths for direct access

Why This Works Better Than episodic-memory for Files

Aspectfile-historyepisodic-memory
AccuracyUses Claude's file-history trackingSemantic search (fuzzy)
SpeedIndexed, instantSearches full conversations
File mappingKnows exactly which sessions edited which filesGuesses from content
Git dependencyNoneNone
Project scopePer-projectCross-project

Technical Details

Uses ~/.claude/commands/claude-history.py which:

  1. Scans ~/.claude/file-history/ to build file→session index
  2. Cross-references with ~/.claude/projects/ for session metadata
  3. Reads and synthesizes conversation content
  4. Returns structured context with full session IDs

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です