Tetris CLI

Play a CLI-based Tetris clone with commands for movement, rotation, and dropping.

Updated Dec 27, 2025
One-click install
npx skills add https://github.com/mikesmullin/tetris --skill tetris-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Tetris CLI
Source: https://github.com/mikesmullin/tetris/tree/main
Command: npx skills add https://github.com/mikesmullin/tetris --skill tetris-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill allows an AI agent to play the classic game of Tetris through a command-line interface, enabling AI-driven gameplay and strategy development.

Core Features & Use Cases

  • Turn-based Gameplay: Interact with Tetris frame-by-frame via CLI commands.
  • AI-Friendly Interface: Designed for LLM players, with clear commands for movement, rotation, and game state display.
  • Use Case: An AI agent can learn and execute complex Tetris strategies, aiming for high scores or long-term survival, demonstrating planning and execution capabilities.

Quick Start

Use the tetris skill to start a new game and then move the falling piece left.

Frequently Asked Questions about Tetris CLI

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable an AI agent to play Tetris via a command-line interface?

To enable an AI agent to play Tetris via a command-line interface, you use a Skill that sends CLI commands for piece movement, rotation, and dropping. It provides visual state feedback to facilitate AI strategy development for turn-based gameplay.

Can I test AI gameplay strategies for Tetris frame-by-frame?

Yes, you can test AI gameplay strategies for Tetris frame-by-frame. The interface is designed for LLM players to interact with the game turn-by-turn using clear commands for movement and rotation, supporting strategy execution and long-term survival planning.

Does the Tetris CLI support game state persistence between moves?

Yes, the Tetris CLI supports game state persistence between moves. It maintains the game state across interactions, allowing the AI agent to execute multi-key input efficiently and receive visual state feedback after each command.

What is the best way to interact with a CLI-based Tetris clone using an LLM?

The best way to interact with a CLI-based Tetris clone using an LLM is through an AI-friendly interface that accepts CLI commands for piece manipulation. It provides clear game state displays and supports multi-key input for efficient interaction.

Are there limitations when developing AI strategies for turn-based games using CLI commands?

When developing AI strategies for turn-based games using CLI commands, limitations include the need for frame-by-frame interaction and explicit command sequencing. The interface requires precise piece movement, rotation, and drop commands to maintain gameplay state.