add-x-tweet
БесплатноЗапускает вложенные скриптыНе проверенAdd X (Twitter) testimonials to the bklit homepage. Fetches username, avatar, and tweet text from a status URL and appends an entry to…
от bklit★ 2 058 звёзд на GitHubОб этом скилле
Add X Tweet Testimonial
Add social proof tweets to the homepage testimonial grid.
When to use
- User provides one or more
https://x.com/.../status/...URLs - User asks to replace, prioritize, or reorder testimonials
- User says "add tweet", "new testimonial", or similar
Workflow
1. Fetch tweet metadata
Run the fetch script from the repo root (requires network):
node .agents/skills/add-x-tweet/scripts/fetch-tweet.mjs "https://x.com/user/status/123..."
For multiple URLs, pass each URL or run once per URL.
The script prints JSON:
{
"id": "123...",
"url": "https://x.com/user/status/123...",
"author": { "name": "...", "handle": "@user", "avatar": "https://pbs.twimg.com/...", "verified": true },
"content": "tweet text without @uixmat prefix"
}
Fallback: If the script fails, use Twitter oEmbed:
curl -sL "https://publish.twitter.com/oembed?url=TWEET_URL&omit_script=1"
Parse author_name and HTML <p> for text. Avatar still needs fxtwitter or manual profile image URL.
2. Edit apps/web/lib/testimonials.ts
- Use status id as
id(numeric string from URL) - Set
urlto the canonical tweet URL (no query params) - Run avatar through
twitterAvatarUrl()(normalises any size suffix to_bigger, 73×73: avatars render at 40px) - Strip leading
@uixmatfrom content; trim whitespace - Shorten very long tweets if they include trailing promo links (keep the praise, drop link-only tails)
3. Ordering rules
Masonry uses CSS columns (top-to-bottom per column). On lg, indices 0–2 = column 1 top 3, 3–5 = column 2 top 3, 6–8 = column 3 top 3.
- Prioritize when asked: place in the next open slot among indices 0–8 without duplicating ids
- Replace when asked: remove the old entry (match by handle or old id) before adding the new one
- Set
author.verifiedfrom script output (author.verification.verifiedvia FxTwitter)
4. Collapsed grid
The homepage shows testimonialCollapsedCount (6) cards before See more. No change needed when adding tweets unless the user asks to change visible rows.
5. Verify
cd apps/web && npx tsc --noEmit -p tsconfig.json
Open homepage — grid is 3 columns, bottom fade + See more expands max-height.
Data source
Primary: FxTwitter API https://api.fxtwitter.com/{user}/status/{id} — returns author name, screen_name, avatar_url, and text.
Do not commit API keys; the public endpoint is used by the script only at add-tweet time.
Example entry
{
id: "2056717453816729751",
url: "https://x.com/jordienr/status/2056717453816729751",
author: {
name: "jordi",
handle: "@jordienr",
avatar: twitterAvatarUrl(
"https://pbs.twimg.com/profile_images/2053541405121769475/TUDez6zL_200x200.jpg"
),
verified: true,
},
content: "bklit saved my marriage",
},
Установить add-x-tweet в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл add-x-tweet?
Add X (Twitter) testimonials to the bklit homepage. Fetches username, avatar, and tweet text from a status URL and appends an entry to apps/web/lib/testimonials.ts. Use when the user shares an x.com/twitter.com tweet URL to add or replace a testimonial.
Как установить скилл add-x-tweet?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл add-x-tweet запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic