x-keyword-comment
БесплатноЗапускает вложенные скриптыНе проверенX (Twitter) keyword-based reply posting: search tweets by keyword, read each tweet's content, generate contextual replies from a configured brand persona, and…
от browser-act★ 6 450 звёзд на GitHubОб этом скилле
X — Keyword Comment
keyword + reply intent → search X tweets → read tweet content → generate contextual replies → post to reply area
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Search X by keyword, read each tweet's content, generate contextual replies based on a configured brand persona, and post them — all within a browser-act session.
Prerequisites
config/keyword-comment-config.jsonhas been filled in with actual product, persona, and tone values (allYOUR_*placeholders replaced before first run)
Session Rule
{SESSION} is a temporary, per-run session name used in all browser-act --session {SESSION} commands below. It is generated at execution start (e.g., xkc-{timestamp}) and not persisted across runs.
Pre-execution Checks
1. Tool Readiness
If browser-act has been confirmed available in the current conversation → skip this step.
Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.
2. Load Config
python -c "
import json, pathlib, sys
for base in ['.claude/skills/x-keyword-comment', 'output/x-keyword-comment']:
cfg = pathlib.Path(base) / 'config/keyword-comment-config.json'
if cfg.exists():
print(json.dumps(json.loads(cfg.read_text(encoding='utf-8')), ensure_ascii=False, indent=2))
sys.exit(0)
print('ERROR: config/keyword-comment-config.json not found', file=sys.stderr)
sys.exit(1)
"
Hold product.*, persona.*, tone.* fields in working memory for reply composition.
3. Browser Selection
List available browsers:
browser-act browser list
- If browsers exist → present the list to the user and let them choose which browser to use for this X session.
- If no browsers exist → guide the user to create one (e.g.,
browser-act browser create --type stealth --headed), then repeat the list step.
Once the user selects a browser, record its ID as {BROWSER_ID} for this run.
4. Open Session
Generate a unique session name (e.g., xkc-{timestamp}) as {SESSION}. Open the browser:
browser-act --session {SESSION} browser open {BROWSER_ID} https://x.com/ --headed
If the browser is already open with an active session, list sessions and reuse:
browser-act session list
Pick the session associated with {BROWSER_ID} and assign its name to {SESSION}.
5. Login Verification
If X login status has been confirmed in the current conversation → skip this step.
Otherwise: browser-act --session {SESSION} get markdown and check:
- Sidebar bottom shows
@username, top navigation shows Home / Explore → logged in, continue - Page shows a "Sign in" button with no logout entry → not logged in; inform the user that login is required and assist the login flow
User refuses or cannot log in → terminate execution.
Capability Components
This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the logged-in user, never bypassing authentication or access controls. JS code is encapsulated in Python files under
scripts/, invoked viabrowser-act --session {SESSION} eval "$(python scripts/xxx.py {params})".$(...)is bash syntax; use the bash tool for execution.
Below are all atomic capabilities discovered and verified during the exploration phase, listed by command template with parameters. Simply invoke them as needed — no need to read scripts/*.py source code or re-verify. Only inspect scripts when execution fails for troubleshooting. Combine freely as needed during execution.
AI Workflow: Pre-reply Warmup
Warm up the account before posting replies to simulate organic browsing behavior.
Skip condition: warmup already performed today and less than 4 hours ago, or user says "fast mode".
Step 1 — Check notifications and messages (2–3 min)
browser-act --session {SESSION} navigate "https://x.com/notifications"
browser-act --session {SESSION} wait stable
browser-act --session {SESSION} get markdown
sleep $((RANDOM % 31 + 60)) # 60–90 s
browser-act --session {SESSION} navigate "https://x.com/messages"
browser-act --session {SESSION} wait stable
browser-act --session {SESSION} get markdown
sleep $((RANDOM % 31 + 30)) # 30–60 s
Step 2 — Browse feed and like (3–5 min)
browser-act --session {SESSION} navigate "https://x.com/home"
browser-act --session {SESSION} wait stable
browser-act --session {SESSION} get markdown
Randomly pick 3–5 tweets from the feed. For each:
browser-act --session {SESSION} navigate "{tweet URL}"
browser-act --session {SESSION} wait stable
sleep $((RANDOM % 26 + 15)) # 15–40 s
# If content is relevant → like it:
browser-act --session {SESSION} state
browser-act --session {SESSION} click {Heart index} # element with aria-label containing "Like"
browser-act --session {SESSI
Установить x-keyword-comment в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл x-keyword-comment?
X (Twitter) keyword-based reply posting: search tweets by keyword, read each tweet's content, generate contextual replies from a configured brand persona, and post replies to the reply area. Use when user wants to batch reply to X tweets by keyword, auto-comment on X topic tweets, drive traffic via X comments, X comment outreach, search X tweets and leave comments, bulk reply to Twitter search results, keyword comment on Twitter, post replies on X search page, Twitter keyword comment marketing, X reply campaign, engage with X discussions, or comment on tweets matching a topic.
Как установить скилл x-keyword-comment?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл x-keyword-comment запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic