Quick Start
1. Install Claude Code
Before installing Claude Code, please ensure your local environment has Node.js 18 or higher installed.
2. Start your first session
import from ‘/snippets/setup-api-key-guide.mdx’;
Please find the list of models currently available for use in Claude Code here.

3. Build a web game from scratch
Input your task description, then pressEnter
to start this task.
Bash



4. Task Results and Preview
After all tasks are completed, you will see the following messages in the terminal:
gravity-pong.html
file in your browser to view and play the game.

5. Use Git with Claude Code
Claude Code makes Git operations conversational:Bash
Bash
Bash
Bash
Bash
6. Improve the game
As we can see, this game needs improvement: the orbs’ position overlaps with the paddle’s position, which affects the gaming experience. Next, we will reposition the orbs to the top-right corner and add game restart functionality.Bash


Try More Workflows
For reference, the following provides some prompt examples for different workflows:- Code Refactoring
Bash
- Write Unit Tests
Bash
- Update Documentation
Bash
- Code Review
Bash
Common Commands
Command | Description | Example |
---|---|---|
claude | Start interactive mode | claude |
claude "task description" | Run a one-time task | claude "fix the build error" |
claude -p "query" | Run one-off query, then exit | claude -p "explain this function" |
claude -c | Continue most recent conversation | claude -c |
claude -r | Resume a previous conversation | claude -r |
claude commit | Create a Git commit | claude commit |
/clear | Clear conversation history | > /clear |
/help | View available commands | > /help |
exit or Ctrl+C | Exit Claude Code | > exit |