From mindgap
Show how long Claude turns took and where the time went — Claude waiting, tool execution, or you answering questions. Use when the user asks about turn duration, wait time, "发呆", "mindgap", tool execution time, or invokes /mindgap:stats. Backed by hooks that log every UserPromptSubmit / PreToolUse / PostToolUse / Stop to ~/.claude/mindgap.jsonl.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mindgap:statsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reports per-turn wall-clock timing for Claude Code, aggregated across all sessions.
Reports per-turn wall-clock timing for Claude Code, aggregated across all sessions.
UserPromptSubmit, ends at Stop.PreToolUse → PostToolUse for Claude-driven tools (Bash, Read, Edit, Grep, Write, etc.). Real work.AskUserQuestion and ExitPlanMode. Not Claude's fault.The stats script's absolute path is recorded by the logging hook on every fire. Read it and invoke:
node "$(cat ~/.claude/mindgap/stats-path)"
Variants:
| Flag | Use when |
|---|---|
--all | User wants full history, not last 20. |
--since 24h / --since 30m / --since 7d | User asks about a recent window. |
--session <id-prefix> | Drill into one session (8-char prefix shown in the table is enough). |
--include-archive | Also include last week's archived log (mindgap.jsonl.prev). |
--raw | Get structured JSON to do further math/plot in this turn. |
If ~/.claude/mindgap/stats-path doesn't exist, the user hasn't sent any prompt since installing the plugin. Tell them to send any message first — the next hook fire will create the marker.
Stop hasn't fired. Mention this if the user expected to see it.--raw if you need structured data.AskUserQuestion time into "Claude's fault" — that's the user reading and clicking.The log auto-rotates on ISO week boundaries (local time). The previous week sits in ~/.claude/mindgap.jsonl.prev until the next rotation overwrites it. If the user asks for data older than a week, run with --include-archive; data older than two weeks is gone.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub snowfly0709/claude_mindgap --plugin mindgap