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.
/plugin marketplace add Borda/AI-Rig/plugin install foundryWrote 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.
[](https://agentmods.dev/skills/borda/ai-rig/profile)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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:
- Local tools — Bash/Read/Edit/Write/Grep/Glob and other main-process tools
- Agent / subagent spawns — Task/Agent calls (sync + background)
- Skill —
tool=Skillwall durations - AskUserQuestion idle — human-wait, separate column, excluded from compute total
- 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:
- 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(default24h) — window:NNs|NNm|NNh|NNd--session-id ID— optional; restrict to one session--top-n N(default5) — 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 claimLABEL([A-Za-z0-9._:/-], at most 80 characters, e.g./oss:resolve) in.notes/profile/pairs.jsonland append a## Paired measurementsection 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.
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.
- 3d ago Changed · +1 tokens per session a6fefaf12831
- 4d ago Changed · +21 lines · +47 tokens per session 626246198b5f
- 5d ago Changed e4ab89a10886
- 7d ago Changed 1998f5af11bd
- 18d ago Changed · +7 lines 0f62c32d479a
- 1mo ago Changed · -29 lines d8579abfbcf4
- 1mo ago Changed b343f4972ebc
- 1mo ago Changed · +4 lines a83cb9175200
- 1mo ago Changed ba91d361c498
- 2mo ago First seen · 177 lines · 296 tokens per session scan A 6945da387682
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.
profile compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| profileBorda/AI-Rig | Skill | 31 | yesterday | Apache-2.0 | A | 344 | Claude Code |
| i18n-parityhoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 95 | Claude Code, Codex |
| file-headershoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 101 | Claude Code |
| productivity-scorehoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 67 | Claude Code, Codex |
| dashboard-statushoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 69 | Claude Code, Codex |
| dag-maphoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 65 | Claude Code, Codex |
| regression-watchhoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 82 | Claude Code, Codex |