git-commit-pro
Git Commit Pro Instructions
当用户要求生成 commit message 或提交代码时,请严格遵守以下步骤:
1. 分析变更
运行 git diff --cached 查看暂存区的变更。如果没有暂存更改,运行 git diff 查看未暂存的更改。
2. 格式规范
生成的 Commit Message 必须符合 Conventional Commits 格式:
<type>(<scope>): <subject>
- type 只能是: feat, fix, docs, style, refactor, test, chore
- scope (可选): 指明修改的模块(例如: auth, api, ui)
- subject: 简短描述(50字符以内),用祈使句(例如 "Add login button" 而不是 "Added login button")
3. 输出要求
- 不要解释,直接给出代码块格式的 Commit Message。
- 如果变更很复杂,请在 subject 下方空一行,添加详细的 body。
示例
feat(auth): implement google oauth2 login
- add passport strategy
- update user schema
More from fanthus/agent-skills
openclaw-expert
OpenClaw learning expert that retrieves and synthesizes information from official documentation (https://docs.openclaw.ai) and GitHub repository (https://github.com/openclaw/openclaw). Use this skill whenever the user asks questions about OpenClaw, including installation, configuration, API usage, concepts, troubleshooting, best practices, or any OpenClaw-related inquiries. Triggers include OpenClaw questions about features, implementation, usage, setup, or any openclaw-related topics.
130github-repo-management
Create and manage GitHub repositories, branches, commits, and PRs via local git commands and GitHub MCP. Use when the user asks to create a repo, push code, get repo info, manage branches, open PRs, or work with GitHub repositories.
16react-native-app
Build cross-platform mobile applications using React Native. Use when the user wants to create, develop, or work with React Native apps for iOS and Android. Triggers include requests to build mobile apps, create React Native components, set up navigation, integrate native modules, handle app state management, implement animations, or work with React Native specific features like FlatList, StyleSheet, or platform-specific code.
7electron-dev
Build cross-platform desktop applications with Electron using best practices for security, performance, and user experience. Use this skill when developing system tools (file managers, screenshot tools, productivity apps) or when working with Electron projects. Triggers include requests to create Electron apps, implement file operations, system tray functionality, window management, IPC communication, or optimize Electron performance. Supports vanilla JavaScript, React, and Vue frameworks with comprehensive code templates that embed security and performance best practices directly in comments.
6canvas-design
Generates visual art as .png or .pdf from design philosophy or from WeChat public account content. Use when the user asks for a poster, cover image, piece of art, or static visual; when they provide 微信公众号内容 for a cover; or when they want design philosophy expressed on a canvas. Creates original work only; no copying existing artists.
5chrome-extension
Guides creation and modification of Chrome extensions using Manifest V3. Use when building browser extensions, Chrome plugins, or when the user mentions manifest.json, content scripts, background service worker, popup, or extension permissions.
5