Commit

From fieldsphere/cursor-team-marketplace-template · View interactive version

Commit is an AI agent skill from the GitHub repository fieldsphere/cursor-team-marketplace-template. Create commits with conventional commit messages. Analyzes staged changes, generates a short one-line message, and runs git commit. Use when the user asks to commit, write a commit message, or create a commit.

How to use this skill

Skill file

Commit messages

When to apply

Format: Conventional Commits (one line)

<type>(<scope>): <subject>

Type (required): feat, fix, docs, style, refactor, test, chore

Scope (optional): affected area (e.g. auth, tournament, ui)

Subject (required): imperative mood, lowercase after type, no period. Keep under ~40 chars.

Examples (short)

feat(tournament): add date formatting
fix(reports): correct timezone in dates
refactor(api): extract date util
chore: add commit-messages skill
docs: update README setup

Workflow

  1. Run git status and git diff --staged to see staged changes
  2. If nothing is staged but there are modified files, run git add for the modified files (or all with git add -u) before committing
  3. Infer type and scope from the changes
  4. Write a single-line subject in imperative mood
  5. Run git commit -m "<message>" to create the commit

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.