Social Post Generator
Transform blog posts and articles into social media content — tweets, LinkedIn posts, and viral hooks.
Environment Variables
| Variable | Required | Default | Description |
|---|
| INLINECODE0 | No | INLINECODE1 | Target platform: twitter or INLINECODE3 |
| INLINECODE4 |
No |
professional | Tone of voice:
professional,
casual, or
technical |
|
BRAND_NAME | No | — | Brand/person name for attribution |
|
HASHTAGS | No | — | Comma-separated default hashtags |
Scripts
generate.sh — Generate Posts
Generates 5 social media posts from an article URL or text.
CODEBLOCK0
Output: 5 formatted posts ready to publish.
thread.sh — Create Twitter Thread
Generates a thread of connected tweets from an article.
CODEBLOCK1
Output: Numbered thread tweets with proper formatting.
hook.sh — Create Viral Hooks
Generates attention-grabbing opening hooks for social posts.
CODEBLOCK2
Output: 10 hook variations to test.
Usage Example
CODEBLOCK3
Notes
- - Uses web_fetch to extract content from URLs
- Each platform has character limits (Twitter: 280, LinkedIn: 3000)
- Generates hashtag suggestions based on content
- Output is copy-paste ready with line breaks
- Add
--dry-run to any script to preview without saving
社交媒体帖子生成器
将博客文章和文章转化为社交媒体内容——推文、领英帖子和病毒式传播钩子。
环境变量
| 变量 | 是否必需 | 默认值 | 描述 |
|---|
| PLATFORM | 否 | twitter | 目标平台:twitter 或 linkedin |
| TONE |
否 | professional | 语气风格:professional、casual 或 technical |
| BRAND_NAME | 否 | — | 用于署名的品牌/个人名称 |
| HASHTAGS | 否 | — | 逗号分隔的默认话题标签 |
脚本
generate.sh — 生成帖子
根据文章URL或文本生成5条社交媒体帖子。
bash
./scripts/generate.sh ortext_file>
输出: 5条可直接发布的格式化帖子。
thread.sh — 创建推特线程
根据文章生成一系列关联推文组成的线程。
bash
./scripts/thread.sh ortext_file>
输出: 带编号且格式正确的线程推文。
hook.sh — 创建病毒式钩子
为社交媒体帖子生成吸引眼球的开场钩子。
bash
./scripts/hook.sh ortext_file>
输出: 10种可供测试的钩子变体。
使用示例
bash
export PLATFORM=twitter
export TONE=casual
export BRAND_NAME=MyBrand
根据文章生成5条推文
./scripts/generate.sh https://example.com/blog/post
创建线程
./scripts/thread.sh article.txt
获取病毒式钩子
./scripts/hook.sh article.txt
注意事项
- - 使用web_fetch从URL提取内容
- 每个平台有字符限制(Twitter:280,LinkedIn:3000)
- 根据内容生成话题标签建议
- 输出内容包含换行符,可直接复制粘贴
- 在任何脚本后添加--dry-run可预览而不保存