协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
git-commit-only【开发与工程】Use when creating one local Git commit without pushing. Supports diff-based Conventional Commit type/scope/message generation, staged or requested change handling, segmented commit bodies for non-trivial changes, and safe commit-only workflows. Trigger for requests such as "commit this", "create a commit", "commit current changes without pushing", or…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Create one focused local Conventional Commit from the current repository's staged or requested changes without pushing to any remote.
The default output is one commit on the current branch. Analyze the actual diff, stage the requested change set, generate the commit message from the change content, and write a segmented body for non-trivial changes so reviewers can quickly see what changed by topic.
This workflow handles local commit requests only. It does not push, merge branches, rewrite history, create pull requests, or publish changes.
Base format:
<type>[optional scope]: <description>
[body: optional only for trivial changes; required and segmented for non-trivial changes]
[footer(s): required for breaking changes; optional for relevant issue references]
For this skill, the body is optional only for trivial commits. For non-trivial changes, write a segmented body and include a Tests: or localized equivalent section when tests, validators, hooks, or manual verification ran.
Types:
| Type | Use for |
|---|---|
feat | New user-facing or product capability |
fix | Bug fix |
docs | Documentation-only change |
style | Formatting/style change with no logic impact |
refactor | Code restructure with no feature or bug fix |
perf | Performance improvement |
test | Test-only or test coverage change |
build | Build system, dependency, or packaging change |
ci | CI or automation config change |
chore | Maintenance or miscellaneous change |
revert | Revert a previous commit |
Breaking changes:
! after the type or scope, such as feat(api)!: remove legacy field.BREAKING CHANGE: footer when the behavioral contract changes.Message style:
fix login redirect.Closes #123 or Refs #456.Use this skill when the user asks to:
Do not use this skill for:
git-pushing-fast instead.git reset --hard or git checkout -- <file>.Follow this workflow in order. Stop and report the blocker instead of guessing when the target repository or requested commit scope is unclear.
Inspect the repository.
git status --short and git branch --show-current.git diff --cached --stat and git diff --cached; if nothing is staged, review git diff --stat and git diff.git status --porcelain when script-friendly status parsing is useful.Stage changes.
git add -A.git add -p only when the requested scope requires logical grouping.git status --short and verify the intended files are staged..env, credential files, private keys, or tokens.Build the commit message.
type(scope): concise summary in the repository's existing commit language.Tests: or localized equivalent section when tests, validators, hooks, or manual verification ran.Example segmented body:
fix(module): update component behavior
Behavior:
- Adjust the default state for the affected component.
- Keep existing behavior unchanged for unsupported input.
Implementation:
- Move repeated logic into a small helper.
- Update related configuration to use the new helper.
Tests:
- Add coverage for the updated behavior.
- Run the relevant validator before committing.
Commit.
git commit with multiple -m arguments or an editor-free equivalent so the body is preserved.--no-verify.Report.
git reset --hard or git checkout -- <file> unless explicitly requested.