Agent skill

Git Commit

by swjybky in swjybky/deepwrite

在 DeepWrite 创建 Git 提交、推送、Pull Request 或合并时使用,核对变更范围、项目校验、提交身份与署名。

Apache-2.0Auto-check passedDevelopment

Install Git Commit

skills CLI
$ npx skills add swjybky/deepwrite --skill git-commit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install swjybky/deepwrite git-commit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/swjybky/deepwrite.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/git-commit .claude/skills/git-commit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
git-commit
GitHub stars
571
Token cost
~250 tokens
SKILL.md length
65 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
Apache-2.0

At a glance

在 DeepWrite 创建 Git 提交、推送、Pull Request 或合并时使用,核对变更范围、项目校验、提交身份与署名。

  • Works in 3 steps: 检查当前分支、工作树、暂存区、未跟踪文件和相关… → 审阅拟提交的… → 本仓库的 commit 身份固定为 carswj 。检查仓库级 Git…
  • Tasks that involve Commit messages
  • SKILL.md covers 提交前 and 提交、PR 与合并
  • Calls git and pnpm

What it does

Git Commit is an agent skill from swjybky/deepwrite. 在 DeepWrite 创建 Git 提交、推送、Pull Request 或合并时使用,核对变更范围、项目校验、提交身份与署名。

Its SKILL.md is about 250 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Commit messages, Git workflow and Pull requests. It works with Git. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Commit messages
  • Tasks that involve Git workflow
  • Tasks that involve Pull requests

Example prompts

  • “/git-commit”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 检查当前分支、工作树、暂存区、未跟踪文件和相关 worktree;涉及同步或推送时再检查远端与待推送提交。保留已有改动和 stash,只暂存本次任务经审阅的文件,不使用 git add .、git add -A 或会夹带其他改动的提交方式。
  2. 审阅拟提交的 diff,特别检查新增或修改的测试、夹具、快照和日志中是否有真实地址、IP、密钥或凭据。对代码提交从仓库根目录运行 pnpm verify;失败时先修复本次改动导致的问题,未通过时不得宣称验证成功或继续提交。文档或技能改动也要检查格式和 diff。
  3. 本仓库的 commit 身份固定为 carswj 。检查仓库级 Git 配置;缺失或不符时只用 git config --local user.name carswj 与 git config --local user.email…

What it can do on your machine

Read from SKILL.md and the folder at commit 8c49bf2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Git Commit loads about 250 tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 65 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~19
When it runs · the whole SKILL.md, loaded when a task matches
~250

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from swjybky/deepwrite at commit 8c49bf2, republished under its Apache-2.0 licence (© swjybky). 65 words, ~250 tokens.

Download SKILL.mdSave it as .claude/skills/git-commit/SKILL.md (or your agent's skills folder).
name
git-commit
description
在 DeepWrite 创建 Git 提交、推送、Pull Request 或合并时使用,核对变更范围、项目校验、提交身份与署名。

DeepWrite Git 提交与交付

适用于用户明确要求的 Git 交付,以及已授权发布流程中必需的提交;仅编辑代码不自动提交。若发布技能对提交文件或发布顺序有更窄的约束,优先遵循该约束。

提交前

  1. 检查当前分支、工作树、暂存区、未跟踪文件和相关 worktree;涉及同步或推送时再检查远端与待推送提交。保留已有改动和 stash,只暂存本次任务经审阅的文件,不使用 git add .、git add -A 或会夹带其他改动的提交方式。
  2. 审阅拟提交的 diff,特别检查新增或修改的测试、夹具、快照和日志中是否有真实地址、IP、密钥或凭据。对代码提交从仓库根目录运行 pnpm verify;失败时先修复本次改动导致的问题,未通过时不得宣称验证成功或继续提交。文档或技能改动也要检查格式和 diff。
  3. 本仓库的 commit 身份固定为 carswj <wenjia@wenjiadeMacBook-Air.local>。检查仓库级 Git 配置;缺失或不符时只用 git config --local user.name carswj 与 git config --local user.email wenjia@wenjiadeMacBook-Air.local 修正,不改全局身份。

提交、PR 与合并

  • 创建 commit、PR 或合并信息时,不自行添加额外个人作为共同作者、协作者或附加署名,也不添加 Co-authored-by、Signed-off-by 等尾注;只有用户明确要求某项署名时才添加。使用仓库 Git 身份和 GitHub 自动记录。
  • 提交前检查 git diff --cached --check 与暂存文件清单;提交后核对提交文件和工作树,确认未夹带无关内容。
  • 用户要求推送时,先核对目标分支与远端历史,确保不会把无关的本地提交一起推送;禁止强推或改写他人历史。推送后核对远端 SHA 与本地目标提交。创建 PR 或合并时也先核对目标分支、变更范围与所需校验。

© swjybky, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .codex/skills/git-commit of swjybky/deepwrite.

Open the folder on GitHubat commit 8c49bf2

Compare with similar skills

Git Commit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Git Commit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Commit this skillswjybky/deepwrite571—~250Automated safety check: PassApache-2.0
Git Workflow and Versioningaddyosmani/agent-skills103k2 repos~3.5kAutomated safety check: NotesMIT
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Emoji Commit ConventionsbaptisteArno/typebot.io11k—~424Automated safety check: PassCustom licence
Draft Pull Request Creatorwordpress-mobile/WordPress-Android3.2k—~881Automated safety check: NotesGPL-2.0
Adk Gitgoogle/adk-python22k—~1.3kAutomated safety check: PassApache-2.0

Similar skills

  • Git Workflow and Versioning

    addyosmani/agent-skills

    Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.

    103k GitHub starsUsed in 2 repos~3.5k tokens
    DevelopmentAuto-check: notes
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Emoji Commit Conventions

    baptisteArno/typebot.io

    Sets the repository's convention for commit messages and pull request titles: one emoji prefix for the main intent, a concise title and clean follow-up commits.

    11k GitHub stars~424 tokensUpdated today
    DevelopmentAuto-check passed
  • Draft Pull Request Creator

    wordpress-mobile/WordPress-Android

    Commits and pushes current changes, writes a pull request title and body from the branch history and template, and opens a draft PR on GitHub after you approve it.

    3.2k GitHub stars~881 tokensUpdated today
    DevelopmentAuto-check: notes
  • Adk Git

    google/adk-python

    Official

    Writes commit messages and pull request descriptions for the adk-python repository: Conventional Commits types and scopes, subject lines that say why a change was made, and the linked-issue and…

    22k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Git PR Flow

    wgzhao/Addax

    Standard branch, commit, and pull-request workflow for this repo.

    1.4k GitHub stars~216 tokensUpdated today
    DevelopmentAuto-check passed

More from swjybky/deepwrite

  • Package Patch Release

    swjybky/deepwrite

    为 DeepWrite 桌面端递增一个 SemVer 补丁版本,安全清理上一个版本的测试打包残留,使用项目规定的 pnpm pack:test 命令构建并验证新安装包,按用户要求决定是否创建并发布 GitHub Release;Release 完整可下载后更新根目录 update.json,并通过路径限定提交和推送,保证该提交只包含…

    571 GitHub stars~1.2k tokensUpdated 3 days ago
    Auto-check passed
  • Package Patch Release

    swjybky/deepwrite

    为 DeepWrite 递增补丁版本、清理旧产物、修复错误并继续打包;按授权发布 GitHub Release,发布验证后仅提交推送 update.json。用于打包新版本、提高一小个版本、清理旧包发布或更新发布清单。

    571 GitHub stars~675 tokensUpdated 3 days ago
    Auto-check passed
  • 构建并验证 DeepWrite Windows、macOS 测试安装包,排查打包错误、修复后继续。用于打包、测试包、Win/Mac 包及相关流程修改;版本递增和发布另用 package-patch-release。

    571 GitHub stars~574 tokensUpdated 3 days ago
    Auto-check passed
  • 按 DeepWrite 桌面端约定构建 Windows 与 macOS 测试安装包:使用 electron-builder 与 pnpm pack:test:,经 tools/run-test-package.mjs 编排,Mac 测试包做 ad-hoc 签名且不做 Apple 公证。用于用户提出“打包”“打测试包”“打 Win 包”“打 Mac…

    571 GitHub stars~778 tokensUpdated 3 days ago
    Auto-check passed

Works with

Categories

Questions about Git Commit

What does Git Commit do?

在 DeepWrite 创建 Git 提交、推送、Pull Request 或合并时使用,核对变更范围、项目校验、提交身份与署名。. Git Commit is an agent skill from swjybky/deepwrite.

When should I use Git Commit?

Git Commit fits situations like: tasks that involve Commit messages; tasks that involve Git workflow; tasks that involve Pull requests.

How do I install Git Commit in Claude Code?

Run `npx skills add swjybky/deepwrite --skill git-commit -a claude-code`. Or copy the skill folder (.codex/skills/git-commit in swjybky/deepwrite) into .claude/skills/git-commit in your project. Claude Code loads it when a task matches its description.

How do I install Git Commit in Codex?

Run `npx skills add swjybky/deepwrite --skill git-commit -a codex`. Or copy the skill folder (.codex/skills/git-commit in swjybky/deepwrite) into .agents/skills/git-commit in your project. Codex loads it when a task matches its description.

Can I use Git Commit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add swjybky/deepwrite --skill git-commit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-commit, .gemini/skills/git-commit, .github/skills/git-commit and .opencode/skills/git-commit in your project.

What does Git Commit need to run?

Going by SKILL.md and its folder, Git Commit needs the command-line tools its instructions call (git and pnpm).

Does Git Commit access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Git Commit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Git Commit use?

Git Commit is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Git Commit use?

About 250 tokens (SKILL.md is roughly 1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Git Commit?

Skills that share tags, products or a category with Git Commit: Git Workflow and Versioning (addyosmani/agent-skills, 103k stars), React Router Pull Request Creator (remix-run/react-router, 57k stars), Emoji Commit Conventions (baptisteArno/typebot.io, 11k stars) and Draft Pull Request Creator (wordpress-mobile/WordPress-Android, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Commit?

swjybky (a GitHub user) maintains it in swjybky/deepwrite, which has 571 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 4, 2026.

Source: swjybky/deepwrite on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.