tracekit skill
Use tracekit to capture, list, and analyze coding-agent session traces for token/cost inefficiencies.
Best use case
tracekit skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Use tracekit to capture, list, and analyze coding-agent session traces for token/cost inefficiencies.
Teams using tracekit skill should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
How tracekit skill Compares
| Feature / Agent | tracekit skill | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Use tracekit to capture, list, and analyze coding-agent session traces for token/cost inefficiencies.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# tracekit skill
Use tracekit to capture, list, and analyze coding-agent session traces for token/cost inefficiencies.
## When to use this skill
- A user asks to review their session costs, token usage, or agent efficiency
- A user wants to know which sessions were most expensive
- A user wants to find retry loops, redundant reads, or context bloat in past sessions
- A user is ending a session and wants to capture and analyze it
## Binary location
After building: `./target/release/tracekit` or `tracekit` if installed globally.
## Workflow
### 1. List sessions
```bash
# All agents, newest first
tracekit list sessions
# Filter by agent
tracekit list sessions --agent claude
tracekit list sessions --agent opencode
tracekit list sessions --agent codex
# Filter by time window
tracekit list sessions --since 2026-01-01
# JSON output for programmatic use
tracekit list sessions --format json
```
### 2. Analyze a session
```bash
# By session ID (prefix match works)
tracekit analyze session --session-id <id>
# Most recent N sessions
tracekit analyze recent --limit 10
# Most expensive sessions
tracekit analyze expensive --top 20
# JSON output
tracekit analyze session --session-id <id> --format json
```
### 3. Generate a report
```bash
# Terminal table (default)
tracekit report session --session-id <id>
# HTML report (opens as file)
tracekit report session --session-id <id> --format html --out report.html
# Full aggregate HTML report
tracekit report aggregate --format html --out report.html
# JSON report for automation
tracekit report session --session-id <id> --format json --out report.json
```
### 4. Capture traces at session end
```bash
# Discover all sessions
tracekit capture all
# Recent sessions only
tracekit capture recent --limit 5
# Specific session
tracekit capture session --session-id <id>
```
## Common patterns
**Analyze the current session (Claude Code):**
```bash
# Get your current session ID from Claude Code, then:
tracekit analyze session --session-id <current-session-id> --agent claude
```
**Find sessions with the most wasted tokens:**
```bash
tracekit analyze expensive --top 20 --format json | jq '.sessions[] | {id: .session.session_id, cost: .session.total_cost_usd, findings: (.findings | length)}'
```
**Check for specific inefficiency types:**
```bash
tracekit analyze recent --limit 20 --format json | jq '[.sessions[].findings[] | select(.kind == "retry_loop")]'
```
**Generate a weekly cost report:**
```bash
tracekit report aggregate --since $(date -u -v-7d +%Y-%m-%d) --format html --out weekly-report.html
```
## Interpreting findings
| Finding | Fix |
|---|---|
| `RETRY_LOOP` | Agent retried a failing tool repeatedly. Fix the underlying tool error or give the agent better error-handling instructions. |
| `EDIT_CASCADE` | Edit tool kept failing on same file. Check file permissions or patch format. |
| `TOOL_FANOUT` | Many calls to same tool in one turn. Use batch tool calls or parallel execution instructions. |
| `REDUNDANT_REREAD` | Same file read many times. Cache file content in context instead of re-reading. |
| `CONTEXT_BLOAT` | Input token spike. Compress tool outputs before feeding back, or use summarization. |
| `ERROR_REPROMPT_CHURN` | Repeating the same error without recovery. Add explicit error-handling paths to system prompt. |
| `SUBAGENT_OVERHEAD` | Many sidechain agents. Evaluate if tasks need subagents or can be done inline. |
## Notes
- Claude Code and OpenCode provide real cost data where available
- Codex rollout files don't include per-call token counts; only structural analysis is available
- Session IDs support prefix matching (first 8 chars usually sufficient)
- Use `--agent all` (default) to search across all installed agents
- Inspect where tokens were wasted, and update your agents md file to avoid those paths in futureRelated Skills
swe-cli-skills
Senior engineer CLI expertise for AI agents — workflows, safety guardrails, gotchas, and anti-patterns across cloud, IaC, containers, databases, dev tools, and platforms
PicoClaw Fleet
Orchestrate a fleet of remote PicoClaw workers over SSH for fast, ephemeral one-shot tasks.
VibeCollab — Setup Instructions for AI Assistants
You are helping a user set up VibeCollab in their project.
raycast-extension-docs
Guidance for building, debugging, and publishing Raycast extensions using the Raycast documentation set. Use when Codex needs to create or modify Raycast extensions (React/TypeScript/Node), consult Raycast API reference or UI components, build AI extensions, handle manifest/lifecycle/preferences, troubleshoot issues, or prepare/publish extensions to the Raycast Store or Teams.
evomap
Connect to the EvoMap collaborative evolution marketplace. Publish Gene+Capsule bundles, fetch promoted assets, claim bounty tasks, register as a worker, create and express recipes, collaborate in sessions, bid on bounties, resolve disputes, and earn credits via the GEP-A2A protocol. Use when the user mentions EvoMap, evolution assets, A2A protocol, capsule publishing, agent marketplace, worker pool, recipe, organism, session collaboration, or service marketplace.
maestro
Intelligent skill knowledge gateway. Routes tasks to the right knowledge without loading all skills into context. MUST be consulted before any coding task — call the search_skills MCP tool to retrieve relevant expertise from 100+ indexed skills covering Swift, SwiftUI, concurrency, testing, architecture, performance, and security.
opentui
Comprehensive OpenTUI skill for building terminal user interfaces. Covers the core imperative API, React reconciler, and Solid reconciler. Use for any TUI development task including components, layout, keyboard handling, animations, and testing.
calm-ui
Apply a restrained, Swiss/Japanese/Scandinavian/German-influenced product design system when building or refining UI in React, Next.js, TypeScript, and shadcn/ui. Use when the user asks to build, refine, critique, redesign, or review a page, screen, component, form, table, dashboard, layout, or other frontend interface, especially in projects using shadcn/ui. Do not use for marketing sites, landing pages, non-UI work, or requests for bold, playful, maximalist, or otherwise expressive aesthetics.
solid
Apply SOLID principles to write flexible, maintainable, and testable code. Use when designing classes, interfaces, and module boundaries. Covers Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion with practical TypeScript examples and detection heuristics.
netops-asset-manager
Manage IT infrastructure assets (routers, switches, servers, GPU clusters) through a Go + Vue 3 platform with real-time health probing, SSH remote control, configuration backup, bulk import, network topology visualization, and PM2 process management. Supports H3C, Huawei, Cisco, MikroTik, Ruijie, DCN, and Linux. Use when the user asks about IT asset management, network device operations, infrastructure monitoring, SSH device control, or development on this Go + Vue 3 platform.
Goal: Build an LLM-based RAG App
Here is the MVP Implementation Plan.
You are a professional Landing page designer who is very friendly and supportive.
Your task is to guide a beginner through planning and designing a landing page or personal portfolio.