zsxq-smart-publish

Publish and manage content on 知识星球 (zsxq.com). Supports talk posts, Q&A, long articles, file sharing, digest/bookmark, homework tasks, and tag management. Use when publishing content to 知识星球, creating/editing posts, uploading files/images/audio, managing digests, batch publishing, or formatting content for 知识星球.

33 stars

Best use case

zsxq-smart-publish is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Publish and manage content on 知识星球 (zsxq.com). Supports talk posts, Q&A, long articles, file sharing, digest/bookmark, homework tasks, and tag management. Use when publishing content to 知识星球, creating/editing posts, uploading files/images/audio, managing digests, batch publishing, or formatting content for 知识星球.

Teams using zsxq-smart-publish should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/zsxq-smart-publish/SKILL.md --create-dirs "https://raw.githubusercontent.com/aAAaqwq/AGI-Super-Team/main/skills/zsxq-smart-publish/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/zsxq-smart-publish/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How zsxq-smart-publish Compares

Feature / Agentzsxq-smart-publishStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Publish and manage content on 知识星球 (zsxq.com). Supports talk posts, Q&A, long articles, file sharing, digest/bookmark, homework tasks, and tag management. Use when publishing content to 知识星球, creating/editing posts, uploading files/images/audio, managing digests, batch publishing, or formatting content for 知识星球.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 知识星球智能发布

Publish content to 知识星球 via API or browser automation.

## Authentication

Requires a valid `zsxq_access_token` cookie. Get it by:

1. Open `https://wx.zsxq.com` in browser
2. Login via WeChat QR scan
3. Open DevTools → Application → Cookies → find `zsxq_access_token`
4. Set env var: `export ZSXQ_ACCESS_TOKEN="your_token"`
   Or store in config file (see `references/config.md`)

Token expires. Re-scan QR when API returns 401.

## Content Types

| Type | topic_type | API field | Char limit | Description |
|------|-----------|-----------|------------|-------------|
| 话题 (Talk) | `talk` | `type` | 50,000 chars | General post, text+images+files |
| 问答 (Q&A) | `q&a` | `type` | 50,000 chars | Question format, star-owner can answer |
| 作业 (Task) | `task` | `type` | 50,000 chars | Homework/assignment with deadline |
| 长文章 (Article) | — | separate endpoint | 100,000 chars | Web-only, rich editor, Markdown support |

**长文章 is web-only**: Publish via browser (`scripts/publish_article.py`), not the topics API.

## Quick Start

### 1. Publish a Talk Post

```bash
python3 scripts/publish.py --type talk \
  --group-id GROUP_ID \
  --text "Hello from AI agent!" \
  --tags "AI,自动化" \
  --image /path/to/image.png
```

### 2. Publish a Q&A

```bash
python3 scripts/publish.py --type qa \
  --group-id GROUP_ID \
  --text "如何使用API批量发帖?" \
  --tags "API,教程"
```

### 3. Publish a Task

```bash
python3 scripts/publish.py --type task \
  --group-id GROUP_ID \
  --text "完成本周阅读任务\n\n阅读《AI未来》第3-5章" \
  --deadline "2026-03-25 23:59"
```

### 4. Publish Long Article (browser required)

```bash
python3 scripts/publish_article.py \
  --group-url "https://wx.zsxq.com/group/GROUP_ID" \
  --title "AI Agent开发指南" \
  --text-file article.md \
  --image /path/to/cover.png
```

### 5. Upload Files/Images

```bash
python3 scripts/upload.py \
  --group-id GROUP_ID \
  --file /path/to/report.pdf \
  --text "本周研报"
```

## Publishing SOP

### Pre-publish Checklist

1. Check `ZSXQ_ACCESS_TOKEN` is valid: `python3 scripts/publish.py --check-auth`
2. Confirm `GROUP_ID` (get from URL: `wx.zsxq.com/group/{GROUP_ID}`)
3. Prepare content within character limits
4. Add relevant tags (max 3 tags per post)
5. Attach images if needed (JPG/PNG, recommended ≤ 5MB each, max 9 images)

### Post-publish

1. Verify post appears in group
2. Set as digest/精华 if needed (star-owner only, via API or browser)
3. Add to appropriate topic category

## API Reference

Base URL: `https://api.zsxq.com`

### Create Topic (Talk/Q&A/Task)

```
POST /v2/groups/{group_id}/topics
Content-Type: application/json
Cookie: zsxq_access_token={token}

{
  "req_data": {
    "topic": {
      "type": "talk|q&a|task",
      "title": "optional title",
      "text": "post content (supports limited Markdown)",
      "image_count": 1,
      "images": [{"file_size": 12345, "width": 800, "height": 600}],
      "file": {"file_key": "xxx"} // for file attachments
    },
    "task": {  // only for type=task
      "owner_user_id": 0,
      "dead_line": "2026-03-25 23:59"
    }
  }
}
```

### Upload Image

```
POST /v2/files/{group_id}/images
Content-Type: multipart/form-data
Cookie: zsxq_access_token={token}

file: (binary)
```

Returns: `{"resp_data": {"upload_key": "xxx", "width": 800, "height": 600}}`

### Upload File

```
POST /v2/files/{group_id}/files
Content-Type: multipart/form-data
Cookie: zsxq_access_token={token}

file: (binary)
```

Returns: `{"resp_data": {"file": {"file_key": "xxx", "name": "file.pdf"}}}`

### Get Topics List

```
GET /v1.10/groups/{group_id}/topics?scope=all&count=20
Cookie: zsxq_access_token={token}
```

`scope` options: `all|digests|questions|tasks`

### Set as Digest (精华)

```
POST /v2/topics/{topic_id}/digest
Cookie: zsxq_access_token={token}
```

### Get Group List (user's groups)

```
GET /v2/groups
Cookie: zsxq_access_token={token}
```

## Content Formatting

### Supported Markdown

- `**bold**`, `*italic*`
- `# heading` (long articles only)
- `` `code` ``, code blocks with ```
- Ordered/unordered lists
- Links: `[text](url)` (long articles only)
- Tables (long articles only)

### NOT Supported

- Image embedding via Markdown (use API upload)
- HTML tags
- Math formulas
- Mermaid diagrams

### Image Specs

- Formats: JPG, PNG, GIF
- Recommended size: ≤ 5MB per image
- Max images per post: 9
- Long articles: insert via editor, no limit on count

### File Specs

- Max file size: 200MB
- Supported: PDF, DOCX, XLSX, PPTX, ZIP, MP3, MP4
- Audio: MP3 recommended, max 30min

## Browser Publishing (for Long Articles)

Long articles cannot be created via API. Use `scripts/publish_article.py`:

1. Navigates to group page
2. Clicks "长文章" button
3. Fills title and content
4. Uploads cover image
5. Publishes

Requires Playwright: `pip install playwright && playwright install chromium`

## Templates

See `assets/` for content templates:
- `assets/talk-template.md` — Standard talk post
- `assets/qa-template.md` — Question format
- `assets/task-template.md` — Homework/assignment
- `assets/article-template.md` — Long article structure

## Error Handling

| HTTP Code | Meaning | Action |
|-----------|---------|--------|
| 401 | Token expired | Re-login, get new token |
| 403 | No permission | Check if user is group member/owner |
| 429 | Rate limited | Wait, retry after cooldown |
| 500 | Server error | Retry with exponential backoff |

## Reference

- Full API details: `references/api.md`
- Config guide: `references/config.md`

Related Skills

ziliu-publisher

33
from aAAaqwq/AGI-Super-Team

字流(Ziliu) - AI驱动的多平台内容分发工具。用于一次创作、智能适配排版、一键分发到16+平台(公众号/知乎/小红书/B站/抖音/微博/X等)。当用户需要多平台发布、内容排版、格式适配时使用。触发词:字流、ziliu、多平台发布、一键分发、内容分发、排版发布。

xhs-smart-publisher

33
from aAAaqwq/AGI-Super-Team

小红书智能发布:内容适配→排版→Playwright自动发布/存草稿。覆盖标题公式(≤20字+emoji+数字)、正文排版(空行分段+emoji点缀)、标签策略(热门+长尾3-8个)、封面规格(3:4竖版1080×1440)、CES算法优化。支持图文笔记和轮播。触发:'发小红书'、'小红书发布'、'xhs publish'、'红书笔记'、'小红书草稿'。

xhs-publisher

33
from aAAaqwq/AGI-Super-Team

将 Markdown 文章自动发布到小红书(XHS)草稿箱。支持多图上传(封面+素材)。

weixin-channels-publish

33
from aAAaqwq/AGI-Super-Team

微信视频号助手网页版视频发布全流程。通过浏览器自动化操控 channels.weixin.qq.com 完成登录检测、扫码登录、上传视频、填写描述和短标题、截图确认后发布或保存草稿。触发场景:用户需要发布视频到视频号、视频号发布、视频号上传视频、发视频号。

media-auto-publisher

33
from aAAaqwq/AGI-Super-Team

> 多平台自动发布——内容一键分发到多个社交媒体平台

juejin-smart-publish

33
from aAAaqwq/AGI-Super-Team

掘金技术社区智能发布:Markdown编辑器全功能支持。覆盖标题(15-35字)、分类(必选)、标签(1-5个)、封面上传、摘要填写、GFM排版。Playwright自动化+API双通道发布。触发:发掘金、掘金发布、juejin publish、掘金文章、技术博客发布。

juejin-publisher-custom

33
from aAAaqwq/AGI-Super-Team

> 掘金自定义发布——掘金平台内容创作与发布

gzh-publisher

33
from aAAaqwq/AGI-Super-Team

微信公众号统一发布技能:通过 OpenClaw Browser 自动化完成登录、写文章、一键排版、封面、存草稿。

douyin-smart-publish

33
from aAAaqwq/AGI-Super-Team

抖音创作者平台智能发布(视频/图文):内容适配→上传→填描述/#话题→封面→存草稿→截图回传确认。默认只存草稿;只有在 Daniel 明确确认后才允许点击发布。覆盖标题(≤55字)、描述(建议≤200字)、#话题标签(3-5个)、封面设置、定时发布、可见性、合拍/下载开关。Playwright 自动化。触发:'发抖音'、'抖音发布'、'douyin publish'、'抖音图文'、'抖音视频'、'发布短视频'。

douyin-publisher

33
from aAAaqwq/AGI-Super-Team

抖音图文/视频发布(OpenClaw Browser 自动化):登录检测→内容校验→上传页导航→填标题/正文→上传封面+素材→暂存离开。

wemp-operator

33
from aAAaqwq/AGI-Super-Team

> 微信公众号全功能运营——草稿/发布/评论/用户/素材/群发/统计/菜单/二维码 API 封装

Content & Documentation

zoom-automation

33
from aAAaqwq/AGI-Super-Team

Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.