💡 摘要
该技能帮助AI代理分析和优化基于X推荐算法的帖子。
🎯 适合人群
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);文件读写范围与路径穿越风险。以最小权限运行,并在生产环境启用前审计代码与依赖。
X Algorithm Skills for AI Coding Agents
AI-powered skills that help you understand and leverage the X (Twitter) recommendation algorithm. Add these to your coding agent (Claude Code, Cursor, etc.) to analyze posts, understand ranking, and optimize your X presence.
What You Can Do
Ask your AI assistant questions like:
- "Why did my post get low engagement?"
- "What engagement signals does X track?"
- "How does the X algorithm rank posts?"
- "Why was my post filtered from the feed?"
- "Analyze this post for X algorithm optimization"
Skills Included
| Skill | Command | Use Case |
| -------------- | -------------------- | --------------------------------------------- |
| Engagement | /x-algo-engagement | Understand the 18 engagement signals X tracks |
| Scoring | /x-algo-scoring | Learn how posts are scored and weighted |
| Filters | /x-algo-filters | Know why posts get filtered out |
| Pipeline | /x-algo-pipeline | Full overview of the recommendation system |
| ML Model | /x-algo-ml | Deep dive into the Phoenix transformer model |
Installation
Claude Code
Copy skills to your project or global skills directory:
# Project-scoped (recommended) cp -r x-algo-* /path/to/your/project/.claude/skills/ # Or global cp -r x-algo-* ~/.claude/skills/
Cursor / Other Agents
Add the skill files to your agent's context or skills directory. Each skill is a standalone SKILL.md file with YAML frontmatter.
Example Interactions
Analyze a Post
You: Analyze this post for X algorithm optimization:
"Just shipped a new feature! Check it out at [link]"
AI: Based on the X algorithm scoring system:
- Low predicted engagement signals (no question, no visual)
- Link posts typically get lower reach due to X preferring native content
- Suggestions: Add an image, ask a question, remove external link...
Understand Filtering
You: Why might my post not appear in followers' feeds?
AI: The X algorithm has 12 filters. Your post could be filtered by:
- AgeFilter: Post is too old (>24-48h typically)
- DedupConversationFilter: Another post in the thread scored higher
- VFFilter: Safety/spam detection triggered
- ...
Learn the Algorithm
You: How does X decide which posts to show me?
AI: X uses an 8-stage pipeline:
1. Query Hydration - Load your preferences
2. Sources - Thunder (following) + Phoenix (For You)
3. Candidate Hydration - Fetch post data
4. Pre-Score Filtering - Remove ineligible posts
5. Scoring - ML predictions → weighted scores
6. Selection - Top K by score
7. Post-Score Filtering - Dedup, seen posts
8. Side Effects - Logging
Key Insights from the Algorithm
Engagement Weights
The algorithm predicts probability of 18 actions and combines them:
Positive signals (increase score):
- Favorite (like)
- Reply
- Retweet
- Quote tweet
- Follow author
- Share (DM, copy link)
- Video quality view
- Dwell time
Negative signals (decrease score):
- Not interested
- Block author
- Mute author
- Report
What Gets Filtered
Posts are removed if they:
- Are too old (Snowflake ID age check)
- Were already seen (Bloom filter)
- Are from blocked/muted accounts
- Contain muted keywords
- Fail safety checks
- Are duplicates or from same conversation
Source
These skills are based on the open-source X recommendation algorithm and internal documentation, adapted for practical use with AI coding agents.
Contributing
PRs welcome! Areas to improve:
- Add more example queries
- Update weights if X publishes changes
- Add skills for specific use cases (video optimization, thread strategy)
License
MIT
优点
- 提供可操作的帖子优化见解。
- 帮助理解复杂的算法行为。
- 支持多种AI代理。
缺点
- 需要理解社交媒体动态。
- 依赖于X算法的准确性。
- 仅限于X平台的见解。
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 CloudAI-X.
