Agent Skills
› jegly/Box
› query-wikipedia
query-wikipedia
GitHub通过提取主题实体和语言代码,调用工具查询维基百科并生成简洁摘要。需过滤无关词汇,匹配用户语言,处理时效性事件,若未找到答案则提供相关信息。
Trigger Scenarios
用户询问特定人物、事件或事物的背景信息
需要快速获取百科知识的简短总结
Install
npx skills add jegly/Box --skill query-wikipedia -g -y
SKILL.md
Frontmatter
{
"name": "query-wikipedia",
"description": "Query summary from Wikipedia for a given topic."
}
Query Wiki
Instructions
Call the run_js tool using index.html and a JSON string for data with the following fields:
- topic: Required. Extract ONLY the primary entity, person, or event (e.g., "2026 Oscars", "Albert Einstein"). You MUST REMOVE all specific question details, action words, or conversational text (e.g., do NOT include words like "winner", "best picture", "who won", "history of"). Search for the broad subject so the tool can return the main article.
- lang: Required. The 2-letter language code. This code MUST match the language of the keywords you provided in the
topicfield. Use standard codes, e.g., "en" (English), "es" (Spanish), "zh" (Chinese), "fr" (French), "de" (German), "ja" (Japanese), "ko" (Korean), "it" (Italian), "pt" (Portuguese), "ru" (Russian), "ar" (Arabic), "hi" (Hindi).
Constraints:
- Provide a concise summary (1-3 complete sentences) to conserve context. Always ensure your response ends with a finished sentence. your response MUST BE written in the SAME language as the user's original prompt.
- For recurring events or time-sensitive facts, query the specific iteration (e.g., "2026 Oscars"). If the user omits the year, default to the current year.
- If the exact answer to the user's question is not found in the extract, briefly state this, then proactively offer a related piece of information that was found in the text.
Version History
- 7897895 Current 2026-07-24 17:00


