parse-git-status

Parse git status output into structured JSON with categorized file changes.

1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/RussianLioN/moltinger --skill parse-git-status-russianlion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: parse-git-status
Source: https://github.com/RussianLioN/moltinger/tree/main/.claude/skills/parse-git-status
Command: npx skills add https://github.com/RussianLioN/moltinger --skill parse-git-status-russianlion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill transforms raw git status output into a structured, machine-readable format, making it easier to programmatically understand the state of your Git repository.

Core Features & Use Cases

  • Structured Git Status: Parses branch information, tracking status, and file changes (staged, modified, untracked, etc.).
  • Clean Working Directory Check: Determines if the repository is in a clean state.
  • Use Case: Integrate this into CI/CD pipelines to automatically verify a clean working directory before deployment or to list changed files before a commit.

Quick Start

Parse the output of git status --porcelain to get a JSON object detailing the repository's status.

Frequently Asked Questions about parse-git-status

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse git status output into JSON for CI/CD pipelines?

You can parse git status output into JSON by using a tool that reads raw `git status --porcelain` data and structures it into categorized file statuses and branch tracking information. This provides a machine-readable format for pipeline validation.

What is the best way to check if a git working directory is clean programmatically?

To check if a git working directory is clean programmatically, parse the repository status into a structured format. This allows scripts to easily evaluate categorized file lists and determine if staged, modified, or untracked files exist before proceeding.

Can I extract ahead and behind commit counts from git status?

Yes, you can extract ahead and behind commit counts from git status by parsing the raw output. The parsed data details branch tracking information, allowing you to programmatically verify how many commits your local branch is ahead or behind the remote.

How do I list changed files before a commit in an automation script?

To list changed files before a commit in an automation script, parse the `git status --porcelain` output. This categorizes files into staged, modified, untracked, deleted, and renamed groups, providing a clear JSON object for script processing.

Does parsing git status require specific dependencies or components?

Parsing git status requires no specific dependencies or components. You can directly process the standard output from `git status --porcelain` to generate structured JSON data detailing branch information and categorized file changes.

Why parse git status into a structured format instead of using raw text?

Parsing git status into a structured format transforms raw text into reliable JSON, preventing fragile text matching in scripts. This structured data clearly separates staged, modified, untracked, deleted, and renamed files, making programmatic validation much easier.