social-card-gen
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSocial Card Generator Skill
Social Card Generator Skill
Use this skill when a user needs one source message transformed into platform-ready social copy for Twitter, LinkedIn, and Reddit.
当用户需要将单一源消息转换为适配Twitter、LinkedIn和Reddit的平台就绪型社交文案时,可使用本Skill。
What it does
功能介绍
- Converts one source input into 3 platform variants.
- Enforces platform limits:
- Twitter: 280 chars
- LinkedIn: 3000 chars
- Reddit: no hard limit in this tool
- Applies platform style:
- Twitter: punchy + compact hashtags
- LinkedIn: professional + business framing
- Reddit: authentic + discussion-oriented
- Runs entirely offline for text/file workflows (no API required).
- 将单一源输入转换为3种平台适配变体。
- 遵循平台字数限制:
- Twitter:280字符
- LinkedIn:3000字符
- Reddit:本工具无严格限制
- 适配平台风格:
- Twitter:简洁有力+紧凑话题标签
- LinkedIn:专业商务风格
- Reddit:真实接地气+讨论导向
- 纯离线运行文本/文件处理流程(无需API)。
Files
文件说明
- : CLI generator.
generate.js - : platform rules, tone guidance, hashtag strategy, and CTA formats.
templates.js - : sample input and output.
examples/
- :CLI生成器。
generate.js - :平台规则、语气指南、话题标签策略和CTA格式定义。
templates.js - :示例输入与输出文件。
examples/
Usage
使用方法
bash
npm installbash
npm installtext input
文本输入
node generate.js --text "We reduced onboarding time by 35% with a checklist." --stdout
node generate.js --text "We reduced onboarding time by 35% with a checklist." --stdout
file input
文件输入
node generate.js --file examples/input-example.md --outdir examples
node generate.js --file examples/input-example.md --outdir examples
URL input (when network is available)
URL输入(需联网时使用)
node generate.js --url https://example.com/post --platforms twitter,linkedin --stdout
undefinednode generate.js --url https://example.com/post --platforms twitter,linkedin --stdout
undefinedWhy this vs ChatGPT?
与ChatGPT相比的优势
- Deterministic output shape: same rules every run.
- Zero prompt iteration for routine adaptation.
- Works without external AI APIs.
- Easy to automate in CI or content pipelines.
- 输出格式确定:每次运行遵循相同规则。
- 常规适配无需反复调整提示词。
- 无需依赖外部AI API即可运行。
- 易于在CI或内容流水线中实现自动化。
Before / After
前后对比
Before (single source):
text
We shipped a new onboarding flow that cut setup time and improved week-1 activation.After (platform-ready):
- Twitter: short hook, concise body, tight hashtags, direct CTA.
- LinkedIn: professional framing with practical outcome and discussion CTA.
- Reddit: conversational framing with an open-ended question.
之前(单一源内容):
text
We shipped a new onboarding flow that cut setup time and improved week-1 activation.之后(平台就绪型内容):
- Twitter:简短钩子、简洁正文、紧凑话题标签、直接行动号召(CTA)
- LinkedIn:专业表述,突出实际成果并附带讨论型行动号召
- Reddit:对话式表述,搭配开放式问题
Case study (real workflow)
案例研究(真实工作流)
A two-person SaaS team publishes one product update weekly. They previously rewrote each update manually for Twitter, LinkedIn, and Reddit (about 20-30 minutes total). With this skill they write one source update, run , and review 3 drafts in under 5 minutes before publishing.
node generate.js --file update.md --outdir posts一个两人规模的SaaS团队每周发布一次产品更新。此前他们需要手动为Twitter、LinkedIn和Reddit重写每篇更新,总共耗时约20-30分钟。使用本Skill后,他们只需撰写一份源更新内容,运行,即可在5分钟内完成3份草稿的审阅,随后即可发布。
node generate.js --file update.md --outdir posts