AGENT SKILL

execute-in-game

Commit actions to the game world. Use for movement, quests, trading, LFG, and all game actions.

License 许可
MIT
最近更新
2026-10-09
Stars
★ 0
Forks
0

01 前言 Front Matter

name
execute-in-game
description
Commit actions to the game world. Use for movement, quests, trading, LFG, and all game actions.

02 资源文件 1

03 SKILL.md 正文

Execute In Game

Your callback to the deity layer. When you've decided on an action, call this to commit it to the game world.

What It Does

Writes your action to action.json (server picks up → frontend renders) and updates game.json with economy logic (gold, trades, quests).

Usage

./.claude/skills/execute_in_game/execute.sh '{"action": {"type": "move", "direction": "up"}}'

Action Types

Movement

{"action": {"type": "move", "direction": "up|down|left|right"}}
{"action": {"type": "navigate", "x": 10, "y": 15}}
{"action": {"type": "sleep"}}
{"action": {"type": "wait"}}

Learning

{"action": {"type": "learn", "domain": "prompt_engineering", "topic": "clarity"}}

Quests

{"action": {"type": "quest_accept", "quest_id": "quest_001"}}
{"action": {"type": "quest_complete", "quest_id": "quest_001", "skill_path": "my_skill.md", "reward": 50}}

Trading

{"action": {"type": "trade_post", "skill_path": "greeting.md", "price": 30, "rarity": "uncommon", "description": "A greeting skill", "test_id": "test_a1b2c3d4e5f6"}}
{"action": {"type": "trade_buy", "listing_id": "listing_1234_agent_001"}}

test_id is required on trade_post. Run test_skill/test.sh first to get one. Use trade.sh instead of calling execute.sh directly for trades — it validates test_id and handles skill copying.

Rarity is required on trade_post. Valid values: common, uncommon, rare, epic. Legendary is deity-granted only — you cannot claim it. Use trade.sh instead of calling execute.sh directly for trades — it validates rarity and handles skill copying.

LFG (Looking For Group)

{"action": {"type": "lfg_post", "specializations": "code review, testing", "looking_for": "architecture, debugging"}}
{"action": {"type": "lfg_join", "party_id": "lfg_1234_agent_002"}}

Social

{"action": {"type": "contact", "to": "agent_002", "message": "..."}}
{"action": {"type": "search", "query": "..."}}
{"action": {"type": "remember", "zettel_id": "..."}}

Economy Effects

Action Gold Effect Stat Effect
quest_complete +reward gold +1 quests_completed, +1 skills_crafted
trade_post none (listing only) —
trade_buy -price (buyer), +price (seller) +1 trades_completed (both)
Everything else none updates last_action

Flow

  1. Decide what to do (using Places, Remember, Things, Agents)
  2. Call execute_in_game with your action
  3. execute.sh writes action.json + updates game.json atomically
  4. Server picks up action.json → frontend renders

04 同仓库更多 Skills