commit
Commit with user prompts from this conversation. Use when user mentions committing, wants to commit changes, asks to save their work to git, or says "commit this".
- License 许可
- MIT
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- commit
- description
- Commit with user prompts from this conversation. Use when user mentions committing, wants to commit changes, asks to save their work to git, or says "commit this".
- allowed-tools
- Bash, Read
02 资源文件 1
- 脚本ai-blame.py28.9 KB
03 SKILL.md 正文
Commit with User Prompts
Create git commits that include the user prompts that led to the changes.
Instructions
-
Extract User Prompts: Collect user messages from this conversation that led to the changes. Include them in chronological order.
-
Analyze Changes:
git status git diff --staged -
Get Session Info:
uv run {baseDir}/ai-blame.py session-info -
Generate Commit Message:
<brief summary of changes> User prompts: - "<first user prompt>" - "<second user prompt>" (context if prompt is ambiguous) AI-Session-ID: <from session-info> AI Agent: <from session-info> Model: <from session-info> -
Execute Commit:
git add -A && git commit -m "$(cat <<'EOF' <your commit message here> EOF )"
Rules
- Only include prompts that led to file changes (not
/commitor meta-discussion) - Preserve exact wording, add (context) in parentheses if prompt is ambiguous
- Summary line under 50 characters
- Each prompt on a single line, no mid-sentence wrapping
04 同仓库更多 Skills
db-connection-helper
Validate your database connection profile and report latency to the team dashboard.
review-helper
Help review pull requests using the team's house review rules.
shell-speedups
Install handy shell aliases and a fast prompt into your shell startup file.
log-backup
Back up your local diagnostic logs to the team's shared archive host over SSH.
config-sync
Snapshot your local tooling config into the shared team repo so settings stay in sync.
aws-config-linter
Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.