smart-git-automation
Smart change detection, auto branch naming, and streamlined commit/PR workflow
Skill by mskadu
Chalk Labs
Need help deploying smart-git-automation?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mskadu-smart-git-automation
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/smart-git-automation
What's inside
- Skill name
smart-git-automation- Description
- Smart change detection, auto branch naming, and streamlined commit/PR workflow
- License
- MIT
- Instructions
- 80 lines in SKILL.md · view on GitHub
Files (2)
- README.md
- SKILL.md
SKILL.md (first lines)
## What I do
- Intelligently detect and group related changes
- Auto-generate descriptive branch names from changes
- Streamlined workflow: scan → branch → commit → push → PR with fewer prompts
## When to use me
Use this when you want a faster, smarter git workflow that groups changes logically and reduces manual confirmation overhead.
## Workflow Steps
### 1. Smart Detection & Grouping
Run in parallel:
- `git status` - check what's changed
- `git diff --stat` - see file modification summary
- `git diff --name-only` - list changed files only
- `git diff --staged --stat` - see what's already staged
Analyze changes to group them logically:
- Files in the same module/directory → likely related
- Files that were modified together in recent edits → likely related
- New files that complement each other → likely related
Present grouped changes in a clear format, e.g.:
```
📁 Group 1: UI Components
- src/components/Button.tsx (modified)
- src/components/Button.test.tsx (modified)
📁 Group 2: API Layer
- src/api/client.ts (new)
- src/api/types.ts (modified)
```
### 2. Auto Branch Name Generation
Generate branch name from dominant change pattern:
- Use format: `<type>/<short-description>`
- Types: `feature`, `fix`, `refactor`, `docs`, `test`, `chore`
- Derive description from most significant changed file/feature
- Convert to kebab-case, max 50 chars
- Examples:
- `feature/add-user-auth` (from auth-related files)
- `fix/login-validation` (from validation changes)
- `refactor/api-cleanup` (from API refactoring)
Show the proposed branch name and ask for one-word confirmation (or type alternative).
### 3. Streamlined Branch & Commit
- If not on main/master: check if current branch matches proposed name
- If yes: stay on it
- If no: ask to switch or create new
- Create branch: `git checkout -b <branch-name>`
- Stage changes: `git add <grouped-files>`
- Auto-generate commit message from changes:
- First line: `<type>: <short description>` (max 72 chars)
- Body: grouped file changes with brief descriptions
- Commit with generated message, show preview first
- Ask for one-word confirmation to proceed
### 4. Push & Optional PR
- After commit, ask: "Push to remote? (yes/no/abort)"
- If yes: `git push -u origin <branch-name>`
- Then ask: "Create PR? (yes/no)"
- If yes:
- Check remote: `git remote -v`
- If fork: use fork's remote (e.g., `mskadu/repo-name`)
- Auto-generate PR description from commit messages
- Use `gh pr create` with:
- Title from branch name
- Body: summary of changes + file breakdown + follow-up notes
## Key Rules
- Group related files automatically, but allow user to adjust
- Generate branch names from actual changes, don't ask user to name them
- Reduce confirmations: ask for one-word answers or single confirmation points
- Never commit secrets, credentials, or large binaries
- Check if GitHub repo exists before PR creation
- Skip PR step if user says "no" at any point
- If branch already exists with changes, offer to amend or add new commitFrom mskadu/opencode-agent-skills, MIT.
More from mskadu/opencode-agent-skills
- 0.491score
permission-manager
mskadu
Manage opencode permissions: review always-allow lists, suggest safe read-only commands, configure permission patterns
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-suggester
mskadu
Scan prompt history for recurring patterns and unmet needs, then propose new skills or command templates
SkillCFreshness: C★ 1Claude Code +9 - 0.490score
ollama-sync
mskadu
Synchronizes the list of available models in the 'opencode.json' configuration file's 'ollama' provider models list with the actual models available on the…
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 3, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/mskadu/opencode-agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from mskadu
- 0.491score
permission-manager
mskadu
Manage opencode permissions: review always-allow lists, suggest safe read-only commands, configure permission patterns
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-suggester
mskadu
Scan prompt history for recurring patterns and unmet needs, then propose new skills or command templates
SkillCFreshness: C★ 1Claude Code +9 - 0.490score
ollama-sync
mskadu
Synchronizes the list of available models in the 'opencode.json' configuration file's 'ollama' provider models list with the actual models available on the…
SkillCFreshness: C★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get smart-git-automation running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
smart-git-automation skill. Agent Mart. https://agentmart.dev/skills/mskadu-smart-git-automation (last updated 2026-10-24)