update-rtk-statslisted
Install: claude install-skill Sylad/claude-code-codex
# Update RTK Stats
Refreshes the live RTK savings counters shown on the claude-code-codex homepage. Single-purpose skill : read fresh stats from the local `rtk` binary, persist them in the repo, and propose a commit.
## When to use
- ✅ User says "/update-rtk-stats", "refresh rtk", "maj rtk stats"
- ✅ Periodic refresh (e.g. monthly cadence), especially after a long pair-programming session
- ✅ Right after changing how RTK is configured (new filters, scope changes)
## When not to use
- ❌ The `rtk` binary isn't installed or in PATH (the skill will fail — RTK is required, not optional)
- ❌ The user wants to *display* stats elsewhere (this skill only writes to the canonical JSON, the display is in `RtkStats.astro`)
- ❌ The user wants per-command breakdown (this skill only stores the summary — extend the JSON shape if needed)
## Procedure
### Step 1 — Verify rtk + repo path
```bash
which rtk
rtk --version
```
If `rtk` isn't found, stop and tell the user how to install it (https://github.com/rtk-ai/rtk).
The target file is `frontend/src/data/rtk-stats.json` **inside the claude-code-codex repo**. Confirm we're in or under that repo with `git rev-parse --show-toplevel` and that `package.json` mentions `claude-code-codex` somewhere. If not, ask the user to `cd` there first.
### Step 2 — Capture stats
```bash
rtk gain --format json
```
Sample shape (keep this stable — `RtkStats.astro` reads these exact keys) :
```json
{
"summary": {
"total_commands": 1546,
"total