简介
基于 Steam API 的游戏库管理工具,支持按游玩时长、评价和 Steam Deck 兼容性筛选,助你快速发现心仪游戏。
原始描述
Browse, filter, and discover games in a Steam library. Filter by playtime, reviews, Steam Deck compatibility, genres, and tags. Use when user asks about their Steam games, what to play, game recommendations, or Steam Deck compatible games.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
核心用法
Steam Games CLI 是一款面向Steam玩家的命令行游戏库管理工具,通过Steam官方Web API获取用户游戏数据,支持多维度筛选与发现功能。
主要功能模块
| 模块 | 功能说明 |
|---|---|
whoami |
查看用户资料与库统计 |
library |
浏览全部游戏,支持分页与JSON输出 |
tags / genres |
列出Steam全部440+标签与类型 |
筛选能力(组合使用)
- 游戏时长:
--unplayed/--min-hours/--max-hours/--deck(Deck游玩时长) - 评价等级:1-9级评分体系,从"好评如潮"到"差评如潮"
- Steam Deck兼容:
verified(完美支持)、playable(可玩)、ok(两者皆可) - 标签/类型:精确匹配Steam官方标签体系
- 排序方式:名称、游玩时长、Deck时长、评价、兼容性
典型应用场景
# Deck上玩什么:高评价且验证过的游戏
steam library --deck-compat verified --min-reviews 7 --sort playtime
# 挖掘未玩的高分Roguelike
steam library --unplayed --tag "Roguelike" --min-reviews 8 --sort reviews
显著优点
- AI Agent优化设计:流式融合+提前终止机制,本地筛选优先执行,大幅减少API调用
- 组合筛选灵活:支持时长、评价、Deck兼容、标签的四重交叉筛选
- 输出格式友好:彩色表格/纯文本/JSON三模态,适配终端阅读与脚本集成
- 纯文档型Skill:零代码执行风险,所有功能依赖用户本地安装的CLI工具
局限性与注意事项
- 依赖外部CLI:需自行安装
steam-games-cli(npm包)并配置Steam API Key - API密钥管理:Steam API Key为个人敏感凭证,需妥善保管
- 网络依赖:评价、Deck兼容、标签数据需实时请求Steam服务器
- 无持续维护信号:GitHub仓库未明确声明开源许可证
适合人群
- Steam库游戏数量庞大、难以决策"玩什么"的玩家
- Steam Deck用户寻找验证兼容的游戏
- 习惯命令行工具、偏好精准筛选而非算法推荐的用户
- 需要将游戏数据集成到自动化工作流的开发者
常规风险
- 凭证泄露风险:API Key若配置在环境变量或命令历史中,存在意外暴露可能
- API调用限制:Steam Web API存在速率限制,频繁筛选可能触发限制
- 数据时效性:游戏评价与Deck兼容状态为请求时点快照,非实时同步
技能正文
name: steam description: Browse, filter, and discover games in a Steam library. Filter by playtime, reviews, Steam Deck compatibility, genres, and tags. Use when user asks about their Steam games, what to play, game recommendations, or Steam Deck compatible games. homepage: https://github.com/mjrussell/steam-cli metadata: clawdbot: emoji: "🎮" requires: bins: ["steam"] env: ["STEAM_API_KEY"]
Steam Games CLI
CLI for browsing and discovering games in your Steam library. Filter by playtime, reviews, Deck compatibility, genres, and tags.
Installation
npm install -g steam-games-cli
Setup
- Get a Steam Web API key from https://steamcommunity.com/dev/apikey
- Configure the CLI:
steam config set-key YOUR_API_KEY
steam config set-user YOUR_STEAM_ID
Commands
Profile
steam whoami # Profile info and library stats
steam whoami --json
Library
steam library # List all games
steam library --limit 10 # Limit results
steam library --json # JSON output for scripting
Tags & Genres (Instant)
steam tags # List all 440+ Steam tags
steam tags --json
steam genres # List all genres
steam genres --json
Filtering Options
Playtime
steam library --unplayed # Never played
steam library --min-hours 10 # At least 10 hours
steam library --max-hours 5 # Less than 5 hours
steam library --deck # Played on Steam Deck
Reviews (1-9 scale)
steam library --reviews very-positive # Exact category
steam library --min-reviews 7 # Score 7+ (Positive and above)
steam library --show-reviews # Show review column
Categories: overwhelmingly-positive (9), very-positive (8), positive (7), mostly-positive (6), mixed (5), mostly-negative (4), negative (3), very-negative (2), overwhelmingly-negative (1)
Steam Deck Compatibility
steam library --deck-compat verified # Verified only
steam library --deck-compat playable # Playable only
steam library --deck-compat ok # Verified OR Playable
steam library --show-compat # Show Deck column
Tags & Genres
steam library --tag "Roguelike" # Filter by tag
steam library --genre "Strategy" # Filter by genre
steam library --show-tags # Show tags column
Sorting
steam library --sort name # Alphabetical (default)
steam library --sort playtime # Most played first
steam library --sort deck # Most Deck playtime first
steam library --sort reviews # Best reviewed first
steam library --sort compat # Best Deck compat first
AI Agent Workflow
The CLI is optimized for AI agents with stream fusion and early termination.
Step 1: Discover available tags/genres (instant)
steam tags --json
steam genres --json
Step 2: Filter library with combined criteria
# Unplayed Deck Verified roguelikes with good reviews
steam library --unplayed --deck-compat verified --tag "Roguelike" --min-reviews 7 --limit 10 --json
# Well-reviewed strategy games under 5 hours
steam library --max-hours 5 --genre "Strategy" --min-reviews 8 --limit 5 --json
# Trading games playable on Deck
steam library --tag "Trading" --deck-compat ok --limit 10 --json
Performance Notes
- Local filters (playtime, unplayed) apply first - instant
- Remote filters (reviews, deck compat, tags) fetch in parallel per game
- Early termination: stops when limit is reached
- Use local filters first to minimize API calls
Usage Examples
User: "What should I play on my Steam Deck?"
steam library --deck-compat verified --min-reviews 7 --sort playtime --limit 10
User: "What roguelikes do I have?"
steam library --tag "Roguelike" --show-tags --limit 20
User: "What unplayed games are highly rated?"
steam library --unplayed --min-reviews 8 --sort reviews --limit 10 --show-reviews
User: "How many games do I have?"
steam whoami
User: "What strategy games work on Deck?"
steam library --genre "Strategy" --deck-compat ok --show-compat --limit 15
User: "What tags are available?"
steam tags --json
Output Formats
- Default: Colored table
--plain: Plain text list--json: JSON for scripting/AI agents
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。