Skip to main content
skill CX Codex

autonomous-agent-gaming — Claude Code skill: what it does

autonomous-agent-gaming is a skill with runnable examples of rule-based, minimax, MCTS and Q-learning bots, plus a chess engine for agents choosing game moves.

no license 274 installs ★ 50 updated 2026-01-05

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add qodex-ai/ai-agent-skills --skill autonomous-agent-gaming -a claude-code
Open on GitHub

What autonomous-agent-gaming does

Under examples/ sit four strategies: a rule-based player, minimax with alpha-beta pruning, Monte Carlo Tree Search, and tabular Q-learning. There is also a chess engine in examples/chess_engine.py, plus scripts/game_theory_analyzer.py for game-theory analysis and scripts/agent_benchmark.py for pitting agents against each other.

Environments follow one contract: reset(), step(action), get_legal_actions(state), is_terminal(state), render(). Gym environments plug in directly, and PygameGameEnvironment is the base class when you draw your own board. Strategy pieces live in examples/strategy_modules.py: an opening book that hashes positions for fast lookup and endgame tablebases.

The chess example needs pip install python-chess before it runs, and drawing a custom game takes pygame. Put those in place first.

What it helps with

  • Build a turn-based bot that searches the move tree
  • Train a Q-learning agent on your own state space
  • Validate chess moves and play a full game
  • Wrap a homemade game in the shared environment interface
  • Benchmark several agents over the same matches

Example prompts for the agent

  • Write a minimax agent with alpha-beta pruning for tic-tac-toe
  • Run examples/qlearning_agent.py and explain how epsilon decay works
  • Build a pygame environment for my card game based on examples/game_environment.py

How to install autonomous-agent-gaming

1Skills CLI (Vercel)

npx skills add qodex-ai/ai-agent-skills --skill autonomous-agent-gaming -a claude-code

2Manually: put the files in place

~/.claude/skills/autonomous-agent-gaming/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/autonomous-agent-gaming/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about autonomous-agent-gaming

How do I install autonomous-agent-gaming in Claude Code?

Run npx skills add qodex-ai/ai-agent-skills --skill autonomous-agent-gaming -a claude-code. The skill ends up at ~/.claude/skills/autonomous-agent-gaming/SKILL.md.

What does autonomous-agent-gaming do?

It supplies working game-agent examples: rule-based, minimax, MCTS, Q-learning and chess, along with an environment interface and strategy modules for openings and endgames.

What do I need to run the chess example?

The python-chess package, installed with pip install python-chess. Drawing your own game also takes pygame.

Similar skills

All skills for AI and ML →

From the same set42

The whole set →
creative-generation-agent creative-generation-agent is a Claude Code skill with Python architecture and templates for agents that produce synthetic audio or digital artwork. It supports generative media pipeline assembly. CX Codex +1 575installs system-design system-design enforces Clean Architecture and DDD standards for coding agents. Steers models away from reinventing common utilities. CX Codex +1 218installs chat-with-arxiv chat-with-arxiv searches ArXiv preprints, parses PDF files, and generates answers with source citations. Designed for literature reviews and cross-paper synthesis. CX Codex +1 305installs deep-research-agent deep-research-agent is a Claude Code skill that automates data collection, source validation and report writing for market overviews, competitive analysis and academic literature reviews. CX Codex +1 290installs rag-agent-builder rag-agent-builder provides templates and scripts to build RAG pipelines with vector databases, hybrid retrieval, and response evaluation. CX Codex +1 263installs generate-swagger-docs generate-swagger-docs scans a codebase for API endpoints and produces an OpenAPI file plus interactive HTML docs. Use it when a REST API needs generated documentation. CX Codex +1 260installs voice-ai-integration voice-ai-integration turns spoken input into an answer: speech recognition, intent parsing, then a synthesized reply. Python examples for Whisper, Google Cloud, Azure and ElevenLabs. CX Codex +1 211installs presentation-builder presentation-builder is a Claude Code skill that creates and edits PowerPoint files. It handles tasks involving slides, layouts, animations, and speaker notes. CX Codex +1 203installs

Project sponsors

Companies that keep this analytics open