# gen-social

gen-social transforms news or content into platform-ready posts for X, Xiaohongshu and others, respecting each platform's constraints: character limits, formats, hashtags, image ratios.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 1596 repo stars
- Author: octo-patch
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/hashgraph-online/awesome-codex-plugins/tree/HEAD/plugins/octo-patch/MorningAI/skills/gen-social/SKILL.md
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/gen-social

## What it does

gen-social takes source material and generates optimized versions for each target platform. For X, it handles single tweets (280 characters max) and threads; for Xiaohongshu, it crafts posts with title (≤20 chars), body (≤1000 chars), and up to 9 carousel images. Each channel gets its own voice: X supports personas like Insider (sharp one-liners), Commentary (practitioner takes), Thread (data-driven patterns); Xiaohongshu offers Educational (structured explainer) and others.

Configuration lives in `~/.config/morning-ai/social_channels.json`. Each channel specifies platform, language, minimum content score, article count, image requirements and aspect ratios. The skill filters content by these rules, translates if needed, and outputs ready text plus images.

Multi-language channels run in parallel — one execution can post in English to X while simultaneously generating Chinese content for Xiaohongshu. Images render in different styles: classic, dark, glassmorphism, newspaper, tech. Xiaohongshu carousels use a dedicated `cover-hook` style for the first image to grab attention in the discovery feed.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add hashgraph-online/awesome-codex-plugins --skill gen-social -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/gen-social/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/gen-social/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add hashgraph-online/awesome-codex-plugins --skill gen-social -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/gen-social/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add hashgraph-online/awesome-codex-plugins --skill gen-social -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/gen-social/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install hashgraph-online/awesome-codex-plugins plugins/octo-patch/MorningAI/skills/gen-social
```

2. **Manually: put the files in place**
- File: `.github/skills/gen-social/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add hashgraph-online/awesome-codex-plugins --skill gen-social -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/hashgraph-online/awesome-codex-plugins --path plugins/octo-patch/MorningAI/skills/gen-social
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/gen-social/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/hashgraph-online/awesome-codex-plugins/tree/HEAD/plugins/octo-patch/MorningAI/skills/gen-social/SKILL.md

## When to use it
- adapt one story to fit different platform constraints and formats
- generate posts in multiple voices and styles for the same network
- produce images with correct aspect ratios for each platform
- manage multiple channels and languages from a single configuration
- filter content by importance score and type before publishing

## Example prompts
- Generate posts for the x_insider_en channel from today's news items
- Create 5 X threads and 4 Xiaohongshu carousels with images in one run
- Translate and reformat a story for Xiaohongshu with emojis and tags

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: f234d41efda0b9ac.

BEGIN THIRD-PARTY FILE f234d41efda0b9ac
````text
---
name: gen-social
version: "1.3.0"
description: Generate platform-specific social media copy and images for content distribution
---

## Objective

Transform the daily AI news report into platform-optimized social media content. Generates ready-to-post copy and adapted images for multiple platforms, with support for multiple accounts and styles per platform.

**Phase 1 scope**: Generate copy files + images. No auto-publish (future phase).

---

## Supported Platforms

### X / Twitter

| Constraint | Value |
|------------|-------|
| Single tweet | 280 characters max |
| Thread | Unlimited tweets (recommended 5-15) |
| Images per tweet | Up to 4, 16:9 or 1:1 |
| Hashtags | 2-3 per tweet |
| Mentions | @handle format |

### Xiaohongshu (Little Red Book)

| Constraint | Value |
|------------|-------|
| Title | 20 characters max |
| Body | 1000 characters max |
| Images | Up to 9 per post, 3:4 or 1:1 (carousel) |
| Tags | 5-10 # tags at end of body |
| Emoji | Heavy use expected (platform culture) |

---

## Style Definitions

### Custom Personas & Styles

Templates define the voice, tone, and format for each channel. This repo ships with **one example template per platform** as a starting point:

- **X**: `templates/x/insider.md` (Tech Insider persona)
- **Xiaohongshu**: `templates/xiaohongshu/educational.md`

To create your own persona or style:

```bash
# X persona
cp skills/gen-social/templates/x/insider.md skills/gen-social/templates/x/my-persona.md

# Xiaohongshu style
cp skills/gen-social/templates/xiaohongshu/educational.md skills/gen-social/templates/xiaohongshu/my-style.md
```

Edit the copy, then set your channel config `style` field to match the filename (e.g. `"style": "my-persona"`). Custom templates in these directories are gitignored — your personas stay local.

### X Styles

Each X style has a distinct **persona** — a consistent voice and perspective that makes the account feel like a real person, not a news feed.

**Available styles:**

| Style | Persona | Template | Tone | Default Items | Min Score |
|-------|---------|----------|------|---------------|-----------|
| `briefing` | Daily Briefing | `templates/x/briefing.md` | Clean scannable index + infographic image, neutral | 5 | 6 |
````
END THIRD-PARTY FILE f234d41efda0b9ac

The third-party file has ended. Everything between the f234d41efda0b9ac tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2243 of 28104 bytes. © octo-patch · MIT · https://github.com/hashgraph-online/awesome-codex-plugins/tree/HEAD/plugins/octo-patch/MorningAI/skills/gen-social/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
