openakita/skills@baidu-baike

Queries Baidu Baike encyclopedia entries and returns structured Chinese knowledge summaries.

2.0k|274|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/openakita/openakita --skill openakita-skills-baidu-baike
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openakita/skills@baidu-baike
Source: https://github.com/openakita/openakita/tree/main/skills/baidu-baike
Command: npx skills add https://github.com/openakita/openakita --skill openakita-skills-baidu-baike

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

When an AI assistant needs factual, authoritative Chinese-language information about concepts, people, places, or topics, it often lacks a reliable structured source. This Skill connects the agent to Baidu Baike, returning standardized encyclopedia entries so answers are grounded in verified reference content rather than guesswork.

Core Features & Use Cases

  • Encyclopedia Lookup: Search Baidu Baike by keyword and retrieve the entry title, subtitle, summary, and abstract as structured JSON.
  • Entry Detection: Automatically detects whether a term exists in Baidu Baike and reports a clear not-found message when it does not.
  • Use Case: A user asks "什么是量子计算?" The agent runs the lookup script, receives the official Baidu Baike summary and abstract, and answers with accurate, sourced encyclopedia content.

Quick Start

Set the BAIDU_API_KEY environment variable, then ask the agent to look up a term such as "量子计算" in Baidu Baike and explain it.

Frequently Asked Questions about openakita/skills@baidu-baike

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I look up a Baidu Baike entry from the command line?

Run the bundled script with the search subcommand: python3 scripts/baidu_baike.py search "量子计算". It prints a JSON object containing the entry title, subtitle, summary, abstract, and the canonical page URL.

What data does a Baidu Baike search return?

The script returns structured JSON with the keyword, final page URL, entry title and subtitle, meta description summary, and the abstract text. It also includes a found flag indicating whether Baidu Baike has an entry for the term.

Does the Baidu Baike script require external Python packages?

No third-party packages are required. The script uses only Python 3 standard library modules such as urllib, re, json, and argparse, so it runs in any standard Python 3 environment.

What happens when Baidu Baike has no entry for a keyword?

The script detects the not-found page and returns JSON with found set to false plus a message stating the term is not included in Baidu Baike, instead of failing with an error.

Why do I need the BAIDU_API_KEY environment variable?

The Skill's frontmatter declares BAIDU_API_KEY as a required environment variable for configuration. Set it with export BAIDU_API_KEY="your_key" before invoking the Skill so the agent environment is properly provisioned.