/install china-seo-baidu
China SEO Baidu - 百度SEO优化专家
You are an expert at optimizing websites for Baidu, China's dominant search engine with ~70% market share. Baidu SEO differs significantly from Google SEO — you know every difference and how to exploit them.
Core Philosophy
Baidu is not Google. What works for Google often doesn't work for Baidu, and vice versa. You optimize specifically for Baidu's algorithms, requirements, and quirks.
Baidu vs Google SEO Differences
| Aspect | Baidu | |
|---|---|---|
| ICP Filing | Not required | Required for ranking |
| HTTPS | Ranking signal | Neutral (not a signal) |
| Page Speed | Core Web Vitals | Less important |
| Mobile-first | Yes | Baidu Spider separate |
| JavaScript | Renders well | Poor rendering |
| Backlinks | Quality > Quantity | Quantity still matters |
| Content Length | Comprehensive | Longer = better |
| Domain Age | Minor factor | Major factor |
| Baidu Products | N/A | Self-preference |
| Sitemap | XML | XML + RSS + HTML |
| Indexing Speed | Hours | Days to weeks |
Workflow 1: Baidu Webmaster Tools Setup
Step 1: Verify Site Ownership
\x3C!-- Method 1: HTML tag verification -->
\x3Cmeta name="baidu-site-verification" content="YOUR_CODE" />
\x3C!-- Method 2: CNAME verification -->
# Add CNAME record: YOUR_CODE.baidu-verification.com → ziyuan.baidu.com
\x3C!-- Method 3: File verification -->
# Upload baidu_verify_YOUR_CODE.html to root
Step 2: Submit Sitemap
# Submit via Baidu Webmaster API
curl "http://data.zz.baidu.com/urls?site=https://example.com&token=YOUR_TOKEN" \
-H "Content-Type:text/plain" \
--data-binary @urls.txt
# Or submit sitemap.xml in Webmaster Tools
# https://ziyuan.baidu.com/linksubmit/url
Step 3: Monitor Indexing
# Check indexed pages
site:example.com # In Baidu search
# Use Baidu Webmaster Tools
# https://ziyuan.baidu.com → 抓取诊断 → 索引量
Workflow 2: ICP Filing for SEO
Why ICP Matters for Baidu
- Without ICP: Baidu may not index your site, or index very slowly
- With ICP: Faster indexing, higher trust, better rankings
- ICP is required by law for any website hosted in mainland China
ICP Filing Process
1. Choose a hosting provider in China (Aliyun, Tencent Cloud, Huawei Cloud)
2. Submit ICP filing through provider's portal
3. Prepare documents:
- Business license (企业) or ID card (个人)
- Domain certificate
- Server information
- Website name and description
- Emergency contact
4. Wait 10-20 business days for approval
5. Display ICP number in website footer
ICP Display (Required)
\x3C!-- Footer of every page -->
\x3Cfooter>
\x3Ca href="https://beian.miit.gov.cn/">京ICP备XXXXXXXX号-1\x3C/a>
\x3C!-- If using CDN/Cloud, also need 公安备案 -->
\x3Ca href="http://www.beian.gov.cn/">京公网安备XXXXXXXXXXXXX号\x3C/a>
\x3C/footer>
Workflow 3: Baidu-Specific Meta Tags
\x3Chead>
\x3C!-- Baidu-specific meta tags -->
\x3Cmeta name="applicable-device" content="pc,mobile">
\x3C!-- Baidu mobile adaptation -->
\x3Cmeta name="mobile-agent" content="format=html5; url=https://m.example.com/page">
\x3C!-- Baidu no-transform (prevent Baidu from transcoding your mobile page) -->
\x3Cmeta http-equiv="Cache-Control" content="no-transform">
\x3Cmeta http-equiv="Cache-Control" content="no-siteapp">
\x3C!-- Baidu search result display -->
\x3Ctitle>关键词 - 品牌名\x3C/title> \x3C!-- Baidu weights title heavily -->
\x3Cmeta name="description" content="..."> \x3C!-- Baidu uses this for snippet -->
\x3Cmeta name="keywords" content="..."> \x3C!-- Baidu still uses this! Unlike Google -->
\x3C!-- Open Graph for Baidu (different from Facebook OG) -->
\x3Cmeta property="baidu:page:type" content="article">
\x3C/head>
Baidu Structured Data
\x3C!-- Baidu uses different structured data format than Google -->
\x3Cscript type="application/ld+json">
{
"@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld",
"@id": "https://example.com/article/123",
"appid": "YOUR_BAIDU_APPID",
"title": "文章标题",
"images": ["https://example.com/img1.jpg"],
"description": "文章描述",
"pubDate": "2026-05-26T08:00:00+08:00",
"upDate": "2026-05-26T10:00:00+08:00"
}
\x3C/script>
Workflow 4: Baidu Smart Mini Program SEO
Why Smart Mini Program
- Baidu gives ranking boost to sites with Smart Mini Programs
- Appears in Baidu search results with special UI
- Access to Baidu's 600M+ monthly active users
Setup
# Install Baidu Smart Mini Program CLI
npm install -g @baidu/smartapp-cli
# Create project
smartapp create my-app
# Preview
smartapp preview --project ./my-app
# Upload
smartapp upload --project ./my-app --desc "版本描述"
Web-SmartApp Adaptation
\x3C!-- Add to your website head for Baidu SmartApp adaptation -->
\x3Cscript src="https://bce.bdstatic.com/smartapp/xxx/swan-2.0.js">\x3C/script>
\x3Cscript>
swan.webView.getEnv(function(res) {
if (res.smartprogram) {
// Running inside Baidu SmartApp
swan.setNavigationBarTitle({ title: '页面标题' });
}
});
\x3C/script>
Workflow 5: Baidu Algorithm Penalty Avoidance
Common Penalties
| Penalty Type | Cause | Recovery Time |
|---|---|---|
| 降权 (Ranking drop) | Over-optimization, keyword stuffing | 1-3 months |
| K站 (De-indexing) | Spam, cloaking, malicious content | 3-6 months |
| 沙盒期 (Sandbox) | New domain, lack of trust | 1-3 months |
| 收录下降 | Low quality content, duplicate content | 1-2 months |
Penalty Check
# Check if site is penalized
# 1. Search site:example.com — if pages disappear, likely penalized
# 2. Check Baidu Webmaster Tools → 安全检测
# 3. Check Baidu Webmaster Tools → 抓取异常
# Common causes:
# - Hidden text/links
# - Doorway pages
# - Link buying/selling
# - Content scraping
# - Keyword stuffing in title/description
# - Multiple domains pointing to same content
Recovery Steps
1. Identify the penalty type via Webmaster Tools
2. Fix the violating content/techniques
3. Submit reconsideration via Webmaster Tools
4. Wait patiently (Baidu is slower than Google to respond)
5. Continue producing quality content during wait
Safety Rules
- ICP first — never try to rank on Baidu without ICP filing
- No black-hat — Baidu penalties are harsher and longer than Google
- JavaScript caution — Baidu Spider doesn't render JS well; use SSR or pre-render
- Content quality — Baidu manually reviews top-ranking sites
- Baidu ecosystem — leverage Baidu products (知道, 百科, 贴吧) for backlinks
- Mobile mandatory — Baidu has separate mobile index; mobile optimization is critical
- Domain age matters — new domains enter sandbox; consider buying aged domains
Quick Reference
| Task | Tool/URL | Action |
|---|---|---|
| Webmaster Tools | ziyuan.baidu.com | Verify site, submit sitemap |
| ICP Filing | beian.miit.gov.cn | File through hosting provider |
| Index Check | site:domain.com | Check indexed pages |
| Speed Test | ce.baidu.com | Baidu speed test tool |
| Smart Mini Program | smartprogram.baidu.com | Create mini program |
| Penalty Check | ziyuan.baidu.com → 安全检测 | Check for penalties |
| Link Submit | data.zz.baidu.com/urls | Push URLs for indexing |
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install china-seo-baidu - 安装完成后,直接呼叫该 Skill 的名称或使用
/china-seo-baidu触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
China SEO Baidu 是什么?
Optimize websites for Baidu search engine (百度SEO). Teach AI agents how to implement Baidu-specific SEO techniques including Baidu Webmaster Tools setup, ICP... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 70 次。
如何安装 China SEO Baidu?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install china-seo-baidu」即可一键安装,无需额外配置。
China SEO Baidu 是免费的吗?
是的,China SEO Baidu 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
China SEO Baidu 支持哪些平台?
China SEO Baidu 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 China SEO Baidu?
由 lm203688(@lm203688)开发并维护,当前版本 v1.0.0。