← Back to Skills Marketplace
lm203688

China SEO Baidu

by lm203688 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
70
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install china-seo-baidu
Description
Optimize websites for Baidu search engine (百度SEO). Teach AI agents how to implement Baidu-specific SEO techniques including Baidu Webmaster Tools setup, ICP...
README (SKILL.md)

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 Google 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

  1. ICP first — never try to rank on Baidu without ICP filing
  2. No black-hat — Baidu penalties are harsher and longer than Google
  3. JavaScript caution — Baidu Spider doesn't render JS well; use SSR or pre-render
  4. Content quality — Baidu manually reviews top-ranking sites
  5. Baidu ecosystem — leverage Baidu products (知道, 百科, 贴吧) for backlinks
  6. Mobile mandatory — Baidu has separate mobile index; mobile optimization is critical
  7. 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
Usage Guidance
Before installing, understand that this skill may guide an agent to submit URL lists and API tokens to Baidu services or install Baidu tooling. Approve those actions explicitly, verify Baidu's current official documentation, avoid exposing tokens in logs or prompts, and prefer secure transport where supported.
Capability Assessment
Purpose & Capability
The skill teaches Baidu-specific SEO workflows such as webmaster verification, ICP filing, meta tags, sitemap submission, Smart Mini Program setup, and penalty checks; these capabilities match the stated purpose.
Instruction Scope
It includes ready-to-run examples for submitting URL lists to Baidu and installing/uploading with Baidu's Smart Mini Program CLI, but they are visible workflow steps rather than hidden automation.
Install Mechanism
The artifact contains only SKILL.md with no executable scripts, declared dependencies, install hooks, or package code.
Credentials
External Baidu submissions and CLI use are expected for the SEO purpose, but the curl example places a token in a URL and uses an http endpoint, so users should verify current official endpoints and protect credentials.
Persistence & Privilege
No persistence, background workers, privilege escalation, local credential access, profile/session access, or destructive file operations are present.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install china-seo-baidu
  3. After installation, invoke the skill by name or use /china-seo-baidu
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: 5 Baidu SEO workflows (webmaster tools setup, ICP filing, Baidu-specific meta tags, Smart Mini Program SEO, penalty avoidance) + Baidu vs Google comparison table
Metadata
Slug china-seo-baidu
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 70 downloads so far.

How do I install China SEO Baidu?

Run "/install china-seo-baidu" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is China SEO Baidu free?

Yes, China SEO Baidu is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does China SEO Baidu support?

China SEO Baidu is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created China SEO Baidu?

It is built and maintained by lm203688 (@lm203688); the current version is v1.0.0.

💬 Comments