Token导航 LogoToken导航TokenDH.com
开发external-servicegithub未标认证来源可访问许可证需确认审计未展示

git:commitgit 提交

Agent Skill

git:commit 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

10,913

周安装

464

GitHub Stars

891

下载量

3,823
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:git:commit(git 提交)
来源仓库:https://github.com/neolabhq/context-engineering-kit
仓库路径:skills/git:commit
安装命令:
npx skills add https://github.com/neolabhq/context-engineering-kit --skill git:commit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/neolabhq/context-engineering-kit --skill git:commit

简介

git:commit 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中整理协作事项。

  • 适用于围绕仓库状态、代码变更或协作流程进行信息梳理的场景。
  • 支持对 GitHub 相关协作数据进行查询、分类和汇总操作。
  • 安装命令为 npx skills add https://github.com/neolabhq/context-engineering-kit --skill git:commit。
  • 使用前需确认权限范围、维护状态,注意是否触发联网或文件读写。

SKILL.md

Claude Command: Commit

Your job is to create well-formatted commits with conventional commit messages and emoji.

Instructions

CRITICAL: Perform the following steps exactly as described:

  1. Branch check: Checks if current branch is master or main. If so, asks the user whether to create a separate branch before committing. If user confirms a new branch is needed, creates one using the pattern <type>/<username>/<description> (e.g., feature/leovs09/add-new-command)
  2. Unless specified with --no-verify, automatically runs pre-commit checks like pnpm lint or simular depending on the project language.
  3. Checks which files are staged with git status
  4. If 0 files are staged, automatically adds all modified and new files with git add
  5. Performs a git diff to understand what changes are being committed
  6. Analyzes the diff to determine if multiple distinct logical changes are present
  7. If multiple distinct changes are detected, suggests breaking the commit into multiple smaller commits
  8. For each commit (or the single commit if not split), creates a commit message using emoji conventional commit format

Best Practices for Commits

  • Verify before committing: Ensure code is linted, builds correctly, and documentation is updated
  • Atomic commits: Each commit should contain related changes that serve a single purpose
  • Split large changes: If changes touch multiple concerns, split them into separate commits
  • Conventional commit format: Use the format <type>: <description> where type is one of:

- feat: A new feature - fix: A bug fix - docs: Documentation changes - style: Code style changes (formatting, etc) - refactor: Code changes that neither fix bugs nor add features - perf: Performance improvements - test: Adding or fixing tests - chore: Changes to the build process, tools, etc.

  • Present tense, imperative mood: Write commit messages as commands (e.g., "add feature" not "added feature")
  • Concise first line: Keep the first line under 72 characters
  • Emoji: Each commit type is paired with an appropriate emoji:

- ✨ feat: New feature - 🐛 fix: Bug fix - 📝 docs: Documentation - 💄 style: Formatting/style - ♻️ refactor: Code refactoring - ⚡️ perf: Performance improvements - ✅ test: Tests - 🔧 chore: Tooling, configuration - 🚀 ci: CI/CD improvements - 🗑️ revert: Reverting changes - 🧪 test: Add a failing test - 🚨 fix: Fix compiler/linter warnings - 🔒️ fix: Fix security issues - 👥 chore: Add or update contributors - 🚚 refactor: Move or rename resources - 🏗️ refactor: Make architectural changes - 🔀 chore: Merge branches - 📦️ chore: Add or update compiled files or packages - ➕ chore: Add a dependency - ➖ chore: Remove a dependency - 🌱 chore: Add or update seed files - 🧑‍💻 chore: Improve developer experience - 🧵 feat: Add or update code related to multithreading or concurrency - 🔍️ feat: Improve SEO - 🏷️ feat: Add or update types - 💬 feat: Add or update text and literals - 🌐 feat: Internationalization and localization - 👔 feat: Add or update business logic - 📱 feat: Work on responsive design - 🚸 feat: Improve user experience / usability - 🩹 fix: Simple fix for a non-critical issue - 🥅 fix: Catch errors - 👽️ fix: Update code due to external API changes - 🔥 fix: Remove code or files - 🎨 style: Improve structure/format of the code - 🚑️ fix: Critical hotfix - 🎉 chore: Begin a project - 🔖 chore: Release/Version tags - 🚧 wip: Work in progress - 💚 fix: Fix CI build - 📌 chore: Pin dependencies to specific versions - 👷 ci: Add or update CI build system - 📈 feat: Add or update analytics or tracking code - ✏️ fix: Fix typos - ⏪️ revert: Revert changes - 📄 chore: Add or update license - 💥 feat: Introduce breaking changes - 🍱 assets: Add or update assets - ♿️ feat: Improve accessibility - 💡 docs: Add or update comments in source code - 🗃️ db: Perform database related changes - 🔊 feat: Add or update logs - 🔇 fix: Remove logs - 🤡 test: Mock things - 🥚 feat: Add or update an easter egg - 🙈 chore: Add or update.gitignore file - 📸 test: Add or update snapshots - ⚗️ experiment: Perform experiments - 🚩 feat: Add, update, or remove feature flags - 💫 ui: Add or update animations and transitions - ⚰️ refactor: Remove dead code - 🦺 feat: Add or update code related to validation - ✈️ feat: Improve offline support

Guidelines for Splitting Commits

When analyzing the diff, consider splitting commits based on these criteria:

  1. Different concerns: Changes to unrelated parts of the codebase
  2. Different types of changes: Mixing features, fixes, refactoring, etc.
  3. File patterns: Changes to different types of files (e.g., source code vs documentation)
  4. Logical grouping: Changes that would be easier to understand or review separately
  5. Size: Very large changes that would be clearer if broken down

Examples

Good commit messages:

  • ✨ feat: add user authentication system
  • 🐛 fix: resolve memory leak in rendering process
  • 📝 docs: update API documentation with new endpoints
  • ♻️ refactor: simplify error handling logic in parser
  • 🚨 fix: resolve linter warnings in component files
  • 🧑‍💻 chore: improve developer tooling setup process
  • 👔 feat: implement business logic for transaction validation
  • 🩹 fix: address minor styling inconsistency in header
  • 🚑️ fix: patch critical security vulnerability in auth flow
  • 🎨 style: reorganize component structure for better readability
  • 🔥 fix: remove deprecated legacy code
  • 🦺 feat: add input validation for user registration form
  • 💚 fix: resolve failing CI pipeline tests
  • 📈 feat: implement analytics tracking for user engagement
  • 🔒️ fix: strengthen authentication password requirements
  • ♿️ feat: improve form accessibility for screen readers

Example of splitting commits:

  • First commit: ✨ feat: add new solc version type definitions
  • Second commit: 📝 docs: update documentation for new solc versions
  • Third commit: 🔧 chore: update package.json dependencies
  • Fourth commit: 🏷️ feat: add type definitions for new API endpoints
  • Fifth commit: 🧵 feat: improve concurrency handling in worker threads
  • Sixth commit: 🚨 fix: resolve linting issues in new code
  • Seventh commit: ✅ test: add unit tests for new solc version features
  • Eighth commit: 🔒️ fix: update dependencies with security vulnerabilities

Command Options

  • --no-verify: Skip running the pre-commit checks (lint, build, generate:docs)

Branch Naming Convention

When committing on master or main, the command will ask if you want to create a new branch. If yes, it creates a branch following this pattern:

<type>/<git-username>/<description>

Components:

  • <type>: The commit type (feature, fix, docs, refactor, perf, test, chore, etc.)
  • <git-username>: Your git username (obtained from git config user.name or the system username)
  • <description>: A kebab-case description of the change (e.g., add-user-auth, fix-login-bug)

Examples:

  • feature/leovs09/add-new-command
  • fix/johndoe/resolve-memory-leak
  • docs/alice/update-api-docs
  • refactor/bob/simplify-error-handling
  • chore/charlie/update-dependencies

Workflow:

  1. Command detects you're on master or main
  2. Asks: "You're on the main branch. Do you want to create a separate branch?"
  3. If "No": Proceeds with commit on current branch
  4. If "Yes": Analyzes your changes to determine the type, asks for a brief description, creates the branch, and proceeds with commit

Important Notes

  • By default, pre-commit checks (pnpm lint, pnpm build, pnpm generate:docs) will run to ensure code quality
  • If these checks fail, you'll be asked if you want to proceed with the commit anyway or fix the issues first
  • If specific files are already staged, the command will only commit those files
  • If no files are staged, it will automatically stage all modified and new files
  • The commit message will be constructed based on the changes detected
  • Before committing, the command will review the diff to identify if multiple commits would be more appropriate
  • If suggesting multiple commits, it will help you stage and commit the changes separately
  • Always reviews the commit diff to ensure the message matches the changes

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.69%
按下载量换算1,364

Claude

29.97%
按下载量换算1,146

Cursor

17.79%
按下载量换算680

Gemini CLI

8.5%
按下载量换算325

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills