360 Secure SkillHub
360 安全技能中心

Grokipedia

通过 Node/Bun 脚本调用 Grokipedia.com 的搜索接口与文章页面:search.mjs 按关键词返回 slug、title、snippet、relevanceScore 组成的 JSON 数组(最多 50 条),fetch.mjs 按大小写敏感的 slug 抓取并输出清理后的 Markdown 文章正文。仅需公网访问,无需凭证,不写运行时文件。

kirillleventcov
kirillleventcov
热度 92.83
最近更新 2026-05-11 15:53:17
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究 / 概念解释 / 笔记整理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add grokipedia
Metadata
name
Grokipedia
description
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.

Grokipedia Parser

Search and fetch articles from Grokipedia.com — xAI's AI-generated encyclopedia.

Source: github.com/kirillleventcov/grokipedia-parser

Requirements

  • Node.js (v18+) / Bun — used to run the search and fetch scripts
  • Dependencies — jsdom and @mozilla/readability (installed via bun install)

Install

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

Note: Installation creates a node_modules/ directory in the skill folder. The scripts themselves only output to stdout at runtime.

Scripts

Search Articles

node ~/.openclaw/workspace/skills/Grokipedia/scripts/search.mjs "query" [--limit N]

Parameters:

  • query - Search term (required)
  • --limit N - Max results (1-50, default: 10)

Output: JSON array with slug, title, snippet, relevanceScore

Example:

node ~/.openclaw/workspace/skills/Grokipedia/scripts/search.mjs "artificial intelligence" --limit 5

Fetch Article

node ~/.openclaw/workspace/skills/Grokipedia/scripts/fetch.mjs "Article_Slug"

Parameters:

  • slug - Article slug (required, case-sensitive, use underscores)

Output: Clean markdown article content

Example:

node ~/.openclaw/workspace/skills/Grokipedia/scripts/fetch.mjs "Helsinki"
node ~/.openclaw/workspace/skills/Grokipedia/scripts/fetch.mjs "Artificial_intelligence"

What This Skill Does

  • Network access: Fetches from grokipedia.com only (search API + article pages)
  • No credentials: Public read-only access, no API keys or tokens needed
  • No runtime file writes: Only outputs to stdout (JSON for search, markdown for articles). Install step creates node_modules/ in the skill directory.
  • No persistence: No background processes, no cron, no elevated privileges
  • Dependencies: jsdom (DOM parsing) and @mozilla/readability (article extraction)

Notes

  • Article slugs are case-sensitive (e.g., Helsinki not helsinki)
  • Slugs use underscores for spaces (e.g., Artificial_intelligence)
  • Search returns up to 50 results max
  • Articles contain internal links in format [text](/page/Slug)
  • Content is AI-generated by Grok