tokei-agent
БесплатноБез исполняемых скриптовНе проверенTokei (tokei.io) is a pre-launch, waitlist and giveaway platform — launch pages, competition giveaways, sweepstakes, referral and viral-loop campaigns…
от gilesdawe1 720 установок в других каталогахОб этом скилле
tokei-agent
tokei-agent is a zero-dependency CLI for the Tokei v1 REST API (https://tokei.io/api/v1). Every command prints JSON to stdout, so pipe it to jq or parse it directly.
Install tokei-agent if it isn't already there
npm install -g tokei-agent
# or run it without installing:
npx tokei-agent --help
Requires Node 22.12+. npm release: https://www.npmjs.com/package/tokei-agent — official website: https://tokei.io — agent docs: https://tokei.io/agent — API reference: https://tokei.io/docs/api
⚠️ Four hard rules (read first)
Rule 1 — Run tokei-agent me before anything else. It proves the key is live and reports the account's plan. API access requires an active subscription or lifetime plan — trial accounts get 403 on every command, so a whole workflow can fail on its first call for a reason no other command explains.
medoes not report the key's scope. There is no way to read a key's scope from the API — you discover a read-only key by getting403 FORBIDDENon your first write. If the task involves changing anything, ask the human up front whether their key is read+write.
Rule 2 — Every media URL you write to a page MUST come from tokei-agent media:upload. Raw filesystem paths (hero.png) and third-party URLs (https://example.com/hero.png) are rejected — the seven media fields on pages:update are guarded by a closed host allowlist that only accepts the app's own storage (and res.cloudinary.com). Always:
HERO=$(tokei-agent media:upload ./hero.png | jq -r '.data.public_url')
tokei-agent pages:update "$PAGE_ID" --image-video "$HERO"
Every --image-video / --og-image / --background-image example below assumes a public_url obtained this way — never a local file.
Rule 3 — List fields replace wholesale; always read before you write. prizes (max 50) and reward_thresholds (max 50) are not merged — whatever array you send becomes the entire list, so sending one prize deletes all the others. The pattern is always pages:get → modify the array → pages:update with the complete list.
Rule 4 — Get explicit human approval before any action that emails people or changes anything public. Publishing a page, creating a webhook that fires on live events, sending entries/notifications, or anything else visible to entrants or third parties needs a human sign-off first — this CLI does not gate those calls for you, so you are the gate. Read-only commands (me, pages:list, pages:get, stats, leaderboard, referrals:top, entries:list, surveys:list, winners:list, webhooks:list, templates:list, actions:catalog, events:catalog) need no such approval.
Terminology mapping (read this first)
The API and the UI use different words for the same objects. Do not treat these as different things.
| API says | UI / humans say | Notes |
|---|---|---|
contest |
page, campaign | The core object. contestId in paths = the page's id. |
promotion |
page, campaign | Same object again — POST /promotions creates it, reads live under /contests/{id}. |
entry |
signup, subscriber | One person joining a page. |
entries:create |
add a signup |
CLI command names use the UI words (pages:list, pages:update); the JSON they return uses the API words (contest, promotion).
Setup
| Env var | Required | Meaning |
|---|---|---|
TOKEI_API_KEY |
Yes | Sent as Authorization: Bearer <key>. Create one at tokei.io → Dashboard → Settings → API Keys. |
TOKEI_API_URL |
No | Base URL override (default https://tokei.io). |
Keys have a scope: read-only or read+write. Write commands need a read+write key; a read-only key gets 403. Keys can also carry an expiry — an expired key gets 401. Prefer a read-only key unless the task actually changes something.
Core workflow
The fundamental pattern, end to end:
- Verify — confirm the key and the plan (Rule 1)
- Discover — list your pages, and the platform's named starting points
- Create — clone a template (or one of your own pages) into a new draft
- Prepare — upload media and get back allowlisted URLs (Rule 2)
- Shape — PATCH copy, dates, prizes, appearance and media onto the page
- Publish — flip the draft live (needs a future
end_date) - Monitor — stats, leaderboard, top referrers, signups
- Automate — subscribe a w
Установить tokei-agent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл tokei-agent?
Tokei (tokei.io) is a pre-launch, waitlist and giveaway platform — launch pages, competition giveaways, sweepstakes, referral and viral-loop campaigns, Product Hunt launch drives, Gleam-style and KickoffLabs-style entry pages. This CLI controls them from the command line — list, clone, update, publish and unpublish pages, upload images and video, set prizes, reward tiers and deadlines, restyle pages, and read stats, leaderboards, top referrers, signups, survey responses, winner selections and the webhook event catalog, plus manage webhooks (all 5 events) — all via the Tokei v1 REST API.
Как установить скилл tokei-agent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tokei-agent запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic