Skip to content
Agentmart
Submit a tool

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…

Skill by browser-act

IndexedMIT★ 6,268
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/browser-act-x-keyword-comment

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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.

Use cases: design, writing, marketing, sales

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/x-keyword-comment

What's inside

Skill name
x-keyword-comment
Description
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.
License
MIT
Instructions
315 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • files: referenced but missing: references/quality-checklist.md, references/reply-composition.md

Files (3)

  • SKILL.md
  • click-reply.py · scripts/
  • scan-search-tweets.py · scripts/

SKILL.md (first lines)

# 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.json` has been filled in with actual product, persona, and tone values (all `YOUR_*` 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

```bash
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:

```bash
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:

```bash
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:

```bash
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 via `browser-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)**

```bash
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)**

```bash
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:

From browser-act/skills, MIT.

More from browser-act/skills

Signals

Stars
6,268
Forks
330
Open issues
9
Last commit (this folder)
Jun 12, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from browser-act

Cite this page

x-keyword-comment skill. Agent Mart. https://agentmart.dev/skills/browser-act-x-keyword-comment (last updated 2026-10-24)