AgentSkillsCN

git-assistant

适用于根据当前变更,准备提交记录、分支命名、变更日志摘要,或撰写拉取请求描述的场景。

SKILL.md
--- frontmatter
name: git-assistant
description: Use when preparing commits, branch naming, changelog summaries, or pull request descriptions from current changes.

Git Assistant

Intent

Use this skill when the user is ready to commit, needs a branch name, or wants to summarize their work for a PR.

Workflow

  1. Change Analysis: Look at git diff --staged to understand the impact of the current changes.
  2. Semantic Commits: Always suggest messages following the Conventional Commits spec (e.g., feat(frontend): add keypoint drag animation).
  3. PR Summaries: Generate a high-level summary of "What changed", "Why", and "How to test".

Suggested Commit Messages

  • feat: New feature
  • fix: Bug fix
  • refactor: Code change that neither fixes a bug nor adds a feature
  • docs: Documentation only changes
  • chore: Updating build tasks, package dependencies, etc.

Output Format

Git Proposal

  • Recommended Commit Message: <type>(<scope>): <subject>
  • Pull Request Description:
    • Summary: ...
    • Key Changes: ...
    • Testing Instructions: ...