AGENT SKILL

x-publisher

Draft, validate, split into threads, open X/Twitter composer links, and use the dry-run-first MCP workflow for live X posting when local credentials are explicitly configured. Use when Codex needs to prepare social launch copy, repo/project announcements, X posts, tweet threads, or shareable publishing drafts where the user should manually review before posting.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 0
Forks
0

01 前言 Front Matter

name
x-publisher
description
Draft, validate, split into threads, open X/Twitter composer links, and use the dry-run-first MCP workflow for live X posting when local credentials are explicitly configured. Use when Codex needs to prepare social launch copy, repo/project announcements, X posts, tweet threads, or shareable publishing drafts where the user should manually review before posting.

02 资源文件 22

03 SKILL.md 正文

X Publisher

Overview

Prepare X posts safely from local drafts. V1 creates validated composer links; v2 adds a dry-run-first MCP server in the source repo for curated posting and account-management workflows. Live posting is opt-in only and still requires exact confirmation.

Workflow

  1. Draft concise post text in the user's voice and keep the strongest point first.
  2. Run scripts/x_publish.py validate before sharing any post or thread.
  3. Use scripts/x_publish.py intent for a single post composer link.
  4. Use scripts/x_publish.py thread for long Markdown/text drafts.
  5. Tell the user that the browser composer is the final review step and they must click Post manually unless they explicitly ask for the v2 live MCP workflow and local credentials are configured.

Commands

Run commands from this skill folder:

python scripts/x_publish.py draft --text "Shipped x-publisher v1: local drafts, validation, threading, and X composer links."
python scripts/x_publish.py validate --text "Shipped x-publisher v1" --url "https://github.com/realsudarshan/SD-skill"
python scripts/x_publish.py intent --text "Shipped x-publisher v1" --url "https://github.com/realsudarshan/SD-skill"
python scripts/x_publish.py thread --file post.md

Add --open to intent only after the generated URL looks correct.

Guardrails

  • Do not post directly from the v1 CLI. If asked for direct posting, use the v2 MCP guidance in references/mcp-usage.md, require exact confirmation for mutating tools, and keep live credentials in environment variables only.
  • Do not request or store X API keys in prompts or committed files.
  • Treat local character counts as a conservative approximation. For direct API posting, re-check current X docs and use the official twitter-text guidance.
  • Prefer shortening the draft before splitting into a thread unless the user explicitly wants a thread.
  • Treat the source repo as authoritative. Sync the installed skill from the source repo with python tools/install_local.py.

References

  • references/posting-workflow.md: Practical draft, validation, and composer-link workflow.
  • references/mcp-usage.md: How to list and run the v2 MCP server.
  • references/x-api-mcp-v2.md: Notes for the full X API MCP/plugin direction.

04 同仓库更多 Skills

realsudarshan
realsudarshan/SD-skill

winui-app

Bootstrap, develop, and design modern WinUI 3 desktop applications with C# and the Windows App SDK using official Microsoft guidance, WinUI Gallery patterns, Windows App SDK samples, and CommunityToolkit components. Use when creating a brand new app, preparing a machine for WinUI, reviewing, refactoring, planning, troubleshooting, environment-checking, or setting up WinUI 3 XAML, controls, navigation, windowing, theming, accessibility, responsiveness, performance, deployment, or related Windows app design and development work.

★ 0
realsudarshan
realsudarshan/SD-skill

vercel-deploy

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

★ 0
realsudarshan
realsudarshan/SD-skill

security-best-practices

Perform language and framework specific security best-practice reviews and suggest improvements. Trigger only when the user explicitly requests security best practices guidance, a security review/report, or secure-by-default coding help. Trigger only for supported languages (python, javascript/typescript, go). Do not trigger for general code review, debugging, or non-security tasks.

★ 0
realsudarshan
realsudarshan/SD-skill

playwright

Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via `playwright-cli` or the bundled wrapper script.

★ 0
realsudarshan
realsudarshan/SD-skill

openai-docs

Use when the user asks how to build with OpenAI products or APIs and needs up-to-date official documentation with citations, help choosing the latest model for a use case, or model upgrade and prompt-upgrade guidance; prioritize OpenAI docs MCP tools, use bundled references only as helper context, and restrict any fallback browsing to official OpenAI domains.

★ 0
realsudarshan
realsudarshan/SD-skill

netlify-deploy

Deploy web projects to Netlify using the Netlify CLI (`npx netlify`). Use when the user asks to deploy, host, publish, or link a site/repo on Netlify, including preview and production deploys.

★ 0