Skip to content
Back to skills

XchatReplies

ASecurity

Answer people who write to the owner on X - X pushes each X Chat message over one socket (no polling), the inbox hook says who wrote, then read the thread, draft from the owner's own writing guide, gate it with log voice, show the owner, send only when the owner says. Use when a >>> NEW MESSAGE note arrives, when the owner asks who messaged, or asks to reply, follow up or take over a conversation.

  • 94 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 12, 2026
toolsgobash

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 16, 2026

npx -y skills add matthewdonsemail-lab/log --skill xchatReplies --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of XchatReplies?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for XchatReplies
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/matthewdonsemail-lab-xchatreplies/badge)](https://www.skillsdirectory.com/skills/matthewdonsemail-lab-xchatreplies)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: xchatReplies
description: Answer people who write to the owner on X - X pushes each X Chat message over one socket (no polling), the inbox hook says who wrote, then read the thread, draft from the owner's own writing guide, gate it with log voice, show the owner, send only when the owner says. Use when a >>> NEW MESSAGE note arrives, when the owner asks who messaged, or asks to reply, follow up or take over a conversation.
---

# xchatReplies

X's own chat app never polls: it holds one socket and X pushes every message
down it (`docs/platforms/x/xchat/live.md`, issue #68). log does the same, so
replies show up the second they land and no inbox read ever hits X's 429.

## Hard boundaries

1. **Never poll the inbox to find replies.** The inbox hook keeps
   `log twitter chat watch --inbox` running per signed-in X account. Read a
   thread only to answer it.
2. **Claim the chat before drafting** (rule 133): `log inbox claim --platform
   twitter --account <a> --chat <conversation id> --event <event id>` (MCP
   `inboxClaim`), and read `log inbox actions --chat <id>` to see what was
   already done there. Another session holding it means leave it; the send
   releases the claim.
3. **Read everything with the person first:** `log twitter dms --account
   <a> --with <handle>` (the old DM thread and X Chat are one conversation,
   rule 89).
3. **Draft from the owner's guide, with the owner's facts only.** Read
   `C:/Users/tester/.buzz/GUIDES/OWNER_WRITING_STYLE.md` before drafting. Lowercase,
   no commas or full stops, the owner's words, almost never end on a question, no
   praise-then-pitch, nothing the owner didn't say (rules 39-41).
4. **Gate every draft:** `log voice --to <handle> --text "<draft>"
   --context "<what they said>"`. Rewrite until it says PASS.
5. **Show the owner and send only when the owner says**, unless the owner has handed you the
   conversation (2026-10-28: "let the ai take over the conversation"). Then
   gate each reply and send it, and stop the moment the owner says it's over.

## The routine

```bash
# who wrote: the hook says it, pushed by X. To watch by hand:
log twitter chat watch --account xAccount --seconds 600
# read them
log twitter dms --account xAccount --with <handle>
# gate the draft
log voice --to <handle> --text "<draft>" --context "<what they said>"
# send, once the owner says
log twitter dm --account xAccount --userId <id> --text "<draft>" --approvedBy <owner> --live
```

## When it goes wrong

- `(could not open: … no matching key found …)`: the conversation's key
  wasn't primed. The watch re-reads the newest inbox page once and retries;
  if it still fails, restart the watch (it primes every key at start).
- `socket closed` / `connectFailed`: the watch takes a new token and
  reconnects on its own (2 s, doubling to 60 s).
- Nothing arriving: check `~/.logCli/inbox/twitter/<a>/watch.log` and
  `watch.pid`; delete the pid file and the next hook starts a fresh watch.
- X changed its code: re-read it with rea, the steps are in
  `docs/platforms/x/xchat/live.md`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.