Algorithm Mechanism logo

Algorithm Mechanism

Community
vivy-yi
algorithm-mechanism

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

Overview

Publishervivy-yi
Repositoryxiaohongshu-skills
Skill namealgorithm-mechanism
Stars
502
Forks
76
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by vivy-yi on GitHub. Read the source before you install it.

Installation

Install the Algorithm Mechanism AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/vivy-yi/xiaohongshu-skills/tree/main/skills/05-平台规则/algorithm-mechanism
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.

Use it in TypingMind

Enable Algorithm Mechanism in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Algorithm Mechanism on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Algorithm Mechanism is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Algorithm Mechanism (算法机制)

Overview

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.

When to Use

Use when:

  • Views are consistently low (<100 for new accounts)
  • Content performance is unpredictable
  • Want to increase content discovery
  • Some posts go viral while others flop
  • Planning content optimization strategy
  • Troubleshooting reach issues

Do NOT use when:

  • Just need to post content (use graphic-content-creation)
  • Need real-time trend analysis (use qiangua-data)

Core Pattern

Before (algorithm blindness):

❌ "I'll post when I feel like it"
❌ "Why did this post get only 50 views?"
❌ "The algorithm just doesn't like me"

After (algorithm-aware):

✅ Post at peak hours when my audience is most active
✅ Analyze why similar posts got 10x more views
✅ Optimize title, cover, and hashtags for algorithm signals

5 Algorithm Factors:

  1. Initial Engagement - First 30 minutes determines distribution
  2. Content Quality - Completion rate, saves, comments
  3. Account Authority - Consistency, expertise, community trust
  4. User Interaction - Past engagement with similar content
  5. Timeliness - Recency, trending topics, seasonal relevance

Quick Reference

FactorWhat It MeasuresOptimization Strategy
Initial engagementFirst 30min performancePost at peak hours, engage immediately
Completion rateHow many finish reading/watchingKeep content concise, add value early
Save rateContent worth revisitingInclude actionable tips, resources
Comment rateDiscussion qualityAsk questions, respond to comments
Share rateShareabilityRelatable, valuable content
Follow rateAccount appealConsistent positioning, clear value proposition

Implementation

Step 1: Understand the 3-Stage Distribution

Stage 1: Initial Testing (0-30 minutes)

  • Algorithm shows content to 200-500 initial users
  • Measures initial engagement (likes, comments, shares, completion)
  • Critical: Performance here determines whether content advances

Stage 2: Expanded Distribution (30min - 24 hours)

  • If initial engagement is good, expands to 5,000-20,000 users
  • Continues measuring engagement signals
  • Good performance → Stage 3, poor performance → stops here

Stage 3: Viral Distribution (24 hours - 7 days)

  • Top performers reach 50,000-1,000,000+ users
  • Appears in "Recommended" and "Explore" feeds
  • Can continue getting views for weeks

Step 2: Optimize for Initial Engagement

The "First 30 Minutes" Strategy:

Pre-Publishing (1 hour before posting):

  • Research trending hashtags in your niche
  • Analyze top 5 posts similar to your planned content
  • Optimize title for curiosity and relevance
  • Ensure cover image is high-quality and eye-catching
  • Write compelling first sentence (hook)

Publishing (choose optimal time):

  • Best times: 7-9pm (weekday evenings), 9-11am (weekends)
  • Your best time: Check your audience data for peak hours
  • Avoid: 2-5pm (low activity), 11pm-7am (most users asleep)

First 30 Minutes (critical window):

  • Stay active, respond to every comment immediately
  • Share to your other social platforms (WeChat, etc.)
  • Ask a question in the post to encourage comments
  • Engage with similar creators' content (build reciprocity)

Step 3: Optimize Content for Algorithm Signals

Title Optimization:

✅ Use numbers: "5个..."
✅ Ask questions: "你知道...吗?"
✅ Create curiosity: "没想到..."
✅ Include keywords: "[vertical] + [benefit]"
❌ Avoid: Too generic, no clear benefit

Cover Optimization:

  • High contrast: Bright colors, clear text overlay
  • Text overlay: 3-5 keywords maximum
  • Face/photo quality: Clear, well-lit, professional
  • Aspect ratio: 3:4 or 1:1 (best for feed)

Hashtag Optimization:

  • Use 3-5 relevant hashtags (not more)
  • Mix: 1 broad (#穿搭), 2-3 specific (#韩系穿搭 #小个子), 1 niche (#平价穿搭)
  • Research trending tags in your vertical

Content Structure:

Hook (first 3 seconds) → Value (main content) → CTA (ask for engagement)

Example:
Hook: "这个方法让我在1个月涨了5000粉" (curiosity)
Value: [分享具体方法步骤] (actionable)
CTA: "你有什么涨粉秘诀?评论区告诉我" (engagement)

Step 4: Build Account Authority

Consistency signals:

  • Post 3-4 times per week (not sporadic)
  • Maintain consistent content theme (vertical focus)
  • Respond to 80%+ of comments within 24 hours
  • Keep quality high (delete low-performing posts)

Expertise signals:

  • Demonstrate knowledge in your niche
  • Share original insights, not just reposts
  • Use data and evidence to support claims
  • Engage with other experts in your field

Community trust signals:

  • Authentic engagement (not just self-promotion)
  • Help others (answer questions, provide value)
  • Transparent about sponsorships (builds trust)
  • Positive interactions (no drama or controversy)

Step 5: Analyze and Iterate

Weekly Algorithm Performance Review:

Track these metrics:

  • Which posts reached Stage 2/3 distribution?
  • What common traits do viral posts share?
  • What time posted? What hashtags used?
  • What was initial engagement rate?

Identify patterns:

  • "Posts with numbers in titles get 2x more views"
  • "Skincare tutorial videos outperform image posts"
  • "Posts at 8pm consistently outperform 2pm"

Double down on what works:

  • Create more content similar to top performers
  • Post at times that consistently work
  • Use formats that achieve wide distribution

Common Mistakes

MistakeWhy HappensFix
Posting at random timesConvenienceSchedule for peak hours (7-9pm)
Ignoring first 30 minutesDon't know importanceEngage intensely in first 30min
Too many hashtagsMore is better mythUse 3-5 relevant hashtags
Inconsistent postingBusy scheduleBatch create and schedule
Deleting low-performing posts too quicklyEmbarrassedWait 7 days, analyze why it failed

Real-World Impact

Algorithm-aware accounts (real examples):

  • Account A: Posted at random times → 3x view increase after shifting to 8pm posting
  • Account B: Generic titles → 5x engagement increase with curiosity-driven titles
  • Account C: Ignored first 30min → 10x distribution by engaging immediately after posting

Key insight: Understanding and optimizing for the algorithm can increase average views by 3-10x.


Related Skills:

  • REQUIRED: data-analytics (measure algorithm performance)
  • REQUIRED: viral-strategy (create algorithm-friendly viral content)
  • REQUIRED: account-weight (understand account authority)
  • hashtag-optimization (optimize hashtag strategy)
  • traffic-analysis (analyze where traffic comes from)

Frequently asked questions

What does the Algorithm Mechanism AI skill do?

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

Why use Algorithm Mechanism on TypingMind?

Because you install it once and use it with any model. Algorithm Mechanism is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Algorithm Mechanism in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/vivy-yi/xiaohongshu-skills/tree/main/skills/05-平台规则/algorithm-mechanism. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Algorithm Mechanism?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Algorithm Mechanism?

As many as you like. As long as a model supports skills, you can use Algorithm Mechanism with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Algorithm Mechanism AI skill free?

It is published on GitHub by vivy-yi. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇