# gjalla-prepare-and-commit

Prepares staged code for clean commits by verifying tests and splitting mixed diffs. It formats change reports for human review.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 857 installs · ★ 3
- Author: gjalla
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/gjalla/engineering/tree/HEAD/skills/gjalla-prepare-commit/SKILL.md
- Updated: 2026-09-20
- HTML: https://affpapa.org/en/nevibecode/skills/gjalla-prepare-and-commit

## What it does

This skill guides the agent through verifying working changes before creating git commits. It checks whether acceptance criteria are met and placeholder stubs are removed. If checks fail, the agent stops instead of applying quick fixes.

The workflow introduces an explicit human gate. The agent drafts a short summary covering test runs and system impact. Then it prepares a staging plan using precise file selection or `git add -p` rather than broad `git add .` operations.

Syncing specs into the main record fails completely if repository hooks for `gjalla` are not installed beforehand. The tool also formats commit metadata using `gjalla attest --example` and stops before pushing code to remote branches without direct permission.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add gjalla/engineering --skill gjalla-prepare-and-commit -a claude-code
```
```bash
npx skills add gjalla/engineering --skill gjalla-prepare-commit -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/gjalla-prepare-commit/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/gjalla-prepare-commit/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add gjalla/engineering --skill gjalla-prepare-commit -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/gjalla-prepare-commit/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add gjalla/engineering --skill gjalla-prepare-commit -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/gjalla-prepare-commit/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install gjalla/engineering gjalla-prepare-commit
```

2. **Manually: put the files in place**
- File: `.github/skills/gjalla-prepare-commit/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add gjalla/engineering --skill gjalla-prepare-commit -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/gjalla/engineering --path skills/gjalla-prepare-commit
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/gjalla-prepare-commit/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add gjalla/engineering --skill gjalla-prepare-commit -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/gjalla/engineering/tree/HEAD/skills/gjalla-prepare-commit/SKILL.md

## When to use it
- verify test results and remove leftover placeholder stubs
- split mixed diffs into atomic commits using `git add -p`
- generate an evidence-backed change summary for human review
- format attestations for `gjalla` commit hooks

## Example prompts
- Review current unstaged changes and prepare an atomic commit plan.
- Run tests and draft the change report before staging files.
- Generate the gjalla attestation and commit this bugfix.

## Similar
- [triage](https://affpapa.org/en/nevibecode/skills/triage.md) — skill · 990453 installs
- [code-review](https://affpapa.org/en/nevibecode/skills/code-review.md) — skill · 789521 installs
- [implement](https://affpapa.org/en/nevibecode/skills/implement.md) — skill · 774700 installs
- [git-guardrails-claude-code](https://affpapa.org/en/nevibecode/skills/git-guardrails-claude-code.md) — skill · 499069 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [scaffold-exercises](https://affpapa.org/en/nevibecode/skills/scaffold-exercises.md) — skill · 480196 installs

From the same set: [gjalla/engineering](https://affpapa.org/en/nevibecode/by/gjalla/engineering.md) — 5 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
