mcdk-tracy-profiling

mcdk-tracy-profiling is a skill for Claude Code, Codex from lovelyXiaoQi/mcdk-mcp-tracy. It costs 92 tokens per session (2,522 once invoked), scanned A, original, MIT.

A performance-monitoring workflow for Minecraft Bedrock mods that uses Tracy, a tool that records where a running program spends CPU time.

In plain words
What is it for?
Use it to capture function timings, filter results to a mod, compare before-and-after traces, and plan reviewed performance changes.
Why use it?
It helps locate slow functions, investigate game stuttering, and measure whether an optimization improved performance.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool.

Good fit Use it to capture function timings, filter results to a mod, compare before-and-after traces, and plan reviewed performance changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lovelyxiaoqi/mcdk-mcp-tracy/mcdk-tracy-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 lovelyXiaoQi/mcdk-mcp-tracy --skill mcdk-tracy-profiling
Clone the repo
git clone --depth 1 https://github.com/lovelyXiaoQi/mcdk-mcp-tracy

Made for: Claude Code, Codex.

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 mcdk-tracy-profiling

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lovelyxiaoqi/mcdk-mcp-tracy/mcdk-tracy-profiling"><img src="https://agentmods.dev/badge/skills/lovelyxiaoqi/mcdk-mcp-tracy/mcdk-tracy-profiling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,522 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.00092 $0.02522
Opus 5.5 $0.00037 $0.01009
Sonnet 5.5 $0.00018 $0.00504
Haiku 4.5 $0.00009 $0.00252

Measured 1mo ago against content hash 667af4a358ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcdk-tracy-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 1mo 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.

skills/mcdk-tracy-profiling/SKILL.md · 74 lines

How it starts

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

MCDK Tracy 性能监测工作流

mcdk-mcp-tracy 从游戏内嵌的原生 Tracy server(TCP 8086)抓一小段 trace,归约成每个函数的耗时排行(self / total / calls),配合前后 diff 量化优化收益。原始数据在服务端归约,agent 只看 top-N 与 diff。

前置条件

  1. 游戏在运行,原生 Tracy server 在监听(默认 8086,被占用时顺延到 8105 内的空闲端口,工具自动扫描;通过MCDK/MCStudio启动的ModPC均可)。
  2. bin/tracy-capture.exe、bin/tracy-csvexport.exe 存在,版本与游戏内嵌 Tracy 一致(当前 v0.11.1)。
  3. 仅 tracy_jank_fps 需要游戏由 mcdk.exe 启动且 .mcdev.json 的 mcp_server_config.enabled=true;函数耗时抓取不经 MCDK。

核心原则

  • 先探针后采样:tracy_status 确认 native_tracy.reachable=true、bin_present=true 再动手。
  • 采样前先和用户对齐时长与场景:负载要用户亲自在游戏里触发,约定好了、用户就位了再开采(见推荐流程第 2 步)。
  • 采样窗口内制造真实负载:让游戏跑代表性玩法;Tracy 只记录窗口内实际执行的 zone,静止难以抓取性能高消耗的部分。
  • 用 name_contains 聚焦 MOD:函数显示为 "函数名 @ 源文件",按脚本包前缀(如 MyModScripts)过滤;过滤只影响 inline 返回,全量仍存进 capture。
  • 结论用 diff 说话:优化前后各采一次、打不同 label,tracy_diff_captures 量化收益,不凭感觉。
  • 改代码前必须用户拍板:先交热点报告 + 优化计划(见下),用户选了哪条才改哪条,不要未经确认就动代码。

推荐流程

  1. tracy_status() —— 失败看 reason/hint 和 native_tracy.listeners(为空 → 游戏没起;busy → 已有 profiler 连着,关掉 tracy-profiler GUI;unavailable → 重启游戏;多个 ready → 传 port 指定,before/after 用同一端口;bin_present=false → 缺 CLI)。
  2. 询问用户本次采样时长与场景,等用户确认就位后再开采:
    • 时长:10 秒(瞬时逻辑:开 UI、放技能、单次交互)/30 秒(常规玩法循环、跑图)/60 秒(长周期系统:定时器波次、偶发卡顿复现)/自定义(上限 60)。
    • 场景:请用户描述准备触发什么(跑图、刷实体、开打、跑机器……),首次使用顺带确认脚本包前缀(供 name_contains)。
  3. 用户就位 → tracy_native_capture(seconds=<约定时长>, name_contains="MyMod", label="before") —— 返回空看 warning(多半是窗口内没负载)。
  4. 在对话正文完整输出热点报告(必做,格式见下节):方案按 A/B/C(或 1/2/3)编号,结尾请用户直接在聊天框回复编号(如"A+C")选定要做哪几条;禁止调用 AskUserQuestion 等选项弹窗工具收集选择。
  5. 按用户选择改热点函数 → 必要时用 game-testing MCP 的 reload_addon_and_game 热重载 → 同样场景、同样时长再抓 label="after"。
  6. tracy_diff_captures(base_id=<before>, new_id=<after>, metric="self") —— 目标函数应在 improved 且 delta_ms 为负;总体看 summary.pct,向用户回报实际省了多少毫秒。
  7. 可选:tracy_jank_fps(action="sample_fps") 前后对比 FPS 百分位(此工具经 MCDK,MCStudio不可用)。

热点报告格式(第 4 步必做)

硬性要求:报告是对话正文,不用弹窗——下面 ①②③ 必须作为可读的正文消息完整输出(分析写在内部思考里不算输出);不要调用 AskUserQuestion 之类的选项弹窗工具,选择环节就是正文末尾一句"回复编号即可"。

Read the full file on GitHub · 74 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed 667af4a358ec
  2. 1mo ago Changed · +3 lines 990150c980c2
  3. 2mo ago First seen · 71 lines · 92 tokens per session scan A fcdcbbc92534

Subscribe to this mod's changes

mcdk-tracy-profiling is a skill published in the GitHub repository lovelyXiaoQi/mcdk-mcp-tracy (22 stars, last pushed 1mo ago), licensed MIT. It adds 92 tokens to every session and 2,522 once invoked, about $0.0004 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

mcdk-tracy-profiling compared with skills from other repositories

mcdk-tracy-profiling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcdk-tracy-profilinglovelyXiaoQi/mcdk-mcp-tracySkill221mo agoMITA92Claude Code, Codex
systematic-debuggingopen-metadata/OpenMetadataSkill16kyesterdayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7k3d agoMITA71Claude Code, Codex
cwv-optimizeradobe/skillsSkill319yesterdayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2kyesterdayApache-2.0A15Claude Code, Codex
incident-response-incident-responsermyndharis/antigravity-skillsSkill1.9k23d agoMITA36Claude Code
triaging-web-analytics-supportPostHog/posthogSkill41kyesterdaynoneA151Claude Code, Codex