一键导入
commit
Format a git commit message following Dom's usual conventions Use this skill when asked to create a commit message Invocation: /commit Example: /commit
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Format a git commit message following Dom's usual conventions Use this skill when asked to create a commit message Invocation: /commit Example: /commit
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | commit |
| description | Format a git commit message following Dom's usual conventions Use this skill when asked to create a commit message Invocation: /commit Example: /commit |
This skill analyzes staged git changes and crafts a well-structured commit message following the conventions below, then presents the draft for confirmation before committing.
<summary line>
<problem/context paragraph>
<solution/what-changed paragraph>
<other changes paragraph (optional)>
<ticket reference (optional)>
Summary line (first line):
Problem/context paragraph:
Solution/what-changed paragraph:
Other changes paragraph (if needed):
Ticket reference (if applicable):
Fixes: XXXX if this commit should close the linked issueRef: XXXX if this is one of a series of changes for that issueRun these commands to understand the changes:
# See what's staged
git diff --cached --stat
git diff --cached
# Get branch name (may contain ticket ID)
git branch --show-current
XXX-1234, or
feat/XXX-1234-description)Fixes: (closes the issue) or Ref: (one of a series)Based on the staged diff, draft a complete commit message following the structure above. Think about:
Present the full draft and ask the user to confirm or suggest edits:
Here's the proposed commit message:
---
<full commit message>
---
Does this look good, or would you like to change anything?
Once confirmed, create the commit:
git commit -m "$(cat <<'EOF'
<final commit message>
EOF
)"
Nothing staged, no unstaged changes:
git log origin/HEAD..HEAD --onelinegit log -1 --format=%B,
reformat it, present for review, then amend with git commit --amend -m "..."Nothing staged but unstaged changes exist: Tell the user and ask them to stage changes first before proceeding.
Introduce a handles_intents property for the App Service
Currently, apps are filtered for use in intent picking and file opening
surfaces by whether they appear in the launcher. However, there are some
apps (like the Gallery) which are hidden from the launcher but should
appear in these surfaces.
Introduce a new handles_intents property on the App Service App struct
to communicate this distinction. This allows
AppServiceProxyBase::GetAppsForIntent to be simplified to avoid
special-case checking for specific apps. Instead, publishers can
appropriately set the handles_intents property for apps.
This allows the removal of a hack that previously existed to ensure
Gallery appeared for intents. There are no behaviour changes resulting
from this change.
A test is added to ensure that Gallery properly appears as an intent
target even though it is hidden in the launcher.
Ref: CHR-1240906
Do not clear WebsiteMetrics on history expiration
At browser startup, a task is scheduled to expire history entries >90
days old. This means that cached WebsiteMetrics entries are cleared
indiscriminately as the task runs before the cached entries are
uploaded. Additionally, in-memory metric values are also
indiscriminately cleared whenever the task runs, resulting in
~30-40% of website usage metrics being lost and never reported.
Address the issue by skipping clearing metrics when the deletion is due
to history expiration. This is permissible as the metrics are cached for
at most 2 hours of usage, while expired history entries are at least 90
days old. Update the test to exercise this case.
Fixes: CHR-1427645