Git Commits

parcadei/continuous-claude-v3/.claude/skills/git-commits

作者 parcadeid07ff4b06b62無授權條款3.9K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫8 個月前更新

Git Commit Rules

AI 產生的概覽

將 git 提交、推送與儲存變更的請求轉交給獨立的 /commit 技能,而非直接執行 git commit。

功能
這是一個僅含說明的技能,定義了處理 git 提交、推送與儲存請求的規則。它要求代理不要直接執行 git commit,而是呼叫獨立的 /commit 技能,並表示該技能會移除 Claude 署名、產生 reasoning.md 檔案並清除建置嘗試紀錄。它也列出觸發詞,並說明後續步驟,例如執行產生推理紀錄的指令碼以及推送到分支。
適用情境
當使用者要求提交、推送或儲存 git 變更時使用,包括「push to github」「commit and push」等說法。其目的是讓這些請求透過指定的提交技能處理,而不是直接執行 git commit。
執行需求
此技能不隨附指令碼,僅為說明文件。它引用了一個獨立的 /commit 技能、專案 .claude/scripts 目錄下的 generate-reasoning.sh 指令碼,以及具備遠端推送權限的 git。

Git Commit Rules

When the user asks to commit, push, or save changes to git:

MUST Use /commit Skill

DO NOT run git commit directly. Instead:

Skill("commit")

The /commit skill:

  1. Removes Claude attribution from commits
  2. Generates reasoning.md capturing what was tried
  3. Clears build attempts for next feature

Why This Matters

  • Regular git commit adds "Generated with Claude Code" and Co-Author lines
  • The /commit skill removes these so commits appear user-authored
  • Reasoning capture preserves build history for future sessions

Trigger Words

When you see these in user prompts, use the commit skill:

  • "commit", "push", "save changes"
  • "push to github", "push changes"
  • "commit and push"

After Commit

The skill will prompt you to run:

bash
bash "$CLAUDE_PROJECT_DIR/.claude/scripts/generate-reasoning.sh" <hash> "<message>"

Then push if requested:

bash
git push origin <branch>

來源與署名

來源:parcadei/continuous-claude-v3位於.claude/skills/git-commits提交d07ff4b

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架