Skip to content
Back to skills

Commit

ASecurity

Commit changes to git, whenever the user asks to commit or save them. The only path to a commit - never run git add or git commit yourself, never inspect git status or diff first. Arguments, all optional - none commits every change (modified, new, deleted); space-separated paths (files or directories) commit only those; an issue reference the user gave (`#123` or a GitHub issue link) becomes the `Resolves` footer. Arguments never carry an apostrophe (').

  • 8 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 7, 2026
ai-agentsbashgit

Security analysis

A100/100

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

Scanned December 1, 2026

npx -y skills add p2p2sp/p2p2.claude --skill commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit?

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

Security grade badge for Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/p2p2sp-commit/badge)](https://www.skillsdirectory.com/skills/p2p2sp-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: commit
description: Commit changes to git, whenever the user asks to commit or save them. The only path to a commit - never run git add or git commit yourself, never inspect git status or diff first. Arguments, all optional - none commits every change (modified, new, deleted); space-separated paths (files or directories) commit only those; an issue reference the user gave (`#123` or a GitHub issue link) becomes the `Resolves` footer. Arguments never carry an apostrophe (').
model: haiku
effort: medium
context: fork
background: false
allowed-tools: Bash, Bash(${CLAUDE_SKILL_DIR}/scripts/commit-context.sh:*), Bash(${CLAUDE_SKILL_DIR}/scripts/commit.sh:*)
---

# commit

Compose one commit message from the context below by the message rules below, in the type/scope style of its recent subjects, and commit it.

- Context opens with `STOP:`: run nothing, return that sentence.
- Context opens with `RUN:`: run that command exactly once, `<message>` replaced by your message (footer included), the rest copied as printed. A reply with no tool call commits nothing.
- Never judge that there is nothing to commit, never re-inspect the tree, never question the selection.
- Run no other command: no `git`, no push, no second `commit.sh` (a different or empty selector widens the commit to everything staged).
- Never add `Co-Authored-By` or any other Claude attribution.

## Message rules
!`cat "${CLAUDE_SKILL_DIR}/references/commit-conventions.md" 2>&1`

## Context
```!
"${CLAUDE_SKILL_DIR}/scripts/commit-context.sh" '$ARGUMENTS'
```

## Output
Return exactly one line, no other text:
- `commit.sh` exited 0: the line it printed.
- `commit.sh` exited non-zero: its error output.
- `STOP:` context: that sentence.

Files in this skill

  • SKILL.md3.3 KB
  • references/commit-conventions.md1.8 KB
  • scripts/commit-args.sh6.6 KB
  • scripts/commit-context.sh5 KB
  • scripts/commit-selfcheck.sh1.6 KB
  • scripts/commit.sh4.9 KB

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 ai-agents →

Comments

Loading comments…

Newsletter

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