git-dirty-check
Read-only triage for a local git working tree that summarizes uncommitted changes and applies conservative risk flags. Use when a user asks what changed in a repo, what is dirty, what is staged versus unstaged, or which risk flags apply before a commit. Do not use for commit writing, branch management, history analysis, merge conflict resolution, PR review, or general git assistance.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/amitb-quantum/git-dirty-checkgit-dirty-check
A narrow git skill for summarizing uncommitted changes in a local repository. It groups staged, unstaged, untracked, and conflicted entries, applies conservative path- and filename-based risk flags, and suggests up to three next checks without modifying repo state.
git-dirty-check is a deliberately narrow skill for one job: understanding the current uncommitted state of a local git repository.
It does not try to manage branches, write commit messages, resolve conflicts, review pull requests, or act as a general git assistant. Instead, it gives a compact, structured triage of the current working tree:
- repo state
- changed entries by category
- conservative risk flags based mostly on paths, filenames, and diff stats
- a few copy-paste-ready next checks
- explicit omissions when details are capped or sensitive
The skill is read-only. It is designed for developers who want a quick operational summary before a commit, handoff, or local review, without granting write access or triggering broader repo assistance.
It also applies strict limits to deeper inspection:
- fail fast if the target is not a git repo
- branch metadata is optional
- deep diff inspection is capped
- secret-bearing filename patterns are handled at filename level only
This skill is most useful when raw git output is technically sufficient, but slower to parse than a stable triage summary.
Workflow
- Confirm the target path is inside a git repository.
- If it is not a git repository, stop immediately and say so.
- Collect read-only repo state with git status and diff-stat commands.
- Group changed entries into:
- staged
- unstaged
- untracked
- conflicted
- Apply conservative risk flags based mostly on file paths and filenames.
- Inspect diff content only when filename and diff-stat data are insufficient to assign a listed risk flag, and only for files not matched by the secret-bearing file rule.
- Return the output in the fixed order defined below.
Commands to Prefer
Use read-only commands only.
Preferred commands:
git rev-parse --show-toplevelgit rev-parse --abbrev-ref HEADgit status --shortgit diff --statgit diff --cached --stat
Use targeted diff inspection only under the deep diff inspection cap, and only for files not matched by the secret-bearing file rule.
Fail-Fast Rule
If the target path is not inside a git repository:
- stop immediately
- report that the path is not a git repository
- do not continue with generic filesystem analysis
Branch Handling
Branch name is optional metadata only. If branch name is available from a preferred read-only command, include it in Repo state. If HEAD is unavailable or branch name lookup fails in an otherwise valid repo, omit branch metadata without error. Do not give branch advice.
Deep Diff Inspection Cap
Deep diff inspection is optional and must remain narrow.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-amitb-quantum-git-dirty-check": {
"enabled": true,
"auto_update": true
}
}
}