{"data":{"slug":"discovered-080e8dacb182cd4e8b00676bfe3ec513904784bded36e83f","title":"Devxkit Usage Observability","summary":"Read local backend usage captured in agent runs without pricing or raw payloads. Output includes token and duration summaries in JSON or CSV format.","url":"https:\/\/skillshunter.net\/skills\/discovered-080e8dacb182cd4e8b00676bfe3ec513904784bded36e83f","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-080e8dacb182cd4e8b00676bfe3ec513904784bded36e83f","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-080e8dacb182cd4e8b00676bfe3ec513904784bded36e83f.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-080e8dacb182cd4e8b00676bfe3ec513904784bded36e83f\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure agent runs exist with `logs\/<backend>\/agent-run.json` under `.agent-runs\/<issue>\/` before using commands. Do not infer monetary cost from token counts or attempt to calculate pricing.","instructions":"---\nname: devxkit-usage-observability\ndescription: Read local backend usage captured in agent runs without pricing or raw payloads.\nscope: global\ndevxkit_commands:\n  - devxkit agent usage history\n  - devxkit agent usage totals\n  - devxkit agent usage export\n---\n\n# devxkit usage observability\n\n## When to use\n\n- Inspect token\/duration summaries from past agent runs under `.agent-runs\/`\n- Compare backends (`cursor`, `codex`, etc.) for a slice without re-running backends\n- Export usage for offline analysis (JSON\/CSV) \u2014 **read-only**\n\n## Preconditions\n\n- Agent runs exist with `logs\/<backend>\/agent-run.json` under `.agent-runs\/<issue>\/`\n- No backend execution required; commands only read local files\n\n## Commands\n\n```bash\ndevxkit agent usage history\ndevxkit agent usage totals\ndevxkit agent usage export --format json\ndevxkit agent usage export --format csv\n```\n\nFiltered examples:\n\n```bash\ndevxkit agent usage history --issue 117 --backend cursor\ndevxkit agent usage totals --issue 117 --last 7d\ndevxkit agent usage export --format json --issue 117 --since 2026-06-01\ndevxkit agent usage history --json | jq '.events[0]'\ndevxkit agent usage totals --json | jq '.grand_total'\n```\n\n## Validation\n\n- Commands exit 0 even when no events match (empty list \/ null totals)\n- JSON output includes `monetary_cost: null` \u2014 never a dollar amount\n- `history --json` and `export --format json` share the same event payload shape (ADR 0013)\n- No `raw_usage`, prompts, results, stdout, stderr, or secrets in output\n\n## Common failures\n\n- **Empty history** \u2192 no captured run yet; backend may not have executed or did not emit usage JSON\n- **Expecting pricing** \u2192 not supported; do not infer cost from token counts\n- **Wrong issue filter** \u2192 confirm `.agent-runs\/<issue>\/` exists and run completed\n\n## Stop conditions\n\n- Do **not** calculate or report monetary cost\n- Do **not** print or persist `raw_usage`, prompts, results, or API keys\n- Do **not** run backends just to populate usage \u2014 use `devxkit agent run` only with explicit authorization\n- `export` is read-only; it never triggers backend execution\n\n## Related skills\n\n- `devxkit-cursor-cost-policy`, `devxkit-pr-reporting` (scorecard may reference latest usage summary)\n","use_cases":["Inspect token and duration summaries from past agent runs","Compare backends for a slice without re-running backends","Export usage data for offline analysis in JSON or CSV format"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/jesuserro\/devxkit\/blob\/0380bd30488627f7232a08c38ebc0c7dd9a66dc3\/src\/devxkit\/assets\/skills\/devxkit\/devxkit-usage-observability\/SKILL.md","source_commit":"0380bd30488627f7232a08c38ebc0c7dd9a66dc3","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:48:52.000000Z","updated_at":"2026-11-29T10:53:27.000000Z","seo_title":"Devxkit Usage Observability - Read Agent Run Usage Data","seo_description":"Inspect token and duration summaries from past agent runs using Devxkit. Export usage data in JSON or CSV format for offline analysis.","seo_keywords":["devxkit usage","agent run observability","token usage summary","backend comparison","usage export json","usage export csv"]}}