AgentSkillsCN

git-ops

在执行Git操作或生成智能提交信息时使用此技能——提供安全的Git工作流程指导、验证检查,以及符合常规提交规范的格式化建议。

SKILL.md
--- frontmatter
name: git-ops
description: Use when performing git operations or generating smart commit messages - provides safe git workflow guidance, validation checks, and conventional commit formatting.

Git Ops

Overview

Execute git operations safely while producing clear, conventional commit messages and workflow guidance.

When to Use

  • Running git commands (status, add, commit, push, pull)
  • Generating smart commit messages
  • Managing branches and merges

Avoid when:

  • The task is unrelated to git operations

Quick Reference

TaskLoad reference
Git operationsskills/git-ops/references/git.md

Workflow

  1. Confirm repository state and intent.
  2. Load the git operations reference.
  3. Execute the command safely.
  4. Provide status summary and next steps.

Output

  • Operation result summary
  • Suggested follow-ups or warnings

Common Mistakes

  • Running destructive commands without confirmation
  • Writing non-standard commit messages