~commit

GitHub

规范化 Git 提交信息并同步知识库。支持生成 Conventional Commits,读取配置进行归属标注,并根据设置自动更新项目状态文件与知识库内容。

skills/commands/commit/SKILL.md hellowind777/helloagents

Trigger Scenarios

用户输入 ~commit 命令 需要规范化的 Git 提交操作

Install

npx skills add hellowind777/helloagents --skill ~commit -g -y
More Options

Non-standard path

npx skills add https://github.com/hellowind777/helloagents/tree/main/skills/commands/commit -g -y

Use without installing

npx skills use hellowind777/helloagents@~commit

指定 Agent (Claude Code)

npx skills add hellowind777/helloagents --skill ~commit -a claude-code -g -y

安装 repo 全部 skill

npx skills add hellowind777/helloagents --all -g -y

预览 repo 内 skill

npx skills add hellowind777/helloagents --list

SKILL.md

Frontmatter
{
    "name": "~commit",
    "policy": {
        "allow_implicit_invocation": false
    },
    "description": "规范化 Git 提交 + 知识库同步(~commit 命令)"
}

Trigger: ~commit [message]

执行 ~commit 时,知识库同步与状态文件更新范围按当前已加载的 HelloAGENTS“收尾与归档”/ 流程状态要求执行;本命令只负责生成提交信息、读取提交归属配置并完成提交动作。 auto_commit_enabled=false 只关闭收尾阶段的自动提交,不影响显式 ~commit

流程

  1. 检查 staged changes(git diff --staged)
  2. 如果没有 staged changes,提示用户先 git add
  3. 生成 conventional commit message(如未提供)
    • 格式: type(scope): description
    • type: feat|fix|refactor|docs|test|chore|style|perf
  4. 先一次性解析会话中已知设置:优先使用当前会话上下文中已注入的“当前用户设置”、该配置文件原始 JSON 或此前读取结果摘要;上下文不存在或缺少 commit_attribution / kb_create_mode 时,才读取一次 ~/.helloagents/helloagents.json
  5. 复用上一步已解析的设置获取 commit_attribution
    • ""(空,默认)→ 不添加归属
    • 有内容(如 "Co-Authored-By: HelloAGENTS")→ 添加该内容到 commit message
  6. 执行 git commit
  7. state_path 已存在,按 HelloAGENTS“已有则更新”要求同步当前已提交状态

知识库同步

提交后,继续复用上方已解析的同一份设置获取 kb_create_mode,不要再次读取 ~/.helloagents/helloagents.json

  • 0 = 跳过
  • 1 = 知识库已存在时自动同步(默认)
  • 2 = 编码任务在知识库已存在或当前项目已初始化时自动创建或同步 同步范围与更新格式按当前已加载的 HelloAGENTS“收尾与归档”阶段执行。

Version History

  • 79c0b48 Current 2026-08-20 08:25

Same Skill Collection

skills/commands/auto/SKILL.md
skills/commands/loop/SKILL.md
skills/hello-api/SKILL.md
skills/hello-data/SKILL.md
skills/hello-errors/SKILL.md
skills/hello-perf/SKILL.md
skills/hello-security/SKILL.md
skills/hello-test/SKILL.md
skills/hello-ui/SKILL.md
skills/hello-write/SKILL.md
skills/_meta/SKILL.md
skills/commands/ask/SKILL.md
skills/commands/clean/SKILL.md
skills/commands/help/SKILL.md
skills/commands/init/SKILL.md
skills/commands/plan/SKILL.md
skills/commands/prd/SKILL.md
skills/commands/qa/SKILL.md
skills/commands/test/SKILL.md
skills/hello-arch/SKILL.md
skills/hello-debug/SKILL.md
skills/hello-reflect/SKILL.md
skills/hello-subagent/SKILL.md
skills/helloagents/SKILL.md
skills/qa-review/SKILL.md

Metadata

Files
0
Version
79c0b48
Hash
719702be
Indexed
2026-08-20 08:25

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-26 01:29
浙ICP备14020137号-1 $방문자$