AgentSkillsCN

checkpoint

创建包含详细提交信息的全面 Git 检查点提交。当用户希望提交当前所有更改、创建检查点、保存进度,或对已跟踪和未跟踪的所有文件进行详尽的 Git 提交时,可使用此功能。

SKILL.md
--- frontmatter
name: checkpoint
description: Create a comprehensive git checkpoint commit with detailed messages. Use when the user wants to commit all current changes, create a checkpoint, save progress, or make a detailed git commit covering all tracked and untracked files.

Checkpoint Commit

Create a comprehensive git checkpoint commit that stages everything and writes a detailed commit message.

Workflow

  1. Initialize git if needed - Run git init if not already a git repo.

  2. Analyze all changes:

    • git status to see tracked and untracked files
    • git diff to see detailed changes
    • git log -5 --oneline to match the repo's commit message style
  3. Stage everything - Use git add -A to stage all changes (modified, deleted, and new files).

  4. Create a detailed commit message:

    • Subject line (50-72 chars, imperative mood): e.g. feat: add user authentication, fix: resolve database connection issue
    • Body: What changed (key modifications), why it changed (purpose/motivation), important technical details, breaking changes if any
    • Footer: Include co-author attribution per Git Safety Protocol
  5. Execute the commit following the repo's existing conventions.

Rules

  • Do NOT skip any files - include everything
  • Check git log first to match existing commit conventions
  • Make messages descriptive enough for someone reviewing the log to understand what was accomplished