Commit every dirty file in the current repo, only when on main.
Scanned 9/19/2026
Install to Claude Code
npx -y skills add indigoai-us/hq-core --skill commit-main --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Commit Main?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/indigoai-us-commit-main)More formats (shields.io, HTML) on the badges page.
---
name: commit-main
description: Commit every dirty file in the current repo, only when on main.
allowed-tools: Bash(git:*), Bash(date:*), Read
---
# Commit Dirty Main State
Codex adapter for `/commit-main`.
**Arguments:** `<commit message>`
## Source Of Truth
Read `.claude/commands/commit-main.md` first. That slash command owns the workflow, branch guard, staging behavior, and completion report.
## Codex Adaptation
Execute the command workflow inline from the current repository.
- Treat the user's arguments as the commit message.
- If the message is missing, ask the user for a commit message before staging anything.
- Verify `git branch --show-current` returns exactly `main` before staging.
- Use `git status --short` to detect whether there are changes to commit.
- Use `git add -A` because the command's purpose is to commit every dirty path, including deletions and untracked files.
- Commit with `git commit -m "<commit message>"`.
- End with the new commit hash and remaining dirty-file count.
## Completion
Report whether a commit was created. If the command stopped because the branch was not `main`, no commit message was provided, or the repo was already clean, say that directly.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!