Slash Command790 repo starsupdated 12d ago
quick-commit
The quick-commit command executes a rapid git workflow by validating a commit message, checking for changes, and automatically staging, committing, and pushing modifications. Use this command for small, straightforward code fixes when you want to bypass the more comprehensive handoff-verify workflow, though it will prompt for confirmation if changes exceed three files or twenty lines.
Install in Claude Code
Copymkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/sangrokjung/claude-forge/HEAD/commands/quick-commit.md -o ~/.claude/commands/quick-commit.mdThen start a new Claude Code session; the slash command loads automatically.
Definition
quick-commit.md
# /quick-commit - 빠른 커밋 (v6)
---
## 0단계: 메시지 확인
커밋 메시지가 인자로 제공되었는지 확인한다.
메시지가 없으면 에러를 출력하고 종료한다.
```
사용법: /quick-commit "커밋 메시지"
```
---
## 1단계: 변경사항 확인
```bash
git status --short
git diff --stat
```
변경사항이 없으면 에러를 출력하고 종료한다.
변경 규모 체크:
- 변경 파일 3개 초과 또는 20줄 초과 시 경고:
```
변경이 큽니다. 전체 워크플로우 권장:
/handoff-verify → /sync-docs → /commit-push-pr --merge
그래도 빠른 커밋하려면 "계속"이라고 입력하세요.
```
---
## 2단계: 빠른 검증
`git diff`로 변경 내용을 확인한다:
- 명백한 오류만 체크
- 문제 있으면 안내 후 중단
---
## 3단계: 커밋 실행
```bash
git add -A
git commit -m "{메시지}"
git push
```
---
## 4단계: 출력
### 성공 시
```
════════════════════════════════════════════════════════════════
Quick Commit v6
════════════════════════════════════════════════════════════════
커밋: {short_hash}
메시지: {메시지}
변경: +{N} -{N} ({N} files)
════════════════════════════════════════════════════════════════
```
### 메시지 누락 시
```
════════════════════════════════════════════════════════════════
Quick Commit v6
════════════════════════════════════════════════════════════════
커밋 메시지가 필요합니다.
사용법: /quick-commit "fix: 오타 수정"
════════════════════════════════════════════════════════════════
```
### 변경사항 없을 때
```
════════════════════════════════════════════════════════════════
Quick Commit v6
════════════════════════════════════════════════════════════════
커밋할 변경사항이 없습니다.
git status: clean
════════════════════════════════════════════════════════════════
```More from this repository
architectSubagent
|
build-error-resolverSubagent
|
code-reviewerSubagent
|
database-reviewerSubagent
Use when writing SQL queries, creating migrations, or troubleshooting database performance in Supabase/PostgreSQL projects. Reviews indexes, RLS policies, schema types, N+1 patterns. Read-only reviewer with EXPLAIN ANALYZE capability.
doc-updaterSubagent
|
e2e-runnerSubagent
|
plannerSubagent
|
refactor-cleanerSubagent
|