用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/SAP/node-hdb --skill hdb-commit-msg命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | hdb-commit-msg |
| description | Use when creating a new commit, making a commit, committing changes, or writing a commit message in node-hdb. |
Generates a well-formatted git commit message for node-hdb following project conventions. Always confirms the message with the user before committing.
Run git status to check staged and unstaged changes
Determine what to commit:
git addgit status, show them, and ask — "I'll stage these files: [list]. Does that look right?" — wait for confirmation, then stagegit add -ARun git diff --staged to analyze the staged changes
Infer the commit type from the diff (see Types below)
Use no scope by default unless the user specifies one
Ask: "Does this commit relate to a public issue? If so, what's the issue number?"
Draft the commit message (header + body)
Show the full message, then ask:
"Does this commit message look good?"
On option 1, commit using a heredoc to preserve formatting:
git commit -m "$(cat <<'EOF'
[TYPE](#issue)(scope) <summary description>
Relates to issue [#N](https://github.com/SAP/node-hdb/issues/N)
- <change 1>
- <change 2>
EOF
)"
(Omit (#issue) and the Relate to line together if no public issue; omit (scope) if no scope.)
On option 2, apply the suggestion, revise, and re-ask
[header line]
[body]
The header and body are separated by a blank line.
[TYPE](#issue)(scope) <summary description>
(#issue) and (scope) are both optional and independentExamples from this repo:
[FEATURE](stmt distr) add topology update records in reply[INTERNAL] refactor vars to const/let in Connection.js[FIX] fix failing compression unit-test after removing packet size checking[FIX](#42) correct type mapping for DECIMAL columns — with public issue[FIX](#42)(datatype) correct type mapping for DECIMAL columns — with bothUse bullet points to summarize notable changes — include what changed and why/benefit, skip trivial or self-explanatory edits.
- <change 1> [and why/benefit if non-obvious]
- <change 2> [and why/benefit if non-obvious]
Example:
- add SystemInfo class to store and update connection topology information
- remove redundant _connect() method from Connection as it's now handled by PhysicalConnection
Mutually exclusive — one per commit:
| Type | When to use |
|---|---|
FEATURE | New feature visible to users or callers |
FIX | Bug fix |
TEST | Adding or updating tests only |
DOC | README.md changes only |
INTERNAL | Non-functional changes, refactoring, comments |
RELEASE | Version bumps, release assembly |
INFRA | Build or test infrastructure only |
Co-Authored-By: Claude, 🤖 Generated with...)Scope: No scope by default; only include if the user specifies one
Public issue reference: Ask the user if the commit relates to a public issue before drafting. Only applicable for [FIX] (bug label) and [FEATURE] (enhancement label) commits. If yes, include (#issue) in the header and a Relates to line as the first line of the body:
[FIX](#42)(stmt distr) correct type mapping for DECIMAL columns
Relates to issue [#42](https://github.com/SAP/node-hdb/issues/42)
- fix DECIMAL type mapping to return correct JS number
(#issue) and (scope) are both optional and independent — include neither, either, or both as appropriate.
Breaking changes: If the diff suggests a breaking API/behavior change, ask the user to confirm, then include (BREAKING CHANGE) on its own line in the body
Multi-area changes: If changes span clearly unrelated areas, suggest splitting into multiple commits before proceeding
基于 SOC 职业分类