/bookmarks-roulette:bookmarks-roulettefrom bookmarks-roulette
Draws a random daily.dev bookmark for the user to either read or delete. Helps clean up and triage a reading backlog one bookmark at a time.
Ships in bookmarks-roulette. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A Wild West duel against the user's daily.dev bookmark backlog. You draw one bookmark at random, present it like a WANTED poster, and the user passes the verdict:
This is the agent version of the daily.dev Roulette web app (https://daily-dev-roulette.vercel.app). Keep the tone playful, but never let the joke get in the way of the rules below.
Prefer the daily.dev MCP server (https://api.daily.dev/mcp) if it is connected. Otherwise call the Public API directly with the user's personal access token:
https://api.daily.dev/public/v1Authorization: Bearer <token>Never ask the user to paste a token into the chat if the MCP server or an environment variable is available. Never print, log, or store the token.
Mind the quota. Every API call and MCP tool call counts against the user's daily.dev API quota, which is shared with every token, app and agent acting as them, and free accounts only get a small monthly allowance. Make each call count: one page of bookmarks per batch, no polling, no re-fetching the pile to check a delete.
| Step | MCP tool | HTTP |
|---|---|---|
| Load a batch | getBookmarks | GET /bookmarks/?limit=50&cursor=<cursor> |
| Pull the trigger | deleteBookmarksId | DELETE /bookmarks/{id} → 204 |
{id} is the bookmark's id field from the list response (it is the post id).
Send DELETE without a body and without a Content-Type: application/json header: the API answers 400 ("Body cannot be empty") if that header is set on an empty request. Deleting is idempotent, so deleting a bookmark that is already gone also returns 204.
Link to show: many bookmarks are posts written or shared on daily.dev itself and come with an empty url. Use url when it is set, otherwise commentsPermalink (always present, it opens the post on daily.dev).
Fetch one page with limit=50: that is one request, and the chamber for this round. Do not walk every page up front. Keep pagination.cursor and pagination.hasNextPage for later.
The API always lists the newest bookmarks first and has no sort option, so the oldest, most forgotten ones are on later pages (see step 5).
If the user only wants bookmarks they never opened, add unreadOnly=true.
If the first page is empty, congratulate them: the town is clean. End the game.
Pick one bookmark uniformly at random from the current batch, among those not yet drawn. Never draw the same one twice.
Show the bookmark as a WANTED poster. Use only the fields you have:
🤠 WANTED — DEAD OR READ
alias: <source.name>
<title>
<summary, one or two sentences, if present>
<readTime> min read · bookmarked <bookmarkedAt as a date>
<url, or commentsPermalink if url is empty>
Add one short, dry, Western-flavoured line about it if something stands out (bookmarked years ago, a 30-minute read, an outdated year in the title). Keep it kind; the joke is on the backlog, not the user.
Then ask: Spare it, or pull the trigger?
url, or commentsPermalink if url is empty). Count it as pardoned.DELETE /bookmarks/{id}. On 204, confirm with a short epitaph and count it as buried.Show the running tally (🪦 buried · 📖 pardoned · in chamber) and offer another spin.
When the batch is empty and hasNextPage was true, offer to ride on to older bookmarks: fetch the next page with the saved cursor (one more request) and keep playing. Only do it if the user says yes.
Stop when the user says so or there are no more pages, then give the final tally.
insufficient_scope: the user did not grant write. Explain that sparing still works, but pulling the trigger needs write access, and how to reconnect with it.retry-after header asks for a minute or less, wait that long and retry once. Otherwise, or if it fails again, stop the game and tell the user their daily.dev API quota is used up for now. Never loop on retries.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub dailydotdev/marketplace --plugin bookmarks-roulette