跳到正文
cccskills
免费在 GitHub 公开

commit

Stage changes and create a commit with a conventional commit message.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Commit

  1. Assess: run git status and git diff to see changes.

  2. Stage: relevant files only. If $ARGUMENTS contains file paths, stage only those. If empty, stage all changed files or ask the user. Never stage sensitive files (.env, credentials) without confirmation.

  3. Message: analyze the staged diff. Write a conventional commit message:

    • Format: type(scope): subject — types: feat, fix, refactor, chore, docs, test, ci, perf

    • Breaking changes: append ! (e.g., fix!: remove deprecated endpoint)

    • Subject: under 72 chars, imperative mood. Must reference what changed specifically — generic subjects like "initial commit", "fix bug", "update code" are never acceptable.

    • Body: always use the reasoning framework with ## markdown headings. Required: Problem + Solution. Optional (include only when they add non-obvious context): Goal, Background, Alternatives.

      ## Problem
      <what was wrong or missing>
      
      ## Goal (optional)
      <what this change aims to achieve, if not obvious>
      
      ## Background (optional)
      <context needed to understand why, if non-obvious>
      
      ## Solution
      <what was done and why this approach>
      
      ## Alternatives considered (optional)
      <what else was evaluated and why not>
      
    • One logical change per commit. If you need "and" in the subject, split it.

  4. Commit: create a unique temp file with mktemp /tmp/commit-msg.XXXXXX.txt, write the message to it, and run git commit -F <temp-file> — do not add Co-Authored-By or other trailers.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

amend

免费

Amend the last commit with current changes and/or an updated message.

中文简介正在准备中。当前显示原文说明。

simonepri/ifttt-lint292026年9月29日 更新

cook

免费

Full autopilot — plan, implement, and polish a task end-to-end.

中文简介正在准备中。当前显示原文说明。

simonepri/ifttt-lint292026年9月29日 更新

diff

免费

Fetch and display diffs for various scopes (PR, commit, branch, staged, working tree). Used by other skills that need to analyze changes.

中文简介正在准备中。当前显示原文说明。

simonepri/ifttt-lint292026年9月29日 更新

execute

免费

Execute a plan file — parse phases, spawn parallel subagents, handle failures.

中文简介正在准备中。当前显示原文说明。

simonepri/ifttt-lint292026年9月29日 更新

fork

免费

Start or end a forked session for exploring rabbit holes without losing the main conversation's context.

中文简介正在准备中。当前显示原文说明。

simonepri/ifttt-lint292026年9月29日 更新

plan

免费

Structured design intake for non-trivial tasks. Asks clarifying questions and produces a design proposal.

中文简介正在准备中。当前显示原文说明。

simonepri/ifttt-lint292026年9月29日 更新

查看 simonepri 的全部技能

报告此技能的问题