Introduction
Claude Commands Library is a collection of three slash commands for Claude Code that improve how you write prompts and research codebases.
Why Use This Library?
Without it
You: "Add authentication to my app"
Claude: *implements basic username/password*
You: "No, I meant OAuth with Google"
Claude: *refactors to OAuth*
You: "And I need JWT tokens for the API"
Claude: *adds JWT layer*Result: 3 rounds of back-and-forth, wasted tokens, fragmented implementation.
With /prompt
You: /prompt Add authentication to my app
Claude: Before you proceed, let me clarify:
1. Which authentication method?
- Option A: OAuth (Google, GitHub, Microsoft)
- Option B: JWT with username/password
- Option C: Session-based with cookies
2. Which providers should you support?
3. Where should user data be stored?
- Your existing Users table
- New OAuth-specific tables
You: OAuth, Google only, existing Users table
→ Structured prompt ready. Hand it to Claude for precise implementation.Result: One clear conversation. Correct implementation on the first attempt.
The Three Commands
/prompt — Analyses any prompt, asks targeted questions, and rewrites it into a structured executable form.
/prompt-article-readme — Scans your project and generates or updates README.md matched to the detected stack.
/prompt-research — Multi-step research for unfamiliar codebases. Spawns parallel agents, iterates on findings, produces a cited report.
Core Concept: Phase 0
Every command begins with Phase 0 — a shared validation layer that:
- Detects what you're asking (task, question, bug fix, etc.)
- Recalls known facts from project memory
- Checks for missing information
- Asks only genuinely unknown questions
- Structures the result into a clear format
- Waits for your approval
What You'll Learn
- Installation — get set up in 2 minutes
- Quick Start — your first commands
- Your First Prompt — detailed walkthrough
- Commands — complete command reference
- Architecture — how everything works
Requirements
- Claude Code CLI installed
- Windows 10/11 (PowerShell installer);
.claude/directory is OS-agnostic - Git
Recommended Path
- Install the library (2 minutes)
- Try the quick start (5 minutes)
- Build your first perfect prompt (10 minutes)