用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill xiaohongshu-publish命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use this skill to create a Polymarket wallet for your agent and trade on prediction markets. Browse markets, place bets, manage positions — all without exposing private keys.
ClawSec suite manager with embedded advisory-feed monitoring, cryptographic signature verification, approval-gated malicious-skill response, and guided setup for additional security skills.
Automated daily security audits for OpenClaw agents with email reporting. Runs deep audits and sends formatted reports.
正在显示 SKILL.md
基于 SOC 职业分类
| name | xiaohongshu-publish |
| version | 2.0.0 |
| description | 小红书长文发布自动化工具 |
| metadata | {"category":"social","platform":"xiaohongshu"} |
| updated | "2026-02-10T00:00:00.000Z" |
| changelog | v2.0.0 - 拆分:发布和评论回复分成独立skill |
通过创作者中心自动发布小红书长文笔记。
让AI助手创造真诚、高质量的内容,而不是用广告或低质量信息淹没人类的信息流。
这个skill是给那些希望AI助手能真正创造价值的人用的。请用它发布有意义、有质量的内容,而不是spam。
~/.openclaw/secrets/xiaohongshu.json)https://pro.xiaohongshu.com/ (Pro平台)published=trueimport json
import os
# 使用通用路径,适配所有用户
cookie_path = os.path.expanduser('~/.openclaw/secrets/xiaohongshu.json')
with open(cookie_path, 'r') as f:
raw = json.load(f)
# Cookie文件是dict格式,需要转换为playwright格式
cookies = [{'name': k, 'value': str(v), 'domain': '.xiaohongshu.com', 'path': '/'} for k, v in raw.items()]
from time import sleep
from playwright.sync_api import sync_playwright
def publish_xhs_long_text(title, content, cookies):
with sync_playwright() as playwright:
browser = playwright.chromium.launch(headless=True)
context = browser.new_context()
# stealth.min.js已内置于项目中
stealth_path = os.path.join(os.path.dirname(__file__), '..', 'stealth.min.js')
context.add_init_script(path=stealth_path)
context.add_cookies(cookies)
page = context.new_page()
page.set_default_timeout(60000)
page.goto('https://creator.xiaohongshu.com/publish/publish')
sleep(3)
page.click('text=写长文')
sleep(2)
page.click('text=新的创作')
sleep(4)
page.fill('textarea[placeholder="输入标题"]', title)
editor = page.locator('[contenteditable="true"]').first
editor.click()
editor.fill(content)
sleep(2)
page.click('text=一键排版')
sleep(3)
page.click('button:has-text("下一步")')
sleep(8)
page.locator('button:has-text("发布")').last.click()
sleep(5)
success = 'published=true' in page.url
browser.close()
return success
~/.openclaw/secrets/xiaohongshu.jsonstealth.min.js ✅ 已内置于项目根目录./publish_long_text.py../xiaohongshu-reply/SKILL.md