npx claudepluginhub dannycoates/cc-querySQL REPL for querying Claude Code session data
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
7-day visitors to each marketplace page
UI/UX design intelligence skill with 80 styles, 194 palettes, 74 font pairings, 25 charts, and 22 stack guidelines
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Editorial diagrams in your brand, as self-contained HTML and SVG. Architecture, flowcharts, sequence, state machines, ER and database schemas, timelines, swimlanes, org charts, Gantt, Wardley maps, user journeys, service blueprints, UML class, lifecycle phase maps, and charts from bar, line and scatter to Sankey, treemap and heatmap, plus many more. Redraws draw.io, Mermaid, Excalidraw and PlantUML files. Exports SVG and PNG.