Star Wars Lookup
CLI for AI agents to lookup Star Wars universe info for their humans. "Who played Darth Vader?" — now your agent can answer.
Uses SWAPI (Star Wars API). No account or API key needed.
Usage
CODEBLOCK0
Commands
| Action | Command |
|---|
| Search characters | INLINECODE0 |
| Search planets |
starwars planets "name" |
| List films |
starwars films |
| Search species |
starwars species "name" |
| Search starships |
starwars starships "name" |
Examples
CODEBLOCK1
Output
People output:
CODEBLOCK2
Planets output:
CODEBLOCK3
Films output:
CODEBLOCK4
Species output:
CODEBLOCK5
Starships output:
CODEBLOCK6
Notes
- - Uses SWAPI (swapi.dev)
- No authentication required
- Covers all 6 original/prequel films
- Character lookups resolve species and homeworld names automatically
Agent Implementation Notes
Script location: {skill_folder}/starwars (wrapper to scripts/starwars)
When user asks about Star Wars:
- 1. Run
./starwars people "name" to find characters - Run
./starwars planets "name" for planet info - Run
./starwars films for the film list - Run
./starwars species "name" for species details - Run
./starwars starships "name" for ship info
Don't use for: Sequel trilogy data (Episodes 7-9 not in SWAPI), extended universe, TV shows.
星球大战查询
面向AI代理的CLI工具,用于为其人类用户查询星球大战宇宙信息。谁饰演了达斯·维达?——现在你的代理可以回答这个问题。
使用SWAPI(星球大战API)。无需注册或API密钥。
使用方法
查找卢克·天行者
塔图因是什么星球?
列出所有星球大战电影
丘巴卡是什么种族?
告诉我关于千年隼号的信息
命令
| 操作 | 命令 |
|---|
| 搜索角色 | starwars people 名称 |
| 搜索星球 |
starwars planets 名称 |
| 列出电影 | starwars films |
| 搜索种族 | starwars species 名称 |
| 搜索飞船 | starwars starships 名称 |
示例
bash
starwars people luke # 按名称查找角色
starwars planets tatooine # 按名称查找星球
starwars films # 列出所有电影
starwars species wookiee # 按名称查找种族
starwars starships falcon # 按名称查找飞船
输出
角色输出:
卢克·天行者 — 人类,塔图因,身高:172cm
星球输出:
塔图因 — 人口:200000,气候:干旱,地形:沙漠
电影输出:
第4集:新希望(1977-05-25)— 导演:乔治·卢卡斯
第5集:帝国反击战(1980-05-17)— 导演:欧文·克什纳
种族输出:
伍基人 — 分类:哺乳动物,语言:希里伍克语,平均寿命:400年
飞船输出:
千年隼号 — YT-1300轻型货船,级别:轻型货船,船员:4人
备注
- - 使用SWAPI(swapi.dev)
- 无需身份验证
- 涵盖全部6部原始/前传电影
- 角色查询会自动解析种族和母星名称
代理实现说明
脚本位置: {skill_folder}/starwars(scripts/starwars的包装器)
当用户询问星球大战相关信息时:
- 1. 运行 ./starwars people 名称 查找角色
- 运行 ./starwars planets 名称 获取星球信息
- 运行 ./starwars films 获取电影列表
- 运行 ./starwars species 名称 获取种族详情
- 运行 ./starwars starships 名称 获取飞船信息
不适用于: 续集三部曲数据(第7-9集不在SWAPI中)、扩展宇宙、电视剧。