Claude Code How-To Guide

description: Clean up code, stage changes, and prepare a pull request allowed-tools: Bash(git add:), Bash(git status:), Bash(git diff:), Bash(npm test:), Bash(npm run lint:*)


Pull Request Preparation Checklist

Before creating a PR, execute these steps:

  1. Run linting: prettier --write .
  2. Run tests: npm test
  3. Review git diff: git diff HEAD
  4. Stage changes: git add .
  5. Create commit message following conventional commits:
  6. fix: for bug fixes
  7. feat: for new features
  8. docs: for documentation
  9. refactor: for code restructuring
  10. test: for test additions
  11. chore: for maintenance

  12. Generate PR summary including:

  13. What changed
  14. Why it changed
  15. Testing performed
  16. Potential impacts

Last Updated: August 4, 2026 Claude Code Version: 2.1.220 Sources: - https://code.claude.com/docs/en/commands Compatible Models: Claude Fable 5.2, Claude Fable 5.1, Claude Fable 5, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 5.5, Claude Haiku 4.5