Skip to main content
command CX Codex

log · syahiidkamil — Claude Code command: what it does, how to install

log inspects recent git commits, summarizes their themes, and maps them against uncommitted changes in your working tree.

no license ★ 406 updated 2026-06-25

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/log.md
Open on GitHub

What log does

The command triggers git log, git status --short, and git diff --stat HEAD through Bash simultaneously. It prints the raw commit log output before adding anything else. Next, Claude clusters the commits by topic, such as bug fixes or refactoring chores, into two to four bullets.

When staged or unstaged edits touch files from recent commits, the command evaluates the overlap. It flags whether ongoing changes align with earlier commits or revert them, and it warns about structural conflicts. Without a git repository, the script fails.

What it helps with

  • review recent git history alongside uncommitted workspace modifications
  • categorize git commits by functional area or change type
  • spot potential merge risks between fresh refactors and active diffs

Example prompts for the agent

  • /log
  • /log 10
  • Run /log 3 to inspect our recent history

How to install log

Manually: put the files in place

.claude/commands/log.md

Call it with /log. For all projects use ~/.claude/commands/

Questions about log

How to install log in Claude Code?

Save the command definition file to .claude/commands/log.md. Claude Code will automatically detect it in your project.

How many commits does log inspect by default?

It evaluates 5 commits whenever invoked without an argument or with a non-positive number.

What happens when working files do not touch recent commits?

The assistant prints No overlap between recent commits and current working state. and stops without running extra commands.

Similar slash commands

All slash commands for Git and GitHub →

log by other authors comes first.

log davila7 The /orchestration/log command sends task completion reports to Linear, Obsidian, Jira or GitHub Issues. Triggered manually after finishing a task or at day's end for a summary. CX Codex +1 351installs commit-hygiene alinaqi commit-hygiene monitors diff sizes, advises when to commit early, and helps split large code changes into atomic commits. CX Codex +1 343installs retrospective Donchitos A skill for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode that runs a sprint or milestone retrospective from commit history, sprint plans, and task statuses. Produces a concrete action list for the next iteration. CX Codex +1 659installs principle-sequence-verifiable-units backnotprop principle-sequence-verifiable-units is a Claude Code skill for splitting migrations and repeated edits into checked steps. Each step ends in a verifiable state. CX Codex +1 10,100installs weekly-review cursor The weekly-review skill pulls your commits from the past 7–10 days, groups them by work type, and produces a brief report for status updates and retrospectives. Requires a configured git with email set. CX Codex +1 2,600installs pr-workflow tursodatabase pr-workflow enforces rules for atomic commits, clean PRs, dependency licensing, and secret hygiene. Useful for agents pushing code or running inside CI workflows. CX Codex +1 1,200installs git-workflow agno-team git-workflow — a skill that enforces best practices for commits, branch names, and pull requests. Includes commit message validation, branch naming templates, and PR checklist structure — useful if your team has git standards. CX Codex +1 675installs

From the same set26

The whole set →
commit Runs a background subagent to commit staged Git changes following ATLAS conventions. Useful when you want automated commits without blocking your session. CX Codex +1 ★ 406repo stars stage-commit The stage-commit command hands working-directory changes to a background commit subagent. Use it to create grouped commits and keep going until Git reports a clean tree. CX Codex +1 ★ 406repo stars learning-from-mistakes learning-from-mistakes — a skill that writes a bug or mistake into a separate file after the problem is resolved. Captures the cause, fix, and lesson to avoid repeating the debugging work. CX Codex +1 ★ 406repo stars create-test-cases create-test-cases drafts browser-focused manual test cases in Markdown for a project feature or area. Use it to prepare cases for /qa:manual-test-run. CX Codex +1 ★ 406repo stars wireframe The wireframe command renders a static low-fidelity screen layout into a single HTML file — gray boxes, dashed borders, no libraries. Opens with a double-click. CX Codex +1 ★ 406repo stars commit Creates Git commits autonomously using ATLAS conventions without asking for approval. Handles staged files or splits working changes into clean commits. CX Codex ★ 406repo stars abstraction-power The abstraction-power skill guides Claude Code from concrete code examples to reusable models by spotting their shared structure. Use it to examine duplicated logic or shape a system design. CX Codex +1 ★ 406repo stars get-to-know get-to-know is a Claude Code command that initializes project context by gathering stack, structure, and conventions, creating a project map, and configuring the environment. CX Codex +1 ★ 406repo stars

Project sponsors

Companies that keep this analytics open