commit

GitHub

用于为已暂存的 Git 更改创建提交,自动生成符合规范的提交信息,包括标题、详细描述及引用链接,并通过 HEREDOC 方式执行 git commit。

.agents/skills/commit/SKILL.md fedify-dev/fedify

Trigger Scenarios

用户要求提交代码变更 需要生成标准化的 Git 提交记录

Install

npx skills add fedify-dev/fedify --skill commit -g -y
More Options

Non-standard path

npx skills add https://github.com/fedify-dev/fedify/tree/main/.agents/skills/commit -g -y

Use without installing

npx skills use fedify-dev/fedify@commit

指定 Agent (Claude Code)

npx skills add fedify-dev/fedify --skill commit -a claude-code -g -y

安装 repo 全部 skill

npx skills add fedify-dev/fedify --all -g -y

预览 repo 内 skill

npx skills add fedify-dev/fedify --list

SKILL.md

Frontmatter
{
    "name": "commit",
    "description": "Make a commit in Git with an appropriate commit message for the currently staged changes.",
    "allowed-tools": "Bash(git *)"
}

Please make a commit with an appropriate commit message for the currently staged changes.

Don't touch the staged changes, just create the commit.

The first line of the commit message should be a concise summary of the changes (50 characters or less). You shouldn't follow the conventional commits, in other words, just write a normal commit message without any special prefixes.

The second line of the commit message should be blank.

The rest of the commit message should provide more detailed explanations about the changes, wrapped at 72 characters.

If you have some references like issues or pull requests, you can add them in the body of the commit message, usually after a blank line. Issues and pull requests should be referenced as full URLs instead of #numbers, and you can put some verbs like “Fixes” or “Closes” before the URLs. For just references without any verbs, you can just put the URLs in the body.

When running git commit, pass the commit message via a HEREDOC to preserve newlines correctly. Never use literal \n escape sequences inside a quoted string, as they will appear as literal characters in the commit message. For example:

git commit -m "$(cat <<'EOF'
Summary line here

Detailed explanation here.
EOF
)"

Don't put Generated with [Claude Code](https://claude.ai/code), or Co-authored-by trailers at the end of the commit message. Instead, use the Assisted-by trailer to indicate that the commit was generated by an AI assistant, if necessary. The format of the Assisted-by trailer should be:

Assisted-by: AGENT_NAME:MODEL_VERSION

For example:

Assisted-by: OpenCode:qwen3.6-plus
Assisted-by: Claude Code:claude-sonnet-4-6
Assisted-by: Gemini CLI:gemini-3.1-pro-preview
Assisted-by: Codex:gpt-5.4

Version History

  • 2.3.4 Current 2026-08-20 14:18

Same Skill Collection

.agents/skills/add-to-fedify-init/SKILL.md
.agents/skills/add-vocab/SKILL.md
.agents/skills/create-example-app-with-integration/SKILL.md
.agents/skills/create-integration-package/SKILL.md
.agents/skills/get-reviews/SKILL.md
claude-plugin/skills/actor/SKILL.md
claude-plugin/skills/docs/SKILL.md
claude-plugin/skills/fep/SKILL.md
claude-plugin/skills/inbox/SKILL.md
claude-plugin/skills/migration/SKILL.md
claude-plugin/skills/fedify/SKILL.md
.agents/skills/sacho/SKILL.md

Metadata

Files
0
Version
2.3.6
Hash
aea670a3
Indexed
2026-08-20 14:18

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-03 10:02
浙ICP备14020137号-1 $bản đồ khách truy cập$