Creates detailed handoff documents for the current session. Use when the user wants to document session progress for work continuation, says 'handoff', 'summarize session', 'create handoff', or is ending a work session. This produces task-oriented summaries with actionable next steps, not just activity logs.
Resume work from a handoff document. Use when the user says 'pickup' or wants to start a new session from a previous handoff file.
Query Claude Code conversation history and session data using SQL. Use when analyzing past conversations, token usage, tool patterns, agent activity, or extracting insights from session logs. Triggers on requests about session history, conversation analysis, usage statistics, or cc-query.
SQL REPL for querying Claude Code session data using DuckDB.
Add the marketplace:
/plugin marketplace add dannycoates/cc-query
Install the plugin:
/plugin install cc-query@dannycoates-cc-query
The plugin automatically installs the ccq binary on first session start.
When installed as a plugin, the CLI binary is inside a versioned cache directory that isn't on your shell's PATH. To use cc-query directly from the terminal, create a wrapper script that resolves the current version via glob:
#!/usr/bin/env bash
exec ~/.claude/plugins/cache/cc-query-dev/cc-query/*/bin/cc-query "$@"
Save this as cc-query somewhere on your PATH (e.g. ~/bin/cc-query or ~/.local/bin/cc-query) and make it executable:
chmod +x ~/bin/cc-query
The glob matches whichever version directory is present, so the wrapper survives plugin updates without changes.
# Query all projects
cc-query
# Query a specific project
cc-query ~/code/my-project
# Filter by session ID prefix
cc-query -s abc123 .
# Pipe queries (like psql)
echo "SELECT count(*) FROM messages;" | cc-query .
messages - All messages with parsed fieldsuser_messages - User messages onlyassistant_messages - Assistant responses onlyhuman_messages - Human-typed messages (no tool results)tool_uses - Tool invocations from assistant messagestool_results - Tool results with duration and error statustoken_usage - Token consumption per messagebash_commands - Bash command detailsfile_operations - File read/write/edit operationsraw_messages - Unparsed JSONL data.help - Show tables and example queries.schema - Show table schema.quit - ExitThe plugin includes three skills for session analysis:
/reflectQuery and analyze Claude Code session history. Use for:
See skills/reflect/SKILL.md for query reference.
/handoffCreate detailed handoff documents for work continuation. Produces:
See skills/handoff/SKILL.md for output format.
/pickupResume work from a handoff document. Reads a handoff file and:
get-content.shSee skills/pickup/SKILL.md for workflow.
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Bash command permission control for Claude Code
Logs all Claude Code hook events to NDJSON files in /tmp/cc-hook-debug/
Agent Resources for Claude Code
npx claudepluginhub dannycoates/cc-query --plugin cc-queryQuery your Claude Code history with SQL. Analyze conversations, commits, and productivity patterns.
Persistent local memory for Claude Code. Every tool call, every file edit, every thinking block from every session — stored verbatim on your machine. Semantic recall in ~126ms with zero API calls.
qrec session recall engine
Search across Claude Code and OpenClaw session history. Find past conversations, decisions, and code snippets instantly.
Meta-Cognition tool for Claude Code: session history analysis, workflow optimization, and 21 MCP tools for deep session insights.
Mission Control for Claude Code — auto-starts a web dashboard, provides 90 MCP tools (sessions, stats, live monitoring, projects, teams, insights, coaching, and more), and adds 9 skills including /session-recap, /daily-cost, /standup, /coaching, /insights, and /team-status.