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.
npx skills add t2y-kage/agent-skills --skill x-postgit clone --depth 1 https://github.com/t2y-kage/agent-skillsWrote 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.
[](https://agentmods.dev/skills/t2y-kage/agent-skills/x-post)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.06047 |
| Opus 5 | $0.00023 | $0.03024 |
| Sonnet 5 | $0.00009 | $0.01209 |
| Haiku 4.5 | $0.00005 | $0.00605 |
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 9d 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.
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 に書かれた具体的なコマンドを優先する。
自動モードの手順
- まず本日の投稿数を確認する:
exec で
grep -c "^$(date +%F)" {baseDir}/posted.log 2>/dev/null || echo 0結果が 12 以上なら、何もせず「今回は投稿なし」と返して終了。 - 投稿前チェック: まず 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 ツールが使えない、または取得が空で直近文脈が得られない場合は、古い/推測の文脈で投稿せず見送る。
- そのテーマを「公開情報に対する一般論」へ変換した投稿候補を考える。
- 下の編集方針と機密ガードでセルフチェックする。
- 過去の投稿履歴を確認する:
exec で
tail -n 30 {baseDir}/posted.log 2>/dev/null || echo noneこれまで投稿したテーマ・主張を把握しておく。 - 安全で価値ある候補があれば投稿する。新しい話題がない、または候補が過去投稿と重複する場合は、下の「アンケートモード」(週1回まで)・「自己引用モード」・「スレッド展開モード」のうち適している方を1つだけ実行する。どれも成立しなければ「今回は投稿なし」と返す。
アンケートモード(賛否が分かれる問いを投げかける)
過去の投稿テーマから、実務者の間で本当に意見が分かれる・正解が一つに定まらない論点を選び、アンケート(投票)として問いかける。多用すると飽きられるため週1回まで。
- 直近のアンケート実施日を確認する:
exec で
grep "poll=" {baseDir}/posted.log 2>/dev/null | tail -n 1 | cut -f1出力された日付が直近7日以内なら、このモードは行わない(出力が空なら実施可)。 - テーマの選定:exec で
cut -f3 {baseDir}/posted.log | tail -n 40で過去の投稿テーマを確認し、次の条件をすべて満たす論点を1つ立てる。- どの選択肢にも合理的な支持者がいる、技術・ビジネス・開発現場のトレードオフであること(例:テスト戦略、レビューの粒度、自動化の範囲、ドキュメントの持ち方)
- 選択肢が互いに排他で2〜4個に収まり、各25文字以内で表現できる
- センシティブな政治・宗教・社会的論争に関わる問いは立てない。機密ガード・他者への配慮は通常投稿と同一に適用する
- 問いの基準:
- 本文は問いの背景を1〜2文で示し、読者が自分の現場を思い浮かべて選べる具体性を持たせる
- 「正解当てクイズ」ではなく「あなたの現場ではどうか」を聞く形にする
- 特定の選択肢へ誘導する書き方や、どれかの選択肢を揶揄する書き方はしない
- 投稿の実行(選択肢の数だけ --poll-option を繰り返す): python3 {baseDir}/scripts/post.py --poll-option "<選択肢1>" --poll-option "<選択肢2>" --poll-hours 24 "<問いの本文>"
- アンケートも日次上限(12件)にカウントする。良い問いが立てられなければ見送る(見送りは正常な結果)。
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.
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.
- 9d ago First seen · 155 lines · 46 tokens per session scan A b58216f5f097
x-post is a skill published in the GitHub repository t2y-kage/agent-skills (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 46 tokens to every session and 6,047 once invoked, about $0.0002 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…