返回顶部
G

Grokipedia格罗基百科

Search and fetch articles from Grokipedia.com — xAI's AI-generated encyclopedia (like Wikipedia but written by Grok). Use when asked about topics that might have a Grokipedia article, or when the user explicitly mentions Grokipedia.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.2.0
安全检测
已通过
2,082
下载量
免费
免费
5
收藏
概述
安装方式
版本历史

Grokipedia

Grokipedia 解析器

Grokipedia.com(xAI 的 AI 生成百科全书)搜索并获取文章。

来源: github.com/kirillleventcov/grokipedia-parser

环境要求

  • - Node.js (v18+) / Bun — 用于运行搜索和获取脚本
  • 依赖项 — jsdom 和 @mozilla/readability(通过 bun install 安装)

安装

bash
cd ~/.openclaw/workspace/skills/Grokipedia
bun install --production

注意: 安装会在技能文件夹中创建 node_modules/ 目录。脚本本身仅在运行时输出到标准输出。

脚本

搜索文章

bash
node ~/.openclaw/workspace/skills/Grokipedia/scripts/search.mjs 查询词 [--limit N]

参数:

  • - query - 搜索词(必填)
  • --limit N - 最大结果数(1-50,默认:10)

输出: 包含 slug、title、snippet、relevanceScore 的 JSON 数组

示例:
bash
node ~/.openclaw/workspace/skills/Grokipedia/scripts/search.mjs 人工智能 --limit 5

获取文章

bash
node ~/.openclaw/workspace/skills/Grokipedia/scripts/fetch.mjs 文章_Slug

参数:

  • - slug - 文章标识符(必填,区分大小写,使用下划线)

输出: 干净的 Markdown 文章内容

示例:
bash
node ~/.openclaw/workspace/skills/Grokipedia/scripts/fetch.mjs Helsinki
node ~/.openclaw/workspace/skills/Grokipedia/scripts/fetch.mjs Artificial_intelligence

此技能的功能

  • - 网络访问: 仅从 grokipedia.com 获取数据(搜索 API + 文章页面)
  • 无需凭证: 公共只读访问,无需 API 密钥或令牌
  • 无运行时文件写入: 仅输出到标准输出(搜索输出 JSON,文章输出 Markdown)。安装步骤会在技能目录中创建 node_modules/。
  • 无持久化: 无后台进程,无定时任务,无提升权限
  • 依赖项: jsdom(DOM 解析)和 @mozilla/readability(文章提取)

注意事项

  • - 文章标识符区分大小写(例如,Helsinki 而非 helsinki)
  • 标识符中的空格使用下划线(例如,Artificialintelligence)
  • 搜索最多返回 50 条结果
  • 文章包含格式为 文本 的内部链接
  • 内容由 Grok 的 AI 生成

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 grokipedia-1776369275 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 grokipedia-1776369275 技能

通过命令行安装

skillhub install grokipedia-1776369275

下载

⬇ 下载 Grokipedia v1.2.0(免费)

文件大小: 5.93 KB | 发布时间: 2026-4-17 14:51

v1.2.0 最新 2026-4-17 14:51
- Added support for Bun as an alternative to Node.js for installing and running dependencies.
- Updated install instructions to use bun and clarified that installation creates a node_modules/ directory in the skill folder.
- Adjusted documentation paths to reflect the new skill directory structure under ~/.openclaw/workspace/skills/Grokipedia.
- Clarified that only the install step writes files, and scripts themselves do not write files at runtime.
- Minor cleanup and clarification in requirements and usage notes.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部