Skip to content
Back to skills

Commit Main

ASecurity

Commit every dirty file in the current repo, only when on main.

  • 98 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 19, 2026
toolsbashgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 5, 2026

npx -y skills add indigoai-us/hq-core --skill commit-main --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit Main?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Commit Main
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/indigoai-us-commit-main/badge)](https://www.skillsdirectory.com/skills/indigoai-us-commit-main)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: commit-main
description: Commit every dirty file in the current repo, only when on main.
disable-model-invocation: true
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.

Files in this skill

  • SKILL.md1.2 KB
  • agents/openai.yaml128 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.