Using Agent Skills and OpenCode as a Game EngineAs an experiment, I made a dungeon-crawling RPG using only agent skills. The player starts off in a dungeon, explores multiple locations and fights enemies that he encounters.![]() There is an inventory and die-roll skill check system as well. The die-roll skill calls a python script to roll dice with customizable parameters, and is used for damage calculation and role-playing skill checks. ![]() Using the question tool, player options are presented as multiple-choice questions. The game is easily customizable by changing gamemaster/reference/ENEMIES.md and gamemaster/reference/ITEMS.md to include whatever enemies or items you want in the game. The entire game is made using agent skills and runs in the OpenCode command-line interface. The foremost skill is the "gamemaster" skill that controls the entire game. It triggers "explore-mode" skill and "combat-mode" skill, that control the exploration mode and combat respectively. During combat, player options like "Attack", "Use item" and "Flee" are also implemented as separate skills. ![]() Overall it works and you are able to play a text-based dungeon-crawling RPG from start to end. To run the game, download this, unzip it, run OpenCode in the OpenCodeRPG directory and prompt "start game" (It should work with ClaudeCode as well) |