All skills
richtabor avatar

/x-writing

@a91522c
by Rich Taborrichtabor/agent-skills72 stars
10

Transforms notes into X (Twitter) posts. Triggers when user asks to create social content, draft tweets, or turn notes/ideas into posts.

Use this Skill: https://skilld.dev/gh/richtabor/agent-skills/x-writing

This session only. Nothing lands on disk.

README.md

≈437 tokens on demand. Your agent reads this file only when SKILL.md points to it.

X Writing Skill

Transforms notes, work updates, and observations into X (Twitter) posts. Analyzes source material for shareable insights, drafts authentic posts using proven patterns, and avoids AI writing patterns.

Reads ideas from a markdown file (X_SOURCE_FILE) and/or macOS Notes (X_NOTES_APP_SOURCE). If both are configured, asks which to use.

Setup

Environment Variables (Optional)

Add to Claude Code settings (~/.claude/settings.json):

{
  "env": {
    "WRITING_STYLE_GUIDE_PATH": "/path/to/style-guide.md",
    "WRITING_ANTI_PATTERNS_PATH": "/path/to/anti-patterns.md",
    "X_SOURCE_FILE": "/path/to/ideas.md",
    "X_NOTES_APP_SOURCE": "Tweets",
    "X_DRAFTS_FILE": "/path/to/posts.md",
    "X_CASE_STYLE": "lowercase"
  }
}
Variable Description
WRITING_STYLE_GUIDE_PATH Shared writing style guide for voice and tone
WRITING_ANTI_PATTERNS_PATH Shared anti-patterns. Overrides references/anti-patterns.md
X_SOURCE_FILE Path to a markdown file containing post ideas
X_NOTES_APP_SOURCE macOS Notes note name to fetch ideas from (e.g. "Tweets")
X_DRAFTS_FILE File path for saving approved posts (default: .x/posts.md)
X_CASE_STYLE "standard" (default) or "lowercase"

Usage

# From pasted content
claude "Transform these notes into X posts: [paste your notes]"

# From ideas file
claude "Check my ideas and draft some posts"

Reference Files

  • references/x-strategy.md — Content selection, formatting, engagement patterns
  • references/anti-patterns.md — AI writing patterns to avoid
  • Shared writing style guide (via WRITING_STYLE_GUIDE_PATH) — Voice, tone, banned phrases

Source: SKILL.md on GitHub

3 warnings10d4 checks · Risk MEDIUM
  • Gen Agent Trust Hub10d

    The skill is functional for social media drafting but contains a security vulnerability in the helper script used to fetch macOS notes. This script allows for AppleScript injection if input arguments or environment variables contain malicious code. Additionally, the skill processes external data from notes and files without sanitization, making it susceptible to indirect prompt injection.

  • Socket10d

    1 alert: gptAnomaly

  • Snyk10d

    Risk: LOW · No issues

  • Runlayer7mo

    5/5 files flagged

Signed by skilld at a91522c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 8 months ago

README badge

README badge for richtabor/agent-skills/x-writing