agent-usage
Analyze agent token usage and costs with dot and DuckDB queries.
Skill by Médéric HURIER (Fmind)
Chalk Labs
Need help deploying agent-usage?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/fmind-agent-usage
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/agent-usage
What's inside
- Skill name
agent-usage- Description
- Analyze agent token usage and costs with dot and DuckDB queries.
- License
- MIT
- Metadata
- kind: task · author: Médéric HURIER (Fmind) · source: github.com/fmind/dot/tree/main/skills/agent-usage · created: 2026-09-03 · updated: 2026-10-23
- Instructions
- 25 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- queries.md · references/
SKILL.md (first lines)
# Agent Usage Analyze the shared usage archive with dot and DuckDB. Preserve the difference between recorded token usage, estimated cost, and the provider's actual bill. ## Workflow 1. **Let dot own sync and schemas**: dot owns source synchronization and archive schemas; read [queries.md](references/queries.md) for layout, fields, DuckDB queries, and exports. 1. **Report completeness, protect data**: state period, sources, and completeness; protect prompt and account data. Quick total: `dot agent stats --tokens-only` (coverage dates and API equivalents). [queries.md](references/queries.md) owns flags, pricing fields, and monthly periods. API equivalents are offline rate-card estimates, never the bill or verified savings. ## Gotchas - **Unknown is not free**: absent prices are `null`/`unknown`, not zero; read `cost_known_sessions` and `cost_complete` before comparing cost. - **Never add unlike measurements**: `measurement_kind` separates provider-reported, estimated (Antigravity), and context-only (Grok fallback) tokens; statistics group them separately. - **Subagents are sidechains**: exclude `sidechain` records when counting sessions; their tokens join the parent. - **Check accounting completeness**: `legacy_accounting_sessions` and `session_timestamp_sessions` flag records needing recapture or approximate allocation; [queries.md](references/queries.md) owns parser and per-harness details. - **`sync` fails loud, reports warn**: `dot agent session sync` records each failed session, continues, and exits 1 at the end; the sync before `dot agent stats` only warns on stderr. ## Documentation - [DuckDB JSON Functions](https://duckdb.org/docs/data/json/overview) - Companion skills: [dot-cli](../dot-cli/SKILL.md) (every `dot` command), [duckdb](../duckdb/SKILL.md) (file-based SQL analysis).
From fmind/dot, MIT.
More from fmind/dot
- 0.636score
code-security
Médéric HURIER (Fmind)
Review code security, threat-model designs, and vet third-party skills; scan secrets and vulnerabilities with Gitleaks and Trivy.
SkillAFreshness: A★ 12Claude Code +9 - 0.636score
dot-cli
Médéric HURIER (Fmind)
Run dot: doctor, login/setup, repo status/pull, trust, secret run, cache/prune, disk space, orphans, context budgets, archives.
SkillAFreshness: A★ 12Claude Code +9 - 0.636score
full-review
Médéric HURIER (Fmind)
Full review or routine upkeep: read every repo area, fix tools, dead code, stale config, and ignore files, and prove all checks pass.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
diagrams-as-code
Médéric HURIER (Fmind)
Create and check Mermaid, SVG, and D2 diagrams and README illustrations.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
chrome-devtools
Médéric HURIER (Fmind)
Debug Chrome with DevTools MCP: console, network, performance, accessibility.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
course-development
Médéric HURIER (Fmind)
Design technical courses, lessons, exercises, and executable labs.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
dot-skills
Médéric HURIER (Fmind)
Maintain fmind/dot skill packages, catalog budgets, package contracts, and installed links.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
agent-frameworks
Médéric HURIER (Fmind)
Build Python agents with Google ADK, LangChain, LangGraph, and agents-cli.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
agent-harnesses
Médéric HURIER (Fmind)
Operate and configure Claude Code, Codex, Copilot, Grok, and OpenCode.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
agent-protocols
Médéric HURIER (Fmind)
Implement A2A agents, MCP servers, and ACP editor integrations in Python.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
chezmoi
Médéric HURIER (Fmind)
Manage chezmoi source names, templates, secrets, diffs, and deployment in fmind/dot.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
agent-evaluation
Médéric HURIER (Fmind)
Evaluate prompt, model, retrieval, and agent changes with repeated graded trials.
SkillAFreshness: A★ 12Claude Code +9
Signals
- Stars
- 12
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Oct 24, 2026 (6 days ago)
- Last release
- Oct 24, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/fmind/dot
- Website
- fmind.dev
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Médéric HURIER (Fmind)
- 0.636score
full-review
Médéric HURIER (Fmind)
Full review or routine upkeep: read every repo area, fix tools, dead code, stale config, and ignore files, and prove all checks pass.
SkillAFreshness: A★ 12Claude Code +9 - 0.636score
dot-cli
Médéric HURIER (Fmind)
Run dot: doctor, login/setup, repo status/pull, trust, secret run, cache/prune, disk space, orphans, context budgets, archives.
SkillAFreshness: A★ 12Claude Code +9 - 0.636score
code-security
Médéric HURIER (Fmind)
Review code security, threat-model designs, and vet third-party skills; scan secrets and vulnerabilities with Gitleaks and Trivy.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
agent-frameworks
Médéric HURIER (Fmind)
Build Python agents with Google ADK, LangChain, LangGraph, and agents-cli.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
chezmoi
Médéric HURIER (Fmind)
Manage chezmoi source names, templates, secrets, diffs, and deployment in fmind/dot.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
dot-skills
Médéric HURIER (Fmind)
Maintain fmind/dot skill packages, catalog budgets, package contracts, and installed links.
SkillAFreshness: A★ 12Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get agent-usage running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
agent-usage skill. Agent Mart. https://agentmart.dev/skills/fmind-agent-usage (last updated 2026-10-24)