x-post SKILL.md skillB
x-post from terryso/ego-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add terryso/ego-skills/x-post@v0.2.1Pins v0.2.1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- terryso/ego-skills
- Path
skills/x-post/SKILL.md- Versions recorded
- 4
- Latest version
- v0.2.1, committed Nov 8, 2026
- First version recorded
- Nov 4, 2026
- Size
- 9,636 bytes
- Repository stars
- 34
- License
- MIT
Post on X (x.com / twitter.com) through the logged-in Ego Lite session. Login-check first and soft-fail with exit 2 when ego-browser is missing or x.com is logged out. Sends only with --yes after the draft is shown. Uses page.fetch CreateTweet, not the composer click path. Optional --image uploads up to 4 png/jpeg/webp files only after --yes. Reply is best-effort. Use when the user asks to tweet, post, reply, or attach images on X or Twitter from Ego.
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
用 Ego Lite 里已经登录的 Chromium 会话往 X 发帖。主路径是 `page.fetch` 的 **CreateTweet**,不点「发帖」。
Post to X through the logged-in Ego Lite session. The primary path is `page.fetch` **CreateTweet**. Do not click the composer.
成功标准是 stdout 打出 `https://x.com/<screen_name>/status/<id>`。没有这条链接就不算成功。不要顺手点其它确认框。
Success is the status URL on stdout: `https://x.com/<screen_name>/status/<id>`. Do not click unrelated confirmations.
## 先装 Ego
先装 **Ego Lite**,保证 `ego-browser` 在 `PATH`。缺失则 soft-fail(退出码 `2`),**不要**改用 Playwright、Puppeteer 或云端浏览器。
Install **Ego Lite** and put `ego-browser` on `PATH`. If it is missing, soft-fail with exit `2`. Do not switch to Playwright, Puppeteer, or a cloud browser.
## 每次发帖前:登录闸门(必做)
```bash
node scripts/check-login.mjs
node scripts/check-login.mjs --keep
```
| 退出码 | 含义 | Agent 做什么 |
|--------|------|----------------|
| `0` | 已登录 | 把 `login_tip` 告诉用户,继续 |
| `2` | 未登录 / 无 ego-browser | 展示 `how_to_login` / `how_to_login_zh`,**停** |
| `1` | 其它错误 | 报告 JSON `error`,不要假装已经发出 |
`auth_token` 是 HttpOnly,只存在于浏览器 Cookie 罐。不要打印 Cookie,不要粘贴 Cookie,不要代填密码。
默认 `finish({ keep: [] })`。`--keep` 才把页面留着并 `handOff()`。
## 确认规则
…Read the whole file at its exact version.
How to install
mdr add terryso/ego-skills/x-post@sha256:c6f19734883d9bf2The line at the top of this page pins the label v0.2.1, 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.
[](https://markdownregistry.com/a/art_7ypr4wosjxxiarfh)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Nov 4, 2026 and Nov 8, 2026, about one every day. Its first recorded version is graded A and its latest B.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v0.2.1 latest | 2026-11-08 | a5b4f9b | 9,636 B | B | view · diff |
| v0.2.0 | 2026-11-04 | f920cf6 | 8,273 B | B | view · diff |
| v0.1.1 | 2026-11-04 | 0626a2c | 6,607 B | B | view · diff |
| v0.1.0 | 2026-11-04 | 48f18dc | 6,241 B | A | view |
Audit of the latest version
- fail: No script tag (matched: <script)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (9636 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
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
terryso/ego-skills · 34 stars · license MIT · pushed 2026-11-08 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_7ypr4wosjxxiarfh GET https://markdownregistry.com/api/v1/resolve?ref=terryso/ego-skills/x-post GET https://markdownregistry.com/api/v1/blob/c6f19734883d9bf2e96a0a9e7955b0d21e0d217d4ca38ca4b3c6c56557d9e937
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 terryso/ego-skills
Every file in terryso/ego-skills