| name | git-ops |
| description | Manage Git repositories within the workspace. Check status, commit changes, view diffs, and create branches. |
| license | Apache-2.0 |
Git Ops Skill
This skill provides utilities for interacting with Git repositories directly from the workspace.
Core Capabilities
- Status: Check repository state (modified files, staged changes).
- Commit: Create meaningful commits with messages.
- Diff: Inspect changes before committing.
- Branch Management: Create, list, and switch branches.
- Log: View commit history.
Dependencies
git (command-line tool)
- User must authorize git commands (standard Agent permission flow).
Workflow Examples
1. Check Status
git status
2. Stage and Commit
git add path/to/file.ext
git add .
git commit -m "feat: implement user login"
3. View Changes
git diff
git diff --staged
4. Create and Checkout Branch
git branch feature/new-api
git checkout feature/new-api
git checkout -b feature/new-api
5. View Recent Commits
git log --oneline -n 5
Best Practices
- Atomic Commits: Keep changes small and focused.
- Clear Messages: Use conventional commits format (feat:, fix:, docs:).
- Check Before Committing: Always run
git status or git diff first to avoid unintended inclusions.
- Branching: Work in feature branches, not main/master directly.