Skip to content
Back to skills

Dev

ASecurity

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.

  • 38 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
developmentpythonbashdebugging

Works with

  • cli

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add mad-labs-org/tbh-meter --skill dev --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dev?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dev
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mad-labs-org-dev/badge)](https://www.skillsdirectory.com/skills/mad-labs-org-dev)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dev
description: 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.
---

# Running tbh-meter locally

## The app (Electron overlay) — macOS runs UI only

```bash
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:

```bash
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:

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

## Verify before finishing

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.