Agent skill

Git Commit

by nex-agi in nex-agi/NexRL

Git commit workflow in a worktree with Python linting, formatting, and testing.

Apache-2.0Auto-check: notesDevelopment

Install Git Commit

skills CLI
$ npx skills add nex-agi/NexRL --skill git-commit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nex-agi/NexRL git-commit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nex-agi/NexRL.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/git-commit .claude/skills/git-commit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
git-commit
GitHub stars
119
Token cost
~380 tokens
SKILL.md length
75 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
Apache-2.0

At a glance

Git commit workflow in a worktree with Python linting, formatting, and testing.

  • Works in 7 steps: Analyze Changes → Format & Lint → Run Tests → …
  • Tasks that involve Commit messages
  • SKILL.md covers Prerequisites and Workflow
  • Calls git and python

What it does

Git Commit is an agent skill from nex-agi/NexRL. Git commit workflow in a worktree with Python linting, formatting, and testing.

Its SKILL.md is about 380 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Commit messages, Linting and formatting and Git worktrees. It works with Python. The repository describes itself as: NexRL is an ultra-loosely-coupled LLM post-training framework. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Commit messages
  • Tasks that involve Linting and formatting
  • Tasks that involve Git worktrees

Example prompts

  • “/git-commit”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Analyze Changes
  2. Format & Lint
  3. Run Tests
  4. Review (use code-review skill)
  5. Stage Changes
  6. Commit
  7. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit 53dcdec. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Git Commit loads about 380 tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 75 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~380

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:57
    **Never stage:** `__pycache__/`, `.env`, `*.egg-info/`, build artifacts, coverage files

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nex-agi/NexRL at commit 53dcdec, republished under its Apache-2.0 licence (© nex-agi). 75 words, ~380 tokens.

Download SKILL.mdSave it as .claude/skills/git-commit/SKILL.md (or your agent's skills folder).
name
git-commit
description
Git commit workflow in a worktree with Python linting, formatting, and testing.

Git Commit Workflow (Worktree-Aware)

Prerequisites

Verify you're in a worktree (not main clone):

bash
git rev-parse --show-toplevel
git worktree list

Workflow

Step 1: Analyze Changes
bash
git diff --name-only
git diff --cached --name-only
Step 2: Format & Lint
bash
# Format changed Python files
python -m black <changed_python_files>
python -m isort <changed_python_files>

# Fix license headers
python tests/lint/fix_license_header.py <changed_files>

# Lint
python -m pylint <changed_python_files> --rcfile=.pylintrc -rn -sn
python -m mypy <changed_python_files> --ignore-missing-imports
Step 3: Run Tests
bash
python -m pytest tests/ -v --tb=short
Step 4: Review (use code-review skill)

Follow .ai-instructions/code-review/generic.md checklist.

Step 5: Stage Changes
bash
git add path/to/changed/files
git diff --staged  # Final review

Never stage: __pycache__/, .env, *.egg-info/, build artifacts, coverage files

Step 6: Commit

Format: type(scope): description (72 chars max)

Types: feat, fix, refactor, test, docs, style, chore, perf

bash
git commit -m "type(scope): description

Detailed explanation if needed.

Fixes #ISSUE_NUMBER"

No AI co-author lines. (per .ai-instructions/developing/commit-guidelines.md)

Step 7: Verify
bash
git show HEAD --name-only
git log -1

© nex-agi, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/git-commit of nex-agi/NexRL.

Open the folder on GitHubat commit 53dcdec

Compare with similar skills

Git Commit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Git Commit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Commit this skillnex-agi/NexRL119—~380Automated safety check: NotesApache-2.0
Saleor Commit Workflowsaleor/saleor23k—~575Automated safety check: PassBSD-3-Clause
Git HooksProrise-cool/Claude-Code-Multi-Agent305—~3.6kAutomated safety check: NotesNone
Python NethsecurityNethServer/nethsecurity191—~2kAutomated safety check: PassCustom licence
Git PR Workflowandymai/brepjs114—~2.9kAutomated safety check: PassApache-2.0
Kedro Babysitkedro-org/kedro11k—~4kAutomated safety check: PassCustom licence

Similar skills

  • Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.

    23k GitHub stars~575 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Git Hooks

    Prorise-cool/Claude-Code-Multi-Agent

    Central authority on git hook implementations, modern best practices, and tooling for .NET/C, JavaScript/TypeScript, Python, and polyglot repositories.

    305 GitHub stars~3.6k tokensUpdated 21 days ago
    DevelopmentAuto-check: notes
  • Python Nethsecurity

    NethServer/nethsecurity

    Write or modify Python scripts for NethSecurity packages. An agent skill from NethServer/nethsecurity.

    191 GitHub stars~2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Git PR Workflow

    andymai/brepjs

    This skill should be used when committing, pushing, branching, or merging in the brepjs repository — when a task involves "pre-commit hook failed" (which tier ran, how to bypass), "commit rejected…

    114 GitHub stars~2.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Kedro Babysit

    kedro-org/kedro

    Run Kedro's local lint / format / type-check / tests on changed files (uses the project's pre-commit hooks, ruff, mypy, pytest, lint-imports, detect-secrets, Make targets — in the right venv), or…

    11k GitHub stars~4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Commitizen

    commitizen-tools/commitizen

    A skill your agent uses for tasks involving Conventional Commits, commit message validation, Commitizen configuration, semantic version bumps, changelog generation, or CI/release automation with the…

    3.5k GitHub stars~839 tokensUpdated today
    DevelopmentAuto-check passed

More from nex-agi/NexRL

  • Address PR Comments

    nex-agi/NexRL

    Address GitHub PR review comments. An agent skill from nex-agi/NexRL.

    119 GitHub stars~420 tokensUpdated 20 days ago
    Auto-check passed
  • Fix Issue

    nex-agi/NexRL

    Fix a GitHub issue using git worktree for isolation. An agent skill from nex-agi/NexRL.

    119 GitHub stars~733 tokensUpdated 20 days ago
    Auto-check passed
  • Code Review

    nex-agi/NexRL

    Code review for Python changes in NexRL, following project conventions.

    119 GitHub stars~395 tokensUpdated 20 days ago
    Auto-check passed
  • GitHub PR

    nex-agi/NexRL

    Create a GitHub PR from a worktree branch. An agent skill from nex-agi/NexRL.

    119 GitHub stars~367 tokensUpdated 20 days ago
    Auto-check passed
  • Testing

    nex-agi/NexRL

    Run tests and linting for NexRL Python project. An agent skill from nex-agi/NexRL.

    119 GitHub stars~350 tokensUpdated 20 days ago
    Auto-check passed

Works with

Categories

Questions about Git Commit

What does Git Commit do?

Git commit workflow in a worktree with Python linting, formatting, and testing. Git Commit is an agent skill from nex-agi/NexRL. Git commit workflow in a worktree with Python linting, formatting, and testing.

When should I use Git Commit?

Git Commit fits situations like: tasks that involve Commit messages; tasks that involve Linting and formatting; tasks that involve Git worktrees.

How do I install Git Commit in Claude Code?

Run `npx skills add nex-agi/NexRL --skill git-commit -a claude-code`. Or copy the skill folder (.claude/skills/git-commit in nex-agi/NexRL) into .claude/skills/git-commit in your project. Claude Code loads it when a task matches its description.

How do I install Git Commit in Codex?

Run `npx skills add nex-agi/NexRL --skill git-commit -a codex`. Or copy the skill folder (.claude/skills/git-commit in nex-agi/NexRL) into .agents/skills/git-commit in your project. Codex loads it when a task matches its description.

Can I use Git Commit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nex-agi/NexRL --skill git-commit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-commit, .gemini/skills/git-commit, .github/skills/git-commit and .opencode/skills/git-commit in your project.

What does Git Commit need to run?

Going by SKILL.md and its folder, Git Commit needs the command-line tools its instructions call (git and python). Our summary lists: Python 3.

Does Git Commit access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Git Commit safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Git Commit use?

Git Commit is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Git Commit use?

About 380 tokens (SKILL.md is roughly 1.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Git Commit?

Skills that share tags, products or a category with Git Commit: Saleor Commit Workflow (saleor/saleor, 23k stars), Git Hooks (Prorise-cool/Claude-Code-Multi-Agent, 305 stars), Python Nethsecurity (NethServer/nethsecurity, 191 stars) and Git PR Workflow (andymai/brepjs, 114 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Commit?

nex-agi (a GitHub organization) maintains it in nex-agi/NexRL, which has 119 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on September 17, 2026.

Source: nex-agi/NexRL on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.