algorithm-mechanism — Claude Code skill: what it does, how to install
algorithm-mechanism explains how Xiaohongshu's recommendation feed picks who sees a post, and what to change when views stay low.
no license 173 installs ★ 564 updated 2026-01-23
npx skills add vivy-yi/xiaohongshu-skills --skill algorithm-mechanism -a claude-codeWhat algorithm-mechanism does
This skill walks through how Xiaohongshu's feed decides who sees a post. Reach is split into three stages: a test on 200-500 users in the first 30 minutes, a wider push to 5,000-20,000 within a day, and a long run of up to 7 days for the best posts. Five factors drive it: early engagement, content quality, account authority, the viewer's past behavior and timeliness.
From there it gives five steps. Prepare an hour before posting, pick a slot (weekday evenings or weekend mornings), build the title around a number or a question, make a cover with 3-5 words of text, and attach 3-5 hashtags. The last steps cover account trust and a weekly review of which posts reached stage two or three.
It cannot publish anything. For the post itself it points to graphic-content-creation, and for live trend data to qiangua-data. The 3-10x view growth comes from the author's own example accounts.
What it helps with
- find out why a post stalled after the first test group
- pick a posting slot for weekday evenings or weekend mornings
- rewrite a title around a number or a question
- plan what to do in the 30 minutes after publishing
- set up a weekly review of posts that reached stage two or three
Example prompts for the agent
- Use algorithm-mechanism to find out why my Xiaohongshu post barely gets shown
- Following algorithm-mechanism, plan my first 30 minutes after I publish this note
- Rework this title and hashtags for the Xiaohongshu algorithm with algorithm-mechanism: 3-5 tags, short cover text
How to install algorithm-mechanism
1Skills CLI (Vercel)
npx skills add vivy-yi/xiaohongshu-skills --skill algorithm-mechanism -a claude-code2Manually: put the files in place
~/.claude/skills/algorithm-mechanism/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/algorithm-mechanism/
1Skills CLI (Vercel)
npx skills add vivy-yi/xiaohongshu-skills --skill algorithm-mechanism -a codex2Manually: put the files in place
.agents/skills/algorithm-mechanism/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add vivy-yi/xiaohongshu-skills --skill algorithm-mechanism -a cursor2Manually: put the files in place
.cursor/skills/algorithm-mechanism/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install vivy-yi/xiaohongshu-skills skills/05-平台规则/algorithm-mechanism2Manually: put the files in place
.github/skills/algorithm-mechanism/SKILL.md1Skills CLI (Vercel)
npx skills add vivy-yi/xiaohongshu-skills --skill algorithm-mechanism -a gemini-cli2Platform CLI
gemini skills install https://github.com/vivy-yi/xiaohongshu-skills --path skills/05-平台规则/algorithm-mechanismManually: put the files in place
.devin/skills/algorithm-mechanism/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add vivy-yi/xiaohongshu-skills --skill algorithm-mechanism -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about algorithm-mechanism
How do I install algorithm-mechanism in Claude Code?
Run npx skills add vivy-yi/xiaohongshu-skills --skill algorithm-mechanism -a claude-code. The skill file sits at ~/.claude/skills/algorithm-mechanism/SKILL.md.
What does algorithm-mechanism do?
It explains how the Xiaohongshu feed spreads posts through three stages and five factors, then gives steps for posting time, title, cover, hashtags and a weekly review.
When should I use a different skill instead?
For simply publishing a post, use graphic-content-creation. For real-time trend analysis, this skill points to qiangua-data.