profile

profile is a skill for Claude Code from Borda/AI-Rig. It costs 344 tokens per session (4,839 once invoked), scanned A, original, Apache-2.0.

A session reporting tool that combines elapsed-time records with token and cost data from development-agent logs.

In plain words
What is it for?
Use it to create reports by session or skill, compare main work with subagents, inspect model tiers and expensive calls, and review timing totals.
Why use it?
It shows where a session's time, model usage, and spending went instead of leaving those figures scattered across log files.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the foundry plugin — 10 skills, 10 agents shipped together

Good fit Use it to create reports by session or skill, compare main work with subagents, inspect model tiers and expensive calls, and review timing totals.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Borda/AI-Rig
Claude Code
/plugin install foundry

Made for: Claude Code.

Or install foundry, the plugin that ships this one along with the rest of its 10 skills, 10 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for profile

README.md
[![agentmods](https://agentmods.dev/badge/skills/borda/ai-rig/profile/github.svg)](https://agentmods.dev/skills/borda/ai-rig/profile)
Your own site
<a href="https://agentmods.dev/skills/borda/ai-rig/profile"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/profile/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for profile

Your own site · 80×15
<a href="https://agentmods.dev/skills/borda/ai-rig/profile"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/profile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 344 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,839 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00344 $0.04839
Opus 5.5 $0.00138 $0.01936
Sonnet 5.5 $0.00069 $0.00968
Haiku 4.5 $0.00034 $0.00484

Measured 3d ago against content hash a6fefaf12831, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

profile scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cc_foundry/skills/profile/SKILL.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bucket session clock time from ~/.claude/logs/{timings,invocations}.jsonl into:

  1. Local tools — Bash/Read/Edit/Write/Grep/Glob and other main-process tools
  2. Agent / subagent spawns — Task/Agent calls (sync + background)
  3. Skill — tool=Skill wall durations
  4. AskUserQuestion idle — human-wait, separate column, excluded from compute total
  5. Unattributed time — gaps between recorded calls, which are excluded from compute time

...and bucket session tokens/cost from Claude Code transcripts (~/.claude/projects/**, main-loop + subagent files) into:

  1. Sessions ranked by cost (window mode) — main $ vs subagent $ vs total $ per session, plus a per-command rollup; or one session's deep-dive (--session-id) — cost by main/sidechain × model tier, agent roster, per-agent rows for the 25 costliest agents and a phase table over all (long, chain-link, challenge-* retry flags), top cache-rebuild calls, cold-start share

Outputs a markdown report at .reports/profile/<UTC-timestamp>-<unique-suffix>/report.md plus a .temp/output-profile-...md copy: per-session clock table, per-skill clock rollup, top-N longest single calls, plus a ## Tokens & cost section scoped to the same window or session ID.

NOT for: per-line Python perf (use foundry:perf-optimizer); known failure diagnosis (use /foundry:investigate); a real billing statement (prices are public list rates, not effective plan rates).

  • --since DURATION (default 24h) — window: NNs|NNm|NNh|NNd
  • --session-id ID — optional; restrict to one session
  • --top-n N (default 5) — slowest single calls to list
  • --pair-label LABEL --pair-side before|after — optional, always together: record this run as one side of a before/after pair for the claim LABEL ([A-Za-z0-9._:/-], at most 80 characters, e.g. /oss:resolve) in .notes/profile/pairs.jsonl and append a ## Paired measurement section to the report (Step 2c). Profile the before side before the change lands and the after side after it, with the same --since (or each with its own --session-id).

If $ARGUMENTS empty, default window is 24h.

Task hygiene — task tools may be deferred; load before first use: ToolSearch(query="select:TaskList,TaskCreate,TaskUpdate,TaskGet", max_results=4). Call TaskList first and triage each task it returns: completed if work clearly done, deleted if orphaned, keep in_progress only if genuinely continuing. Never spend a turn on bookkeeping alone — every TaskCreate/TaskUpdate ships in the same response as the next substantive tool call; one exception, TaskUpdate(completed) immediately before a long output block (rules/task-lifecycle.md).

Task tracking: TaskCreate two tasks up front — 1 "Run analyzers + render report" (Steps 1–3), 2 "Step 4: Print report header" (Step 4). Mark each in_progress before its first tool call; 1 completed once report.md exists, 2 completed right after the header and path are printed, before the executive summary.

Step 1: Parse args + create run dir

Unsupported flag check — before executing Step 2, read quote-aware argument tokens left to right. Supported options are --since, --session-id, --top-n, --pair-label, and --pair-side. For a supported option, take the value after its first = or from the next token and consume the value before checking the next option. A dash-leading label remains a value, including when its spelling matches an option name. Pass each retained option to Step 2 as --name=VALUE with the value unchanged. For an unsupported option name, including --noop, invoke AskUserQuestion with question text ! Unknown flag(s): `--<token>`. Supported: `--since`, `--session-id`, `--top-n`, `--pair-label`, `--pair-side`. — (a) Abort (stop, re-invoke with correct flags) · (b) Continue ignoring (remove the unknown option at its parsed boundary and preserve every retained option and value). On Abort: stop.

Read the full file on GitHub · 180 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +1 tokens per session a6fefaf12831
  2. 4d ago Changed · +21 lines · +47 tokens per session 626246198b5f
  3. 5d ago Changed e4ab89a10886
  4. 7d ago Changed 1998f5af11bd
  5. 18d ago Changed · +7 lines 0f62c32d479a
  6. 1mo ago Changed · -29 lines d8579abfbcf4
  7. 1mo ago Changed b343f4972ebc
  8. 1mo ago Changed · +4 lines a83cb9175200
  9. 1mo ago Changed ba91d361c498
  10. 2mo ago First seen · 177 lines · 296 tokens per session scan A 6945da387682

Subscribe to this mod's changes

profile is a skill published in the GitHub repository Borda/AI-Rig (31 stars, last pushed yesterday), licensed Apache-2.0. It adds 344 tokens to every session and 4,839 once invoked, about $0.0014 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

profile compared with skills from other repositories

profile next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
profileBorda/AI-RigSkill31yesterdayApache-2.0A344Claude Code
i18n-parityhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA95Claude Code, Codex
file-headershoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA101Claude Code
productivity-scorehoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA67Claude Code, Codex
dashboard-statushoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA69Claude Code, Codex
dag-maphoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA65Claude Code, Codex
regression-watchhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA82Claude Code, Codex