Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

publish-zsxq-article发表 zsxq 文章

Agent Skill

publish-zsxq-article 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,096

周安装

129

GitHub Stars

90

下载量

1,032
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:publish-zsxq-article(发表 zsxq 文章)
来源仓库:https://github.com/sugarforever/01coder-agent-skills
仓库路径:skills/publish-zsxq-article
安装命令:
npx skills add https://github.com/sugarforever/01coder-agent-skills --skill publish-zsxq-article
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sugarforever/01coder-agent-skills --skill publish-zsxq-article

简介

用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 建议确认权限范围和维护状态,注意可能触发联网、命令执行或文件读写操作。
  • publish-zsxq-article 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Publish Zsxq Article

Publish Markdown content to Zsxq (知识星球) article editor in Markdown mode, saving as draft for user review before publishing.

Prerequisites

  • Browser automation MCP (either one):

- Chrome DevTools MCP (mcp__chrome-devtools__*) - Playwright MCP (mcp__playwright__*)

  • User logged into Zsxq (知识星球)

Browser MCP Tool Mapping

This skill works with both Chrome DevTools MCP and Playwright MCP. Use whichever is available:

ActionChrome DevTools MCPPlaywright MCP
Navigatenavigate_pagebrowser_navigate
Take snapshottake_snapshotbrowser_snapshot
Take screenshottake_screenshotbrowser_take_screenshot
Click elementclickbrowser_click
Fill textfillbrowser_type
Upload fileupload_filebrowser_file_upload
Press keypress_keybrowser_press_key
Evaluate JSevaluate_scriptbrowser_console_exec

Detection: Check available tools at runtime. If mcp__chrome-devtools__navigate_page exists, use Chrome DevTools MCP. If mcp__playwright__browser_navigate exists, use Playwright MCP.

Key URLs

  • Login page: https://wx.zsxq.com/login
  • Article editor: https://wx.zsxq.com/article?groupId={groupId}
  • Default group ID: 51111858848454 (小木头的AI星球)

Editor Interface

The Zsxq article editor has two modes:

Rich Text Mode (Default)

  • Standard WYSIWYG editor with formatting toolbar
  • Click "切换到 Markdown 模式 (内测)" to switch

Markdown Mode (Preferred)

  • Uses Milkdown (ProseMirror-based WYSIWYG Markdown editor)
  • Renders Markdown as formatted content (headings, bold, links, lists)
  • Click "切换到富文本模式" to switch back

IMPORTANT: Content Insertion Method The Milkdown editor requires content to be inserted via paste event, NOT direct fill:

  • fill tool → Content treated as plain text, Markdown NOT rendered
  • Paste event → Milkdown parses Markdown and renders it properly

Key Elements in Markdown Mode

  • Title input: textbox "请在这里输入标题"
  • Content area: ProseMirror editor (.ProseMirror class)
  • Save button: "保存" (saves as draft)
  • Preview button: "预览"
  • Publish button: "发布" (DO NOT USE - always save as draft)
  • Tags: "添加标签"

Main Workflow

Step 1: Prepare Content

Read the Markdown file and extract:

  • Title (from H1 header # Title or filename)
  • Content (full Markdown body)
# Read the markdown file
cat /path/to/article.md

Step 2: Navigate to Article Editor

# Navigate to the article editor with group ID
navigate_page: https://wx.zsxq.com/article?groupId=51111858848454

If not logged in, the page will redirect to login. Prompt user to log in manually:

请先登录知识星球,登录完成后告诉我。
Login URL: https://wx.zsxq.com/login

Step 3: Switch to Markdown Mode

After page loads, check if already in Markdown mode by looking for "切换到富文本模式" text.

If in Rich Text mode (shows "切换到 Markdown 模式"):

  1. Click "切换到 Markdown 模式 (内测)"
  2. Confirm the dialog by clicking "确定"
// Check current mode
const switchBtn = document.querySelector('[class*="switch"]');
if (switchBtn && switchBtn.innerText.includes('切换到 Markdown')) {
  // Need to switch to Markdown mode
}

Step 4: Fill Title

  1. Find the title textbox with placeholder "请在这里输入标题"
  2. Click to focus
  3. Type the title
click: title textbox
fill: title textbox with article title

Step 5: Insert Markdown Content (via Paste Event)

CRITICAL: Do NOT use fill tool - it inserts plain text without Markdown rendering.

Instead, use evaluate_script to simulate a paste event:

// Simulate paste event to trigger Milkdown's Markdown parsing
() => {
  const markdownContent = `YOUR_MARKDOWN_CONTENT_HERE`;

  const editorEl = document.querySelector('.ProseMirror');
  if (!editorEl) return { error: 'Editor not found' };

  // Focus the editor
  editorEl.focus();

  // Create and dispatch paste event
  const clipboardData = new DataTransfer();
  clipboardData.setData('text/plain', markdownContent);

  const pasteEvent = new ClipboardEvent('paste', {
    bubbles: true,
    cancelable: true,
    clipboardData: clipboardData
  });

  editorEl.dispatchEvent(pasteEvent);

  return { success: true, charCount: markdownContent.length };
}

This method:

  1. Creates a ClipboardEvent with the Markdown content
  2. Dispatches it to the ProseMirror editor
  3. Milkdown's paste handler parses and renders the Markdown

Step 6: Add Tags (Optional)

  1. Click "添加标签"
  2. Enter tag text
  3. Confirm

Step 7: Save as Draft

IMPORTANT: Always save as draft, NEVER click "发布" (Publish)

  1. Click "保存" button to save as draft
  2. Verify save was successful
click: "保存" button

Step 8: Verify and Report

After saving:

  1. Check for success message or draft status
  2. Report to user:
草稿已保存。请在知识星球中预览并手动发布。
Draft saved. Please review in Zsxq and publish manually.

Complete Example Flow

User: "把 /path/to/my-article.md 发布到知识星球"

1. Read /path/to/my-article.md
   - Extract title from H1 or first line
   - Get full content

2. Navigate to https://wx.zsxq.com/article?groupId=51111858848454

3. Check if logged in
   - If not, prompt user to login

4. Switch to Markdown mode if needed
   - Click "切换到 Markdown 模式 (内测)"
   - Confirm dialog

5. Fill title
   - Click title input
   - Use `fill` tool to set title text

6. Insert content via paste event
   - Use `evaluate_script` to simulate paste event
   - This triggers Milkdown to parse and render Markdown

7. Save as draft
   - Click "保存"

8. Report success
   - "草稿已保存,请手动预览并发布"

Critical Rules

  1. NEVER click "发布" - Only save as draft using "保存"
  2. Always use Markdown mode - Switch if in Rich Text mode
  3. Check login status - Prompt user to login if needed
  4. Preserve original file - Never modify the source Markdown file
  5. Report completion - Tell user the draft is saved and needs manual review

Troubleshooting

Markdown Not Rendering (Shows Raw Syntax)

If you see raw Markdown syntax like **bold** or [link](url) instead of rendered formatting:

  • Cause: Content was inserted using fill tool instead of paste event
  • Solution: Use the evaluate_script method to simulate a paste event (see Step 5)

The Milkdown editor only parses Markdown when content is pasted, not when directly set.

Login Required

If page redirects or shows login prompt:

请先登录知识星球: https://wx.zsxq.com/login
登录完成后告诉我。

Content Too Long

Zsxq has a 100,000 character limit. If content exceeds:

文章内容超过100000字符限制,请考虑拆分文章。

Switch Mode Dialog

When switching to Markdown mode, a confirmation dialog appears:

  • Message: "确定要切换编辑器?当前内容将不会同步至新编辑器"
  • Click "确定" to confirm

Editor Not Loading

If editor elements are not visible:

  1. Wait for page to fully load
  2. Take a new snapshot
  3. If still not loading, refresh the page

Element Reference

ElementSelector/IdentifierDescription
Title inputtextbox "请在这里输入标题"Article title (max 60 chars)
Content area.ProseMirror (Milkdown editor)Markdown content (max 100000 chars)
Save button"保存"Save as draft
Preview button"预览"Preview article
Publish button"发布"DO NOT USE
Mode switch"切换到 Markdown 模式" / "切换到富文本模式"Toggle editor mode
Tags"添加标签"Add article tags
Word count"正文字数:X /100000"Character counter

Image Upload

Image upload works in both Rich Text mode and Markdown mode using the upload_file tool.

Prerequisites

  • Check image file size first: if > 500KB, compress to WebP or reduce quality
  • Use ls -la /path/to/image.png to check file size

Image Upload Workflow

Image upload works with the image button in both editor modes:

  1. Take snapshot to find the image button ref/uid

- Rich Text mode: button "image" - Markdown mode: generic description="Add image"

  1. Upload image Chrome DevTools MCP: upload_file: uid: <image button uid> filePath: /path/to/image.png Playwright MCP: browser_file_upload: ref: <image button ref> paths: ["/path/to/image.png"]
  2. Verify upload - take screenshot to confirm image appears in editor

Key Elements for Image Upload

ModeImage ButtonSelector in Snapshot
Rich Textbutton "image"button "image"
MarkdownAdd imagegeneric description="Add image"

Example Image Upload (Markdown Mode)

# 1. Take verbose snapshot to find image button
take_snapshot(verbose=true)

# 2. Find "Add image" button (e.g., uid=26_59)
# Look for: generic description="Add image"

# 3. Upload image directly to the button
upload_file:
  uid: 26_59  # (example uid for "Add image" button)
  filePath: /Users/user/Downloads/image.png

# 4. Verify with screenshot
take_screenshot

Example Image Upload (Rich Text Mode)

# 1. Take snapshot to find image button
take_snapshot

# 2. Find image button (e.g., uid=12_7)
# Look for: button "image"

# 3. Upload image to the button
upload_file:
  uid: 12_7  # (example uid for image button)
  filePath: /Users/user/Downloads/image.png

# 4. Verify with screenshot
take_screenshot

Image Size Limits

  • Maximum recommended: 500KB per image
  • For larger images, compress first using tools like ImageMagick or sips: # Check size ls -la /path/to/image.png # Compress if needed (macOS) sips -s format jpeg -s formatOptions 80 /path/to/image.png --out /path/to/image_compressed.jpg

Troubleshooting Image Upload

Image not appearing after upload:

  • Take a fresh verbose snapshot to get correct uid for image button
  • Verify the image file exists and is accessible
  • Check the word count indicator - it should increase after successful upload

Finding the correct button uid:

  • Use take_snapshot(verbose=true) to see element descriptions
  • In Markdown mode, look for generic description="Add image"
  • In Rich Text mode, look for button "image"

Technical Details

The Zsxq article editor uses two different editors:

Rich Text Mode (Quill)

  • Quill: A modern WYSIWYG editor
  • Image upload: Works via upload_file tool to button "image"
  • Toolbar: Standard formatting buttons including image

Markdown Mode (Milkdown)

  • Milkdown: A plugin-driven WYSIWYG markdown editor
  • ProseMirror: The underlying rich-text editing framework
  • Paste handling: Milkdown intercepts paste events and parses Markdown content
  • Image upload: Works via upload_file tool to generic description="Add image"

This is why the user's workflow via md.bytenote.net works - pasting from any source triggers Milkdown's Markdown parser, resulting in properly rendered content.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.21%
按下载量换算384

Claude

31.33%
按下载量换算323

Cursor

17.66%
按下载量换算182

Gemini CLI

9.96%
按下载量换算103

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills