Skip to content
Back to skills

Commit

ASecurity

Stage, commit, create PR, and merge to main. Use for the standard commit-PR-merge cycle.

  • 5,142 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 3, 2026
researchbashgit

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --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/brycewang-stanford-commit/badge)](https://www.skillsdirectory.com/skills/brycewang-stanford-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: Stage, commit, create PR, and merge to main. Use for the standard commit-PR-merge cycle.
disable-model-invocation: true
argument-hint: "[optional: commit message]"
allowed-tools: ["Bash", "Read", "Glob"]
---

## Commit Workflow

Perform the full commit-PR-merge cycle.

### Steps

1. **Check current state**:
   ```bash
   git status
   git diff --stat
   git log --oneline -5
   ```

2. **Create branch**: `git checkout -b [descriptive-branch-name]`

3. **Stage files**:
   - Stage specific files (never `git add -A`)
   - Exclude: `settings.local.json`, `.env`, credentials, large data files
   - Review what's being staged

4. **Commit**:
   - Use `$ARGUMENTS` as commit message if provided
   - Otherwise, analyze changes and write a descriptive message
   - Format: imperative mood, concise, explains WHY not WHAT

5. **Push and create PR**:
   ```bash
   git push -u origin [branch-name]
   gh pr create --title "[message]" --body "[summary of changes]"
   ```

6. **Merge** (with user approval):
   ```bash
   gh pr merge --merge --delete-branch
   git checkout main
   git pull
   ```

### Important
- Never commit directly to main
- Never use `git add -A` or `git add .`
- Never commit sensitive files
- Always review staged changes before committing

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 research →

Comments

Loading comments…

Newsletter

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