Agent Skillslthoangg/OpenAgentd › oad/commit

oad/commit

GitHub

提供规范化的 Git 提交工作流,自动暂存代码、分析变更范围、生成符合约定式提交的详细消息并执行提交,同时同步相关文档。

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

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 10:50
浙ICP备14020137号-1 $Carte des visiteurs$