Analyze tool usage patterns and suggest improvements to your workflow (Codex CLI)
From tool-timenpx claudepluginhub mistakeknot/interagency-marketplace --plugin tool-timeThis skill uses the workspace's default tool permissions.
SKILL-compact.mdDesigns and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
You are analyzing 7 days of tool usage data for the current project. Your job is to find problems and offer to fix them — not narrate numbers.
Codex CLI has no hooks, so data comes from transcript parsing.
python3 /root/projects/tool-time/backfill.py to parse recent transcriptspython3 /root/projects/tool-time/summarize.py to refresh stats~/.claude/tool-time/stats.jsonThe file contains:
total_events: total tool calls in the periodtools: per-tool {calls, errors, rejections} — rejections are user denials, errors are tool failuresedit_without_read_count: how many times Edit was called on a file not previously Read in that sessionLook for these signals (not an exhaustive list — use your judgment):
Then read the project's CLAUDE.md (if it exists):
Optionally check AGENTS.md for similar gaps.
Present findings as a short bulleted list. For each finding:
Then offer to apply fixes. Use Edit to update CLAUDE.md or AGENTS.md directly, with user approval. Don't just suggest — propose the exact text.
If the data looks healthy, say so briefly and stop. Don't invent problems.
Check ~/.claude/tool-time/config.json — if community_sharing is true, also compare local stats to community baselines:
https://tool-time-api.mistakeknot.workers.dev/v1/api/statsAfter analysis, suggest relevant skills from the playbooks.com directory:
Detect the project's primary language by checking for:
package.json or tsconfig.json → TypeScript/JavaScriptpyproject.toml, setup.py, or requirements.txt → PythonGemfile or *.gemspec → Rubygo.mod → GoCargo.toml → Rust*.swift or Package.swift → SwiftBuild 1-2 search queries combining the language with patterns from the data:
Fetch from the API:
https://playbooks.com/api/skills?search=<query>&limit=5
Filter results to only show skills that are relevant to the project (use judgment — skip generic or unrelated results).
Present as a short list:
playbooks.com/skills/<repoOwner>/<repoName>/<skillSlug>If no relevant skills are found, skip this section entirely. Don't force recommendations.
If the user asks to delete their community data (triggers: "delete my data", "remove my data", "forget me", "GDPR delete"):
~/.claude/tool-time/config.json to get the submission_tokencurl -s -X DELETE "https://tool-time-api.mistakeknot.workers.dev/v1/api/user/<token>"community_sharing to false in config.json to stop future uploads