commit

Automate Git commits with conventional messages and task updates.

84|5|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/fitlab-ai/agent-infra --skill commit-fitlab-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit
Source: https://github.com/fitlab-ai/agent-infra/tree/main/.agents/skills/commit
Command: npx skills add https://github.com/fitlab-ai/agent-infra --skill commit-fitlab-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

提交当前变更到 Git,并在需要时更新关联任务状态,同时尊重现有用户改动,遇到冲突时会征求确认再继续。

Core Features & Use Cases

  • 自动化检查本地修改和差异,防止覆盖用户工作
  • 根据变更生成符合 Conventional Commits 的提交信息,并自动更新协作署名
  • 仅暂存明确列出的文件后执行提交,并在需要时更新任务的活动日志
  • 需要时同步任务/PR 流程(如 PR 摘要同步),并执行 post-commit 验证
  • 在跨代理协作中提供一致的工作流和审阅链路
  • Use Case: 当多名 AI 代理与人类协同修改同一个分支时,自动执行规范化提交并更新任务跟踪
  • Use Case: 处理包含版权头变更的提交,自动更新版权年份

Quick Start

按照工作流执行提交任务,AI 将分析改动、生成提交信息、执行提交并更新任务状态。

Frequently Asked Questions about commit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate git commits with conventional commit messages?

To automate git commits, this skill analyzes local diffs and generates conventional commit messages automatically. It selectively stages files, updates copyright headers, and logs task activity to ensure consistent version control.

Does automated version control work with multiple AI agents on the same branch?

Yes, automated version control works with multiple AI agents on the same branch. It checks local modifications to prevent overwriting user work and asks for confirmation when conflicts arise during collaborative commits.

How do I update copyright years in source files before committing changes?

You can update copyright years by using this skill to process local changes. It detects copyright header modifications during the diff check and dynamically updates the copyright years before executing the final commit.

Can I sync PR summaries and task tracking logs after a git commit?

Yes, you can sync PR summaries and task tracking logs after a git commit. The skill optionally synchronizes PR summaries and updates task activity logs, followed by a post-commit validation step.

What happens if automated staging detects uncommitted local changes?

If automated staging detects uncommitted local changes, it respects existing user modifications and prevents accidental overwrites. It selectively stages only explicitly listed files before proceeding with the commit.