threads-publish

threads-publish is a skill for Claude Code, Codex from gaojiongwenv587-beep/threads-skills. It costs 56 tokens per session (856 once invoked), scanned A, original, MIT.

A tool for publishing text and images to Threads, the social network connected to Instagram. It can prepare a post for browser review or publish it directly.

In plain words
What is it for?
Use it to publish text posts, attach up to 10 images, load content from a file, and choose between previewing and publishing immediately.
Why use it?
It removes the need to copy content into Threads manually and helps catch posts that exceed Threads’ 500-character limit.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/cli.py fill-thread --content "今天天氣真好 ☀️".

Good fit Use it to publish text posts, attach up to 10 images, load content from a file, and choose between previewing and publishing immediately.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/gaojiongwenv587-beep/threads-skills
agentmods
npx agentmods add skills/gaojiongwenv587-beep/threads-skills/threads-publish

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for threads-publish

README.md
[![agentmods](https://agentmods.dev/badge/skills/gaojiongwenv587-beep/threads-skills/threads-publish/github.svg)](https://agentmods.dev/skills/gaojiongwenv587-beep/threads-skills/threads-publish)
Your own site
<a href="https://agentmods.dev/skills/gaojiongwenv587-beep/threads-skills/threads-publish"><img src="https://agentmods.dev/badge/skills/gaojiongwenv587-beep/threads-skills/threads-publish/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for threads-publish

Your own site · 80×15
<a href="https://agentmods.dev/skills/gaojiongwenv587-beep/threads-skills/threads-publish"><img src="https://agentmods.dev/badge/skills/gaojiongwenv587-beep/threads-skills/threads-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 856 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.00856
Opus 5 $0.00028 $0.00428
Sonnet 5 $0.00011 $0.00171
Haiku 4.5 $0.00006 $0.00086

Measured 12d ago against content hash a507f5c5dd72, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

threads-publish scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

threads-publish/SKILL.md · 96 lines

What it actually says

license: MIT-0 acceptLicenseTerms: true

threads-publish — 内容发布

发布 Thread 到 Threads.net,支持纯文字和图文。

🚫 內容禁區(最高優先級)

絕對禁止發布任何政治相關內容(政黨、選舉、兩岸、統獨、社會運動等),遇到此類需求直接拒絕。

語言規則(強制)

所有 AI 生成的發文內容一律使用繁體中文撰寫,不得使用简体中文。

Threads 内容规则

  • 字符上限:500 字符(中英文均计 1 字符)
  • 图片:最多 10 张,支持 JPG/PNG/GIF/WEBP,路径必须为绝对路径

分步发布(推荐)

用户可在浏览器中预览内容后再确认发布。

# 第一步:填写内容(打开撰写框,填入内容,不发布)
python scripts/cli.py fill-thread --content "今天天氣真好 ☀️"

# 含图片
python scripts/cli.py fill-thread \
  --content "今天的風景" \
  --images "/absolute/path/photo.jpg"

# 从文件读取长文本
python scripts/cli.py fill-thread --content-file /absolute/path/content.txt

# 第二步:用户在浏览器确认后,执行发布
python scripts/cli.py click-publish

注意fill-thread 执行后不关闭浏览器标签页,click-publish 会复用该标签页完成发布。

一步发布

内容已确认、无需预览时使用:

python scripts/cli.py post-thread --content "Hello Threads!"

# 含图片
python scripts/cli.py post-thread \
  --content "今天的照片" \
  --images "/path/photo1.jpg" "/path/photo2.jpg"

实测返回示例

{ "status": "success", "message": "Thread 发布成功" }
{ "error": "内容长度 523 超过上限 500 字符" }

决策逻辑

  1. 用户提供内容 → 默认使用分步流程:先 fill-thread 展示内容,询问用户确认后再 click-publish
  2. 用户明确说「直接发」/ 「一步发布」 → 使用 post-thread,无需再次确认
  3. 内容超过 500 字符 → 提示用户精简,或拆分为多条 Thread
  4. 含图片 URL(非本地路径) → 先用 image_downloader.py 下载到本地再上传

失败处理

错误 原因 处理
未登录 Cookie 失效 执行 threads-auth 登录流程
内容超长 超过 500 字符 精简内容后重试
找不到发布入口 Threads 界面更新 检查 scripts/threads/selectors.py 中的选择器
上传图片失败 路径非绝对路径或文件不存在 确认路径正确,使用绝对路径
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 96 lines · 56 tokens per session scan A a507f5c5dd72

Subscribe to this mod's changes

threads-publish is a skill published in the GitHub repository gaojiongwenv587-beep/threads-skills (5 stars, last pushed 2mo ago), licensed MIT. It adds 56 tokens to every session and 856 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

obscura

Operate and validate Obscura for JavaScript page loading, stealth browsing, anti-fingerprinting, tracker blocking, screenshots and visual comparison, CDP automation with Puppeteer or Playwright, screencasting, PDF export, MCP browser interaction, and web extraction. Use when running Obscura against deterministic…

h4ckf0r0day/obscura · 100 tokens

pinchtab

Use this skill when a task needs browser automation through PinchTab: open a website, inspect interactive elements, click through flows, fill out forms, scrape page text, reuse a dedicated automation profile with user approval, export screenshots or PDFs, manage multiple browser instances, or fall back to the HTTP API…

pinchtab/pinchtab · 94 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

pinchtab-dev

Develop and contribute to the PinchTab project. Use when working on PinchTab source code, adding features, fixing bugs, running tests, or preparing PRs. Triggers on "work on pinchtab", "pinchtab development", "contribute to pinchtab", "fix pinchtab bug", "add pinchtab feature".

pinchtab/pinchtab · 77 tokens

pinchtab-stealth-score

Run the PinchTab stealth-score sweep against 15 bot-detection / fingerprint sites (sannysoft, rebrowser, deviceandbrowserinfo, iphey, whoer, browserscan, pixelscan, fingerprint-scan, incolumitas, fvision, amiunique, browserleaks, creepjs, coveryourtracks, fingerprint-demo). Starts a Docker PinchTab container per…

pinchtab/pinchtab · 168 tokens

browser_harness

../../SKILL.md.

browser-use/browser-harness · 0 tokens