X Writing 标志

X Writing

社区
richtabor
x-writing

将笔记转换为 X(Twitter)帖子。当用户要求创作社交媒体内容、起草推文,或将笔记/想法整理成帖子时触发。

Add to TypingMind

概览

发布者richtabor
代码仓库agent-skills
技能名称x-writing
星标数
70
复刻数
11
附带文件
3
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 3 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 richtabor 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 X Writing AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/richtabor/agent-skills/tree/main/skills/x-writing
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/richtabor/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/x-writing .claude/skills/x-writing
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 X Writing,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 X Writing。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 X Writing 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

X Writing Skill

Overview

Transform your notes, work updates, and observations into engaging X (Twitter) content. This skill analyzes your notes to identify the most shareable insights, then crafts authentic posts that match your voice and drive engagement.

Supports two idea sources — a markdown file (X_SOURCE_FILE) and/or macOS Notes (X_NOTES_APP_SOURCE). If both are configured, asks which to use.

Process

Phase 1: Preparation and Analysis

1.1 Load Writing Guides (REQUIRED - Load First)

Before any other work, load the following:

  1. Growth Principles (references/x-strategy.md) - Content selection criteria, what makes posts shareable, engagement patterns, and what to prioritize from notes. This guides WHAT to share.

  2. Writing Style Guide (from WRITING_STYLE_GUIDE_PATH env var) - Voice, tone, structure, banned phrases, and signature patterns. This guides HOW to share it. Skip if the env var is not set.

  3. Anti-Patterns - Run echo "$WRITING_ANTI_PATTERNS_PATH" to check the env var. If set, load that file. If not set, fall back to references/anti-patterns.md. AI writing patterns to avoid. Critical for ensuring posts sound human and authentic, not AI-generated. Avoid patterns like "It's not X, it's Y", formal transitions, hedging language, and AI-specific vocabulary.

PRIORITY RULE: When guides conflict, references/x-strategy.md wins. Content value and shareability take precedence over stylistic preferences. When the style guide and anti-patterns conflict, anti-patterns win.

1.2 Understand the Source Material

Get clarity on what notes to work with:

  • Ask which notes, ideas, or updates they want to transform into posts
  • Check for idea sources:
    • Run echo "$X_SOURCE_FILE" — if set, a markdown ideas file is available
    • Run echo "$X_NOTES_APP_SOURCE" — if set, a macOS Notes note is available (use scripts/fetch-notes.sh get to fetch)
    • If both are configured and the user says "check my ideas" or similar without specifying, ask which source to use
    • If one is configured, use it directly
    • If neither is configured, work from whatever the user provides (pasted content, markdown files, etc.)
  • Read the source material and identify the core insights, learnings, or updates
  • Note any specific tools, projects, numbers, or details mentioned

Multiple ideas/notes workflow:

  • When the user provides multiple distinct ideas or notes, work through them ONE AT A TIME
  • Create post options for the first idea
  • Wait for user approval/feedback before moving to the next idea
  • This prevents overwhelming the user and allows for refinement as you go

1.3 Apply Selection Criteria

Evaluate notes using the Content Selection Framework in references/x-strategy.md. Prioritize shipped work with learnings, non-obvious insights, and specific tool recommendations. Skip engagement bait, vague hype, and complaints without solutions.

Phase 2: Content Creation

2.1 Select the Best Angle

Identify one clear idea, the specific details that prove it, and the hook (first line).

2.2 Choose the Format

Default to single tweets. Only thread (2-5 tweets) when the story requires steps, multiple related insights, or before/after context. See Thread Strategy in references/x-strategy.md.

2.3 Draft the Content

Apply all three guides loaded in Phase 1 during drafting, not just as a post-check:

  • x-strategy.md — formatting rules, content strategy, High-Engagement Patterns, and Signature Patterns. Formatting is critical: one sentence per line, white space between lines, hook in first line, 180-250 chars, no italics.
  • Writing style guide (WRITING_STYLE_GUIDE_PATH) — voice, tone, banned phrases, language simplification. Apply casing preference from X_CASE_STYLE env var (standard by default). When set to "lowercase", use all lowercase including "i" as a pronoun — only capitalize personal names, WordPress, and product names.
  • Anti-patterns — actively avoid during drafting. If a draft uses any anti-pattern, rewrite before presenting. HARD RULE: NEVER use the "It's not X, it's Y" reframing pattern in any form. This includes: "isn't X, it's Y", "not because X, because Y", "isn't about X, it's about Y", "less about X, more about Y". Say the positive claim directly instead. Also avoid: em dashes, generic observations without specifics, and intensifiers.

2.4 Engagement Optimization

End ~70% of posts with engagement (specific question, teaser, or invitation). Let the rest land with a hard stop. See "What Makes Content Shareable" in references/x-strategy.md.

2.5 Quality Check

After drafting, re-read every post against the anti-patterns guide and fix any violations before presenting. Then verify:

  • Did I get to the point in line 1?
  • Is this specific? (names, numbers, examples)
  • Would I actually say this out loud?
  • Does it sound like ME, not ChatGPT?
  • Did I use any banned phrases from the writing style guide?
  • Did I avoid ALL anti-patterns? (reframing, em dashes, intensifiers, generic observations)
  • If it's a reaction, did I add MY angle?

Phase 3: Output

3.1 Present the Content

For each post created:

  1. The Post(s) - Show the actual tweet(s) ready to copy/paste
  2. Format - Indicate if it's a single tweet or thread
  3. Character Count - Show length (target: 180-250 chars)
  4. Pattern Used - Which pattern from x-strategy.md was applied
  5. Key Elements - What specifics, tools, or projects were highlighted

3.2 Offer Options

When appropriate, provide 2-3 variations:

  • Different angles on the same insight
  • Single tweet vs thread format
  • Different engagement endings

3.3 Explain Selections

Briefly note what was prioritized and why:

  • Which insights from notes were selected
  • Why certain details were emphasized
  • What was intentionally left out

3.4 Save Approved Posts

When the user approves a post, save it to the drafts file (create if missing).

File location (resolve before saving):

  1. Run echo "$X_DRAFTS_FILE" to check the env var
  2. If set, append to that file path
  3. If not set, default to .x/posts.md (top-level, create if missing)

Markdown format:

markdown
---

**Category:** Learning
**Date:** 2026-01-01

WordPress.com AI adds conversation alongside block editing.


People who couldn't navigate the UI before are shipping sites now. Others still use blocks for fine-tuning.

Both work. The conversation path just removes the skill barrier.

---

For threads, use [Tweet N] markers:

markdown
---

**Category:** Learning
**Date:** 2026-01-01

[Tweet 1]
WordPress.com AI changes how people build sites.


[Tweet 2]
People who couldn't navigate block editing are shipping now.

[Tweet 3]
The UI is still there for fine-tuning. But conversation removes the skill barrier.

[Tweet 4]
Ask or click. Both paths work.

---

Categories:

  • Learning - Insights, shipped updates with learnings
  • Update - Project progress
  • Tool - Recommendations
  • Observation - Industry takes

Workflow:

  1. Present the post(s) to the user
  2. When approved, append to X_DRAFTS_FILE or .x/posts.md
  3. User can copy-paste directly into X (text is ready with proper line breaks)
  4. User removes the section after posting, or asks you to remove it

Output Format

After creating social content, provide:

📱 Post 1 (Single Tweet, 210 chars)
─────────────────────────────────
[Actual tweet text ready to copy/paste]

Pattern: "Shipped X, learned Y"
Specifics: agents.foo, conversational context matching
Engagement: Specific question

─────────────────────────────────

From your notes, I prioritized:
✓ The discovery insight (most shareable)
✓ Why traditional search failed (specific learning)
✗ Timeline details (not core value)

Alternative angles:
• Focus on the technical implementation
• Thread breaking down the 3 attempts

Example Interaction

User: "Help me create a post from these notes about building the curation feature"

Response:

Let me analyze your notes and create X content.

[Phase 1: Loads references/x-strategy.md and writing style guide]
[Reads the notes, identifies key insights and specific details]

─────────────────────────────────
📱 Post (Single Tweet, 218 chars)
─────────────────────────────────

Shipped curation v1 for agents.foo today.

Discovery is way harder than app stores. Agents are conversations, not static features.

Had to rebuild around context matching instead of keyword search.

Pattern: "Shipped X, learned Y"
Key specifics: agents.foo, context matching vs keyword search
Engagement: Implicit (landing the insight)

─────────────────────────────────

From your notes, I selected:
✓ Core insight: agent discovery is different
✓ Specific solution: context matching
✓ Concrete detail: agents.foo
✗ Number of rebuild attempts (not essential to the insight)

Would you like me to:
• Save this approved post for tracking
• Create a thread version breaking down why search patterns failed
• Add a question ending for more engagement
• Draft additional posts from other insights in your notes

Tips for Best Results

  1. Provide context: "Notes from building curation feature" vs just pasting notes
  2. Mention specific parts: "Focus on the learning about context matching" helps prioritize
  3. Indicate quantity: "Create 3 posts from these notes" vs "create posts"
  4. Specify format preference: "Single tweets only" or "open to threads"
  5. Request variations: "Show me a few angles" gives options to choose from
  6. Iterate: After the draft, request adjustments: "Make it more specific" or "Add a question ending"

Environment Variables

VariableRequiredDescription
WRITING_STYLE_GUIDE_PATHNoPath to shared writing style guide. Loaded in Phase 1.1
WRITING_ANTI_PATTERNS_PATHNoPath to shared anti-patterns. Overrides references/anti-patterns.md
X_DRAFTS_FILENoFile path for saving approved posts. Default: .x/posts.md
X_SOURCE_FILENoPath to a markdown file containing post ideas. Read when the user asks to check ideas.
X_NOTES_APP_SOURCENomacOS Notes note name to fetch ideas from (e.g. "Tweets"). Uses scripts/fetch-notes.sh.
X_CASE_STYLENo"standard" (default) or "lowercase"

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

X Writing AI 技能有什么作用?

将笔记转换为 X(Twitter)帖子。当用户要求创作社交媒体内容、起草推文,或将笔记/想法整理成帖子时触发。

为什么在 TypingMind 中使用 X Writing?

因为您只需安装一次,就能搭配任何模型使用。X Writing 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 X Writing?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/richtabor/agent-skills/tree/main/skills/x-writing。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 X Writing?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

X Writing 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 X Writing 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

X Writing AI 技能免费吗?

richtabor 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇