Back to skills
SKILL.md
Repo Integrations
ASecurity**Branch:** `feat/kol-leaderboard` **Source repo:** https://github.com/nirholas/kol-quest **One PR. Standalone. No other prompt is required to be shipped first.**
- 7 stars
- 0 votes
- 0 copies
- 2 views
- Added September 6, 2026
Works with
Security analysis
100/100Pro scans all 21 files and shows the line behind each finding
npx -y skills add nirholas/three-ui --skill repo-integrations --agent claude-codeAre you the author of Repo Integrations?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nirholas-repo-integrations-three-ui)# 12 — KOL leaderboard skill + endpoint
**Branch:** `feat/kol-leaderboard`
**Source repo:** https://github.com/nirholas/kol-quest
**One PR. Standalone. No other prompt is required to be shipped first.**
## Why it matters
A "who are the top traders right now" leaderboard is useful both as an agent skill ("show me the top 10 KOLs by 7d P&L") and as a public endpoint embedded sites can poll. kol-quest is the reference; this prompt ports the leaderboard surface only.
## Read these first
| File | Why |
| :--- | :--- |
| [src/agent-skills-pumpfun.js](../../src/agent-skills-pumpfun.js) | Skill registration. |
| [api/pump-fun-mcp.js](../../api/pump-fun-mcp.js) | MCP tool registration. |
| [api/pump/](../../api/pump/) | API style. |
| https://github.com/nirholas/kol-quest | Reference: leaderboard scoring + ranking logic. |
## Build this
1. Add `src/kol/leaderboard.js` exporting:
```js
export async function getLeaderboard({ window = '7d', limit = 25 })
// window ∈ '24h' | '7d' | '30d'
// Returns [{ wallet, pnlUsd, winRate, trades, rank }] sorted by pnlUsd desc.
```
2. Add `api/kol/leaderboard.js`:
```js
// GET /api/kol/leaderboard?window=7d&limit=25 → { items: [...] }
```
3. Register skill `kol.leaderboard` in [src/agent-skills-pumpfun.js](../../src/agent-skills-pumpfun.js).
4. Register MCP tool `kol_leaderboard` in [api/pump-fun-mcp.js](../../api/pump-fun-mcp.js).
5. Add `tests/kol-leaderboard.test.js` asserting:
- Sorted descending by pnlUsd.
- `window` is validated (rejects `'1y'`).
- `limit` capped at 100.
## Out of scope
- Database-backed history; if no upstream source available, port the kol-quest scoring against a recent on-chain window or a static seed file in `src/kol/seed.json` and document the source choice in code comments.
- UI changes.
## Acceptance
- [ ] `node --check` passes for new files.
- [ ] `npx vitest run tests/kol-leaderboard.test.js` passes.
- [ ] Skill + MCP tool callable.
- [ ] `/api/kol/leaderboard?window=7d&limit=10` returns 10 items.
- [ ] `npx vite build` passes.
## Test plan
1. Hit endpoint; confirm response.
2. Call agent skill; confirm summary.
3. Pass `window=1y`; confirm 400.
## Reporting
- Shipped: …
- Skipped: …
- Broke / regressions: …
- Unrelated bugs noticed: …
Files in this skill
- 01-pumpkit-whale-alerts.md
- 02-pumpkit-claim-monitor.md
- 03-pumpkit-channel-feed.md
- 04-pumpkit-telegram-delivery.md
- 05-pumpfun-claims-bot-feed.md
- 06-claim-alerts-agent-home.md
- 07-cf-workers-mcp-mirror.md
- 08-pump-fun-skills-port.md
- 09-skill-manifest-export.md
- 10-pump-swap-quote-skill.md
- 11-kol-quest-smart-money-widget.md
- 12-kol-leaderboard-skill.md
- 13-wallet-pnl-skill.md
- 14-gmgn-smart-wallets-ingest.md
- 15-radar-signals-skill.md
- 16-x-post-price-impact-skill.md
- 17-cashtag-sentiment-skill.md
- 18-realtime-trade-visualizer-widget.md
- 19-trades-into-3d-scene.md
- 20-launchpad-ui-port-studio.md
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.