一键导入
commit
Stage and commit with flexible intent parsing. Accepts file/folder scope, free-text description, amend, or any combination.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Stage and commit with flexible intent parsing. Accepts file/folder scope, free-text description, amend, or any combination.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Fetch & embed AI transcripts as Obsidian callouts. Args: <path>, all, refresh <path>. Prompts for URLs if empty.
Resolve and fill Participants frontmatter + link unlinked names in body. Args: <path>, all.
Extract action items as plain markdown bullets (with confirmation). Args: <path>. No args = run [/note-status pending --step=todos](../note-status/SKILL.md#pending-mode).
Show when you last had a 1:1 with each direct report / peer, sorted by recency. Flags people who haven't had one in N weeks. Powered by the OneOnOnes view on Meetings.base.
Gmail AI transcript notifications → meeting Notes: URLs + mark read. Args: (none). Invoked standalone or as step 1 of /meeting wrap.
Create or wrap meeting notes. Args: {title} [folder=X], wrap <path>, wrap pending [today|this week|dates]. No args = pick from Google Calendar.
| name | commit |
| description | Stage and commit with flexible intent parsing. Accepts file/folder scope, free-text description, amend, or any combination. |
| license | MIT |
| Command | What it does |
|---|---|
/commit | Commit staged files; if none staged, infer related changes |
/commit <file> | Scope to a specific file's changes |
/commit <folder>/ | Scope to a folder's changes |
/commit <description> | Infer scope from free-text intent |
/commit <scope> <description> | Scope + explicit intent |
/commit amend | Amend the last commit (re-use message) |
/commit amend <scope/description> | Amend with additional scope or new message |
| (sequence mode) | Deferred — sub-skills skip, caller commits once at the end |
Parse the raw argument string into scope, intent, and flags:
amend, set amend mode and strip it. The remainder is parsed normally.@-reference or plain text. Multiple scopes are allowed.Examples:
| Input | Scope | Intent | Amend |
|---|---|---|---|
| (empty) | — | — | no |
Meetings/Engineering/ | Meetings/Engineering/ | — | no |
.gitignore | .gitignore | — | no |
my awesome refactor | — | my awesome refactor | no |
Meetings/ wrap up notes | Meetings/ | wrap up notes | no |
amend | — | — | yes |
amend .obsidian/ | .obsidian/ | — | yes |
amend fixed typo | — | fixed typo | yes |
Run in parallel:
git diff --staged --stat — staged changesgit diff --stat — unstaged changesgit status --short — untracked filesgit log --oneline -5 — recent commits (for style and amend safety)Resolve which files will be committed, based on parsed arguments:
| Scenario | File set |
|---|---|
| Scope provided | Only changed/untracked files under the given path(s). Ignore everything else. |
| Intent provided, no scope | Analyze all changed files; select only those whose diffs relate to the described intent. Present the selection for confirmation. |
| No args + staged files exist | Use exactly what's staged. Do NOT add unstaged files — the user intentionally staged those. |
| No args + nothing staged | Analyze all changed/untracked files. Group related changes and propose a sensible set. Ask for confirmation. |
If nothing matches (no changes in scope, or no related files for intent), tell the user and stop.
git restore --staged <path>).Analyze the staged diff (git diff --staged) and write:
type: summary.
add (new files), update (modify existing), fix (corrections), chore (config/tooling), feat (new capability), refactor, docs, rename.Show:
Wait for user confirmation before proceeding.
git commit with the confirmed message.git commit --amend (see safety rules below). If the user provided new intent, replace the message; otherwise keep the existing message (--no-edit).Do not push.
Before amending, verify ALL of these conditions:
git log -1.git status should show "Your branch is ahead" or the commit should not exist on the remote.amend.If any condition fails, refuse and explain why. Suggest creating a new commit instead.
When called as part of a sequenced workflow (e.g. /meeting wrap), the caller owns the commit. Individual sub-skills skip their commit step.
How to detect: the calling workflow explicitly states it is running sub-skills in sequence. Do not offer to commit — just proceed. The sequence owner commits once at the end with a combined message.
When committing on behalf of a sequence:
update: /{workflow-name} {argument} (e.g. update: /meeting wrap Meetings/Engineering/Some Meeting.md).git status fails, skip entirely without error..env, credentials, tokens).