bsprof-profiling

bsprof-profiling is a skill for Claude Code from jack1590/RokuMCP. It costs 79 tokens per session (617 once invoked), scanned A, original, MIT.

A tool for examining BrightScript Profiler files from Roku devices. BrightScript is Roku's programming language, and profiler files record information about an app's resource use.

In plain words
What is it for?
Use it to profile a Roku app, investigate a memory leak, or compare two profiler files.
Why use it?
It helps find memory leaks, CPU-heavy code, and performance changes between builds.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the roku-mcp plugin — 9 skills, 1 MCP server shipped together

Good fit Use it to profile a Roku app, investigate a memory leak, or compare two profiler files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jack1590/rokumcp/bsprof-profiling
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jack1590/RokuMCP --skill bsprof-profiling
Clone the repo
git clone --depth 1 https://github.com/jack1590/RokuMCP

Made for: Claude Code.

Or install roku-mcp, the plugin that ships this one along with the rest of its 9 skills, 1 MCP server.

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 bsprof-profiling

README.md
[![agentmods](https://agentmods.dev/badge/skills/jack1590/rokumcp/bsprof-profiling/github.svg)](https://agentmods.dev/skills/jack1590/rokumcp/bsprof-profiling)
Your own site
<a href="https://agentmods.dev/skills/jack1590/rokumcp/bsprof-profiling"><img src="https://agentmods.dev/badge/skills/jack1590/rokumcp/bsprof-profiling/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 bsprof-profiling

Your own site · 80×15
<a href="https://agentmods.dev/skills/jack1590/rokumcp/bsprof-profiling"><img src="https://agentmods.dev/badge/skills/jack1590/rokumcp/bsprof-profiling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 617 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.00079 $0.00617
Opus 5.5 $0.00032 $0.00247
Sonnet 5.5 $0.00016 $0.00123
Haiku 4.5 $0.00008 $0.00062

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

Security

Grade A, and why

bsprof-profiling 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 2d 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.

plugin/skills/bsprof-profiling/SKILL.md · 43 lines

What it actually says

Profile a memory leak or CPU hot path

Steps

  1. Enable profiling: the channel manifest needs bs_prof_enabled=true. Redeploy.
  2. Reproduce the scenario on the device, then download the .bsprof from http://<device-ip>:8080 (ask the user if you cannot reach it).
  3. Check the file: bsprof_info filePath=<path> (header only, instant even at 600+ MB; duration reads 0 here).
  4. Start broad: analyze_bsprof mode=summary.
  5. Drill in only where the summary points: mode=memory (retained bytes, leaks) or mode=cpu (self time). Narrow with top, filterModule, excludeModule (e.g. roku_ads_lib), threshold.
  6. Regressions: compare_bsprof beforePath=... afterPath=....

In code mode (roku_run)

const summary = await roku.profile.analyze({ filePath: 'profiles/after.bsprof', mode: 'summary', top: 10 });
const diff = await roku.profile.compare({ beforePath: 'profiles/before.bsprof', afterPath: 'profiles/after.bsprof', top: 10 });
return { leaks: summary.report.topMemoryLeaks, diff: diff.diff };

Paths must be inside the server's working directory: save the downloaded .bsprof in the project folder first.

From a shell (rokuctl)

rokuctl profile.analyze after.bsprof summary --top 10
rokuctl profile.compare before.bsprof after.bsprof --out diff.json

When it goes wrong

Symptom Cause Fix
The first analysis takes minutes Large file (tens of millions of entries) Expected once; the parse is cached for the next call on the same file
Empty or tiny report Profiling was not enabled for that run Check bs_prof_enabled=true, redeploy, reproduce again
rokuctl exit 2 output_too_large A full report is over 64 KiB Add --out <file>
ENOENT Wrong path Check the path. Tools and rokuctl take any path
path_denied in roku_run The file is outside the working directory Save the downloaded .bsprof inside the project folder, then pass that path
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. 2d ago Changed · +24 lines · +10 tokens per session 7d521ddc7b29
  2. 1mo ago First seen · 19 lines · 69 tokens per session scan A ff4d614cf489

Subscribe to this mod's changes

bsprof-profiling is a skill published in the GitHub repository jack1590/RokuMCP (6 stars, last pushed 3d ago), licensed MIT. It adds 79 tokens to every session and 617 once invoked, about $0.0003 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-10-10.

Related

bsprof-profiling compared with skills from other repositories

bsprof-profiling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bsprof-profilingjack1590/RokuMCPSkill63d agoMITA79Claude Code
gke-ai-troubleshooting-tpu-dynamic-slices-monitoringgoogle/skillsSkill25ktodayApache-2.0A107Claude Code, Codex
gke-ai-troubleshooting-tpu-vbar-oomgoogle/skillsSkill25ktodayApache-2.0A125Claude Code, Codex
doca-flowNVIDIA/skillsSkill4.2k2d agoApache-2.0A224Claude Code
competition-firmware-layoutzhaoxuya520/reverse-skillSkill45k16d agoMITA110Codex
diagnose-driver-installNVIDIA/deepopsSkill1.5k3d agoBSD-3-ClauseA47Claude Code, Codex
catc-troubleshootautomateyournetwork/netclawSkill739todayApache-2.0A114Claude Code