# Add To Leaderboard

> Use this skill when the user wants to add a new codec entry to the leaderboard, update leaderboard rankings, or mentions adding someone's compression results.

- Skill: `tomevault-io/add-to-leaderboard` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/add-to-leaderboard`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/add-to-leaderboard/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/add-to-leaderboard

---


# Add to Leaderboard

This skill helps add new codec entries to the compression-golf leaderboard in README.md.

## When to Use

- User provides a codec name and size in bytes
- User shares benchmark results to add to the leaderboard
- User asks to update the leaderboard with new results

## Leaderboard Location

The leaderboard is in `README.md` under the "Training Dataset Leaderboard" section.

## Leaderboard Format

```markdown
| Rank | Who                                | Size (Bytes) |
|------|------------------------------------|--------------|
| 1    | [CodecName](src/codecname.rs)      | X,XXX,XXX    |
```

## Instructions

1. **Parse the input**: Extract the codec name and size in bytes from the user's message
2. **Determine rank**: Compare the size against existing entries to find the correct position (smaller = better)
3. **Update the table**:
   - Insert the new entry at the correct rank position
   - Shift all lower-ranked entries down by 1
   - Format the size with commas (e.g., 7,564,554)
   - Link to `src/<codecname>.rs` (lowercase)
4. **Preserve formatting**: Keep the existing table alignment and style

## Example

User input:
```
add samsond 7564554 bytes to leaderboard
```

Action: Insert `| 2    | [samsond](src/samsond.rs)          | 7,564,554    |` at rank 2 (if that's where it belongs based on size), shift existing rank 2+ entries down.

## Notes

- Baseline entries (Naive, Zstd) are italicized with `*[Name](path)*`
- User submissions are not italicized
- The Naive baseline has no rank number

---
> Source: [agavra/compression-golf](https://github.com/agavra/compression-golf) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-25 -->

