Skip to main content
command CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/examples.md
Open on GitHub

What 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 /examples and show a pair-programming flow for JWT authentication.
  • Use /examples to 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.md

Call it with /examples. For all projects use ~/.claude/commands/

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.

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →

From the same set76

The whole set →
trading-predictor trading-predictor — a Claude subagent that measures how far its computation runs ahead of market-data delivery, then uses the gap for predictions and risk numbers. CX Codex ★ 850repo stars backend-dev The backend-dev subagent builds backend APIs and draws on earlier API work. Use it for tasks involving endpoints, routes, REST, or GraphQL. CX Codex ★ 850repo stars project-board-sync project-board-sync — a command that keeps a GitHub Projects board in step with agent-swarm tasks: states, agent labels and priorities land in the right columns. CX Codex +1 ★ 850repo stars api-docs api-docs — a Claude Code subagent that inspects application endpoints to produce and maintain OpenAPI 3.0 specifications. CX Codex ★ 850repo stars base-template-generator base-template-generator writes the starting file set for a new component, endpoint or project config, then reuses templates that worked before. CX Codex ★ 850repo stars planner planner is a Claude Code subagent that breaks down engineering goals, maps dependencies, and allocates agents using execution memory. CX Codex ★ 850repo stars researcher The researcher subagent examines code, documentation, and module relationships, then organizes findings into a research summary. Use it to map an unfamiliar project or spot gaps in its docs. CX Codex ★ 850repo stars v3-integration-architect v3-integration-architect — a Claude subagent that carries out ADR-001: folding claude-flow into agentic-flow@alpha as an extension and cutting 10,000+ duplicated lines. CX Codex ★ 850repo stars

Project sponsors

Companies that keep this analytics open