Prompt file imported from decarufe/nos-limites (
.github/prompts/nexkit.commit.prompt.md). Copyright stays with the author.
Quick Commit Workflow
-
Check git status - Run
git statusto identify:- Staged files (under "Changes to be committed")
- Unstaged files (under "Changes not staged for commit")
- Untracked files
-
Analyze changes - Run
git diff --cached(for staged) orgit diff HEAD(for all changes):- Identify change type: feat, fix, refactor, docs, test, chore, style, perf
- Determine scope: component/module affected
- Understand what and why
-
Extract work item context (if available):
- Parse branch name for work item ID (e.g.,
feature/12345-description) - If found, use
mcp_azure-devops_wit_get_work_itemto get title and description - If not found or fails, proceed without work item context
- Parse branch name for work item ID (e.g.,
-
Generate and display commit message using Conventional Commits format:
type(scope): description - Key change details Work Item: #12345 - Title (if available) -
Commit strategy:
- If staged files exist: Commit them with
git commit -m "message"(DO NOT rungit add) - If no staged files: Ask user if they want to stage all changes first
- If no changes: Inform user and exit
- If staged files exist: Commit them with
-
Display summary:
ā Commit Analysis Complete š Work Item: #12345 - Feature title (if found) š Commit Message: type(scope): description š Git Status Analysis: - Staged files: N files ready for commit - Unstaged files: N files modified but not staged - Strategy: Committing staged files only š Committing staged changes... ā Commit successful: abc1234 - type(scope): description š Summary: - Files committed: N staged files - Remaining unstaged: N files - Tip: Review unstaged changes and stage manually if needed
Important: Respect existing staging - never run git add when staged files exist.