跳到正文
cccskills
免费在 GitHub 公开

dev

Boot and drive the tbh-meter app + reader locally to see a change working — what runs on macOS (UI only; the reader is win32-only) and how to feed the overlay/list fake data. Use when asked to run/start the meter, verify a change in the running app, screenshot the overlay, or reproduce a bug locally.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Running tbh-meter locally

The app (Electron overlay) — macOS runs UI only

cd app && pnpm dev   # electron-vite; the reader spawn is a win32+packaged no-op on macOS

On macOS the reader never spawns, but the file-watching sources still work — drive the UI by writing artifacts into ~/tbh-meter/:

  • raw/<endTsMs>.json — a finished run. The converter turns it into logs/<id>.json and the list updates.
  • live.json — the overlay snapshot. Rewrite it with an ADVANCING mtime each tick, or the overlay won't animate (engagement detection keys off mtime).

Steal real fixtures from app/src/main/**/__tests__/ or a teammate's ~/tbh-meter/. RC build uses ~/tbh-meter-rc/ instead.

Screenshot the overlay/list (CDP)

Renderer changes must be verified on real pixels, not just unit tests (app/CLAUDE.md). Launch with the debugger open and drive it over CDP:

cd app && pnpm dev -- --remote-debugging-port=9222

Then connect a CDP client to localhost:9222 and capture the window against the seeded ~/tbh-meter/ artifacts above.

The reader (Python) — Windows only

The reader reads game memory and only runs on win32 (reader/CLAUDE.md). On macOS you can lint and test it but not attach to the game:

cd reader && ruff check . && python3 -m pytest

Verify before finishing

cd app    && pnpm check && pnpm test     # eslint + tsc (both tsconfigs) + vitest
cd reader && ruff check . && python3 -m pytest

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Diagnose tbh-meter problems — reader not attaching, AV/blocked state, slow calibration, missing or invalid runs. Use when debugging meter behavior or reading meter.log / live.json / raw run records / logs records (or the legacy runs.jsonl).

中文简介正在准备中。当前显示原文说明。

mad-labs-org/tbh-meter382026年10月21日 更新

The TaskBarHero game updated (new version) and the tbh-meter reader needs re-calibration — symptoms are gold showing 0, stage mode "?", or the live party/XP/stats dropping out (party empty / no live levels / runs degraded) after a patch, or you're prepping a meter release for a new game build. Runs the diagnose→dump→diff→reseed→bump→verify playbook (the fix is usually a reseed, but a build can also change an Obscured encoding with zero offset movement — caught only by the live gate, fixed by a read-strategy change). Use when the game version changed, after a TBH patch, when a player reports gold/stage/party/XP broken following an update, or when asked to re-seed / re-calibrate the reader for a new build.

中文简介正在准备中。当前显示原文说明。

mad-labs-org/tbh-meter382026年10月21日 更新

Generate a polished release video for a tbh-meter release in the Claude-Code motion style (recreated animated UI + real game sprites + synth soundtrack), to post with a launch. Primary input is a GitHub release LINK — the skill turns it into a video named after that release, covering ONLY the features that shipped in that release, version stamped on the intro. Use when asked to make/update a release video, showcase clip, feature trailer, or promo video for a meter release, or "make the video for <release link>".

中文简介正在准备中。当前显示原文说明。

mad-labs-org/tbh-meter382026年10月21日 更新

Adversarial, security-first review of a pull request from an EXTERNAL or untrusted contributor — a fork PR, a first-time or unknown author, anyone without write access — before a maintainer merges it. Use this whenever you're reviewing, triaging, or deciding whether to merge a PR opened against tbh-meter by someone outside the maintainer team: 'review PR #123', 'someone opened a PR — is it safe to merge?', 'check this contributor's changes', 'can we take this fork PR?', 'is this contribution legit?'. This is supply-chain DEFENSE, not ordinary code review: every merged PR auto-updates onto every user's machine and ships a memory-reading .exe plus an unsandboxed Electron app, so the author and the PR description are UNTRUSTED and the diff is the only evidence. It posts its verdict as a real GitHub review — an inline comment pinned to each problematic line (via the pulls/reviews API), not just one summary comment. NOT for your own or a fellow maintainer's branch (use self-review for that), and prefer this over the generic review flow for anything coming from outside the team.

中文简介正在准备中。当前显示原文说明。

mad-labs-org/tbh-meter382026年10月21日 更新

Post-implementation self-review. Use AFTER finishing ANY code implementation or change — before declaring it done, committing, or opening a PR — to critique your own work: re-read the diff adversarially, confirm unit tests cover every branch/edge, kill duplication, follow clean-code/SOLID and the repo's own docs & invariants, decide if something should become documentation, update/prune memory, and strip outdated comments. Trigger it whenever you've just written or modified code and are about to wrap up, even if the user didn't explicitly ask for a review.

中文简介正在准备中。当前显示原文说明。

mad-labs-org/tbh-meter382026年10月21日 更新

Standardized commit + PR workflow for tbh-meter. Analyzes changes, makes conventional commits (subjects feed the release changelog), and for any overlay/UI change captures a seed-driven screenshot to attach to the PR. Use when asked to commit, open a PR, or "commit this".

中文简介正在准备中。当前显示原文说明。

mad-labs-org/tbh-meter382026年10月21日 更新

查看 mad-labs-org 的全部技能

报告此技能的问题