AGENT SKILL

commit

Create well-formatted git commits following GitLens conventions

License 许可
MIT
最近更新
2026-11-12
Stars
★ 0
Forks
0

01 前言 Front Matter

name
commit
description
Create well-formatted git commits following GitLens conventions

03 SKILL.md 正文

/commit - Create Git Commit

Create a well-formatted git commit following GitLens conventions.

Usage

/commit [message]

Commit Message Format

  • Third-person singular present tense: Adds, Fixes, Improves, Updates, Removes, Refactors
  • First line under 72 characters
  • Reference issues with #123 syntax

Examples:

Adds support for custom autolinks for Jira - fixes #1234
Fixes graph not rendering when switching repositories
Improves performance of commit signature detection
Refactors git provider initialization

Workflow

  1. Check status: git status (never use -uall)
  2. Review changes: git diff --cached and git diff
  3. Stage files — specific files, not git add -A
  4. Generate message if none provided — analyze changes, determine type, draft message, confirm with user
  5. Commit using HEREDOC format with Co-Authored-By trailer
  6. Verify: git status and git log -1

Pre-commit Hook Failures

  1. Do NOT use --amend (the failed commit never happened — amend would modify the previous commit)
  2. Fix the reported issues
  3. Re-stage fixed files
  4. Create a NEW commit

Safety

  • Never use --force or --no-verify
  • Never amend unless explicitly requested
  • Verify no sensitive files are staged (.env, credentials)

04 同仓库更多 Skills

realsudarshan
realsudarshan/SD-skill

winui-app

Bootstrap, develop, and design modern WinUI 3 desktop applications with C# and the Windows App SDK using official Microsoft guidance, WinUI Gallery patterns, Windows App SDK samples, and CommunityToolkit components. Use when creating a brand new app, preparing a machine for WinUI, reviewing, refactoring, planning, troubleshooting, environment-checking, or setting up WinUI 3 XAML, controls, navigation, windowing, theming, accessibility, responsiveness, performance, deployment, or related Windows app design and development work.

★ 0
realsudarshan
realsudarshan/SD-skill

vercel-deploy

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

★ 0
realsudarshan
realsudarshan/SD-skill

security-best-practices

Perform language and framework specific security best-practice reviews and suggest improvements. Trigger only when the user explicitly requests security best practices guidance, a security review/report, or secure-by-default coding help. Trigger only for supported languages (python, javascript/typescript, go). Do not trigger for general code review, debugging, or non-security tasks.

★ 0
realsudarshan
realsudarshan/SD-skill

playwright

Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via `playwright-cli` or the bundled wrapper script.

★ 0
realsudarshan
realsudarshan/SD-skill

openai-docs

Use when the user asks how to build with OpenAI products or APIs and needs up-to-date official documentation with citations, help choosing the latest model for a use case, or model upgrade and prompt-upgrade guidance; prioritize OpenAI docs MCP tools, use bundled references only as helper context, and restrict any fallback browsing to official OpenAI domains.

★ 0
realsudarshan
realsudarshan/SD-skill

netlify-deploy

Deploy web projects to Netlify using the Netlify CLI (`npx netlify`). Use when the user asks to deploy, host, publish, or link a site/repo on Netlify, including preview and production deploys.

★ 0