scalus3

Precommit — Git skill for Claude Code

Git community

Review code, run tests, write a git commit message with context.

How to install Precommit

Installs to ~/.claude/commands/scalus3-scalus-precommit.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/scalus3/scalus/HEAD/.claude/commands/precommit.md -o ~/.claude/commands/scalus3-scalus-precommit.md

Restart Claude Code, or start a new session, for it to be picked up.

What Precommit does


allowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git branch:*), Bash(git log:*), Bash(sbtn quick:*), Bash(sbtn scalafmtAll:*) description: Review code, run tests, write a git commit message with context

Context

  • Current git status: !git status
  • Current git diff: !git diff HEAD
  • Current branch: !git branch --show-current
  • Recent commits: !git log --oneline -10

Your task

  • Review code (use code reviewer agent)
  • Run optimize command
  • Run tests and code for

Alternatives in Git

  • Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★
  • Commit Msg — 生成 Git Commit Message 1k ★
  • Fix GitHub Issue — by jeremymailen - Analyzes and fixes GitHub issues using a structured approach with GitHub CLI for issue detai 708 ★

Full documentation available on GitHub

View Source Repository