academic-paper-helper
Use only when the user explicitly asks for help drafting or revising an AI/ML research paper in LaTeX, including structure,…
This skill should be used when the user wants to publish an existing Markdown article to Xiaohongshu as a private longform post, keep the original wording and structure, insert inline images in order, use one-click layout, and verify the result in note manager.
Claude Code
$ npx -y skills add cnfjlhj/ai-collab-playbook --skill xhs-longform-private-publisher --agent claude-code
Codex
$ npx skills add cnfjlhj/ai-collab-playbook --skill xhs-longform-private-publisher -a codex -y
Cursor
$ npx skills add cnfjlhj/ai-collab-playbook --skill xhs-longform-private-publisher -a cursor -y
Gemini CLI
$ npx skills add cnfjlhj/ai-collab-playbook --skill xhs-longform-private-publisher -a gemini-cli -y
GitHub Copilot
$ npx skills add cnfjlhj/ai-collab-playbook --skill xhs-longform-private-publisher -a github-copilot -y
OpenCode
$ npx skills add cnfjlhj/ai-collab-playbook --skill xhs-longform-private-publisher -a opencode -y
Windsurf
$ npx skills add cnfjlhj/ai-collab-playbook --skill xhs-longform-private-publisher -a windsurf -y
name: xhs-longform-private-publisher description: This skill should be used when the user wants to publish an existing Markdown article to Xiaohongshu as a private longform post, keep the original wording and structure, insert inline images in order, use one-click layout, and verify the result in note manager.
这个 skill 面向“已有原文、已有配图、不要改写、直接发布”的场景。
它的核心目标不是重新创作小红书文案,而是把现成的 Markdown 长文尽量无损地搬到小红书长文编辑器里,按图片占位顺序插图,使用“一键排版”,并默认以“仅自己可见”的方式发布,再做一次可视化验收。
如果用户要的是“帮我改写成更像小红书的风格”“帮我做封面卡片”“帮我生成图文卡片”,优先使用 `xhs-note-creator`;这个 skill 更适合“忠实发布现有长文”。
最少需要以下输入:
常见可选项:
1. 保留原文措辞,不自行改写。 2. 保留原始结构感,包括标题层级、列表、引用和强调;不要为了兼容小红书把小标题压平成普通段落。 3. 图片必须按占位顺序插入,不允许随意重排。 4. “一键排版”在正文和图片全部插完之后再点。 5. 默认发布为“仅自己可见”,不要误发公开。 6. 结果验收以创作者平台的可见页面为准,不以控制台日志为准。 7. 小红书不稳定的不是“层级本身”,而是原始 Markdown 符号和部分 HTML 结构。默认使用 XHS 安全富文本:保留 `h2/h3/blockquote/ul/li/strong`,移除 `code/hr` 和属性。 8. 若版式、图片顺序或可见性不对,最多重做 3 次,每次都要更换假设,并保留失败截图和页面状态 JSON。
优先使用内置脚本把 Markdown 转成一个稳定的 JSON 载荷:
python scripts/build_payload.py \ <markdown_path> \ --image-dir <image_dir> \ --xhs-safe-rich \ --output /tmp/xhs_payload.json
这个脚本会做几件事:
如果用户是显式给定图片路径列表,也可以改用:
python scripts/build_payload.py <markdown_path> --images <img1> <img2> <img3>
如果手工维护了 `payload-xhs.json`,发布前必须检查:
加载 `references/xhs-longform-workflow.md` 获取最新页面选择器、按钮回退策略和验收方法。
优先使用自动化脚本:
python scripts/publish_longform.py --payload /tmp/xhs_payload.json --validate-only python scripts/publish_longform.py --payload /tmp/xhs_payload.json --publish
脚本默认行为:
核心要求:
如果直接贴 Markdown 导致页面出现 `#`、`-`、`>` 等原始符号,说明插入方式错了,应改为先转换成 XHS 安全富文本再插入。不要用“全部降级为普通段落”的方式解决,它会破坏长文可读性。
如果用脚本执行,可通过以下参数显式控制:
python scripts/publish_longform.py \ --payload /tmp/xhs_payload.json \ --visibility private \ --publish
除非用户明确要求公开,否则不要切成公开发布。
发布后回到笔记管理页,至少确认以下几点:
至少保留一张截图;有条件的话,再补一张编辑页或预览页截图。
允许最多 3 次完整重试。
每次重试都要说明新的判断依据,例如:
满足以下四点才算交付:
1. 笔记管理页能看到最新一条笔记 2. 该条笔记带有 `仅自己可见` 3. 标题前缀与原文一致,且日期/时间戳与本次发布相符 4. 已保存至少一张截图作为证据
外部检索:默认不需要;这个 skill 主要基于本地上下文和实际浏览器页面工作。
Practical AI collaboration playbook for research, writing, reading, and coding: article, prompts, agent rules, and reusable skills.
Use only when the user explicitly asks for help drafting or revising an AI/ML research paper in LaTeX, including structure,…
Use when a task is ambiguous and needs deep multi-role planning with designer, inspiration, and reviewer perspectives before…
Use when you want Claude Code CLI as a second opinion for coding tasks such as design tradeoffs, debugging, or diff review, while…
Use when you explicitly want a second local or SSH remote Codex CLI session to prototype, debug, or review code, while your…
Use when you want Gemini CLI as a second opinion for coding tasks such as prototyping, debugging, or diff review, while keeping…
Use when the user asks whether a skill exists, wants help finding or installing one, or asks how to extend agent capabilities…
Draws static SVG figures for lessons, READMEs and manuals in the AI Engineering from Scratch look: paper panel, blueprint accent,…
End-to-end workflow for creating complete JavaScript concept documentation, orchestrating all skills from research to final review
Test a learner on a single Claude Code tutorial lesson (01-10) with 10 questions, scoring answers and flagging weak spots. Use…