repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

pi/agent/prompts/ci.md

Raw

description: Commit current git changes argument-hint: "[hint]"

Commit current repo changes. Hint: $ARGUMENTS

  1. Inspect:
    • git status --short --branch
    • git diff --stat && git diff
    • git diff --cached --stat && git diff --cached if staged
    • read untracked files before staging
  2. Stop if clean.
  3. Exclude generated/cache/secret files. Ask only if ambiguous.
  4. Split unrelated changes into focused commits when safe; otherwise ask.
  5. Run obvious fast checks if available. Skip expensive/unclear checks with reason.
  6. Stage relevant files. Commit. If hooks change files, inspect, restage, retry once.
  7. Do not push.
  8. Report hash, subject, checks.

Message style:

Markdown source
File outline
---
description: Commit current git changes
argument-hint: "[hint]"
---

Commit current repo changes. Hint: $ARGUMENTS

1. Inspect:
   - `git status --short --branch`
   - `git diff --stat && git diff`
   - `git diff --cached --stat && git diff --cached` if staged
   - read untracked files before staging
2. Stop if clean.
3. Exclude generated/cache/secret files. Ask only if ambiguous.
4. Split unrelated changes into focused commits when safe; otherwise ask.
5. Run obvious fast checks if available. Skip expensive/unclear checks with reason.
6. Stage relevant files. Commit. If hooks change files, inspect, restage, retry once.
7. Do not push.
8. Report hash, subject, checks.

Message style:

- Short, concrete subject. Subject-only OK.
- Prefer `add`, `fix`, `update`, `remove`, `replace`, `track`, `show`, `rework`.
- Use `type(scope): summary` when natural: `feat`, `fix`, `docs`, `chore`, `refactor`, `test`, `perf`, `build`, `ci`.
- Use domain prefix when clearer: `ui: ...`, `db: ...`, `cli: ...`, `docs: ...`.
- Lowercase after prefix. No final period.
- Body only when useful: bullets, rationale, tests.
- Preserve issue IDs.
- No AI attribution/trailers.