x-dm-auto-chat

x-dm-auto-chat is a skill for Claude Code, Codex from browser-act/skills. It costs 128 tokens per session (3,710 once invoked), scanned A, original, MIT.

An X direct-message automation tool that scans conversations, identifies messages needing replies, and sends persona-based responses. It can also search for users and start new conversations.

In plain words
What is it for?
Managing pending X DMs, responding in a consistent tone, and contacting selected users, subject to login and DM passcode access.
Why use it?
It reduces repetitive inbox work by handling message refresh, history reading, reply sending, and selected outreach steps in one workflow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool.

Good fit Managing pending X DMs, responding in a consistent tone, and contacting selected users, subject to login and DM passcode access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/browser-act/skills/x-dm-auto-chat
About the project

BrowserAct is a browser automation system that lets AI agents use real, separate browser sessions to extract data and complete account-based web tasks. It is for agents and teams that need parallel workflows, reused login states, human handoffs, or access to sites that resist ordinary automated requests.

browser-act/skills · 6,287 stars · on GitHub · browseract.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add browser-act/skills --skill x-dm-auto-chat
Clone the repo
git clone --depth 1 https://github.com/browser-act/skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for x-dm-auto-chat

README.md
[![agentmods](https://agentmods.dev/badge/skills/browser-act/skills/x-dm-auto-chat/github.svg)](https://agentmods.dev/skills/browser-act/skills/x-dm-auto-chat)
Your own site
<a href="https://agentmods.dev/skills/browser-act/skills/x-dm-auto-chat"><img src="https://agentmods.dev/badge/skills/browser-act/skills/x-dm-auto-chat/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for x-dm-auto-chat

Your own site · 80×15
<a href="https://agentmods.dev/skills/browser-act/skills/x-dm-auto-chat"><img src="https://agentmods.dev/badge/skills/browser-act/skills/x-dm-auto-chat.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,710 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00128 $0.03710
Opus 5.5 $0.00051 $0.01484
Sonnet 5.5 $0.00026 $0.00742
Haiku 4.5 $0.00013 $0.00371

Measured 1mo ago against content hash 5a8b8efe012c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

x-dm-auto-chat scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/check-composer.py, scripts/check-page-state.py, scripts/fetch-inbox-api.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

solutions/social-listening/x-dm-auto-chat/SKILL.md · 271 lines

How it starts

The opening of the file, as written. The whole thing — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.

X (Twitter) — DM Auto Chat (End-to-End)

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.

Language

All process output to user (progress updates, process notifications) follows the user's language.

Objective

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.

Prerequisites

  • Browser is open at X site, logged into X account ([aria-label="Account menu"] present)
  • The 4-digit DM passcode for the current account is available (required for E2E encryption)
  • Caller has prepared a "persona description" (used to generate replies), e.g.:
    • "You are BrowserAct outreach team. Tone: friendly, concise, professional. Goal: invite creators to collaborate."
  • Optional: list of target user search queries (for outreach scenario)

Pre-execution Checks

1. Tool Readiness

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.

2. Open DM Entry + Comprehensive State Check

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 step
  • need_passcode: true → proceed to step 3 below
  • on_inbox: true and inbox_count > 0 → ready, enter business flow
  • on_inbox: true but inbox_count === 0 → account has no DM conversations; outreach scenario can still proceed, pending-reply scenario has nothing to do

Read the full file on GitHub · 271 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 271 lines · 128 tokens per session scan A 5a8b8efe012c

Subscribe to this mod's changes

x-dm-auto-chat is a skill published in the GitHub repository browser-act/skills (6,287 stars, last pushed 2mo ago), licensed MIT. It adds 128 tokens to every session and 3,710 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

agent-reach

An internet-search and platform-access router for finding information across websites and services such as Reddit, X, GitHub, YouTube, and job sites.

Panniantong/Agent-Reach · 197 tokens

chief-data-officer-advisor

Chief Data Officer advisory for startups: AI training data rights and consent provenance, data product strategy (warehouse vs lakehouse vs mesh, build-vs-buy), B2B customer-data-as-asset valuation and M&A readiness, data team org evolution. Use when deciding whether to train models on customer data, choosing data…

alirezarezvani/claude-skills · 131 tokens

wrap-up

Close out a launched Claude Managed Agent — recap every primitive the founder now owns, regenerate the single-file overview page, and suggest the next 1-2 upgrades. Use when the user says "wrap up", "close this out", "what do I own now", "give me the summary", "recap the agent", or when the orchestrator routes…

alirezarezvani/claude-skills · 150 tokens

add-cloud-flow

Integrates Power Automate cloud flows into a Power Pages site. Lists available flows, suggests relevant ones based on intent, identifies scenarios and web roles, creates metadata files, and generates client-side code to call flows. Handles both new flow registration and adding already-registered flows to additional…

microsoft/power-platform-skills · 91 tokens

edit-site

Plans, coordinates and customizes PAC CLI-downloaded Standard or Enhanced data model non-SPA Power Pages sites created from Microsoft templates or manually in Design Studio. Use for requests involving pages, localized content, navigation, assets, snippets, site markers, Liquid/web templates, page layouts, or styling.…

microsoft/power-platform-skills · 104 tokens

deploy-site

Deploys an existing Power Pages site to a Power Pages environment using PAC CLI. Routes SPA sites to the existing build and upload-code-site workflow, and PAC-downloaded non-SPA (classic) sites to an isolated upload workflow with explicit data-model and website-identity checks. Handles tooling verification…

microsoft/power-platform-skills · 91 tokens