plugins/claude-code-expert/skills-old/git-integration/SKILL.md
# Claude Code Git Integration Complete guide to Git workflows and version control within Claude Code. ## Git Awareness Claude Code automatically detects Git repositories and understands: - Current branch and status - Uncommitted changes (staged and unstaged) - Recent commit history - Remote tracking branches - Merge conflicts ## Commit Workflow ### Claude's Commit Protocol When asked to commit, Claude follows this exact workflow: 1. **Inspect state** (parallel): - `git status` — see unt
npx skillsauth add markus41/claude plugins/claude-code-expert/skills-old/git-integrationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Complete guide to Git workflows and version control within Claude Code.
Claude Code automatically detects Git repositories and understands:
When asked to commit, Claude follows this exact workflow:
Inspect state (parallel):
git status — see untracked/modified filesgit diff — see staged and unstaged changesgit log --oneline -5 — recent commit styleDraft commit message:
Stage and commit (parallel):
git add <specific files> — never git add -A or git add .git commit -m "message" using heredoc for formattinggit status to verifytype(scope): description
Optional body with more details.
https://claude.ai/code/session_xxx
Types: feat, fix, refactor, test, docs, chore, style, perf, ci
When asked to create a PR, Claude:
gh pr create --title "feat: add user authentication" --body "$(cat <<'EOF'
## Summary
- Add JWT-based authentication middleware
- Create login/register API endpoints
- Add auth guards to protected routes
## Test plan
- [ ] Unit tests for auth middleware
- [ ] Integration tests for login/register
- [ ] E2E test for protected routes
https://claude.ai/code/session_xxx
EOF
)"
# View PR
gh pr view 123
# View PR comments
gh api repos/owner/repo/pulls/123/comments
# View PR checks
gh pr checks 123
# Merge PR
gh pr merge 123
# Close PR
gh pr close 123
# Create and checkout branch
git checkout -b feature/my-feature
# Push with upstream tracking
git push -u origin feature/my-feature
# Delete branch (local)
git branch -d feature/my-feature
# Delete branch (remote)
git push origin --delete feature/my-feature
Claude can help resolve merge conflicts:
# Start merge/rebase
git merge main
# or
git rebase main
# Claude reads conflict markers
# Claude resolves conflicts using Edit tool
# Claude stages resolved files
git add <resolved-file>
git merge --continue
# or
git rebase --continue
Claude follows strict git safety:
--no-verify (investigate hook failures instead)-i flag (interactive mode not supported)git add .)# Stash changes
git stash
# Stash with message
git stash push -m "work in progress on auth"
# Apply and remove
git stash pop
# Apply but keep in stash
git stash apply
# List stashes
git stash list
# Recent commits
git log --oneline -10
# Commits by author
git log --author="name"
# Changes between branches
git log main..feature-branch
# Diff between branches
git diff main...HEAD
# File history
git log --follow -p -- path/to/file
1. Make changes
2. Run tests: npm test
3. Run linter: npm run lint
4. Stage files: git add specific-files
5. Commit with message
# Update feature branch with main
git fetch origin main
git rebase origin/main
# If conflicts:
# Resolve → git add → git rebase --continue
git cherry-pick <commit-sha>
# Soft reset (keep changes staged)
git reset --soft HEAD~1
# Mixed reset (keep changes unstaged)
git reset HEAD~1
# Hard reset (DESTRUCTIVE - Claude confirms first)
git reset --hard HEAD~1
tools
Build Teams-native agents with the Teams SDK (formerly Teams AI Library v2) — App class, activity routing, adaptive cards, streaming, AI-generated labels, feedback, message extensions, Teams-as-MCP-server, and the bring-your-own-AI pattern with Agent Framework.
tools
Run agents on Microsoft Foundry (formerly Azure AI Foundry) Agent Service — prompt agents vs hosted agents, threads/runs and the Responses API, built-in tools (Bing grounding, code interpreter, file search, MCP, OpenAPI, A2A), connected agents, Entra agent identity, SDKs, and observability/evaluations.
tools
Build and host custom engine agents with the Microsoft 365 Agents SDK — AgentApplication, the Activity protocol, channel reach via Azure Bot Service, hosting Agent Framework or Semantic Kernel engines, and the Agents Toolkit/Playground workflow. Successor to the Bot Framework SDK.
tools
Design, govern, and extend Microsoft Copilot Studio agents — topics, generative orchestration, knowledge, tools and MCP, agent flows, autonomous triggers, publishing channels, Copilot Credits pricing, and solution-based ALM on Power Platform.