Token导航 LogoToken导航

Agent Skill · 运维和基础设施

commits(commits 命令行)

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

commits 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描已通过,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 532。

总安装 3,036周安装 124GitHub Stars 14下载 982核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/itechmeat/llm-code --skill commits

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

commits 定义约定式提交规范,支持自动化 changelog 生成和语义化版本控制。适用于需要结构化消息格式、明确类型目的和 breaking changes 的场景。提供快速参考格式、常见类型和 SemVer 影响,提升版本管理效率。

依赖本地 git 环境,建议确认项目类型和 breaking changes 处理规则。commits 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/commits

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/itechmeat/llm-code --skill commits;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

commits 怎么安装?

在终端执行 npx skills add https://github.com/itechmeat/llm-code --skill commits。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

commits 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

commits 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

commits 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

commits 用的人多吗?

公开数据是累计安装 3,036 次,近一周安装 124 次,下载 982 次,GitHub 14 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

commits 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
brainstorming

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
commits

commits 命令行 · 本页

3,03614需要联网MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Conventional Commits

Specification for structured commit messages that enable automated changelog generation and semantic versioning.

Quick Reference

Format

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Common Types

TypePurposeSemVer
featNew featureMINOR
fixBug fixPATCH
docsDocumentation only-
styleFormatting, no code change-
refactorCode change, no feature/fix-
perfPerformance improvement-
testAdding/fixing tests-
buildBuild system, dependencies-
ciCI configuration-
choreMaintenance tasks-
revertRevert previous commit-

Breaking Changes

feat!: send email when product shipped

feat(api)!: change response format

chore!: drop support for Node 6

BREAKING CHANGE: use JavaScript features not available in Node 6.

Examples

Simple Commits

feat: add user authentication
fix: resolve memory leak in cache
docs: update API documentation
style: format code with prettier
refactor: extract validation logic
perf: optimize database queries
test: add unit tests for auth module
build: upgrade webpack to v5
ci: add GitHub Actions workflow
chore: update dependencies

With Scope

feat(auth): add OAuth2 support
fix(parser): handle empty arrays
docs(readme): add installation guide
refactor(api): simplify error handling

With Body

fix: prevent request racing

Introduce a request id and reference to latest request.
Dismiss incoming responses other than from latest request.

Remove timeouts which were used to mitigate the racing issue
but are obsolete now.

With Footer

fix: correct minor typos in code

Reviewed-by: John Doe
Refs: #123

Breaking Change in Footer

feat: allow config object to extend other configs

BREAKING CHANGE: `extends` key in config file is now used
for extending other config files.

Breaking Change with! and Footer

chore!: drop support for Node 6

BREAKING CHANGE: use JavaScript features not available in Node 6.

Revert Commit

revert: let us never again speak of the noodle incident

Refs: 676104e, a215868

Specification Rules

MUST

  1. Commits MUST be prefixed with a type (feat, fix, etc.)
  2. Type MUST be followed by colon and space
  3. Description MUST immediately follow the colon and space
  4. feat MUST be used for new features
  5. fix MUST be used for bug fixes
  6. Breaking changes MUST be indicated by ! before : OR BREAKING CHANGE: footer
  7. BREAKING CHANGE MUST be uppercase
  8. Footer token MUST use - instead of spaces (e.g., Reviewed-by)

MAY

  1. Scope MAY be provided after type: feat(parser):
  2. Body MAY be provided after description (blank line between)
  3. Footer MAY be provided after body (blank line between)
  4. Types other than feat and fix MAY be used
  5. ! MAY be used with BREAKING CHANGE: footer

Case Sensitivity

  • Types: case-insensitive (lowercase recommended for consistency)
  • BREAKING CHANGE: MUST be uppercase
  • BREAKING-CHANGE: synonym for BREAKING CHANGE

SemVer Mapping

Commit TypeSemVer BumpVersion Change
fix:PATCH1.0.0 → 1.0.1
feat:MINOR1.0.0 → 1.1.0
BREAKING CHANGE or !MAJOR1.0.0 → 2.0.0

Breaking changes override type — fix!: results in MAJOR bump.

Changelog Integration

Conventional Commits map directly to changelog entries:

Commit TypeChangelog Section
featAdded
fixFixed
perfChanged
refactorChanged
docs(usually omitted or Changed)
BREAKING CHANGEHighlight in Changed/Removed
revertRemoved or Fixed
Security fixesSecurity

Automated Changelog Generation

Tools like conventional-changelog, semantic-release, or release-please can:

  • Parse commit messages
  • Generate CHANGELOG.md entries
  • Determine next version number
  • Create releases automatically

See changelog skill for CHANGELOG.md format.

Common Patterns

Feature Development

git commit -m "feat(users): add profile page"
git commit -m "feat(users): add avatar upload"
git commit -m "test(users): add profile page tests"
git commit -m "docs(users): document profile API"

Bug Fix with Reference

git commit -m "fix(auth): resolve session timeout (#142)"

Breaking Change Flow

# Deprecate first
git commit -m "feat(api): add v2 endpoint

DEPRECATED: /api/v1/users will be removed in next major version"

# Later, remove
git commit -m "feat(api)!: remove v1 endpoints

BREAKING CHANGE: /api/v1/* endpoints have been removed.
Use /api/v2/* instead."

FAQ

What if commit fits multiple types?

Split into multiple commits when possible. This makes history more organized.

What if I used wrong type?

Before merge: git rebase -i to edit history. After release: not critical — commit will be missed by automated tools.

Do all contributors need to use this?

No. Use squash merging and maintainers can write proper message for the merge.

How to handle reverts?

revert: <original commit subject>

Refs: <commit SHA>

Git Configuration

Commit Template

Set up git to use template:

git config commit.template .gitmessage

See assets/commit-msg.template for template file.

Pre-commit Validation

Use assets/validate-commit-msg.sh with git hooks or CI.

Tools

ToolPurpose
commitlintLint commit messages
commitizenInteractive commit helper
conventional-changelogGenerate changelogs
semantic-releaseAutomated releases
release-pleaseGitHub release automation

Critical Prohibitions

  • Do not use vague messages ("fix stuff", "update", "wip")
  • Do not mix unrelated changes in single commit
  • Do not omit breaking change indicators
  • Do not use non-standard types without team agreement
  • Do not forget blank line between description and body

Agent Workflow for Commit Messages

MANDATORY: Before proposing branch name, commit message, or PR description, the agent MUST:

  1. Check all changed files using git status or git diff --name-only
  2. Review actual changes using git diff (staged and unstaged)
  3. Analyze ALL modifications — not just the files mentioned in conversation
  4. Base proposals on complete changeset — include all affected files, not partial list

Workflow Steps

# Step 1: Get list of all changed files
git status --short

# Step 2: Review actual changes (for unstaged)
git diff

# Step 3: Review staged changes
git diff --staged

# Step 4: Use the complete changeset to propose:
#   - Branch name
#   - Commit message
#   - PR description

Output Format

When user asks for commit message, provide:

  1. Branch name options (3 variants using conventional prefixes)
  2. Commit message variants (short/medium/detailed)
  3. PR description (summarized, not duplicating full changelog)

All proposals MUST be based on the actual git diff output, not assumptions.

Links

Templates

平台分布

github-copilot

27.4%
按下载量换算269

OpenCode

25.09%
按下载量换算246

Claude Code

16.8%
按下载量换算165

kilo

13.02%
按下载量换算128

Gemini CLI

7.35%
按下载量换算72

windsurf

3.36%
按下载量换算33

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills