/SKILL.md
小红书内容发布技能,提供检查登录状态和发布图文内容的功能。不依赖MCP,使用内置JavaScript脚本执行小红书相关操作。
npx skillsauth add 1uokun/xiaohongshu-skill xiaohongshu-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
4 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
本技能提供了完整的小红书内容发布功能,包括登录状态检查和图文内容发布,使用JavaScript内置脚本实现,无需依赖MCP服务器。
使用Playwright自动化浏览器检查小红书登录状态,通过检测页面DOM元素判断用户是否已登录。
支持发布包含标题、正文、图片和话题标签的图文内容到小红书平台。
Requirements: 执行前必须检查node_modules依赖是否安装完成
// 执行检查登录状态脚本
node scripts/check_login_status.js
Requirements: 执行前必须检查登录状态,确定小红书已经登录
// 执行内容发布脚本
node scripts/publish_content.js --title "标题" --content "正文内容" --images "图片路径1,图片路径2" --tags "标签1,标签2"
包含可执行的JavaScript脚本文件:
check_login_status.js - 检查小红书登录状态publish_content.js - 发布图文内容到小红书utils.js - 通用工具函数包含相关文档和参考资料:
api_reference.md - 小红书页面元素和操作说明usage_examples.md - 使用示例和最佳实践包含可能用到的资源文件:
example_images/ - 示例图片templates/ - 内容模板本技能使用以下技术栈:
npm install playwright
npx playwright install chromium
确保有可用的浏览器环境
准备要发布的内容和图片
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.