x-dm-auto-chat
하는 일
이 스킬은 받은 메시지함 확인부터 답장 전송까지 X 다이렉트 메시지를 관리합니다. 일관된 어조로 DM에 답하고 싶거나 몇 개의 새 대화를 시작하려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓답장이 필요한 읽지 않은 X 다이렉트 메시지가 많을 때.
- ✓브랜드에 맞는 어조와 목적으로 답장이 작성되기를 원할 때.
- ✓내가 고른 사람들과 X에서 새 대화를 몇 개 시작하고 싶을 때.
스킬 링크
https://github.com/browser-act/skills/blob/main/solutions/social-listening/x-dm-auto-chat/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“X 받은 메시지함에서 읽지 않은 메시지를 확인하고, 각 대화를 읽은 뒤 우리 브랜드 어조에 맞는 친근한 답장을 보내 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 X 메시지를 열고 답장이 필요한 대화를 찾아 기록을 읽습니다. 그다음 설정한 페르소나로 작성한 답장을 보내며, 발송 속도 제한과 허용 필터를 적용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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 stepneed_passcode: true→ proceed to step 3 belowon_inbox: trueandinbox_count > 0→ ready, enter business flowon_inbox: truebutinbox_count === 0→ account has no DM conversations; outreach scenario can still proceed, pending-reply scenario has nothing to do
3. DM Passcode Unlock (when need_passcode is true)
- If caller has provided passcode in advance → use it directly; otherwise ask user for 4-digit DM passcode via AskUserQuestion tool (do not use plain text prompt — must call AskUserQuestion)
browser-act --session <name> state— find indexes of 4<input maxlength=1 pattern=[0-9]*>elements (usually 4 consecutive)- Enter each digit:
browser-act --session <name> input <idx1> "<d1>",<idx2> "<d2>",<idx3> "<d3>",<idx4> "<d4>"- Must use
browser-act input(CDP real keyboard events), cannot use eval to set value — X ignores non-real keyboard input
- Must use
browser-act --session <name> wait stable --timeout 10000- Re-run
check-page-state.py, confirmneed_passcode: falseandon_inbox: true - 3 consecutive failures still showing
need_passcode: true→ inform user passcode may be wrong; terminate
Business Flows
Choose Scenario A, Scenario B, or both. Each scenario is an ordered AI Workflow (not a single JS).
Scenario A: Scan unread DMs → Persona-based reply
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 containingconversation_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) orlatest_message_from_self === false(peer's latest message not yet replied)peer_can_dm === true(recipient allows DM)is_muted !== trueandis_deleted_by_viewer !== true- Optional caller filters: only reply to specific screen_names, exclude already-replied (use external JSONL ledger)
For each pending-reply conversation (strictly serial, random
sleep 8-15seconds between each):a. Open conversation:
browser-act --session <name> navigate https://x.com<conversation_url> browser-act --session <name> wait stable --timeout 15000b
자주 묻는 질문
X 비밀번호가 필요한가요?
네, 설명에 따르면 암호화된 메시지를 위해 계정의 4자리 DM 암호가 필요합니다.
나에게 연락한 적 없는 사람에게도 메시지를 보낼 수 있나요?
새 대화를 시작할 수 있으며, 허용 필터가 있어 연락할 대상을 직접 정할 수 있습니다.
답장은 누가 작성하나요?
에이전트가 설정한 페르소나에 맞춰 답장 문구를 작성하고, 스킬은 전송 단계를 처리합니다.
상세 정보
작성자의 원본 설명
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-process pending DM replies, Twitter DM bot, automated Twitter outreach, X direct message automation.
repo: browser-act/skills
인기도
- GitHub 스타
- 6.3k
- 순위
- #14317
- 라이선스
- MIT
- 업데이트
- 2026. 8. 24.
댓글
- …
이 저장소의 다른 스킬
browser-act-skill-forge
6.3k에이전트가 웹사이트를 한 번 탐색해 재사용 가능한 스킬을 스크립트와 함께 저장하고, 이후 그 사이트의 데이터를 더 빠르게 가져오도록 돕습니다.
browser-act
6.3k에이전트가 BrowserAct 브라우저 자동화 도구로 페이지를 열고, 렌더링된 내용을 읽고, 양식을 채우고, 스크린샷을 찍고, 로그인된 세션을 관리하도록 돕습니다.
1688-product-detail
6.3k에이전트가 1688.com 도매 페이지에서 가격 단계, 변형 상품, 판매자 통계, 속성 같은 제품 세부 정보를 가져오도록 돕습니다.
airbnb-listing-detail
6.3k에이전트가 숫자 ID로 에어비앤비 숙소의 공개 정보를 가져오도록 돕습니다. 사진, 편의시설, 평점, 숙소 규칙을 포함합니다.