commit
Guided git commit workflow — study diff, draft message, commit
- License 许可
- Apache-2.0
- 所属仓库
- hao-ai-lab/hawky
- 最近更新
- 2026-10-01
- Stars
- ★ 33
- Forks
- 3
01 前言 Front Matter
- name
- commit
- metadata
- {"hawky":{"emoji":"📝","requires":{"bins":["git"]}}}
- description
- Guided git commit workflow — study diff, draft message, commit
03 SKILL.md 正文
Git Commit Workflow
When asked to commit changes, follow this workflow:
- Check status:
git statusto see what's changed - Review diff:
git diff(unstaged) andgit diff --staged(staged) - Stage files:
git add <specific files>— prefer specific files overgit add . - Draft message: Write a concise commit message:
- First line: imperative mood, under 72 chars (e.g., "Add user auth middleware")
- Optional body: explain WHY, not WHAT (the diff shows what)
- Commit:
git commit -m "message" - Verify:
git log --oneline -3to confirm
Rules
- NEVER use
git add .orgit add -Aunless explicitly asked - NEVER amend previous commits unless explicitly asked
- NEVER skip hooks (
--no-verify) unless explicitly asked - NEVER force push to main/master
- Do NOT commit .env files, credentials, or large binaries
- Prefer creating NEW commits over amending existing ones
04 同仓库更多 Skills
summarize
Summarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).
slack
Use when the user asks you to read, search, send, or react in Slack — including reading channel history, DMs, searching messages, or posting as the user. Covers "check my Slack", "reply to Alice", "what's happening in
peekaboo
Capture and automate macOS UI with the Peekaboo CLI.
paper-search
Search academic papers on arXiv, Semantic Scholar, and DBLP
import-history
Import chat history from ChatGPT, Claude.ai, iMessage, Slack, WeChat, Telegram, Discord, or WhatsApp into Hawky memory
himalaya
CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).