1075551341/claude_code_config/git-workflow
Claude Code and agent skill by 1075551341/claude_code_config
Trust tier 3
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending
Checking that the SKILL.md file is still in the repository.
Git 工作流。触发词:git commit | git分支 | 提交代码 | 创建分支 | merge | rebase | 版本管理
Install
npx vskill@latest install 1075551341/claude_code_config/git-workflowSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as 1075551341/claude_code_config/git-workflow.
Git 提交流程
L3:用户显式要求 commit 或「提交」时 Read 全文。
安全协议
- 禁止 Agent 自动
git commit/git stash(Cursor Guardask/deny+ Claudepre-bash-guard) - 禁止
git stash(任何形式);换用git worktree或用户本地处理 - 仅当用户本条消息显式要求「提交/commit」时才可
git commit(Cursor 会弹窗确认) - 禁止修改 git config
- 禁止破坏性命令(
push --force、hard reset等),除非用户明确要求 - 禁止跳过 hooks(
--no-verify、--no-gpg-sign等),除非用户明确要求 - 禁止对 main/master force push;用户要求时须警告
- 避免
git commit --amend,仅当以下全部满足:
- 用户明确要求 amend,或 pre-commit hook 自动改文件需纳入
- HEAD 由本会话创建(
git log -1 --format='%an %ae') - 提交未 push 到 remote
- hook 失败时:修复后新建 commit,不要 amend
- 已 push 的提交:不要 amend(除非用户明确要求且接受 force push)
- 禁止提交含密钥的文件(
.env、credentials.json等);用户要求时警告
提交流程
- 并行执行:
git status(含 untracked)git diff(staged + unstaged)git log(近期 message 风格)
- 分析变更,起草 1–2 句 commit message(强调 why)
- 顺序执行:
git add相关文件git commit(HEREDOC 传 message)git status验证成功
- hook 失败 → 修复 → 新 commit
Commit message 格式
遵循仓库既有风格;无约定时用 conventional commits。
禁止
- 无变更时 empty commit
- 用户未要求时不主动 commit
- 禁止 Agent 执行
git stash(任何子命令) git带-i交互标志
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/git-workflow/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/1075551341/claude_code_config/git-workflow)