pb-log

pb-log is a command for Claude Code from seungwee-choi/oh-my-personal-best. It costs 17 tokens per session (678 once invoked), scanned A, original, MIT.

A command for adding a training run to a personal running log from a device export, CSV file, or plain-language report. It can also import activities from Strava after the account is connected.

In plain words
What is it for?
Use it to record runs and other sports, import COROS or Garmin files, load CSV training data, or sync activities from Strava.
Why use it?
It removes the need to enter sessions manually and keeps records from different sources in one log without duplicate entries.

Command for Claude Code

Written for Claude Code: $CLAUDE_PLUGIN_ROOT variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the oh-my-personal-best plugin — 11 skills, 11 commands, 8 agents shipped together

Good fit Use it to record runs and other sports, import COROS or Garmin files, load CSV training data, or sync activities from Strava.

Compare 6 commands from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add seungwee-choi/oh-my-personal-best
Claude Code
/plugin install oh-my-personal-best

Made for: Claude Code.

Or install oh-my-personal-best, the plugin that ships this one along with the rest of its 11 skills, 11 commands, 8 agents.

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 pb-log

README.md
[![agentmods](https://agentmods.dev/badge/commands/seungwee-choi/oh-my-personal-best/pb-log/github.svg)](https://agentmods.dev/commands/seungwee-choi/oh-my-personal-best/pb-log)
Your own site
<a href="https://agentmods.dev/commands/seungwee-choi/oh-my-personal-best/pb-log"><img src="https://agentmods.dev/badge/commands/seungwee-choi/oh-my-personal-best/pb-log/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 pb-log

Your own site · 80×15
<a href="https://agentmods.dev/commands/seungwee-choi/oh-my-personal-best/pb-log"><img src="https://agentmods.dev/badge/commands/seungwee-choi/oh-my-personal-best/pb-log.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 678 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.00017 $0.00678
Opus 5 $0.00009 $0.00339
Sonnet 5 $0.00003 $0.00136
Haiku 4.5 $0.00002 $0.00068

Measured 12d ago against content hash 1c4f2c2d5fcc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

pb-log 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 12d 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.

commands/pb-log.md · 50 lines

How it starts

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

pb-log

Dispatch

Delegate to oh-my-personal-best:data-logger to ingest the following input:

$ARGUMENTS

Input routing

If $ARGUMENTS is a .fit file, a .zip, or a directory (e.g., a COROS / Garmin export folder):

  • data-logger calls python3 "$CLAUDE_PLUGIN_ROOT/scripts/import_fit.py" "<path>" --tz <local>
  • import_fit.py reads each activity's session summary, types running as easy/long and other sports as cross, and emits normalized JSONL with source: "fit" and source_id
  • The script appends validated, deduped lines directly to $OMPB_HOME/training-log.jsonl; re-imports are idempotent (no duplicate source_ids)
  • Requires the fitdecode package (see requirements.txt)

If $ARGUMENTS is a .csv file path:

  • data-logger calls python3 "$CLAUDE_PLUGIN_ROOT/scripts/import_csv.py" "<file.csv>"
  • The script validates, dedupes, and appends normalized lines directly to $OMPB_HOME/training-log.jsonl with source: "csv"

If $ARGUMENTS is strava or sync strava:

  • Requires a prior /pb-connect-strava (credentials in $OMPB_HOME/strava.json)
  • data-logger calls python3 "$CLAUDE_PLUGIN_ROOT/scripts/import_strava.py"
  • The script auto-refreshes the access token, pages /athlete/activities, normalizes (running → easy/long, other sports → cross), and appends deduped lines to $OMPB_HOME/training-log.jsonl with source: "strava" and source_id: "strava-<id>"
  • If strava.json is missing, tell the runner to run /pb-connect-strava first

If $ARGUMENTS is a natural-language report (e.g., "ran 10K in 50:00", "오늘 12km easy 5:45 뛰었어", "long run 32km done, HR avg 148"):

  • data-logger parses the report directly: extract date, type, distance_km, pace, HR, RPE, and any notes
  • Appends the normalized entry to $OMPB_HOME/training-log.jsonl with source: "nl"

In both cases, data-logger:

  • Detects new PBs in any race entries and updates runner-profile.json current_pb and $OMPB_HOME/pb-history.json if faster than current best
  • Confirms in one line: Logged: YYYY-MM-DD · [type] · [distance_km]km · [pace]/km (or Imported N sessions from [filename]. [K new PBs detected.] for CSV)
  • Does not comment on training quality — analysis is race-analyst's domain

Read the full file on GitHub · 50 lines

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. 12d ago First seen · 50 lines · 17 tokens per session scan A 1c4f2c2d5fcc

Subscribe to this mod's changes

pb-log is a command published in the GitHub repository seungwee-choi/oh-my-personal-best (3 stars, last pushed 12d ago), licensed MIT. It adds 17 tokens to every session and 678 once invoked, about $0.0001 per session on Opus 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-31.