commit

Stage and commit changes with a well-crafted commit message. TRIGGER when: user asks to commit, stage, or save changes to git. Examples: "commit this", "commit the changes", "stage and commit". DO NOT TRIGGER when: user asks to push, create a PR, or amend a previous commit.

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 smartworkx/dev-context/smartworkx-dev-context-commit

Create a git commit for the current changes.

Steps

  1. Run git status and git diff (staged and unstaged) to understand all changes
  2. Run git log --oneline -5 to see recent commit style
  3. Extract the issue number from the current branch name (e.g. feature/42-add-export#42)
  4. Analyze the changes and draft a concise commit message:
    • Start with the issue number if available: #42 Add export endpoint
    • Use imperative mood ("Add feature" not "Added feature")
    • First line under 70 characters, summarizing the why
    • Add a blank line and body paragraph if the change needs explanation
  5. Stage the relevant files — prefer git add <file>... over git add -A
    • Do NOT stage files that look like secrets (.env, credentials, tokens)
    • If unsure whether a file should be included, ask
  6. Commit with the message
  7. Show the resulting git log --oneline -1 to confirm

Rules

  • Do NOT push — only commit locally
  • Do NOT amend previous commits unless explicitly asked
  • If there are no changes to commit, tell the user

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

create-adr

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

create-spec

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

feature-branch

No summary provided by upstream source.

Repository SourceNeeds Review