Chapter 15: Slash Commands
Slash Commands Overview
Slash Commands are shortcuts for quickly invoking specific features, starting with /.
Common Commands Explained
/commit - Commit Code
15.2 常用命令详解
bash
You: /commit
Claude: Creating commit with staged changes...
✓ Commit created/review-pr - Review PR
bash
You: /review-pr 123
Claude: Reviewing PR #123...
[Review results]/feature-dev - Feature Development
bash
You: /feature-dev "comment system"
Claude: Starting feature development workflow.../help - Help
bash
You: /help
Available commands:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/commit - Create Git commit
/review-pr - Review pull request
/feature-dev - Feature development
/code-review - Review code quality
/help - Show help
/clear - Clear context
/save - Save session
/load - Load session
/history - Show history
/quit - Exit
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━Command Combination Tips
15.3 命令组合技巧
bash
# Develop → Test → Commit
You: /feature-dev "login feature"
You: run tests
You: /commitSummary
In this chapter, we learned:
- ✅ Slash commands overview
- ✅ Common commands explained
- ✅ Command combination tips
Next Step: Chapter 16 introduces checkpoints!