AGENT SKILL

history

Browse Claude Code conversation history. List past sessions with concise summaries, view full conversations, and search across all sessions.

适用职业开发工程师
License 许可
MIT
最近更新
2026-11-01
Stars
★ 3
Forks
1

01 前言 Front Matter

name
history
version
1.1.0
description
Browse Claude Code conversation history. List past sessions with concise summaries, view full conversations, and search across all sessions.
allowed-tools
[ "Bash", "AskUserQuestion" ]

03 SKILL.md 正文

Overview

This skill helps the user browse their Claude Code conversation history using the cc-history CLI tool located at ~/.local/bin/cc-history.

Default Behavior

When the user types /history with no arguments, ask the user to choose:

请选择查看方式:

  1. 最近记录 — 显示最近 15 条对话
  2. 查看全部 — 显示所有对话记录
  3. 关键词搜索 — 输入关键词查找相关对话

输入 1/2/3 或直接输入关键词搜索:

Then act based on their choice:

  • 1 or 最近 → run cc-history list --limit 15
  • 2 or 全部 → run cc-history list --limit 999
  • 3 or any keyword → run cc-history search <keyword>
  • If user types /history <keyword> with an argument, skip the menu and directly run cc-history search <keyword>

IMPORTANT: After running the command, copy-paste the result into a fenced code block in your reply — do NOT let it stay hidden inside a collapsed tool call. The user must see the list without clicking anything.

After showing results, remind the user:

  • Say a number or session ID to view details
  • Say a keyword to search further

Commands

cc-history list [--limit N] [--project PATH]   # list sessions with summaries
cc-history view <session-id>                    # view full conversation
cc-history search <keyword>                     # search across sessions
cc-history dump <session-id>                    # raw output for analysis
cc-history json                                 # JSON list for processing

Workflow

If user wants to browse (default)

Run cc-history list and show the output.

If user wants to view a specific session

cc-history view <session-id>

If user wants a summary for reference

cc-history dump <session-id>

Read the dump and summarize the key decisions, changes, and outcomes.

If user wants to search

cc-history search <keyword>

Show results and offer to view matching sessions.

Session ID Usage

Session IDs only need the first 6-8 characters (e.g., 0575c184). The tool will match by prefix.

Notes

  • Sessions are stored in ~/.claude/projects/ organized by working directory
  • ~ refers to /Users/adam (the home directory)
  • Each session is a JSONL file with the full conversation
  • The tool automatically skips system messages and tool results, showing only user/assistant messages

04 同仓库更多 Skills

shengdabai
shengdabai/Tony-Claude-Code-Skills

seedance-prompt-en

Write effective prompts for Jimeng Seedance 2.0 multimodal AI video generation. Use when users want to create video prompts using text, images, videos, and audio inputs with the @ reference system. Covers camera movements, effects replication, video extension, editing, music beat-matching, e-commerce ads, short dramas, and educational content.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

onepage-pdf

Convert an HTML page into a single continuous-page PDF (one tall page, no pagination breaks), preserving desktop layout, backgrounds and selectable text. Use when the user asks to turn an HTML file/report/proposal into a "single-page PDF", "long PDF", "不分页 PDF", "单页 PDF", "长图式 PDF", or complains that an HTML-to-PDF export breaks into pages or cuts content. Supports optional string redaction with leak verification.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

native-feel-cross-platform-desktop

Use when the user is designing, prototyping, or rewriting a desktop app that must run on multiple OSes (macOS + Windows, optionally Linux) AND feel indistinguishable from a native app to its users — fast launch, native windowing, native input handling, native materials. Trigger words include "cross-platform desktop", "Electron alternative", "Tauri vs native", "WebView wrapper", "near-native performance", "Raycast architecture", "WebKit/WebView2 quirks", "WKWebView", "system tray app", "global hotkey app", "launcher app". Do NOT trigger this skill for pure web apps, pure mobile apps, or for greenfield projects that have no native-feel requirement.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

gstack

Router for the gstack skill suite. (gstack)

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

fireworks-tech-graph

Use when the user wants to create any technical diagram - architecture, data flow, flowchart, sequence, agent/memory, or concept map - and export as SVG+PNG. Trigger on: "画图" "帮我画" "生成图" "做个图" "架构图" "流程图" "可视化一下" "出图" "generate diagram" "draw diagram" "visualize" or any system/flow description the user wants illustrated.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

dbs-video-extract

接收抖音、小红书、微信视频号等短视频链接或分享文案,查询作品/账号数据并提取语音文字稿,按作者和标题归档为 Markdown。用户希望完整解析短视频、取得数据或文字稿时使用;运行前检查 TikHub 与轻抖使用凭证,缺少时用新手能理解的方式引导购买和安全配置。

★ 3