x-post

x-post is a skill for Claude Code, Codex from t2y-kage/agent-skills. It costs 46 tokens per session (6,048 once invoked), scanned A, original, Apache-2.0.

A workflow for turning internal Slack discussions into generalized public posts on X, formerly known as Twitter. It can also publish text supplied directly by the user, subject to a confidentiality check.

In plain words
What is it for?
Use it to read recent Slack discussion, decide whether a public post is appropriate, draft a general version, check prior posts, and publish it to X when the required setup is available.
Why use it?
It helps convert team conversations into public-facing ideas while checking for sensitive information, recent context, posting limits, and duplicate topics.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: positional $N argument; built for openclaw.

Good fit Use it to read recent Slack discussion, decide whether a public post is appropriate, draft a general version, check prior posts, and publish it to X when the required setup is available.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/t2y-kage/agent-skills/x-post
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add t2y-kage/agent-skills --skill x-post
Clone the repo
git clone --depth 1 https://github.com/t2y-kage/agent-skills

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 x-post

README.md
[![agentmods](https://agentmods.dev/badge/skills/t2y-kage/agent-skills/x-post/github.svg)](https://agentmods.dev/skills/t2y-kage/agent-skills/x-post)
Your own site
<a href="https://agentmods.dev/skills/t2y-kage/agent-skills/x-post"><img src="https://agentmods.dev/badge/skills/t2y-kage/agent-skills/x-post/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 x-post

Your own site · 80×15
<a href="https://agentmods.dev/skills/t2y-kage/agent-skills/x-post"><img src="https://agentmods.dev/badge/skills/t2y-kage/agent-skills/x-post.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,048 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.00046 $0.06048
Opus 5.5 $0.00018 $0.02419
Sonnet 5.5 $0.00009 $0.01210
Haiku 4.5 $0.00005 $0.00605

Measured 1mo ago against content hash 1ac19cfad16c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

x-post 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 1mo ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/fetch_mentions.py, scripts/fetch_quotes.py, scripts/fetch_timeline.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

x-post/SKILL.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

X への投稿

2つの動作モード

  • 明示テキストあり(ユーザーが本文を指定):機密ガードだけ確認し、そのまま投稿する。
  • 自動モード(スケジュール起動など、本文指定なし):下の手順で自分で考えて投稿要否を判断する。

実行環境の注意

  • rg は利用できません。探索には find / grep / tail / sed などの標準的なコマンドを使う。必要な確認は、この SKILL.md に書かれた具体的なコマンドを優先する。

自動モードの手順

  1. まず本日の投稿数を確認する: exec で grep -c "^$(date +%F)" {baseDir}/posted.log 2>/dev/null || echo 0 結果が 12 以上なら、何もせず「今回は投稿なし」と返して終了。
  2. 投稿前チェック: まず exec で cat {baseDir}/config.local を実行し、SLACK_CHANNEL_ID の値を取得する(このファイルはリポジトリに含まれない運用設定。形式は config.local.example を参照)。ファイルがない・値が取れない場合は投稿せず「config.local が未設定」と報告して終了する。次に message ツールの read アクションで slack から対象チャンネル(取得した SLACK_CHANNEL_ID)の直近メッセージを取得し、現在の話題を把握する。
    • 入力例: {"action": "read", "channel": "slack", "channelId": "<SLACK_CHANNEL_IDの値>", "limit": 15 }
    • 件数(limit)指定で新しい順に返る。なるべく取得後に各メッセージの ts(Unix秒)が「現在時刻 − 6時間」以降のものだけを文脈として使う形で絞る。
    • 「現在時刻 − 6時間」以降のものがない場合は取得できたメッセージから文脈を絞る
    • slack ツールが使えない、または取得が空で直近文脈が得られない場合は、古い/推測の文脈で投稿せず見送る。
  3. そのテーマを「公開情報に対する一般論」へ変換した投稿候補を考える。
  4. 下の編集方針と機密ガードでセルフチェックする。
  5. 過去の投稿履歴を確認する: exec で tail -n 30 {baseDir}/posted.log 2>/dev/null || echo none これまで投稿したテーマ・主張を把握しておく。
  6. 安全で価値ある候補があれば投稿する。新しい話題がない、または候補が過去投稿と重複する場合は、下の「アンケートモード」(週1回まで)・「自己引用モード」・「スレッド展開モード」のうち適している方を1つだけ実行する。どれも成立しなければ「今回は投稿なし」と返す。

アンケートモード(賛否が分かれる問いを投げかける)

過去の投稿テーマから、実務者の間で本当に意見が分かれる・正解が一つに定まらない論点を選び、アンケート(投票)として問いかける。多用すると飽きられるため週1回まで。

  1. 直近のアンケート実施日を確認する: exec で grep "poll=" {baseDir}/posted.log 2>/dev/null | tail -n 1 | cut -f1 出力された日付が直近7日以内なら、このモードは行わない(出力が空なら実施可)。
  2. テーマの選定:exec で cut -f3 {baseDir}/posted.log | tail -n 40 で過去の投稿テーマを確認し、次の条件をすべて満たす論点を1つ立てる。
    • どの選択肢にも合理的な支持者がいる、技術・ビジネス・開発現場のトレードオフであること(例:テスト戦略、レビューの粒度、自動化の範囲、ドキュメントの持ち方)
    • 選択肢が互いに排他で2〜4個に収まり、各25文字以内で表現できる
    • センシティブな政治・宗教・社会的論争に関わる問いは立てない。機密ガード・他者への配慮は通常投稿と同一に適用する
  3. 問いの基準:
    • 本文は問いの背景を1〜2文で示し、読者が自分の現場を思い浮かべて選べる具体性を持たせる
    • 「正解当てクイズ」ではなく「あなたの現場ではどうか」を聞く形にする
    • 特定の選択肢へ誘導する書き方や、どれかの選択肢を揶揄する書き方はしない
  4. 投稿の実行(選択肢の数だけ --poll-option を繰り返す): python3 {baseDir}/scripts/post.py --poll-option "<選択肢1>" --poll-option "<選択肢2>" --poll-hours 24 "<問いの本文>"
  5. アンケートも日次上限(12件)にカウントする。良い問いが立てられなければ見送る(見送りは正常な結果)。

Read the full file on GitHub · 155 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed 1ac19cfad16c
  2. 2mo ago First seen · 155 lines · 46 tokens per session scan A b58216f5f097

Subscribe to this mod's changes

x-post is a skill published in the GitHub repository t2y-kage/agent-skills (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 46 tokens to every session and 6,048 once invoked, about $0.0002 per session on Opus 5.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

x-post compared with skills from other repositories

x-post next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
x-postt2y-kage/agent-skillsSkill21mo agoApache-2.0A46Claude Code, Codex
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79kyesterdayMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill100kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill314k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code