commit

Create git commits following repository style. Use when user asks to "create a commit", "commit changes", "/commit", or requests committing code to git. Don't use for pushing code, creating pull requests, or reviewing changes.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "commit" with this command: npx skills add helderberto/skills/helderberto-skills-commit

Git Commit

Pre-loaded context

  • Status: !git status
  • Diff: !git diff HEAD
  • Log: !git log --oneline -10

Message Style

Match repo's existing commit patterns from log.

  • Extreme concision, sacrifice grammar for brevity
  • Focus on "why" not "what"
  • Imperative mood

Workflow

  1. Review status and diff
  2. Analyze recent commit style from log
  3. Stage files explicitly (avoid git add . or -A)
  4. Commit with HEREDOC format matching repo style
  5. Run git status after to verify

Rules

  • NEVER amend unless requested
  • NEVER skip hooks
  • NEVER commit secrets
  • Only commit when requested
  • Match existing commit patterns

Error Handling

  • If pre-commit hook fails → fix the reported issue, re-stage changed files, create a NEW commit (never --amend)
  • If nothing to commit → report clean working tree and stop
  • If staged files contain secrets → abort, warn user, unstage the file

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

explain-code

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-review

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

commit

No summary provided by upstream source.

Repository SourceNeeds Review