跳到正文
cccskills
免费在 GitHub 公开

commit

Stage and commit vault changes with UK English conventional commit messages

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

查看安装方法

包含的文件(1)

  • SKILL.md2.6 KB

SKILL.md(原文)

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

Commit Vault Changes

Stage and commit changes to the vault with properly formatted UK English conventional commit messages.

Usage

/commit                    # Auto-detect changes and commit
/commit -m "message"       # Commit with a specific message
/commit --amend            # Amend the previous commit (use sparingly)

Workflow

1. Review Changes

git status
git diff --stat

2. Stage Changes

Stage specific files rather than using git add -A:

  • Never stage: .env, credentials, .secrets.baseline (unless updated by detect-secrets)
  • Use git add -u for modified/deleted files with Unicode filenames (avoids octal encoding issues)
  • Use git lfs track first for large binary files (PPTX, PDF >100MB)

3. Compose Commit Message

Follow these conventions:

  • UK English spelling (e.g., "organise", "summarise", "colour")
  • Imperative mood in subject line (e.g., "Add meeting note" not "Added meeting note")
  • Subject line under 72 characters
  • Body explains the "why" not the "what" (the diff shows the what)
  • Always include the co-author tag

4. Commit Format

<type>: <subject>

<optional body>

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Types:

TypeWhen to Use
AddNew notes, skills, scripts, templates
UpdateEnhancements to existing notes or config
FixBug fixes, broken links, frontmatter errors
RefactorRestructuring without changing meaning
ArchiveMoving notes to Archive/
RemoveDeleting deprecated content
DocsDocumentation-only changes (CLAUDE.md, READMEs)

5. Pre-commit Checks

The vault has pre-commit hooks that may:

  • Run detect-secrets (may need .secrets.baseline update)
  • Check for large files (use git LFS for >100MB)
  • Fix trailing whitespace and EOF

If the hook modifies files, re-stage with git add -u then commit again.

6. Post-commit

Run git status to verify the commit succeeded and working tree is clean.

Important

  • Never force push to main without explicit user confirmation
  • Never use --no-verify unless the user explicitly requests it
  • If git commit fails with PermissionError on ~/.cache/pre-commit/, use dangerouslyDisableSandbox: true

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Batch populate summary fields using content analysis

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

DavidROliverBA/ArchitectKB532026年3月2日 更新

auto-tag

免费

Batch auto-tag untagged notes using content analysis

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

DavidROliverBA/ArchitectKB532026年3月2日 更新

Generate C4 architecture diagrams from system notes

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

DavidROliverBA/ArchitectKB532026年3月2日 更新

canvas

免费

Create and edit Obsidian Canvas files for architecture visualization

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

DavidROliverBA/ArchitectKB532026年3月2日 更新

Check Outlook inbox and update daily note with message summary

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

DavidROliverBA/ArchitectKB532026年3月2日 更新

Evaluate an architecture artifact (ADR, HLD, LLD) against the vault's established architecture principles

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

DavidROliverBA/ArchitectKB532026年3月2日 更新

查看 DavidROliverBA 的全部技能

报告此技能的问题