Agent skill
git
Git version control with branching, merging, and rebasing. Use for source control.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/git-g1joshi-agent-skills
SKILL.md
Git
Git is the foundation of modern software. In 2025, features like Sparse Checkout and Scalar (for monorepos) are becoming mainstream.
When to Use
- Always: Use it for everything. Text files, config, code.
- Bisect: Finding bugs by binary search.
Core Concepts
Graph
Commits form a DAG (Directed Acyclic Graph).
Rebase vs Merge
- Merge: Preserves history, creates bubbles.
- Rebase: Rewrites history, linearizes.
Worktrees
Checkout multiple branches of the same repo in different folders simultaneously.
Best Practices (2025)
Do:
- Use
git switch/git restore: The modern alternatives to the overloadedgit checkout. - Use
git maintenance: Speed up fetch/clone in the background. - Sign Commits: Use SSH keys to sign commits (
Commit Signing).
Don't:
- Don't force push to shared branches:
git push --force-with-leaseis the safer alternative.
References
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?