Agent Skillslthoangg/OpenAgentd › oad/commit

oad/commit

GitHub

提供符合规范的 Git Commit 工作流,自动暂存、分析变更并生成结构化提交信息。支持按类型(feat/fix等)和大小拆分提交,确保日志清晰可追溯。

.openagentd/skills/oad/commit/SKILL.md lthoangg/OpenAgentd

触发场景

需要提交代码更改时 生成符合 Conventional Commits 规范的提交消息时

安装

npx skills add lthoangg/OpenAgentd --skill oad/commit -g -y
更多选项

非标准路径

npx skills add https://github.com/lthoangg/OpenAgentd/tree/main/.openagentd/skills/oad/commit -g -y

不安装直接使用

npx skills use lthoangg/OpenAgentd@oad/commit

指定 Agent (Claude Code)

npx skills add lthoangg/OpenAgentd --skill oad/commit -a claude-code -g -y

安装 repo 全部 skill

npx skills add lthoangg/OpenAgentd --all -g -y

预览 repo 内 skill

npx skills add lthoangg/OpenAgentd --list

SKILL.md

Frontmatter
{
    "name": "oad\/commit",
    "description": "OpenAgentd workflow for well-formatted, detailed conventional commits."
}

Git Commit Execution Workflow

  1. Stage: Run git status --porcelain. If no files are staged, execute git add ..
  2. Analyze: Run git diff --cached to evaluate the technical scope and architectural impact (e.g., DDD shifts or C4 updates).
  3. Sync Docs: Load oad/docs to sync any documentation affected by the staged changes.
  4. Generate Message:
    • Format: <type>: <subject>
    • Subject: Auto-generate a concise imperative subject from the staged changes.
    • Body: Leave a blank line, then detail Motivation, Technical Changes (bulleted deep-dive), and Impact.
  5. Commit: Execute git commit -m "<message>" and output the commit hash and a brief summary.

Note: Multiple commits are preferred for large changes. If the scope is too broad, break it down into smaller, focused commits following the same workflow (do not force to have multiple commits if the change is small and cohesive).

Sizing: target ~100 changed lines per commit (a single logical, self-contained change); ~300 is acceptable for one cohesive change; ~1000+ should be split. Keep refactors and behavior changes in separate commits — mixing "renamed X" with "fixed Y" makes both harder to review and revert.


Commit Conventions

Category Type
Features feat
Fixes fix
Refactor refactor
Maintenance chore/docs
Style style

版本历史

  • b4ec0d3 当前 2026-07-24 16:51

同 Skill 集合

.openagentd/skills/guidelines/SKILL.md
.openagentd/skills/oad/debug-prod/SKILL.md
.openagentd/skills/oad/debug/SKILL.md
.openagentd/skills/oad/diagram/SKILL.md
.openagentd/skills/oad/docs/SKILL.md
.openagentd/skills/oad/plan/SKILL.md
.openagentd/skills/oad/release/SKILL.md
.openagentd/skills/oad/review/SKILL.md
.openagentd/skills/oad/search-doc/SKILL.md
.openagentd/skills/oad/test-driven-development/SKILL.md
.openagentd/skills/oad/testing/SKILL.md
app/agent/builtin_skills/self-healing/SKILL.md
app/agent/builtin_skills/skill-installer/SKILL.md

元信息

文件数
0
版本
75a1555
Hash
778a4620
收录时间
2026-07-24 16:51

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-16 15:20
浙ICP备14020137号-1 $访客地图$