x-dm-auto-chat
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.
What this skill does
# 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:
```json
{
"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
### 3. DM Passcode Unlock (when need_passcode is true)
1. 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)
2. `browser-act --session <name> state` — find indexes of 4 `<input maxlength=1 pattern=[0-9]*>` elements (usually 4 consecutive)
3. 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
4. `browser-act --session <name> wait stable --timeout 10000`
5. Re-run `check-page-state.py`, confirm `need_passcode: false` and `on_inbox: true`
6. 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**:
1. **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.
2. **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 !== true`
- Optional caller filters: only reply to specific screen_names, exclude already-replied (use external JSONL ledger)
3. **For 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:
- Persona prompt (provided by caller)
- Recent N messages (typically `messages.slice(-6)`)
- Peer name (`peer_display_name` / `peer_screen_name`) for address
- Return one string `reply_text`, length < 10,000 characters
f. **Send reply**:
1. `browser-act --session <name> eval "$(python scripts/check-composer.py)"` → record `last_message_id`
2. `browser-act --session <name> state` — find `<textarea placeholder=Message>` index `TA_IDX`
3. `browser-act --session <name> input <TA_IDX> "<reply_text>"` (**must use CDP real keyboard, cannot use eval**)
4. `browser-act --session <name> wait --selector '[data-testid="dm-composer-send-button"]' --state attached --timeout 5000`
5. `browser-act --session <name> eval "document.querySelector('[data-testid=\"dm-composer-send-button\"]').click(); 'clicked'"`
6. `browser-act --session <name> wait stable --timeout 15000`
7. Verify: `browser-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 result
- `sent: false` → record failure, **do not retry** (prevents duplicate sends); proceed to next conversation
g. **Random delay**: `sleep 8-15` seconds (avoid anti-abuse limits)
4. **Batch completion**: Summarize results (success count / failure count / conversation_id per item); return or write to external log file.
### Scenario B: Search users → Start new conversation → Send first message
**Flow**: `Search candidates → Filter sendable → Enter conversation → Generate first message → Send`
**Steps**:
1. **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.
2. **Filter users who can receive DMs**:
- `can_dm === true and !suspended and !protected`
- `can_dm_reason === "Allowed"`
- If `screen_name` is already in send history → skip (deduplication)
3. **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 150Related in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".