Skill / SKILL.md

profile

Borda/AI-Rig

Session clock-time AND token/cost analyzer. Reads the foundry plugin's timings.jsonl and invocations.jsonl logs (written by task-log.js) for wall-time, plus Claude Code transcripts (~/.claude/projects/**, main-loop + subagent files) for token usage and USD cost, and merges both into one per-session and per-skill report — local-tool vs subagent-spawn vs Skill vs AskUserQuestion idle vs unattributed gaps between recorded calls, and main-loop vs subagent spend by model tier. Useful for answering "why did /oss:resolve run 30 minutes?", "what did this session cost?", or "which skill burns the most tokens?". Pure log/transcript read — no instrumentation, no skill edits, no LLM calls. Also pairs a before and an after run under one label, so a savings or cost claim is measured or labelled unmeasured. TRIGGER when: user asks where wall-clock time OR tokens/cost go during a skill/session, why a skill is slow or expensive, what dominates total runtime or spend, wants a per-skill rollup over a recent window, or wants a before/after measurement of a change; phrases: "where does time go", "why so slow", "what did this cost", "token spend", "why so expensive", "profile last session", "clock breakdown", "session timing", "which skill burns tokens", "measure the saving", "before and after cost". SKIP: per-line Python perf (use foundry:perf-optimizer); known failure or hang (use /foundry:investigate); a real billing statement (prices are public list rates, not effective plan rates).
2 views 31 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Session clock-time AND token/cost analyzer. Reads the foundry plugin's timings.jsonl and invocations.jsonl logs (written by task-log.js) for wall-time, plus Claude Code transcripts (~/.claude/projects/**, main-loop + subagent files) for token usage and USD cost, and merges both into one per-session and per-skill report — local-tool vs subagent-spawn vs Skill vs AskUserQuestion idle vs unattributed gaps between recorded calls, and main-loop vs subagent spend by model tier. Useful for answering "why did /oss:resolve run 30 minutes?", "what did this session cost?", or "which skill burns the most tokens?". Pure log/transcript read — no instrumentation, no skill edits, no LLM calls. Also pairs a before and an after run under one label, so a savings or cost claim is measured or labelled unmeasured. TRIGGER when: user asks where wall-clock time OR tokens/cost go during a skill/session, why a skill is slow or expensive, what dominates total runtime or spend, wants a per-skill rollup over a recent window, or wants a before/after measurement of a change; phrases: "where does time go", "why so slow", "what did this cost", "token spend", "why so expensive", "profile last session", "clock breakdown", "session timing", "which skill burns tokens", "measure the saving", "before and after cost". SKIP: per-line Python perf (use foundry:perf-optimizer); known failure or hang (use /foundry:investigate); a real billing statement (prices are public list rates, not effective plan rates).

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/Borda/AI-Rig' skill-source

Use the complete skill-source/plugins/cc_foundry/skills/profile directory with your client’s skill installer.

  • plugins/cc_foundry/skills/profile

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory plugins/cc_foundry/skills/profile

Compatibility & requirements

Declared tools

Read, Write, Bash, TaskList, TaskCreate, TaskUpdate, AskUserQuestion

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Needs source review
Checked at
Pending source check
Content SHA-256
38371ca79897c8048a18859ea124be4eea12d5aa54e5e788619a10e1f5094547
Format validation findings
  • Invalid or missing description.
Agent Skills specification
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills