examples — Claude Code command: examples and install
The examples command presents pair-programming sessions for JWT auth, Node.js debugging, TDD, refactoring, React performance, and Express APIs.
no license ★ 850 updated 2026-10-26
.claude/commands/examples.mdWhat examples does
The command collects pair-programming examples for several development tasks. The shown scenarios cover JWT authentication, a Node.js memory-leak investigation, a shopping-cart feature built with TDD, legacy-code refactoring, and learning React hooks. It also includes React profiling and REST API work with Express.
Each scenario starts with a claude-flow pair --start setup that selects a mode, agent, and focus. The session then moves through prompts for explanation, implementation, test generation, review, refactoring, or commits. The database example begins a MongoDB-to-PostgreSQL migration. The claude-flow command must be available because the session setups invoke it.
What it helps with
- choose a pair-programming session pattern
- work through JWT authentication
- debug a Node.js memory leak
- build a shopping cart with TDD
- plan a legacy-code refactor
Example prompts for the agent
- Run
/examplesand show a pair-programming flow for JWT authentication. - Use
/examplesto find a Node.js memory-leak debugging scenario. - Show a TDD session for a shopping cart with
/examples.
How to install examples
Manually: put the files in place
.claude/commands/examples.mdCall it with /examples. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/examples.mdCall it with /prompts:examples. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/examples.prompt.mdManually: put the files in place
.gemini/commands/examples.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about examples
How do I install examples in Claude Code?
Save the command file at .claude/commands/examples.md.
What does the examples command do?
It presents pair-programming scenarios for authentication, debugging, TDD, refactoring, React, and REST API work. The examples include session setup and agent command flows.
What is required to run the examples?
The scenarios invoke claude-flow pair --start, so the claude-flow command must be available in the environment.