commit
Commit all changes on the current branch, main included.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 27
- Forks
- 9
01 前言 Front Matter
- name
- commit
- license
- MIT
- description
- Commit all changes on the current branch, main included.
- argument-hint
- [message hint]
- disable-model-invocation
- true
02 资源文件 1
- 参考文档agents/openai.yaml154 B
03 SKILL.md 正文
Commit every change in the working tree on the current branch. Do not switch or create a branch, even on main. The arguments, if any, are a hint at what the change is about, not the message itself.
- Run
git status --short --branch --untracked-files=all. WhenHEADexists, rungit diff HEAD --statandgit log --oneline -10, then read the full diff (git diff HEAD). For an initial commit with noHEAD, readgit diff --cachedfor staged additions andgit difffor their unstaged changes; there is no history to inspect. In either case, read every untracked file, including files inside new directories, before writing anything. - Scan it for credentials, tokens, private keys, and any value that does not belong in this repository. If you find one, stop, commit nothing, and report what you found.
- An untracked directory that holds a local tool's state (an index, cache, or database, such as
.codegraph/) belongs in the root.gitignore, even when it ships its own.gitignore: add its path there, commit that line with the rest, and say so in the report. - Stage the changes. Prefer explicit paths over
git add -A. - Write a Conventional Commit
type(scope): description, matching the subject style ingit logwhen history exists. When theoss-writingskill is installed, load and follow it through the host's skill mechanism for the wording. - Commit. Report the subject and the short hash, plus the
.gitignoreline from step 3 if you added one, nothing else.
Split into several commits when the diff covers unrelated changes.
04 同仓库更多 Skills
writing-for-agents
Writing documents for agents. Use when creating or editing skills, modifying AGENTS.md or CLAUDE.md, or writing any doc an agent reaches by a pointer.
what-would-you-do
Explain the question you just asked and recommend an answer, with the case for and against each option.
wayfinder
Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
wait-what
Stop. That last message did not land: re-pitch it.
triage
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
to-tickets
Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).