Agent Skills › lthoangg/OpenAgentd › oad/commit

oad/commit

GitHub

指导 Agent 执行标准化 Git 提交工作流,包括暂存文件、分析变更影响、同步文档及生成符合规范(如 Conventional Commits)的详细提交信息,确保代码版本管理的清晰性与可追溯性。

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

Trigger Scenarios

用户需要提交代码更改 请求生成规范的 Git 提交消息 需要按照特定约定格式化 Commit

Install

npx skills add lthoangg/OpenAgentd --skill oad/commit -g -y
More Options

Non-standard path

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

Use without installing

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

Version History

  • b4ec0d3 Current 2026-07-24 16:51

Same Skill Collection

.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

Metadata

Files
0
Version
d44ddff
Hash
778a4620
Indexed
2026-07-24 16:51

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-03 03:16
浙ICP备14020137号-1