Skip to content
Back to skills

X Commit

ASecurity

Validate intended worktree changes and create atomic local commits. Use only when the user explicitly invokes $x-commit.

  • 70 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
devopsgitdocumentation

Security analysis

A100/100

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

Scanned December 3, 2026

npx -y skills add TTstack/TTstack --skill x-commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of X Commit?

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

Security grade badge for X Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ttstack-x-commit/badge)](https://www.skillsdirectory.com/skills/ttstack-x-commit)

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: x-commit
description: Validate intended worktree changes and create atomic local commits. Use only when the user explicitly invokes $x-commit.
---

# Commit intended changes

Before preflight, read `.agents/skill-rules/common.md` and then
`.agents/skill-rules/x-commit.md` from the Git root if present.
Use the skill-specific rules for repository details such as checks or release
criteria. Apply them within the selected scope and the user's authorization.
Continue with the available rules when either file is absent.

Resolve all paths from the Git top level; Markdown links are relative to this
file. Read the invocation arguments from the user prompt.

Validate and commit the selected changes locally. Follow the repository's
release policy for any required version update or local tag.

Registry path: `docs/audit.md` unless the project instructions name another.

## Input

Optional Git pathspecs from the user prompt. Given pathspecs → only matching
changes are candidates and everything else is baseline. Empty → all intended
changes. Reject option-like input and unknown flags; place pathspecs after `--`
when running Git commands. An unmatched pathspec selects nothing. A summary
supplied in ordinary prompt text describes the intended commit. Keep explicit
path restrictions even when the user also supplies a summary.

## Preflight

Run `git status --short --branch` and record the staged, unstaged, and
untracked baseline plus the starting `HEAD` and the current version. Identify
owned paths and hunks; preserve staged boundaries and unrelated work. If
nothing is intended and no version step is owed, report that and stop.

## Protocol

1. **Freeze units.** Split the intended diff into coherent units by root cause
   or behavior, each with its tests and documentation. Freeze each unit's
   paths and hunks before editing.
2. **Review each unit.** Read full implementations, callers, and the owning
   contracts. Check invariants, boundary and failure paths, concurrency and
   global state, feature isolation, and public or persisted compatibility.
   Refute candidates against the evidence before acting; merge same-root
   findings.
3. **Defer repairs.** Report confirmed defects with their locations
   and leave the affected unit for repair. Where a registry exists, record an
   actionable finding according to its rules. Continue with independent units.
4. **Validate.** Run the repository's formatting, lint, build, and test
   gates for the affected surface. Validate in a disposable worktree when
   other dirty baseline could affect the result. Format only owned files.
5. **Commit.** Stage exact paths or hunks, inspect `git diff --cached`
   (including `--check`), and commit with the repository's configured identity
   and message style. One root cause per commit. Preserve unrelated staged hunks:
   use an isolated index or worktree if other changes are already staged.
   When overlap cannot be separated safely, leave it untouched, report it, and
   continue with independent units.
6. **Finalize.** Review the aggregate diff once, then complete the owed version
   or release step under the repository's policy. Reuse unchanged-state
   results; a composing `$x-overhaul` owns finalization for its invocation.

## Report

Scope, units held for repair, validation run, compatibility impact, commit hashes and
subjects, version outcome, and the baseline left untouched.

Files in this skill

  • SKILL.md3.3 KB
  • agents/openai.yaml297 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 devops →

Comments

Loading comments…

Newsletter

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