Skip to content
AI & Agents
Skill

/tweetsmash-api

Integrate TweetSmash REST bookmark retrieval, filtering, pagination, and label management into scripts or tools. Excludes browser automation, other Twitter/X APIs, and marketing copy.

From plugin
skills
65590 skills1 command

Claude Code

$ npx -y skills add pedronauck/skills --skill tweetsmash-api --agent claude-code

SKILL.md

tweetsmash-api.SKILL.md
name: tweetsmash-api
description: "Integrate TweetSmash REST bookmark retrieval, filtering, pagination, and label management into scripts or tools. Excludes browser automation, other Twitter/X APIs, and marketing copy."
metadata:
  author: Pedro Nauck
  github: https://github.com/pedronauck
  repository: https://github.com/pedronauck/skills

TweetSmash API

Use this skill to work directly with the TweetSmash REST API using current endpoint evidence. Reuse documentation already verified in this task; refresh it when missing, stale, or contradicted by the API. Read `references/api-reference.md` before choosing an endpoint. Read `references/bookmarks-filters.md` only when bookmark filtering is required.

Procedures

**Step 1: Validate Credentials and Scope** 1. Confirm that a TweetSmash API key is available before making requests. Prefer `TWEETSMASH_API_KEY` in the shell environment. 2. Read `references/api-reference.md` to confirm the current endpoint, required headers, rate limits, and status codes. 3. If the task requires bookmark filtering or pagination, read `references/bookmarks-filters.md`.

**Step 2: Build the Request** 1. Use `Authorization: Bearer $TWEETSMASH_API_KEY` on every request. 2. Use `Content-Type: application/json` for all examples in this skill. Keep the base URL as `https://api.tweetsmash.com/v1`. 3. If the task fetches bookmarks with filters, execute `python3 <tweetsmash-api-dir>/scripts/build-bookmarks-url.py` with the needed flags to generate a correctly encoded URL. 4. If the task adds labels, start from `assets/add-labels-body.json` and fill in `tweet_ids` plus either `label_id` or `label_name`. 5. If the task removes labels, start from `assets/remove-labels-body.json` and fill in `tweet_ids` plus `label_name`.

**Step 3: Execute the Correct Endpoint** 1. Fetch bookmarks with `GET /bookmarks`. Use the URL from `scripts/build-bookmarks-url.py` when filters, search, or cursors are present. 2. List labels with `GET /labels` when the task needs current label IDs, label names, or usage counts. 3. Add labels with `POST /labels/add` when the task needs to organize one or more bookmarked tweets. 4. Remove labels with `POST /labels/remove` when the task needs to clean up or reclassify bookmarked tweets. 5. Use cURL for quick execution or translate the same request into the caller’s runtime only after the endpoint and payload are confirmed.

**Step 4: Verify the Response** 1. Confirm that the response JSON contains `"status": true` before reporting success. 2. For bookmark reads, inspect `meta.next_cursor`, `meta.limit`, and `meta.total_count` when pagination matters. 3. For label mutations, confirm the success message matches the intended action. 4. If the task depends on label existence and the mutation response does not establish it, call `GET /labels` to verify the resulting state.

**Step 5: Return a Usable Result** 1. Summarize the request method, endpoint, and effective filters or payload fields that were used. 2. Return the response body or a structured summary, depending on the caller’s requested output format. 3. If follow-up pagination is possible, expose `meta.next_cursor` so the next request can continue from the prior page.

Error Handling

  • If authentication fails with `401`, confirm that the bearer token is present, non-empty, and taken from the correct TweetSmash account.
  • If the API returns `402`, stop and report that the current plan does not permit the requested API access.
  • If the API returns `429`, stop issuing requests and honor `Retry-After` or current rate-limit headers. The bundled reference records a historical limit; do not treat it as universal or retry in a tight loop.
  • If a bookmark query becomes hard to assemble by hand, rerun `python3 <tweetsmash-api-dir>/scripts/build-bookmarks-url.py --help` and rebuild the URL instead of manually concatenating query strings.
  • If a label mutation is ambiguous, list labels first with `GET /labels` and then rerun the mutation using the confirmed label identifier or label name.
Read more
@pedronauck
Ships withskills

A curated collection of 89 agent skills for Claude Code and compatible AI coding assistants — 43 original (⭐️), 33 hand-picked (💎), and 13 marketing & business (📣).

Stars on GitHub

Momentum

stars in total
655
Star history of pedronauck/skills on GitHub, a chart by star-history.com

Other skills on skills.

agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@pedronauck@pedronauckInstall Skill
ai-sdk

ai-sdk

Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like…

@pedronauck@pedronauckInstall Skill
autoresearch

autoresearch

Autonomously optimize any Claude Code skill by running it repeatedly, scoring outputs against binary evals, mutating the prompt,…

@pedronauck@pedronauckInstall Skill
centrifugo

centrifugo

Centrifugo real-time messaging server expert for WebSocket PUB/SUB, channel management, JWT authentication, event proxying, and…

@pedronauck@pedronauckInstall Skill
context7

context7

Retrieves up-to-date documentation, API references, and code examples for any developer technology. Use this skill whenever the…

@pedronauck@pedronauckInstall Skill
documentation-writer

documentation-writer

Diátaxis Documentation Expert. An expert technical writer specializing in creating high-quality software documentation, guided by…

@pedronauck@pedronauckInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3w393k
@openclaw@openclawInstall Skill

Questions about tweetsmash-api.

Which coding agents can use tweetsmash-api?
tweetsmash-api installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.