本文へ移動
cccskills
無料GitHub で公開

mine

Mine Claude Code session data for analytics — token usage, tool rankings, skill invocations, session search, and prompt history. Use when asked about session stats, token costs, tool frequency, skill usage patterns, or finding past sessions by prompt text.

インストール方法を見る

含まれるファイル(6)

  • SKILL.md2.3 KB
  • scripts/mine-prompts.sh2.1 KB
  • scripts/mine-sessions.sh1.8 KB
  • scripts/mine-skills.sh1.7 KB
  • scripts/mine-tokens.sh3.0 KB
  • scripts/mine-tools.sh1.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

mine

Mine ~/.claude/projects/ session JSONL and index files for analytics and forensics.

Trigger Cues

  • Explicit /mine invocation
  • "How many tokens did I use?" / "What are my most-used tools?"
  • "Find the session where I discussed X"
  • "Which skills do I use most?"
  • "Show me token usage by project/day"

Data Model

  • Sessions: ~/.claude/projects/<project>/<session-id>.jsonl
  • Index: ~/.claude/projects/<project>/sessions-index.json
  • Memory: ~/.claude/projects/<project>/memory/

Scripts

All scripts are in ~/.claude/skills/mine/scripts/. Run them via Bash.

1. Search sessions

Find sessions by prompt text, project, or date range.

bash ~/.claude/skills/mine/scripts/mine-sessions.sh --prompt "auth" --limit 10
bash ~/.claude/skills/mine/scripts/mine-sessions.sh --project dotfiles --since 2026-03-01

2. View session prompts

Extract user/assistant messages from a session.

bash ~/.claude/skills/mine/scripts/mine-prompts.sh --session <path-to-jsonl>
bash ~/.claude/skills/mine/scripts/mine-prompts.sh --session <path> --roles user --limit 20

3. Rank tool usage

See which tools are called most across sessions.

bash ~/.claude/skills/mine/scripts/mine-tools.sh --limit 20
bash ~/.claude/skills/mine/scripts/mine-tools.sh --project ka-ching --since 2026-03-01

4. Token usage

Summarize token consumption.

bash ~/.claude/skills/mine/scripts/mine-tokens.sh --by project --limit 10
bash ~/.claude/skills/mine/scripts/mine-tokens.sh --by day --since 2026-03-20
bash ~/.claude/skills/mine/scripts/mine-tokens.sh --by session --project dotfiles

5. Rank skill invocations

See which skills are invoked most (via Skill tool_use blocks).

bash ~/.claude/skills/mine/scripts/mine-skills.sh --limit 20
bash ~/.claude/skills/mine/scripts/mine-skills.sh --since 2026-03-01

Workflow

  1. Start with session search or index queries to find relevant sessions.
  2. Drill into a specific session with mine-prompts.sh.
  3. Use mine-tools.sh, mine-tokens.sh, mine-skills.sh for aggregate analytics.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

日本語の概要は準備中です。原文の説明を表示しています。

SDiamante13/dotfiles82026年10月2日 更新

catchup

無料

Rebuilds session context after a clear by reading git history, plans, and beads state. Triggers on 'catch up'.

日本語の概要は準備中です。原文の説明を表示しています。

SDiamante13/dotfiles82026年10月2日 更新

changelog

無料

Generate a bullet-point summary of branch changes for a PR description. Triggers on "changelog", "pr summary", "summarize branch", or "/changelog".

日本語の概要は準備中です。原文の説明を表示しています。

SDiamante13/dotfiles82026年10月2日 更新

commit

無料

Commit the current changes with quality checks, status review, staged diff inspection, appropriate tests, and a clear commit message. Use when the user says "commit", "c", asks to make a commit, or wants changes saved in git.

日本語の概要は準備中です。原文の説明を表示しています。

SDiamante13/dotfiles82026年10月2日 更新

declutter

無料

Refactor code to remove dead code, useless comments, unused variables, and unused imports. Use when asked to declutter a class, clean up noisy code, remove cruft, or run `/refactor:declutter`.

日本語の概要は準備中です。原文の説明を表示しています。

SDiamante13/dotfiles82026年10月2日 更新

dry

無料

Refactor duplicated code by extracting helpers, shared abstractions, or clearer reusable structure. Use when asked to apply DRY, remove duplication, consolidate repeated logic, or run `/refactor:dry`.

日本語の概要は準備中です。原文の説明を表示しています。

SDiamante13/dotfiles82026年10月2日 更新

SDiamante13 のスキルをすべて見る

このスキルの問題を報告する