XiaohongshuSkills: Instructions file for Codex

AGENTS.md

XiaohongshuSkills AGENTS.md is an instructions file for Codex, OpenCode from white0dew/XiaohongshuSkills. It costs 691 tokens per session, scanned A, original, MIT.

Repository instructions for a Python package that automates publishing content to Xiaohongshu, a Chinese social-media platform. They describe its files, commands, coding style, and browser-based publishing setup.

In plain words
What is it for?
Setting up the project, launching its browser, checking login status, publishing posts, and maintaining the Python scripts and documentation.
Why use it?
They give an agent the project-specific rules needed to change the package without overlooking documentation, configuration, or the publishing workflow.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is white0dew/XiaohongshuSkills's own configuration. It tells Codex and OpenCode how to work on XiaohongshuSkills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything XiaohongshuSkills configures →

About the project

RedBookSkills is a command-line automation tool for Xiaohongshu, also known as Xiaohongshu or RED, that publishes content and retrieves or interacts with platform data through Chrome DevTools Protocol. It is for automating posts, searches, account management, comments, reactions, and related data collection on Windows with Chrome. The catalogue skill and instruction provide an agent workflow for operating this tool.

white0dew/XiaohongshuSkills · 3,401 stars · on GitHub · blog.aistar.cool

Reuse

Borrowing it

Nothing to install: this file belongs to white0dew/XiaohongshuSkills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/white0dew/XiaohongshuSkills/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/white0dew/XiaohongshuSkills

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for XiaohongshuSkills AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/white0dew/xiaohongshuskills/agents-md.svg)](https://agentmods.dev/instructions/white0dew/xiaohongshuskills/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/white0dew/xiaohongshuskills/agents-md"><img src="https://agentmods.dev/badge/instructions/white0dew/xiaohongshuskills/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 691 This file is loaded in full into every session.
When invoked 691 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00691 $0.00691
Opus 5 $0.00345 $0.00345
Sonnet 5 $0.00138 $0.00138
Haiku 4.5 $0.00069 $0.00069

Measured 7d ago against content hash 8c18035e9dbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

XiaohongshuSkills AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 42 lines

What it actually says

仓库指南

项目结构与模块组织

本仓库是一个用于小红书自动化的 Python Skill 包。

  • scripts/ 包含全部可执行逻辑:publish_pipeline.py(主流程)、cdp_publish.py(CDP 自动化与账号命令)、chrome_launcher.py(Chrome 生命周期管理)以及辅助模块(image_downloader.pyaccount_manager.pyrun_lock.py)。
  • config/accounts.json.example 是账号与 Profile 的配置模板。
  • docs/ 存放集成说明(例如 docs/claude-code-integration.md)。
  • images/publish_temp/ 是临时素材目录占位。
  • 根目录关键文件:README.mdSKILL.mdrequirements.txt

文件修改 /工作流

  • 当新增或者修改功能之后,注意同步修改 SKILL.md 以及 README.md
  • 新增功能时,建议在 plan.md 中先规划好,再实现,然后优化其中的内容

构建、测试与开发命令

  • python -m venv .venv && source .venv/bin/activate:创建并激活本地虚拟环境。
  • pip install -r requirements.txt:安装运行依赖。
  • python scripts/chrome_launcher.py:启动启用 CDP 的 Chrome(有界面)。
  • python scripts/cdp_publish.py check-login:检查当前登录状态。
  • python scripts/publish_pipeline.py --headless --title "T" --content "C" --image-urls "https://example.com/a.jpg":执行端到端发布流程。
  • python scripts/chrome_launcher.py --kill:关闭测试浏览器。

代码风格与命名规范

  • 遵循 PEP 8,使用 4 空格缩进,并为模块提供清晰 docstring。
  • 函数/变量使用 snake_case,类使用 PascalCase,并显式添加类型注解(如 list[str]str | None)。
  • CLI 参数优先使用长参数名,argparse 说明保持清晰、可读。
  • 日志输出沿用 [module] 前缀风格,便于排查。
  • 考虑到操作随机值,模拟人机交互,避免被系统检测

测试指南

当前仓库尚未配置自动化测试套件。提交 PR 前请完成冒烟验证:

  • 启动或重启浏览器:python scripts/chrome_launcher.py --restart
  • 验证登录:python scripts/cdp_publish.py check-login
  • 先在测试账号执行非破坏流程(不加 --auto-publish)。 若新增自动化测试,请放在 tests/ 目录下,文件命名为 test_*.py,并补充运行说明。

安全与配置建议

  • 禁止提交真实 Cookie、账号令牌或个人 Chrome Profile 路径。
  • 本地账号配置请基于 config/accounts.json.example 复制为未跟踪的 config/accounts.json 后再使用。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 42 lines · 691 tokens per session scan A 8c18035e9dbe

Subscribe to this mod's changes

XiaohongshuSkills AGENTS.md is an instructions file published in the GitHub repository white0dew/XiaohongshuSkills (3,401 stars, last pushed yesterday), licensed MIT. It adds 691 tokens to every session, about $0.0035 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens