Best for
- Use when user mentions X auto-reply DMs, Twitter DM automated chat, auto-handle unread DMs, reply to X private messages with persona, X DM outreach campaign, batch send DMs to Twitter users, auto-pro
browser-act/skills/solutions/social-listening/x-dm-auto-chat/SKILL.md
X (Twitter) DM automated chat end-to-end Skill: scan DM inbox to identify pending-reply conversations, read message history, generate persona-based replies and send; also supports searching users and starting new conversations. Built-in E2E passcode unlock, DM permission filtering, and rate control. Use when user mentions X auto-reply DMs, Twitter DM automated chat, auto-handle unread DMs, reply to X private messages with persona, X DM outreach campaign, batch send DMs to Twitter users, auto-pro
Decision brief
Full X DM automation Skill: inbox scan → conversation read → persona-based reply → send; also supports search-and-outreach. The calling Agent generates reply text based on persona; this Skill handles all mechanical operations.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/browser-act/skills --skill "solutions/social-listening/x-dm-auto-chat"Inspect the Agent Skill "x-dm-auto-chat" from https://github.com/browser-act/skills/blob/11c057b03f92101642cadc9f840564574120d184/solutions/social-listening/x-dm-auto-chat/SKILL.md at commit 11c057b03f92101642cadc9f840564574120d184. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
All process output to user (progress updates, process notifications) follows the user's language.
Encapsulate "refresh DM list → identify pending replies → read context → reply with persona → send" and "search user → enter chat → send first message" into callable end-to-end capabilities.
Browser is open at X site, logged into X account ([aria-label="Account menu"] present)
If browser-act has been confirmed available in the current session → skip.
If browser-act has been confirmed available in the current session → skip.
Permission review
The documentation includes network, browsing, or remote request actions.
browser-act --session <name> navigate https://x.com/i/chatThe documentation includes network, browsing, or remote request actions.
"url": "https://x.com/i/chat/pin/recovery?from=%2Fi%2Fchat",The documentation asks the agent to create, modify, or delete local files.
**Batch completion**: Summarize results (success count / failure count / conversation_id per item); return or write to external log file.The documentation asks the agent to create, modify, or delete local files.
Normal execution does not write to the file. Do not record what keywords were used, which conversations were replied to, or how many messages were sent — those are task outputs, not experience.Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 91/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 5,431 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Full X DM automation Skill: inbox scan → conversation read → persona-based reply → send; also supports search-and-outreach. The calling Agent generates reply text based on persona; this Skill handles all mechanical operations.
All process output to user (progress updates, process notifications) follows the user's language.
Encapsulate "refresh DM list → identify pending replies → read context → reply with persona → send" and "search user → enter chat → send first message" into callable end-to-end capabilities.
[aria-label="Account menu"] present)"You are BrowserAct outreach team. Tone: friendly, concise, professional. Goal: invite creators to collaborate."If browser-act has been confirmed available in the current session → skip.
Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.
browser-act --session <name> navigate https://x.com/i/chat
browser-act --session <name> wait stable --timeout 15000
browser-act --session <name> eval "$(python scripts/check-page-state.py)"
Return format:
{
"url": "https://x.com/i/chat/pin/recovery?from=%2Fi%2Fchat",
"logged_in": true,
"need_passcode": true,
"on_inbox": false,
"on_conversation": false,
"has_panel": false,
"has_composer": false,
"inbox_count": 0
}
Decision matrix:
logged_in: false → inform user to log in first; wait; retry this stepneed_passcode: true → proceed to step 3 belowon_inbox: true and inbox_count > 0 → ready, enter business flowon_inbox: true but inbox_count === 0 → account has no DM conversations; outreach scenario can still proceed, pending-reply scenario has nothing to dobrowser-act --session <name> state — find indexes of 4 <input maxlength=1 pattern=[0-9]*> elements (usually 4 consecutive)browser-act --session <name> input <idx1> "<d1>", <idx2> "<d2>", <idx3> "<d3>", <idx4> "<d4>"
browser-act input (CDP real keyboard events), cannot use eval to set value — X ignores non-real keyboard inputbrowser-act --session <name> wait stable --timeout 10000check-page-state.py, confirm need_passcode: false and on_inbox: trueneed_passcode: true → inform user passcode may be wrong; terminateChoose Scenario A, Scenario B, or both. Each scenario is an ordered AI Workflow (not a single JS).
Flow: Scan inbox → Filter unread & latest peer messages → Per-conversation: read context → Generate reply with persona → Send → Next
Steps:
Scan inbox:
browser-act --session <name> eval "$(python scripts/scan-inbox-merged.py)"
Returns items[], each containing conversation_id / conversation_url / peer_screen_name / peer_display_name / peer_can_dm / latest_message_preview / latest_message_from_self / unread, etc.
Filter pending-reply conversations: from items, select conversations meeting all conditions:
unread === true (has unread) or latest_message_from_self === false (peer's latest message not yet replied)peer_can_dm === true (recipient allows DM)is_muted !== true and is_deleted_by_viewer !== trueFor each pending-reply conversation (strictly serial, random sleep 8-15 seconds between each):
a. Open conversation:
browser-act --session <name> navigate https://x.com<conversation_url>
browser-act --session <name> wait stable --timeout 15000
b. If passcode re-triggered → re-unlock (usually won't re-trigger within same session)
c. Read context:
browser-act --session <name> eval "$(python scripts/read-conversation.py)"
Returns messages[], each with direction (self/peer), text, timestamp_text, links, images.
d. (Optional) Load full history: If caller needs longer context, loop:
browser-act --session <name> eval "$(python scripts/scroll-load-history.py)"
Until reached_top: true, then re-read with read-conversation.py.
e. Generate reply: Calling Agent combines persona, message history to generate reply text. Reply content is entirely the caller's decision; this Skill does not participate in generation. Suggested inputs:
messages.slice(-6))peer_display_name / peer_screen_name) for addressreply_text, length < 10,000 charactersf. Send reply:
browser-act --session <name> eval "$(python scripts/check-composer.py)" → record last_message_idbrowser-act --session <name> state — find <textarea placeholder=Message> index TA_IDXbrowser-act --session <name> input <TA_IDX> "<reply_text>" (must use CDP real keyboard, cannot use eval)browser-act --session <name> wait --selector '[data-testid="dm-composer-send-button"]' --state attached --timeout 5000browser-act --session <name> eval "document.querySelector('[data-testid=\"dm-composer-send-button\"]').click(); 'clicked'"browser-act --session <name> wait stable --timeout 15000browser-act --session <name> eval "$(python scripts/verify-sent.py '<reply_text>' --prev-last-id <last_message_id from step f1>)"
sent: true and composer_cleared: true → success, record resultsent: false → record failure, do not retry (prevents duplicate sends); proceed to next conversationg. Random delay: sleep 8-15 seconds (avoid anti-abuse limits)
Batch completion: Summarize results (success count / failure count / conversation_id per item); return or write to external log file.
Flow: Search candidates → Filter sendable → Enter conversation → Generate first message → Send
Steps:
Search target users (one search per target, 1-2 second interval between searches):
browser-act --session <name> eval "$(python scripts/search-users.py '<search_query>')"
Returns users[], each with user_id / name / screen_name / can_dm / can_dm_reason / verification fields.
Filter users who can receive DMs:
can_dm === true and !suspended and !protectedcan_dm_reason === "Allowed"screen_name is already in send history → skip (deduplication)For each target user (strictly serial, sleep 10-20 seconds between each):
a. Calculate conversation URL:
browser-act --session <name> eval "$(python scripts/open-conversation-by-user.py '<user_id>')"
Returns conversation_url (e.g., /i/chat/{smaller_id}-{larger_id}).
b. Navigate to conversation:
browser-act --session <name> navigate https://x.com<conversation_url>
browser-act --session <name> wait stable --timeout 15000
c. Handle passcode (may appear on first DM entry) → unlock
d. Verify composer ready:
browser-act --session <name> eval "$(python scripts/check-composer.py)"
composer_ready: true → record last_message_id; false → skip this user
e. Generate first message: Calling Agent generates first outreach text first_text based on persona + target user info (screen_name / name / verification type). Suggested content:
f. Send: Follow the 7 sub-steps in "Scenario A step 3f", substituting first_text for reply_text.
g. Random delay: sleep 10-20 seconds
Batch completion: Summarize results.
In addition to the Scenario A / B end-to-end flows, the following components can also be called directly:
browser-act --session <name> eval "$(python scripts/scan-inbox-merged.py)"
Returns merged conversation list with peer screen_name + message preview + unread flag.
browser-act --session <name> eval "$(python scripts/fetch-inbox-api.py --cursor-id {cursor_id} --graph-snapshot-id {snap} --limit {N})"
browser-act --session <name> eval "$(python scripts/read-conversation.py)"
browser-act --session <name> eval "$(python scripts/scroll-load-history.py)"
browser-act --session <name> eval "$(python scripts/check-composer.py)"
browser-act --session <name> eval "$(python scripts/verify-sent.py '<expected_text>' --prev-last-id <last_id>)"
browser-act --session <name> eval "$(python scripts/search-users.py '<query>')"
browser-act --session <name> eval "$(python scripts/open-conversation-by-user.py '<user_id>')"
browser-act --session <name> eval "$(python scripts/check-page-state.py)"
End-to-end Scenario A:
sent: true rate >= 90% for each pending-reply conversationEnd-to-end Scenario B:
composer_ready: true)sent: true rate >= 90%Atomic components: see success criteria in each atomic Skill (scripts in this directory fully reuse the atomic implementations).
browser-act input (CDP real keyboard); eval setting value does not workcan_dm_reason enum, observed values): Allowed — can send; InboxClosed — recipient closed DM; other values (possibly Blocked, NotFollowing, etc.) treat as cannot send"30m" / "6:25 PM" / "May 8"); no ISO datetimepeer_* fields take only the first non-self member; fine-grained replies in group conversations are not supported{target, status, timestamp, error?} per item; resume from breakpoint on interruption--session x-dm) for the whole batch; passcode unlock and login state persist within the session, no need to re-unlock for each itemPath: {working-directory}/browser-act-skill-forge-memories/x-dm-automation-x-dm-auto-chat.memory.md (working directory is determined by the Agent running the Skill)
Before execution: If the file exists, read it first — it records unexpected situations encountered during past executions (e.g., a strategy has become ineffective, a selector changed, a rate threshold discovered); adjust strategy order accordingly.
After execution: If an unexpected situation is encountered (strategy became ineffective, page redesigned, anti-scraping upgraded, better path discovered, new can_dm_reason enum values), append a line:
{YYYY-MM-DD}: {what happened} → {conclusion}
Normal execution does not write to the file. Do not record what keywords were used, which conversations were replied to, or how many messages were sent — those are task outputs, not experience.
Frequently asked questions
Full X DM automation Skill: inbox scan → conversation read → persona-based reply → send; also supports search-and-outreach. The calling Agent generates reply text based on persona; this Skill handles all mechanical operations.
The source record exposes this install command: npx skills add https://github.com/browser-act/skills --skill "solutions/social-listening/x-dm-auto-chat". Inspect the command and pinned source before running it.
Static rules flagged network, write-files in the source; the page lists the matching lines and excerpts.
Alternatives
alirezarezvani/claude-skills
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
eugenelim/agent-ready-repo
Use to drive the deployed end-to-end validation outer loop — deploy the integrated whole to an ephemeral environment, run e2e, observe telemetry, feed deployed findings back to work-loop's inner loop, redeploy, and iterate until the deployed whole converges, then stop at the human consent gate for the prod ship. Run by the release-lead agent (a peer of work-loop's supervisor, not a work-loop mode). Triggers on "run the release loop", "deploy the integrated whole and iterate", "ship it to an ephe
objectstack-ai/objectstack
Bootstrap, configure, extend, and operate ObjectStack runtimes. Covers project setup (`defineStack`, drivers, adapters, scaffolding), plugin and service development (PluginContext, DI, kernel hooks like `kernel:ready`), and operations (CLI commands, migrations, deployment, test harnesses via LiteKernel). Use when the user is writing `objectstack.config.ts`, building a plugin or driver, wiring a framework adapter, running `os` CLI commands, or planning deployment. Do not use for data schema desig
dotnet/skills
Diagnoses and fixes skills in the dotnet/skills repository that lose to their own baseline, fail to activate, time out, or return "no credible improvement". Use when an evaluation verdict is a regression or underpowered, when a skill regressed after a change, when /evaluate reports no results, or when deciding whether a weak skill should be strengthened or retired. Do not use for scaffolding a brand-new skill (use create-skill) or a brand-new eval (use create-skill-test).