Skip to content
Agentmart
Submit a tool

validator-commit

Activates only for explicit validator-aware commit requests such as "commit with validator", "run validator then commit", "run checks before commit", or "skip…

Skill by Codagent-AI

IndexedMIT★ 30
Write a review

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

npx agentmarket install skill/codagent-ai-validator-commit

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Activates only for explicit validator-aware commit requests such as "commit with validator", "run validator then commit", "run checks before commit", or "skip validator and commit". Excludes plain commit requests.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/validator-commit

Tools it pre-approves 2

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Bash,
  • Task

What's inside

Skill name
validator-commit
Description
Activates only for explicit validator-aware commit requests such as "commit with validator", "run validator then commit", "run checks before commit", or "skip validator and commit". Excludes plain commit requests.
License
MIT
Allowed tools
Bash,, Task
Instructions
79 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

# /validator-commit $ARGUMENTS

Commit with explicit validator validation intent. Runs `agent-validate detect` first, validates based on intent (full run, checks only, or skip), handles failures, then commits.

## Invocation Policy

Use this skill only when the user explicitly asks to involve Agent Validator in the commit flow, including full validation, checks-only validation, or intentionally skipping validator state as part of the commit.

Do not choose this skill for a plain "commit", "make a commit", or "commit these changes" request that does not mention validator, gauntlet, checks, validation, or skip.

## Step 1 - Detect Changes

Run `agent-validate detect` using `Bash`:

```bash
agent-validate detect 2>&1; echo "DETECT_EXIT:$?"
```

Check the exit code from the `DETECT_EXIT:` line:

- **Exit 0** → gates would run, continue to Step 2
- **Exit 2** → no gates would run (no changes or no applicable gates), **skip to Step 4** (commit directly)
- **Exit 1** → error, report the error to the user and stop
- **Any other exit code** → treat as error, report output to the user, and stop

## Step 2 - Determine Validation Intent

Parse `$ARGUMENTS` for a validation intent. Do not prompt the user if a clear intent is found.

| ARGUMENTS pattern | Action |
|-------------------|--------|
| Contains "check" or "checks" | Invoke `/validator-check` (Step 3b) |
| Contains "run", "full", or "all gates" | Invoke `/validator-run` (Step 3a) |
| Contains "skip" | Run `agent-validate skip 2>&1` (Step 3c), then go to Step 4 |
| Empty or no clear intent | Present the three choices below to the user, wait for selection |

Evaluate the "check" or "checks" pattern before the generic "run" pattern, so
phrases like "run checks before commit" select `/validator-check`.

**When prompting the user**, present these choices:

1. **Run all gates** — full validation (checks + reviews)
2. **Run checks only** — checks without AI reviews
3. **Skip validator** — advance baseline without running any gates

Then proceed to the step matching the user's selection.

## Step 3a - Full Validation (validator-run)

Invoke `/validator-run`.

- If it passes → go to Step 4
- If it fails → the `/validator-run` skill handles fixing and re-running. After that skill completes, ask the user: **"Ready to commit?"**. Proceed to Step 4 only on confirmation.

## Step 3b - Checks-Only Validation (validator-check)

Invoke `/validator-check`.

- If it passes → go to Step 4
- If it fails → the `/validator-check` skill handles fixing and re-running. After that skill completes, ask the user: **"Ready to commit?"**. Proceed to Step 4 only on confirmation.

## Step 3c - Skip Validation

Run:

```bash
agent-validate skip 2>&1
```

Report the command output to the user, then go to Step 4.

## Step 4 - Commit

Check whether you have a skill for committing git changes available (excluding `validator-commit` itself to avoid self-invocation).

- **If a commit skill is found** → invoke that skill to perform the commit
- **If no commit skill is found** → stage all tracked changes, propose a commit message following the conventional commits format (`<type>: <description>`), then run `git commit -m "<message>"`

From Codagent-AI/agent-validator, MIT.

More from Codagent-AI/agent-validator

Signals

Stars
30
Forks
2
Open issues
14
Last commit (this folder)
May 13, 2026 (5 months ago)
Last release
Sep 29, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Codagent-AI

Cite this page

validator-commit skill. Agent Mart. https://agentmart.dev/skills/codagent-ai-validator-commit (last updated 2026-10-24)