Skip to content
Agentmart
Submit a tool

commit

Commit changed skill files and close the in-progress issue — writes a traceability commit message referencing the issue number

Skill by Ability.ai

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/abilityai-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

Commit changed skill files and close the in-progress issue — writes a traceability commit message referencing the issue number

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. 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/commit

Tools it pre-approves 2

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

  • Bash,
  • Read

What's inside

Skill name
commit
Description
Commit changed skill files and close the in-progress issue — writes a traceability commit message referencing the issue number
License
Apache-2.0
Allowed tools
Bash,, Read
Metadata
author: Ability.ai · mirror: abilities@7090c8b plugins/agent-dev/skills/commit · created: 2026-04-28 · version: 1.1
Instructions
133 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Commit

> ℹ️ **First, set expectations:** before anything else, print one short line with this skill's version and its most recent change — the top entry of `metadata.changelog` above — e.g. `commit vX.Y — recent: <summary>`. Then proceed.

Stage changed skill files, write a commit message tied to the in-progress issue, and close the issue with a summary. The single action that closes the loop between a GitHub issue and a SKILL.md change.

## State Dependencies

| Source | Location | Read | Write | Description |
|--------|----------|------|-------|-------------|
| GitHub Issues | Current repo | Yes | Yes | Close the in-progress issue |
| Git working tree | ./ | Yes | Yes | Stage and commit skill files |

## Prerequisites

- `gh` CLI authenticated
- Git repo with at least one commit (not bare)
- Work is in-progress (a claimed issue exists) — or nothing is claimed and you just want a checkpoint commit (see Step 1)

## Process

### Step 1: Find the In-Progress Issue

```bash
gh issue list --label "status:in-progress" --state open --json number,title,body,labels --limit 5
```

If an issue number was passed as `$ARGUMENTS`, use that instead.

If multiple in-progress issues, ask which one this commit closes.

**No in-progress issue and no argument → checkpoint mode.** Do not stop: stage the agent-state set — `memory/ .claude/memory/ outputs/ .claude/skills/ CLAUDE.md template.yaml` (whatever exists; never `.env`, `.mcp.json`, `*.log`, or anything credential-shaped) — compose the message from the diff (`Update agent state: <what changed>`), commit, and report the sha. Skip the issue close in Step 5. This keeps `/commit` usable as a plain save when the agent is not running the issue workflow.

### Step 2: Check for Changes

```bash
git status --short
```

Surface all modified, added, or deleted files. Flag anything that is NOT a SKILL.md or agent configuration file (CLAUDE.md, template.yaml) — confirm the user wants to include it.

If there are no changes at all: report "Nothing to commit. Did `/adjust-playbook` or `/create-playbook` run yet?"

### Step 3: Stage Files

Stage all changed agent files:

```bash
git add .claude/skills/
git add CLAUDE.md  # if modified
```

If other files were modified, confirm before staging.

Show the staged diff summary:

```bash
git diff --cached --stat
```

### Step 4: Compose Commit Message

Derive the commit message from the issue:

- If the issue has a `skill:*` label: `[$SKILL_NAME]: $SHORT_DESCRIPTION (closes #$NUMBER)`
- If project-level: `[agent]: $SHORT_DESCRIPTION (closes #$NUMBER)`
- Short description = condensed version of issue title (lowercase, imperative)

Examples:
- `[adjust-playbook]: detect breaking interface changes (closes #14)`
- `[work-loop]: route skill issues by label (closes #3)`
- `[agent]: update onboarding section in CLAUDE.md (closes #1)`

Show the message and ask for confirmation or edits.

### Step 5: Commit

```bash
git commit -m "$(cat <<'EOF'
$COMMIT_MESSAGE
EOF
)"
```

### Step 6: Close the Issue

Add a completion comment:

```bash
gh issue comment $NUMBER --body "## Completed

$SUMMARY_FROM_DIFF

Committed: \`$COMMIT_SHA\`

---
*Closed via /commit*"
```

Update labels and close:

```bash
gh issue edit $NUMBER --remove-label "status:in-progress" --add-label "status:done"
gh issue close $NUMBER --reason completed
```

### Step 7: Confirm

```
## Committed and Closed

Commit: $COMMIT_SHA
Issue: #$NUMBER closed — $TITLE

Next: `/backlog` or `/claim` for the next issue.
```

## Outputs

From Abilityai/trinity-skills, Apache-2.0.

More from Abilityai/trinity-skills

Signals

Stars
0
Forks
1
Open issues
1
Last commit (this folder)
Sep 6, 2026 (1 month ago)
Last release
Oct 21, 2026 (6 days ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.1
License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Ability.ai

Cite this page

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