Clawtrap Skill
/install clawtrap
When to Use
User says "play ClawTrap", "run clawtrap", "start the maze game", or asks for the agent-native game where their AI assistant plays villain against them.
Setup (one-time)
The game is not bundled in this skill. Clone and install:
git clone https://github.com/TatsuKo-Tsukimi/ClawTrap.git ~/ClawTrap
cd ~/ClawTrap && npm install
Launch
cd ~/ClawTrap && node server.js
# then open http://localhost:3000
OpenClaw users get zero-config auth via auth-profiles.json. For other providers, set ANTHROPIC_API_KEY, or OPENAI_API_KEY + API_BASE, before launch. Docker: docker compose up --build.
Warnings to Surface Before First Run
- Token cost: every card, trial, and villain monologue is a live LLM call. The background archivist (file analysis + fact extraction) is especially heavy. Point
MAZE_MODELat a cheaper model in.envto reduce spend. - Local file access: the game scans the player's workspace (SOUL.md, MEMORY.md, documents, images) with their permission to craft personalized attacks. All data stays local — nothing leaves the machine except LLM calls to the provider the player configured.
- Model-dependent quality: tested mainly with Claude and Codex. Stronger model = better game (follows the bitter lesson of minimal hardcoded constraints).
Data Storage
The launched game writes to ~/ClawTrap/data/ (fact database, player profile) and ~/ClawTrap/session-logs/. Both are .gitignored in the upstream repo. This skill itself does not write files.
Acting as the Villain Yourself
If the user wants the current agent session to play villain instead of the game's built-in agent, see villain-protocol.md for the role spec. Connect via AGENT_URL=http://localhost:\x3Cport> node server.js or via the bundled MCP adapter (mcp-server.js).
Related
- Repo: https://github.com/TatsuKo-Tsukimi/ClawTrap
- Upstream license: MIT (game) · this skill wrapper: MIT-0
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install clawtrap - 安装完成后,直接呼叫该 Skill 的名称或使用
/clawtrap触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Clawtrap Skill 是什么?
Launch ClawTrap maze game where an AI villain reads the player's local files and memories to build personalized trials and taunts. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 101 次。
如何安装 Clawtrap Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawtrap」即可一键安装,无需额外配置。
Clawtrap Skill 是免费的吗?
是的,Clawtrap Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Clawtrap Skill 支持哪些平台?
Clawtrap Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Clawtrap Skill?
由 TatsuKo Tsukimi(@tatsuko-tsukimi)开发并维护,当前版本 v1.0.0。