Sandbox
@musoyangrigor/gitx-skill

Git workflow skill for AI coding agents

GitX gives an agent a structured way to inspect changes, group them into logical commits, and manage branches and pull requests. It also supports safe pull and push flows, merge and rebase conflict resolution, commit planning, and secret scanning.

66 stars6 forksUpdated 1mo ago
Who it's for

Builders who use agent skills and want their Git actions to be cleaner and safer.

What it delivers

You can turn messy agent-generated changes into clean commits, safe branches, and reviewed pull requests without doing the Git choreography by hand.

What it does

Smart commits

`$gitx` inspects the repository and creates a logical Conventional Commit from the current changes.

Branch creation

`$gitx branch` creates and switches to a branch with an inferred prefix, and `gitx branch fix/token-refresh` lets you name it directly.

Safe pull and push

`$gitx pull` and `gitx push` handle the current branch carefully, including creating an upstream if needed.

Pull requests and issues

`$gitx pr` creates a GitHub pull request with a generated title and body, and `gitx issue 123` can read an issue and implement the requested fix.

Checks and conflict resolution

`$gitx check` runs relevant checks before committing, and `$gitx resolve` helps with merge or rebase conflicts.

Secret scanning

`$gitx scan` reviews changes and history for exposed secrets and sensitive files, then summarizes the security state without modifying anything.

How to get it

  1. 1Run
    npx skills add musoyangrigor/gitx-skill --skill gitx

README

GitX

Turn messy AI-generated changes into clean, safe Git history.

GitX is a portable Git workflow skill for AI coding agents that turns working-tree changes into logical Conventional Commits and handles branches, project checks, safe pull and push workflows, GitHub pull requests and issues, secret scanning, merge and rebase conflict resolution, repository status and history, and commit planning across Agent Skills-compatible tools.

Install

npx skills add musoyangrigor/gitx-skill --skill gitx

The Skills CLI configures the skill for the selected supported AI agent. Start a new agent session after installation.

A bare $gitx invocation immediately inspects the repository and runs Smart commit. GitX shows its command list only when you ask for help.

Commands

CommandDescription
$gitxInspect changes and create a smart commit.
$gitx bodyCreate a smart commit with a useful commit body.
$gitx branchCreate and switch to a branch with an inferred prefix, such as feat/ or fix/.
$gitx branch fix/token-refreshCreate and switch to the named branch.
$gitx branch checkCreate an inferred branch, run checks, then commit.
$gitx pullSafely pull updates for the current branch.
$gitx pushPush the current branch to origin; create its upstream if needed.
$gitx prCreate a GitHub pull request into origin's default branch with a generated title and body.
$gitx pr developCreate a GitHub pull request from the current branch into develop.
$gitx issue Login fails after token expiryCreate a GitHub issue with a generated title and body.
$gitx issue 123Read GitHub issue #123 and implement the requested fix in the current working tree.
$gitx resolveResolve an in-progress merge or rebase conflict.
$gitx checkRun relevant checks, then create a smart commit.
$gitx statusShow repository status without changing anything.
$gitx treeShow a compact Git history tree, branch, sync, PR, and working-tree information.
$gitx scanScan changes and Git history for exposed secrets and sensitive files; summarize the project’s security state, findings, positives, recommended actions, and a secret-exposure rating without modifying anything.
$gitx planPreview commit groups and messages without changing anything.
$gitx type fixCreate a smart commit with the fix type.
$gitx scope authCreate a smart commit with the auth scope.
$gitx files README.md package.jsonCommit only the specified files.
$gitx amendAsk before amending the most recent commit.

If GitX finds several logical commit groups, it asks whether to create the real number of commits or one commit.

For gitx issue, only a number such as 123 or #123 tells GitX to implement an existing issue. Any other text creates a new GitHub issue, including descriptions that use words such as “fix” or “update.”

Usage

Invoke GitX through your AI agent's skill interface, then use the same command words. For example: gitx plan, gitx check, or gitx branch fix/token-refresh.

GitX follows the portable SKILL.md Agent Skills format.

Files in the repo

Repository payload3 top-level entries
  • gitx
  • LICENSE
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k