{"slug": "show-hn-git-workflow-as-an-ai-agent-skill", "title": "Show HN: Git workflow as an AI-agent skill", "summary": "GitX, a portable Git workflow skill for AI coding agents, 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. The skill, installable via `npx skills add musoyangrigor/gitx-skill --skill gitx`, supports commands like `$gitx` for smart commits, `$gitx branch` for branch creation, `$gitx pr` for pull requests, and `$gitx scan` for secret scanning. GitX follows the portable SKILL.md Agent Skills format.", "body_md": "Turn messy AI-generated changes into clean, safe Git history.\n\nGitX 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.\n\n```\nnpx skills add musoyangrigor/gitx-skill --skill gitx\n```\n\nThe Skills CLI configures the skill for the selected supported AI agent. Start a new agent session after installation.\n\nA bare `$gitx`\n\ninvocation immediately inspects the repository and runs Smart commit. GitX shows its command list only when you ask for help.\n\n| Command | Description |\n|---|---|\n`$gitx` |\nInspect changes and create a smart commit. |\n`$gitx body` |\nCreate a smart commit with a useful commit body. |\n`$gitx branch` |\nCreate and switch to a branch with an inferred prefix, such as `feat/` or `fix/` . |\n`$gitx branch fix/token-refresh` |\nCreate and switch to the named branch. |\n`$gitx branch check` |\nCreate an inferred branch, run checks, then commit. |\n`$gitx pull` |\nSafely pull updates for the current branch. |\n`$gitx push` |\nPush the current branch to `origin` ; create its upstream if needed. |\n`$gitx pr` |\nCreate a GitHub pull request into `origin` 's default branch with a generated title and body. |\n`$gitx pr develop` |\nCreate a GitHub pull request from the current branch into `develop` . |\n`$gitx issue Login fails after token expiry` |\nCreate a GitHub issue with a generated title and body. |\n`$gitx issue 123` |\nRead GitHub issue `#123` and implement the requested fix in the current working tree. |\n`$gitx resolve` |\nResolve an in-progress merge or rebase conflict. |\n`$gitx check` |\nRun relevant checks, then create a smart commit. |\n`$gitx status` |\nShow repository status without changing anything. |\n`$gitx tree` |\nShow a compact Git history tree, branch, sync, PR, and working-tree information. |\n`$gitx scan` |\nScan 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. |\n`$gitx plan` |\nPreview commit groups and messages without changing anything. |\n`$gitx type fix` |\nCreate a smart commit with the `fix` type. |\n`$gitx scope auth` |\nCreate a smart commit with the `auth` scope. |\n`$gitx files README.md package.json` |\nCommit only the specified files. |\n`$gitx amend` |\nAsk before amending the most recent commit. |\n\nIf GitX finds several logical commit groups, it asks whether to create the real number of commits or one commit.\n\nFor `gitx issue`\n\n, only a number such as `123`\n\nor `#123`\n\ntells GitX to implement an existing issue. Any other text creates a new GitHub issue, including descriptions that use words such as “fix” or “update.”\n\nInvoke GitX through your AI agent's skill interface, then use the same command words. For example: `gitx plan`\n\n, `gitx check`\n\n, or `gitx branch fix/token-refresh`\n\n.\n\nGitX follows the portable `SKILL.md`\n\nAgent Skills format.", "url": "https://wpnews.pro/news/show-hn-git-workflow-as-an-ai-agent-skill", "canonical_source": "https://github.com/musoyangrigor/gitx-skill", "published_at": "2026-08-22 16:50:30+00:00", "updated_at": "2026-08-22 17:14:01.637783+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "ai-tools"], "entities": ["GitX", "Agent Skills", "GitHub"], "alternates": {"html": "https://wpnews.pro/news/show-hn-git-workflow-as-an-ai-agent-skill", "markdown": "https://wpnews.pro/news/show-hn-git-workflow-as-an-ai-agent-skill.md", "text": "https://wpnews.pro/news/show-hn-git-workflow-as-an-ai-agent-skill.txt", "jsonld": "https://wpnews.pro/news/show-hn-git-workflow-as-an-ai-agent-skill.jsonld"}}