x-post SKILL.md skillA

x-post from hanzhangzzz/agent-skills-zh is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add hanzhangzzz/agent-skills-zh/x-post@v1.0.0

Pins v1.0.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
hanzhangzzz/agent-skills-zh
Path
x-post/SKILL.md
Versions recorded
1
Latest version
v1.0.0, committed Sep 30, 2026
Size
5,056 bytes
Repository stars
2
License
MIT

Publish a tweet or a multi-post thread (with images) to X/Twitter using the login that already exists in the user's local Chrome profile: no API key, no manual cookie copying. Dry-run first (compose + screenshot for human review), then `--post`. Use when the user says 发 X, 发推, 发到 X, 发个线程, post to X, tweet this, publish on Twitter, or hands you post text to send.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# x-post

把一段文字或一条线程(主帖 + 若干回复,可配图)发到 X。登录态直接取自用户本机 Chrome 已登录的 profile,脚本解密 cookie 注入独立的 agent-browser 会话,用 X 网页编辑器发出,最后回到帖子页核对段数与配图。**默认只预览不发布**,人审过截图后再加 `--post`。

## 前置检查(先做,缺一不可)

- macOS;`agent-browser`、`sqlite3`、`security`、Node ≥ 20 在 PATH 中。
- 用户的 Chrome 某个 profile 已登录目标 X 账号。先跑 `--check-login` 确认账号名,不要猜 profile:

```bash
node "$(dirname "$(readlink -f "$0")")/scripts/x_post.mjs" --check-login --profile Default
```

返回 `{"loggedIn":true,"account":"<handle>"}`。若报无登录 cookie,换 `--profile "Profile 1"` 等重试;仍无则让用户在 Chrome 里登录 x.com 后重来。
- 第一次读取钥匙串会弹 macOS 授权框,用户点"允许"即可;这是 Chrome Safe Storage 密码,脚本不落盘。

## 执行步骤

1. **把内容写成文件**(不要把长文本塞进命令行参数)。格式:帖子之间用单独一行 `---` 分隔,第一段是主帖;`image: 相对路径` 给该段配图,最多 4 张,**只支持主帖配图**。

```
主帖正文,可多行,可含 emoji
image: ./card.png
---
第一条回复
---
第二条回复
```

2. **先预览**:

```bash
node "<skill>/scripts/x_post.mjs" --file posts.md --profile Default --out ./x-post-out
```

脚本会:解密 cookie → 打开 x.com/home(带界面窗口)→ 校验已登录 → 填主帖、上传图片 → 每多一段点一次"+"(此时草稿会移入弹窗)→ 逐段回读文本、数附件、查发布按钮是否可用 → 截图到 `x-post-out/dry-run.png` → 输出 JSON。编辑器保持打开,用户可在窗口里看。

3. **给用户看**截图和四段原文,拿到明确同意。对外发布不可撤回,没有同意不要进入下一步。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add hanzhangzzz/agent-skills-zh/x-post@sha256:5a549b8fdd74a420

The line at the top of this page pins the label v1.0.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_qu6ludlufl4i74g5.svg)](https://markdownregistry.com/a/art_qu6ludlufl4i74g5)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Sep 30, 2026.

versioncommittedcommitsizeaudit
v1.0.0 latest2026-09-30 b3c9834 5,056 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5056 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

hanzhangzzz/agent-skills-zh · 2 stars · license MIT · pushed 2026-10-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_qu6ludlufl4i74g5
GET https://markdownregistry.com/api/v1/resolve?ref=hanzhangzzz/agent-skills-zh/x-post
GET https://markdownregistry.com/api/v1/blob/5a549b8fdd74a4202f3bc8af975c85c2740f6f3eb4aaea6e7a24cf567fda2bbd

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from hanzhangzzz/agent-skills-zh

AGENTS.md AGENTS.md file
hanzhangzzz/agent-skills-zh · AGENTS.md
git:20260908.c2a51c6 · audit A · 2 stars
CLAUDE.md CLAUDE.md file
hanzhangzzz/agent-skills-zh · CLAUDE.md
git:20260908.c2a51c6 · audit B · 2 stars
ci-review SKILL.md skill
hanzhangzzz/agent-skills-zh · ci-review/SKILL.md · Install a CI-triggered LLM code reviewer into the current repo: on every push to a PR/MR, Claude Code runs headless…
git:20260904.43bb55f · audit A · 2 stars
do-something SKILL.md skill
hanzhangzzz/agent-skills-zh · do-something/SKILL.md · Autonomously push the current project forward: answer feedback first, select the highest-value task supported by real…
git:20260922.c0f20e5 · audit A · 2 stars
doc-reader SKILL.md skill
hanzhangzzz/agent-skills-zh · doc-reader/SKILL.md · Translate an English technical article (web URL) or a local PDF into accurate Chinese, section by section with…
git:20260904.c21f62b · audit A · 2 stars
gpt-image2-prompt-director SKILL.md skill
hanzhangzzz/agent-skills-zh · gpt-image2-prompt-director/SKILL.md · Turn a weak idea into a high-impact GPT image2 (gpt-image-2) generation brief: prompt director workflows, idea…
git:20260901.4d9bf39 · audit A · 2 stars
harness SKILL.md skill
hanzhangzzz/agent-skills-zh · harness/SKILL.md · Minimal Harness Engineering loop for a code repository: three roles — Inspector finds issues, Worker fixes them…
git:20260904.cb78277 · audit A · 2 stars
hkr-render SKILL.md skill
hanzhangzzz/agent-skills-zh · hkr-render/SKILL.md · WeChat Official Account (微信公众号) publishing pipeline: format Markdown or plain text into WeChat-compatible inline-style…
git:20260901.4d9bf39 · audit A · 2 stars
hook-test-kit SKILL.md skill
hanzhangzzz/agent-skills-zh · hook-test-kit/SKILL.md · 为 Claude Code hook 脚本(PreToolUse / SessionStart / UserPromptSubmit 等)生成行为矩阵测试骨架并指导填场景:scratch fixture 隔离、stdin 喂…
git:20260904.5bc92eb · audit A · 2 stars
launch-video SKILL.md skill
hanzhangzzz/agent-skills-zh · launch-video/SKILL.md · 为开源项目制作约 30 秒的发布宣传视频(1080p MP4,16:9 或 9:16,带配乐和音效):痛点 → 亮相 → 原理 → 可核实的证据 → 安装命令。先按项目、渠道和受众从 30 种视觉风格(扁平动态图形、动态排版、等轴…
git:20261004.90fc4ca · audit A · 2 stars
DESIGN.md@md2view DESIGN.md file
hanzhangzzz/agent-skills-zh · md2view/DESIGN.md
git:20260831.3dc09f5 · audit A · 2 stars
md2view SKILL.md skill
hanzhangzzz/agent-skills-zh · md2view/SKILL.md · Re-encode a Markdown document into a traceable human-reading view: a single-file HTML with the original on the left and…
git:20260901.4d9bf39 · audit A · 2 stars

Every file in hanzhangzzz/agent-skills-zh

Other files named x-post

x-post SKILL.md skill
publora/skills · .codex-marketplace/publora-skills/skills/x-post/SKILL.md · Use when the user wants to post or schedule to X (Twitter) through Publora, including threads auto-split past 280…
git:20261012.04ed166 · audit A · 58 stars
x-post SKILL.md skill
publora/skills · skills/x-post/SKILL.md · Use when the user wants to post or schedule to X (Twitter) through Publora, including threads auto-split past 280…
git:20261012.04ed166 · audit A · 58 stars
x-post SKILL.md skill
mickpletcher/ai-skills · claude/skills/x-post/SKILL.md · Write posts for X on tech, PowerShell, IT automation, and fitness topics. Always trigger immediately when the user's…
v1.1.0 · audit A · 20 stars
x-post SKILL.md skill
tonydzi/second-brain-starter-kit · skills/x-post/SKILL.md · Publish a vetted post to an X (Twitter) account through the owner's real logged-in Chrome tab, rate-guarded and…
git:20260908.2ec1bf8 · audit A · 12 stars

Browse by kind, by grade A, or by owner.