juliusbrussee/caveman

caveman-commit

保留改动原因,把提交标题压到可扫描的长度

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

caveman-commit 是什么?

caveman-commit 根据实际 diff 编写 Conventional Commits 消息,标题用祈使动词、类型和可选 scope,正文只解释不明显的原因、破坏性变化、迁移信息或关联 issue。它只生成消息,不会暂存、提交或 amend。

中文说明由本站依据来源整理;英文原文保留在页面下方。

适合用在

  • 已经有明确 diff,需要写一条符合项目惯例的提交说明。
  • 提交包含不明显的设计原因、破坏性变更或迁移步骤,需要在正文保留背景。

这些情况不适合

  • 尚未查看 diff、需要 Agent 改代码或创建提交的任务。
  • 需要自动决定项目是否允许提交或选择分支的场景;该 Skill 只输出文本。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 caveman-commit,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 caveman-commit

请在 Codex 的当前工作环境中安装并检查 caveman-commit 这个 Skill。

项目身份:juliusbrussee/caveman / caveman-commit
来源:https://github.com/juliusbrussee/caveman/blob/9b243662ff98d392bc0a95b865a554583d71be75/skills/caveman-commit/SKILL.md
已定位的源文件:skills/caveman-commit/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 提供实际 diff 和项目已有 Conventional Commits 约定;若没有约定,应明确这一点。
  • 确认本次提交的真实目的、是否破坏兼容、是否需要迁移说明或 issue 关联;不能让 Agent 臆造原因。

会得到什么

  • 一段 Conventional Commits 文本;是否暂存、提交或 amend 仍由用户另行决定。

实际使用顺序

  1. 阅读 diff,区分改动类型和实际目的;非显而易见的 why 才写入正文。
  2. 按 <type>(<scope>): <imperative summary> 生成祈使式标题,scope 可省略;优先不超过 50 字符,硬上限 72,不加句号并沿用项目大小写惯例。
  3. 只在需要解释原因、破坏性变化、迁移或关联 issue 时写正文,每行不超过 72 字符;按源文规则使用 - 项目符号并将 issue 引用放在末尾。
  4. 核对没有加入 AI 署名、表情、改动之外的承诺;需要 AI 署名时只遵循用户或项目明确规则。输出可粘贴的提交消息,不运行 git commit。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:请使用 caveman-commit 为以下教学 diff 生成提交消息:`src/auth.ts` 把过期判断从 `expiresAt < now` 改为 `expiresAt <= now`,并新增刚好到期时拒绝 token 的测试。项目约定使用小写 Conventional Commits。只输出可粘贴的消息;不要运行 git add、git commit 或修改文件。
预期结果

预期标题采用 fix(auth): ... 一类祈使式小写格式,并用简短正文解释边界判断原因(如有必要);消息可生成,但不会创建提交。本例未运行。

使用前先看这些限制

使用条件与边界

  • 标题长度要求是优先 50 字符、硬上限 72;不要为凑短标题删掉关键语义。
  • 破坏性变更、安全修复、数据迁移和 revert 必须保留足够正文背景,不能为了简短省略。
  • 它只输出消息,不会确认工作区状态、暂存文件或执行提交。
针对这个 Skill 的疑问

常见问题

为什么要写 why,而不是重复 diff?

diff 已说明改了什么;源文要求正文仅补不明显的原因、破坏性变化、迁移说明或 issue 关系。

它会直接提交代码吗?

不会。边界明确写明不运行 git commit、不暂存,也不 amend;只输出待粘贴的消息。

标题必须正好 50 个字符吗?

不是。50 字符是尽量满足的目标,72 是硬上限;仍需保留准确类型、意图和项目惯例。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-17T19:31:50.806Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/caveman-commit/SKILL.md · 抓取时间 2026-11-17T19:31:50.806Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Write a Conventional Commits message compressed to intent only. Use for "write a commit", "commit message", /commit or /caveman-commit.

查看源文件章节 / Source sections
  • 原文:Rules
  • 示例 / Examples
  • 原文:Auto-Clarity
  • 原文:Boundaries
原文:正文开头

Write commit messages terse and exact. Conventional Commits format. No fluff. Why over what.

原文:Rules

**Subject line:** - `<type>(<scope>): <imperative summary>` — `<scope>` optional - Types: `feat`, `fix`, `refactor`, `perf`, `docs`, `test`, `chore`, `build`, `ci`, `style`, `revert` - Imperative mood: "add", "fix", "remove" — not "added", "adds", "adding" - ≤50 chars when possible, hard cap 72 - No trailing period - Match project convention for capitalization after the colon **Body (only if needed):** - Skip entirely when subject is self-explanatory - Add body only for: non-obvious *why*, breaking changes, migration notes, linked issues - Wrap at 72 chars - Bullets `-` not `*` - Reference issues/PRs at end: `Closes #42`, `Refs #17` **What NEVER goes in:** - "This commit does X", "I", "we", "now", "currently" — the diff says what - "As requested by..." — use Co-authored-by trailer - "Generated with Claude Code" or any AI attribution — unless the user's own rule requires an `Assisted-by`/AI-attribution trailer, then add it as a trailer - Emoji (unless project convention requires) - Restating the file name when scope already says it

示例 / Examples

Diff: new endpoint for user profile with body explaining the why - ❌ "feat: add a new endpoint to get user profile information from the database" - ✅ ``` feat(api): add GET /users/:id/profile Mobile client needs profile data without the full user payload to reduce LTE bandwidth on cold-launch screens. Closes #128 ``` Diff: breaking API change - ✅ ``` feat(api)!: rename /v1/orders to /v1/checkout BREAKING CHANGE: clients on /v1/orders must migrate to /v1/checkout before 2026-06-01. Old route returns 410 after that date. ```

原文:Auto-Clarity

Always include body for: breaking changes, security fixes, data migrations, anything reverting a prior commit. Never compress these into subject-only — future debuggers need the context.

原文:Boundaries

Only generates the commit message. Does not run `git commit`, does not stage files, does not amend. Output the message as a code block ready to paste. "stop caveman-commit" or "normal mode": revert to verbose commit style.

文件 SHA256:c788a282fc75b981b421dfdad5d84ea7f83f946c126daa39cfc7d3f97845e193

仓库许可证记录:Apache-2.0;repository-license-recorded-scope-unverified,查看来源。

Skills.sh收录简介 · 2026-07-28

Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50…

查看历史简介来源

这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。

历史收录数据

Skill标识caveman-commit
来源仓库juliusbrussee/caveman
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次81
快照累计安装量269983

历史资料说明

  • 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源