# examples

The examples command presents pair-programming sessions for JWT auth, Node.js debugging, TDD, refactoring, React performance, and Express APIs.

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 850 repo stars
- Author: ruvnet
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ruvnet/agentic-flow/tree/HEAD/.claude/commands/pair/examples.md
- Updated: 2026-10-26
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/examples

## What it 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.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/examples.md` — Call it with /examples. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/examples.md` — Call it with /prompts:examples. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/examples.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/examples.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ruvnet/agentic-flow/tree/HEAD/.claude/commands/pair/examples.md

## When to use it
- 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
- 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`.

## Similar
- [Pair Programming](https://affpapa.org/en/nevibecode/skills/pair-programming.md) — skill · 1200 installs
- [pair](https://affpapa.org/en/nevibecode/skills/pair.md) — skill · ★ 265 repo stars
- [xp-practices](https://affpapa.org/en/nevibecode/skills/xp-practices.md) — skill · 125 installs
- [ai-agent-specialist](https://affpapa.org/en/nevibecode/rules/ai-agent-specialist.md) — rule · ★ 41178 repo stars
- [WORKFLOW_EXAMPLES](https://affpapa.org/en/nevibecode/agents/workflow-examples.md) — subagent · ★ 1357 repo stars
- [ssotize](https://affpapa.org/en/nevibecode/skills/ssotize.md) — skill · 1500 installs

From the same set: [ruvnet/agentic-flow](https://affpapa.org/en/nevibecode/by/ruvnet/agentic-flow.md) — 76 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
