Agent Skillslthoangg/OpenAgentd › oad/commit

oad/commit

GitHub

自动化生成符合规范的高质量 Git 提交信息。流程包括暂存代码、分析变更影响、同步文档,并按约定格式生成包含动机和影响的详细 Commit Message,最后执行提交操作。

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

Trigger Scenarios

需要提交 Git 代码变更时 希望生成结构化、详细的提交信息时

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
ac16c4e
Hash
778a4620
Indexed
2026-07-24 16:51

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 23:17
浙ICP备14020137号-1 $mapa de visitantes$