宝可梦查询:适用于 PokeAPI 的 AI 智能体 CLI - Openclaw Skills
作者:互联网
2026-04-04
什么是 宝可梦查询?
宝可梦查询技能为 AI 智能体提供了一个与 PokéAPI 交互的流线型接口,使其能够回答有关宝可梦属性的复杂问题。作为 Openclaw Skills 广泛集合的一部分,它允许智能体在无需任何身份验证或 API 密钥的情况下执行搜索、获取基础数值并分析属性克制。它被设计得轻量且快速,依靠标准 Unix 工具高效地向用户交付数据。
该技能对于构建需要访问全面游戏数据库的助手的开发人员特别有用。通过将其集成到 Openclaw Skills 中,您的 AI 智能体将能够精确处理搜索特定物种、检查特性效果或计算防御属性优势等命令。
下载入口:https://github.com/openclaw/skills/tree/main/skills/jeffaf/pokemon
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install pokemon
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 pokemon。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
宝可梦查询 应用场景
- 在游戏过程中识别宝可梦的属性弱点和攻击优势。
- 获取特定物种的详细基础数值、身高和体重以进行数据分析。
- 查询复杂的特性描述及其特定的游戏内效果。
- 通过部分字符串匹配搜索宝可梦名称,以纠正用户的输入错误。
- 为 AI 智能体提供结构化数据,以回答有关宝可梦机制的技术咨询。
- AI 智能体接收到与特定宝可梦或游戏机制相关的用户查询。
- 智能体执行搜索命令,从 PokéAPI 数据库中找到正确的内部名称或 ID。
- 智能体调用信息命令,为识别出的宝可梦获取全面的数值、属性和元数据。
- 对于有关属性克制或特性的专门查询,智能体会触发特定的子命令以获取目标数据。
- 该工具返回结构化文本,智能体对其进行解析以向人类用户提供自然语言响应。
宝可梦查询 配置指南
要将此工具集成到您的环境中,请确保已安装必要的依赖项。Openclaw Skills 的这一特定插件需要 bash、curl 和 jq 才能正常运行。
# 在系统中安装所需的依赖项
sudo apt-get install curl jq
# 智能体可以通过包装器直接调用该技能
./pokemon search "charizard"
./pokemon info 6
宝可梦查询 数据架构与分类体系
该技能从 PokéAPI v2 获取数据并将其格式化为结构化区块以便于消费。数据被组织成几个关键类别:
| 数据类别 | 提供的资料 |
|---|---|
| 身份 | 名称、图鉴编号和官方精灵图 URL |
| 身体特征 | 属性、身高 (m) 和体重 (kg) |
| 基础数值 | HP、攻击、防御、特攻、特防和速度 |
| 特性 | 包含简短和完整效果描述的特性列表 |
| 属性克制 | 进攻和防守的 2x、0.5x 和 0x 伤害倍率 |
name: pokemon
version: 1.0.0
description: "CLI for AI agents to lookup Pokémon info for their humans. Uses PokéAPI. No auth required."
homepage: https://pokeapi.co
metadata:
openclaw:
emoji: "?"
requires:
bins: ["bash", "curl", "jq"]
tags: ["pokemon", "pokeapi", "games", "entertainment", "cli"]
Pokémon Lookup
CLI for AI agents to lookup Pokémon info for their humans. "What type is Charizard weak to?" — now your agent can answer.
Uses PokéAPI. No account or API key needed.
Usage
"Look up Pikachu"
"What are fire type weaknesses?"
"Tell me about the ability Levitate"
"Search for dragon Pokémon"
Commands
| Action | Command |
|---|---|
| Search | pokemon search "query" |
| Get details | pokemon info |
| Type matchups | pokemon type |
| Ability info | pokemon ability |
Examples
pokemon search pikachu # Find Pokémon by partial name
pokemon info 25 # Get details by Pokédex number
pokemon info charizard # Get details by name
pokemon type fire # Fire type matchups
pokemon ability static # Ability description
Output
Search output:
Pikachu
Pikachu-rock-star
Pikachu-belle
Info output:
? Pikachu [#25]
Types: Electric
Height: 0.4m | Weight: 6kg
Base Stats:
HP: 35 | Atk: 55 | Def: 40
Sp.Atk: 50 | Sp.Def: 50 | Spd: 90
Abilities: Static, Lightning rod
Sprite: https://raw.githubusercontent.com/.../25.png
Compact format:
[#25] Pikachu — Electric, HP: 35, Atk: 55, Def: 40, Spd: 90
Type output:
?? Type: Fire
?? Offensive:
2x damage to: Grass, Ice, Bug, Steel
?x damage to: Fire, Water, Rock, Dragon
0x damage to: None
??? Defensive:
2x damage from: Water, Ground, Rock
?x damage from: Fire, Grass, Ice, Bug, Steel, Fairy
0x damage from: None
Ability output:
? Ability: Static
?? Effect:
Pokémon with this Ability have a 30% chance of paralyzing
attacking Pokémon on contact.
?? Short: Has a 30% chance of paralyzing attacking Pokémon on contact.
Notes
- Uses PokéAPI v2 (pokeapi.co)
- No rate limit (but be reasonable)
- No authentication required
- Names are case-insensitive
- Use hyphens for multi-word names:
pokemon info mr-mime - Search returns up to 20 matches
Agent Implementation Notes
Script location: {skill_folder}/pokemon (wrapper) → scripts/pokemon
When user asks about Pokémon:
- Run
./pokemon search "name"to find exact name - Run
./pokemon infofor full stats - Run
./pokemon typefor matchup questions - Run
./pokemon abilityfor ability details
Common patterns:
- "What is X weak to?" → Get info for types, then lookup type matchups
- "Best counter for X?" → Get types, then check what's super effective
- "Does X have ability Y?" → Get info and check abilities list
Don't use for: Non-Pokémon game info, competitive tier lists, or fan content.
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
Cloudflare发布Dynamic Workers公开测试版:基于Isolates的沙箱环境执行AI智能体代码
Windows 全版本 OpenClaw 搭建教程 零代码可视化一键部署
我开始和 AI 宠物一起写代码了:Claude Code 新玩法
阿里云服务器优惠价格避坑:新购优惠及续费折扣,38元、99元和199元怎么选?
阿里云AI通用节省计划是什么意思?全模型抵扣优惠活动及费用价格整理
2026 OpenClaw Windows零基础部署指南(官方直装+报错闭环解决)
AI开始下沉到端侧:当模型跑进手机,测试体系会被重写吗?
2026 最新 OpenClaw 安装教程:Windows 一键部署,零基础也能轻松搞定
【含新版安装包】 Windows 部署 OpenClaw 太简单,一键启动,5分钟完成,无需懂技术
【含新版安装包】3. 简单到离谱!OpenClaw Windows 一键部署,告别复杂配置,速通“养虾”
AI精选
