Agent skill

Algorithm Mechanism

by vivy-yi in vivy-yi/xiaohongshu-skills

A skill your agent uses when optimizing content for Xiaohongshu discovery, understanding why posts succeed or fail in reach, trying to increase content exposure, or troubleshooting low view counts

No licenceAuto-check passed

Install Algorithm Mechanism

skills CLI
$ npx skills add vivy-yi/xiaohongshu-skills --skill algorithm-mechanism -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install vivy-yi/xiaohongshu-skills algorithm-mechanism --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/vivy-yi/xiaohongshu-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'skills/05-平台规则/algorithm-mechanism' .claude/skills/algorithm-mechanism && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
algorithm-mechanism
GitHub stars
474
Token cost
~1.8k tokens
SKILL.md length
773 words
Files
1
Skills in repo
123
Repo updated
First seen
Licence
None found

At a glance

A skill your agent uses when optimizing content for Xiaohongshu discovery, understanding why posts succeed or fail in reach, trying to increase content exposure, or troubleshooting low view counts

  • Works in 5 steps: Understand the 3-Stage Distribution → Optimize for Initial Engagement → Optimize Content for Algorithm Signals → …
  • Optimizing content for Xiaohongshu discovery
  • SKILL.md covers Overview, When to Use, Core Pattern and Quick Reference, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Algorithm Mechanism is an agent skill from vivy-yi/xiaohongshu-skills. Use when optimizing content for Xiaohongshu discovery, understanding why posts succeed or fail in reach, trying to increase content exposure, or troubleshooting low view counts

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Xiaohongshu. The repository describes itself as: 139个完整的小红书运营技能 - Claude Code 技能插件系统。覆盖内容创作、账号运营、互动运营、数据分析、电商转化、平台规则、工具生态、营销推广、增长策略9大分类。

When your agent uses it

  • Optimizing content for Xiaohongshu discovery
  • Understanding why posts succeed
  • Trying to increase content exposure
  • Troubleshooting low view counts

Example prompts

  • “/algorithm-mechanism”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Understand the 3-Stage Distribution
  2. Optimize for Initial Engagement
  3. Optimize Content for Algorithm Signals
  4. Build Account Authority
  5. Analyze and Iterate

What it can do on your machine

Read from SKILL.md and the folder at commit b42ff69. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Algorithm Mechanism loads about 1.8k tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 773 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~49
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 773 words (~1,800 tokens).

“Xiaohongshu's recommendation algorithm determines which content gets shown to whom. Understanding how it works enables you to optimize content for maximum reach and engagement rather than posting blindly.”

— opening of SKILL.md by vivy-yi
name
algorithm-mechanism

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/05-平台规则/algorithm-mechanism of vivy-yi/xiaohongshu-skills.

Open the folder on GitHubat commit b42ff69

Compare with similar skills

Algorithm Mechanism next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Algorithm Mechanism compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Algorithm Mechanism this skillvivy-yi/xiaohongshu-skills474—~1.8kAutomated safety check: PassNone
Agent ReachPanniantong/Agent-Reach93k1 repos~1.4kAutomated safety check: PassMIT
Guizang Social Cardsop7418/guizang-social-card-skill7.4k1 repos~7.8kAutomated safety check: PassAGPL-3.0
Yuwen Publish Precheckyuwen-cool/yuwen-publish-precheck7711 repos~1.8kAutomated safety check: PassMIT
Video Podcast MakerAgents365-ai/video-podcast-maker1.7k—~4.9kAutomated safety check: PassMIT
Xhs Note Creatorcomeonzhj/Auto-Redbook-Skills2.3k—~580Automated safety check: NotesNone

Similar skills

  • Agent Reach

    Panniantong/Agent-Reach

    Routes web research and platform lookups across 16 sites, including Twitter, Reddit, YouTube, Bilibili, Xiaohongshu and GitHub, through one command-line tool.

    93k GitHub starsUsed in 1 repo~1.4k tokens
    Productivity & AutomationAuto-check passed
  • Guizang Social Cards

    op7418/guizang-social-card-skill

    Produces social card sets for Xiaohongshu and WeChat: carousels, Live Photo motion cards and puzzle layouts, and WeChat cover pairs, rendered from single-file HTML.

    7.4k GitHub starsUsed in 1 repo~7.8k tokens
    Media & CreativeAuto-check passed
  • Yuwen Publish Precheck

    yuwen-cool/yuwen-publish-precheck

    国内自媒体发布前风险自审与保意修复:审口播稿、文章、图文笔记、字幕、封面文字能不能发抖音/小红书/微信视频号,给出具体位置、依据和可直接替换的改稿;被限流/删除/处罚后帮你复盘归因;你的行业敏感词、误报白名单和踩坑案例会沉淀成个人规则库,越用越准。Use when…

    771 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Video Podcast Maker

    Agents365-ai/video-podcast-maker

    A skill your agent uses when the user gives a topic and wants an automated topic-driven narrated explainer, podcast, or knowledge-summary video (Bilibili / YouTube / Xiaohongshu / Douyin / WeChat…

    1.7k GitHub stars~4.9k tokensUpdated 6 days ago
    Media & CreativeAuto-check passed
  • Xhs Note Creator

    comeonzhj/Auto-Redbook-Skills

    小红书笔记素材创作技能。当用户需要创建小红书笔记素材时使用这个技能。技能包含:根据用户的需求和提供的资料,撰写小红书笔记内容(标题+正文),生成图片卡片(封面+正文卡片),以及发布小红书笔记。支持 8 种精美排版主题和 4 种智能分页模式。

    2.3k GitHub stars~580 tokensUpdated 1 mo ago
    Auto-check: notes
  • Xiaohongshu Skills

    autoclaw-cc/xiaohongshu-skills

    小红书自动化技能集合。支持认证登录、内容发布、搜索发现、社交互动、复合运营. An agent skill from autoclaw-cc/xiaohongshu-skills.

    1.9k GitHub starsUsed in 1 repo~748 tokens
    Auto-check passed

More from vivy-yi/xiaohongshu-skills

All 123 skills in this repo
  • Effect Monitoring

    vivy-yi/xiaohongshu-skills

    A skill your agent uses when monitoring Xiaohongshu marketing campaign performance, tracking promotion effectiveness, analyzing advertising ROI, measuring influencer collaboration results…

    474 GitHub starsUsed in 1 repo~4.5k tokens
    Auto-check passed
  • Traffic Acquisition

    vivy-yi/xiaohongshu-skills

    A skill your agent uses when driving traffic to Xiaohongshu account from external sources, acquiring new followers beyond organic discovery, implementing multi-platform growth strategy, or scaling…

    474 GitHub starsUsed in 1 repo~4k tokens
    Auto-check passed
  • Account Authentication

    vivy-yi/xiaohongshu-skills

    A skill your agent uses when applying for Xiaohongshu account verification (blue check), understanding verification types and benefits, preparing verification application materials, or increasing…

    474 GitHub stars~4.7k tokensUpdated 8 mo ago
    Auto-check passed
  • Account Positioning

    vivy-yi/xiaohongshu-skills

    A skill your agent uses when starting new Xiaohongshu accounts, struggling with unclear content direction, receiving inconsistent engagement, or needing to define target audience and vertical domain

    474 GitHub stars~1.2k tokensUpdated 8 mo ago
    Auto-check passed
  • Account Safety

    vivy-yi/xiaohongshu-skills

    A skill your agent uses when needing to protect account from hacking, unauthorized access, suspension, or other security threats on Xiaohongshu

    474 GitHub stars~1.5k tokensUpdated 8 mo ago
    Auto-check passed
  • Account Security

    vivy-yi/xiaohongshu-skills

    A skill your agent uses when protecting Xiaohongshu account from unauthorized access, preventing account theft, recovering compromised accounts, or implementing security measures to safeguard…

    474 GitHub stars~4.9k tokensUpdated 8 mo ago
    Auto-check passed

Works with

Questions about Algorithm Mechanism

What does Algorithm Mechanism do?

A skill your agent uses when optimizing content for Xiaohongshu discovery, understanding why posts succeed or fail in reach, trying to increase content exposure, or troubleshooting low view counts. Algorithm Mechanism is an agent skill from vivy-yi/xiaohongshu-skills.

When should I use Algorithm Mechanism?

Algorithm Mechanism fits situations like: optimizing content for Xiaohongshu discovery; understanding why posts succeed; trying to increase content exposure; troubleshooting low view counts.

How do I install Algorithm Mechanism in Claude Code?

Run `npx skills add vivy-yi/xiaohongshu-skills --skill algorithm-mechanism -a claude-code`. Or copy the skill folder (skills/05-平台规则/algorithm-mechanism in vivy-yi/xiaohongshu-skills) into .claude/skills/algorithm-mechanism in your project. Claude Code loads it when a task matches its description.

How do I install Algorithm Mechanism in Codex?

Run `npx skills add vivy-yi/xiaohongshu-skills --skill algorithm-mechanism -a codex`. Or copy the skill folder (skills/05-平台规则/algorithm-mechanism in vivy-yi/xiaohongshu-skills) into .agents/skills/algorithm-mechanism in your project. Codex loads it when a task matches its description.

Can I use Algorithm Mechanism in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vivy-yi/xiaohongshu-skills --skill algorithm-mechanism -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/algorithm-mechanism, .gemini/skills/algorithm-mechanism, .github/skills/algorithm-mechanism and .opencode/skills/algorithm-mechanism in your project.

What does Algorithm Mechanism need to run?

SKILL.md names no scripts, command-line tools or credentials: Algorithm Mechanism is instructions for the agent only.

Does Algorithm Mechanism access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Algorithm Mechanism safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Algorithm Mechanism use?

No licence was found for Algorithm Mechanism or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Algorithm Mechanism use?

About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Algorithm Mechanism?

Skills that share tags, products or a category with Algorithm Mechanism: Agent Reach (Panniantong/Agent-Reach, 93k stars), Guizang Social Cards (op7418/guizang-social-card-skill, 7.4k stars), Yuwen Publish Precheck (yuwen-cool/yuwen-publish-precheck, 771 stars) and Video Podcast Maker (Agents365-ai/video-podcast-maker, 1.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Algorithm Mechanism?

vivy-yi (a GitHub user) maintains it in vivy-yi/xiaohongshu-skills, which has 474 GitHub stars. The repository holds 123 skills in this directory. The repository was last updated on January 23, 2026.

Source: vivy-yi/xiaohongshu-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.