SkillsGrove
SkillsGrove/Short video & creators/Illuminated2020/DeepAgents-AutoGLM/xiaohongshu-posting

xiaohongshu-posting

Installation

$npx skills add https://github.com/Illuminated2020/DeepAgents-AutoGLM --skill xiaohongshu-posting
$git clone --depth 1 https://github.com/Illuminated2020/DeepAgents-AutoGLM.git /tmp/DeepAgents-AutoGLM && mkdir -p ~/.claude/skills && cp -r /tmp/DeepAgents-AutoGLM/examples/skills/xiaohongshu-posting ~/.claude/skills/xiaohongshu-posting
Please install this Agent Skill for me: https://github.com/Illuminated2020/DeepAgents-AutoGLM/tree/160c0e0c24eb04035ec061834a1f92219914dd21/examples/skills/xiaohongshu-posting — read its SKILL.md and scripts first, and only install it into my skills folder once you have confirmed it is safe.

Summary

Original description · Apache-2.0小红书自动发帖工具包,通过AutoGLM控制手机自动化发布小红书笔记。当用户请求在小红书发布内容、创建帖子或自动化发帖流程时使用此技能。提供两种发帖模式(普通笔记和长文)的分步指导,确保内容格式正确和UI导航准确。
The SKILL.md below is reproduced from Illuminated2020/DeepAgents-AutoGLM (commit 160c0e0) under the Apache-2.0 license. The text is unchanged; only the file header metadata is omitted, images are shown as links, and very long files are truncated. Copyright owner or entity authorized by. License: LICENSE. Only the instructions file is shown; see the original repository for any scripts.

小红书自动发帖

概述

此技能通过AutoGLM的手机控制能力实现小红书APP的自动发帖功能。提供两种发帖类型的结构化工作流程:普通笔记(写想法)和长文笔记(写长文)。从内容创作到最终发布,全程指导AutoGLM完成发帖流程。

工作流程决策树

在开始任何发帖流程之前,首先与用户确认帖子类型:

  1. 普通笔记(写想法) - 以卡片样式展示的内容

    • "写想法"预览内容必须简洁(十字以内)
    • "写想法"内容会在首页大图展示给其他用户
    • 最终发布时需要输入完整的正文内容
    • 适合快速分享想法、更新或内容
    • 使用卡片模板进行视觉呈现
  2. 长文笔记(写长文) - 转换为图片的详细内容

    • 内容必须充实(至少100字)
    • 文字转换为图片以提供更好的阅读体验
    • 包含自动排版和布局选项
    • 需要添加与图片内容不同的正文摘要

决策流程:

  • 询问用户:"您想发布哪种类型的笔记?普通笔记(简短内容)还是长文(详细内容)?"
  • 根据回答,执行下面相应的工作流程

工作流程一:发布普通笔记

当用户想要发布短内容作为普通笔记时使用此流程。

步骤1:打开小红书并进入发布界面

  1. 确保手机上小红书APP已打开
  2. 点击屏幕底部中央的红色加号按钮
  3. 从选项中选择"写文字"

步骤2:输入"写想法"预览内容

  1. 定位并点击"写想法"输入框
  2. 输入简洁的预览内容
    • 关键约束:内容必须简洁,十字以内
    • 重要说明:这个内容会在首页大图展示给其他用户
    • 应该提炼核心观点或吸引眼球的短句
    • 这不是最终的正文内容,只是预览
    • 完整的正文内容将在后续步骤中输入

步骤3:选择卡片风格

  1. 输入预览内容后,点击"下一步"
  2. 浏览可用的卡片样式模板
  3. 选择卡片风格
    • 可以询问用户:想要哪一种卡片风格
    • 考虑:配色方案、字体样式、布局设计
    • 建议选择可读性好、与内容调性匹配的卡片
  4. 选择完成后再次点击"下一步"

步骤4:添加标题、输入正文并发布

  1. 点击"添加标题"

  2. 输入一个总结内容的吸引人标题

    • 保持简洁且引人注目
    • 使用相关关键词以提高可发现性
  3. 重新输入完整的正文内容

    • 关键说明:正文内容默认显示的是"写想法"栏的内容(只有十字)
    • 必须操作:使用真正需要发布的完整内容覆盖当前的正文内容
    • 定位正文输入框(通常在标题下方)
    • 删除或覆盖默认的短内容
    • 输入完整的、用户想要发布的正文内容
    • 正文可以比"写想法"预览内容更详细、更长
  4. 完成标题和正文后,点击"发布笔记"

  5. 等待确认帖子已成功发布

工作流程二:发布长文笔记

当用户想要发布详细、充实的内容作为长文时使用此流程。

步骤1:打开小红书并进入发布界面

  1. 确保手机上小红书APP已打开
  2. 点击屏幕底部中央的红色加号按钮
  3. 从选项中选择"写文字"

步骤2:进入长文编辑器

  1. 定位并点击"写长文"按钮
  2. 这将打开长文编辑界面

步骤3:输入标题和内容

重要提示:标题和正文是两个独立的输入框,不要将正文内容接着标题输入!

  1. 在标题栏输入文章标题

    • 标题应具有描述性和吸引力
    • 反映文章的主要话题
    • 输入完标题后,不要继续输入正文内容
  2. 在标题下方找到正文输入框并输入主要内容

    • 关键识别:正文输入框显示"粘贴到这里或输入文字,内容将自动保存"
    • 操作方式:点击该占位符文字偏下方的位置(而非直接点击文字),确保光标在正文区域
    • 点击位置说明:点击占位符文字下方约50-100像素的位置,避免误触到标题输入框
    • 关键约束:内容必须至少100字
    • 此内容将被转换为图片以提供更好的阅读体验
    • 内容应该详细且全面
    • 使用适当的格式(段落、换行)提高可读性

步骤4:应用自动排版

  1. 点击右上角的"一键排版"
  2. 等待系统处理并生成格式化的布局选项
  3. 浏览可用的排版模板
  4. 选择一个能增强内容可读性的美观布局
  5. 选择布局后点击"下一步"

步骤5:添加正文摘要并发布

  1. 定位"添加正文"输入框

  2. 输入摘要或补充文字

    • 关键约束:此文字不能与图片内容重复
    • 图片内容更详细;此摘要提供背景或重点
    • 用户通常更倾向于阅读图片中的内容
    • 使用此空间:预告内容或提供额外背景
    • 话题标签:仅在用户明确要求时添加(如用户指定了需要添加的标签)
  3. 完成摘要后,点击"发布笔记"

  4. 等待确认文章已成功发布

AutoGLM操作关键指南

使用AutoGLM执行这些工作流程时,遵循以下原则:

内容约束(关键)

  • 普通笔记"写想法"预览:十字以内 - 严格执行
  • 普通笔记正文:在最终发布界面输入完整内容,覆盖默认的"写想法"短内容
  • 长文笔记:至少100字 - 执行前验证
  • 内容分离:图片内容和正文摘要必须不同且不重复

UI导航提示

  • 在继续操作前,始终等待UI元素完全加载
  • 寻找特定的按钮文字匹配:"写文字"、"写想法"、"写长文"、"下一步"、"添加标题"、"发布笔记"
  • 红色加号按钮通常位于底部导航栏中央
  • 如果导航失败,重试或请用户手动验证当前屏幕
  • 长文输入特别注意:
    • 标题输入框和正文输入框是两个独立的UI元素
    • 输入标题后,必须定位到显示"粘贴到这里或输入文字,内容将自动保存"的正文输入框
    • 点击位置:点击该占位符文字偏下方的位置(下方约50-100像素),而非直接点击文字本身
    • 这样可以确保点击的是正文输入区域,避免误触标题输入框
    • 不要在标题输入框中继续输入正文内容

错误处理

  • 如果内容超出约束,暂停并要求用户修改
  • 如果找不到UI元素,向用户描述当前屏幕以获取指导
  • 如果发布失败,捕获错误信息并报告给用户

验证步骤

  • 每个主要步骤后,验证操作已成功完成
  • 最终发布前,可选择向用户确认:"内容已准备就绪,确认发布吗?"
  • 发布后,确认成功消息出现

使用示例

示例1:普通笔记

用户请求:"帮我在小红书发布一条笔记:今天天气真好,适合出去走走。心情也跟着变好了!"

执行流程:

  1. 识别为普通笔记
  2. 打开小红书 → 红色加号 → "写文字"
  3. 在"写想法"中输入简洁预览(十字以内):"今天天气真好"
  4. 选择卡片风格(可询问用户喜欢哪种)→ 下一步
  5. 添加标题:"好天气好心情"
  6. 重新输入完整正文:"今天天气真好,适合出去走走。心情也跟着变好了!"(覆盖默认的"今天天气真好")
  7. 发布笔记

示例2:长文笔记

用户请求:"发布一篇长文分享我的旅行经历,标题是《三天两夜杭州游记》,内容包括景点推荐、美食打卡、住宿体验等,大概500字。添加'杭州旅游'和'旅行攻略'标签。"

执行流程:

  1. 识别为长文笔记(内容充实)
  2. 打开小红书 → 红色加号 → "写文字" → "写长文"
  3. 输入标题:"三天两夜杭州游记"
  4. 输入详细的500字旅行内容
  5. 应用"一键排版"并选择布局
  6. 添加正文摘要(与图片内容不同):"杭州三日游全攻略!景点+美食+住宿一篇搞定,建议收藏!#杭州旅游 #旅行攻略"(包含用户要求的标签)
  7. 发布笔记

常见问题排查

问题:普通笔记"写想法"预览内容过长

解决方案:

  • "写想法"预览必须十字以内
  • 提醒用户这只是首页展示的预览内容
  • 完整内容将在后续步骤的正文中输入
  • 如果用户想要发布长内容,引导其精简预览,完整内容稍后输入

问题:普通笔记正文只显示了"写想法"的短内容

解决方案:

  • 这是因为忘记在最终发布界面重新输入完整正文
  • 关键步骤:在添加标题后,必须定位正文输入框
  • 覆盖默认显示的"写想法"短内容
  • 输入用户真正想要发布的完整内容

问题:长文内容过短

解决方案:要求用户将内容扩充至至少100字,或切换为普通笔记格式

问题:找不到UI元素

解决方案:验证小红书APP版本是否最新;不同版本UI元素名称可能有差异

问题:正文摘要与图片内容重复

解决方案:提醒用户正文应该补充而非重复图片内容。建议:添加亮点、行动号召或额外背景信息。如果用户明确要求,可以添加话题标签

注意事项

  1. 内容质量:确保用户提供的内容符合小红书社区规范
  2. 图片vs文字:长文中,图片展示的文字应该更详细具体,正文摘要起辅助作用
  3. 标题优化:标题应包含关键词,提高内容被发现的概率
  4. 话题标签:仅在用户明确要求添加标签时才添加。不要主动建议或添加话题标签(#)
  5. 发布时机:可建议用户在合适的时间发布以获得更好的互动效果
View full license text (Apache-2.0)
                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to the Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright 2025 Illuminated2020

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
View NOTICE
DeepAgents-AutoGLM
Copyright 2025 Illuminated2020

This product includes software developed by third parties:

================================================================================

Open-AutoGLM
https://github.com/zai-org/Open-AutoGLM
Copyright 2025 Zhipu AI
Licensed under the Apache License, Version 2.0

================================================================================

deepagents
https://github.com/langchain-ai/deepagents
Copyright 2025 Harrison Chase
Licensed under the MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

================================================================================