AgentSkillsCN

describe-git-title

在不实际提交的情况下生成 Git 提交标题与描述。当用户需要提交信息、Git 描述,或希望对自身更改进行说明时使用此功能。该功能会输出相关信息,并通过 pbcopy 将其复制到剪贴板。

SKILL.md
--- frontmatter
name: describe-git-title
description: Generates a git commit title and description without committing. Use when user asks for a commit message, git description, or wants to describe their changes. Outputs the message and copies it to clipboard using pbcopy.

Generate Git Title and Description

Generate a commit message based on the latest changes without committing.

Process

  1. Check git diff for current changes
  2. If no changes, check the last commit's diff
  3. Generate title and description
  4. Display the message
  5. Copy to clipboard using pbcopy (macOS)

Message Format

Two sections (no headers):

  1. Problem: - Describe the issue being solved
  2. Solution: - Describe how it was solved

Guidelines

  • Keep it short and on point
  • Use markdown to format code variables and identifiers
  • Use at most three paragraphs (single paragraph if changes are small)
  • Do NOT include test changes
  • Write like a principal software engineer: simple, easy to understand, no complex words
  • If the Problem is unclear, ask the user

Example Output

code
Problem:

AWS's API call limit is 200. Using more than 200 requests causes the error:

"error": "describe : describe vpc endpoints: operation error EC2:
DescribeVPCEndpoints, https response error StatusCode: 400, RequestID:
a4643f0b-75b0-4597-83ed-0d1acff666ad, api error InvalidParameterValue: The
maximum number of filter values specified on a single call is 200",

Solution:

Decrease the number of filter values per call from 300 to 50.