log
The log command displays recent Git commit history in a formatted table, extracting the commit hash, message, author, and timestamp. Use this to quickly review project activity and understand what work has been completed recently, with a configurable number of commits to display and a summary highlighting commit patterns and focus areas.
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/huangjia2019/claude-code-engineering/HEAD/05-Commands/projects/01-basic-commands/.claude/commands/git/log.md -o ~/.claude/commands/log.mdlog.md
Show recent git commit history. Number of commits: $ARGUMENTS (default: 5 if not specified) ## Steps 1. Run `git log --oneline -n [count]` 2. Provide a brief summary ## Output Format ``` ## Recent Commits | Hash | Message | Author | Time | |------|---------|--------|------| | abc123 | feat: add login | John | 2h ago | | def456 | fix: null check | Jane | 5h ago | ... ### Summary - Total: [n] commits shown - Most active: [most frequent commit type] - Recent focus: [what recent work seems to be about] ``` Keep it concise and scannable.
Deep analysis of code against project standards
API design patterns and conventions for this project. Covers RESTful URL naming, response format standards, error handling, and authentication requirements. Use when writing or reviewing API endpoints, designing new APIs, or making decisions about request/response formats.
Generate comprehensive API documentation by scanning Express route files.
Generate API documentation from code. Use when the user wants to document APIs, create API reference, generate endpoint documentation, or needs help with OpenAPI/Swagger specs.
Explore and analyze API-related code. Use when investigating endpoints, routing, or HTTP handling.
Generate API endpoint documentation from Express route files. Use when the user asks to generate, update, or review API docs for Express.js routes.
Explore and analyze authentication-related code. Use when investigating auth flows, session management, or security.
Analyze root cause of bugs after location is identified. Second step in bug investigation.