mpt-ext-task-commit-changes
Skill3 starsChanged 24 days agoApache-2.0View on GitHub
Create a repository-compliant Git commit when saving completed work. Stages only the intended files, builds the message from repo rules, and commits after required validation.
In this repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/mpt-extension-skills.mdcCursor rule
- mpt-ext-task-apply-dashboard-jira-decisionSkill
- mpt-ext-task-create-initial-epicSkill
- mpt-ext-task-create-work-branchSkill
- mpt-ext-task-dependabot-pr-policy-fixSkill
- mpt-ext-task-ensure-active-sprintSkill
- mpt-ext-task-fix-pre-commit-failuresSkill
- mpt-ext-task-fix-repository-check-failuresSkill
- mpt-ext-task-handle-pr-commentsSkill
- mpt-ext-task-move-jira-to-code-reviewSkill
- mpt-ext-task-move-jira-to-qaSkill
- mpt-ext-task-notify-pr-ready-in-teamsSkill
- mpt-ext-task-open-pull-requestSkill
- mpt-ext-task-run-repository-checksSkill
- mpt-ext-task-start-jira-workSkill
- mpt-ext-task-update-docs-from-changesSkill
- mpt-ext-task-write-documentationSkill
- mpt-ext-task-write-python-unittestsSkill
- mpt-ext-tool-gh-pr-opsSkill
- mpt-ext-tool-git-branch-opsSkill
- mpt-ext-tool-jira-workitem-opsSkill
- mpt-ext-tool-teams-send-messageSkill
- mpt-ext-workflow-address-review-feedbackSkill
- mpt-ext-workflow-complete-after-mergeSkill
- mpt-ext-workflow-dashboard-failure-triageSkill
- mpt-ext-workflow-decompose-tdrSkill
- mpt-ext-workflow-fix-dependabot-prsSkill
- mpt-ext-workflow-hotfix-backportSkill
- mpt-ext-workflow-notify-pr-readySkill
- mpt-ext-workflow-send-to-reviewSkill
- mpt-ext-workflow-skill-authoringSkill
- mpt-ext-workflow-start-workSkill
- mpt-ext-workflow-update-documentationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 23 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 10
Create a clean, repository-compliant Git commit for completed work.
- Distinctive: line 43
Read repository-specific docs when they exist, because they may extend or override shared guidance.
- Very specific: line 44
Read shared docs only when the repository explicitly points to them.
- Distinctive: line 49
If unrelated files are present, keep them out of the commit.
- Distinctive: line 50
If the intended scope is unclear, ask the user before staging.
- Distinctive: line 53
Check whether the repository-required validation has already been completed.
- Distinctive: line 54
If repository docs require checks before commit and they have not been run yet, stop and direct the flow back to the validation task …
- Very specific: line 55
If the repository relies on shared validation guidance from this package, read knowledge/build-and-checks.md using the shared-doc …
- Distinctive: line 56
If repository-required commit-time validation prerequisites are missing, stop and direct the flow back to the validation or pre-commit-fix …
- Distinctive: line 59
Add only the files that belong to the requested commit.
- Distinctive: line 60
Avoid staging unrelated edits, generated junk, or accidental local files.
- Distinctive: line 64
If the branch already has a commit and the user did not explicitly ask for a separate follow-up commit, prefer updating the existing branch …
- Distinctive: line 65
Create a new commit only when the user explicitly wants intentionally separated history or repository context requires it.
- Distinctive: line 66
If the branch is already pushed and amending would require rewriting published history, call that out clearly before proceeding.
- Distinctive: line 69
Follow repository commit rules from repo docs first.
- Distinctive: line 70
Use shared standards only when the repository points to them or does not define a stricter local rule.
- Distinctive: line 77
If hooks fail or rewrite files, stop and direct the flow to the pre-commit-failure task instead of retrying blindly.
- Distinctive: line 87
Never stage unrelated files silently.
- Distinctive: line 88
Never skip repository-required validation without telling the user.
- Distinctive: line 89
Never bypass repository-required commit-time hooks or their prerequisite setup when the repo workflow requires them.
- Distinctive: line 90
Never invent commit-message rules.
- Distinctive: line 91
Never create an unnecessary extra commit when the user expectation is a single squashed branch commit.
- Distinctive: line 92
Never amend a pushed branch silently when that will require force-pushing rewritten history.
- Distinctive: line 93
Never force a multi-commit history unless the user explicitly wants intentionally separated commits.
- Distinctive: line 94
Never mix PR creation or Jira transitions into this task.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Commit Changes
Purpose
Create a clean, repository-compliant Git commit for completed work.
Use When
- The user wants to commit finished changes.
- The task requires staging only the intended files.
- The task requires a commit message that follows repository standards.
- Repository-required validation has already been completed or the repository explicitly allows commit without additional validation.
Do Not Use When
- The task is to create or switch branches.
- The task is to open or update a pull request.
- The task is to transition Jira issue state.
- The task is to decide or run the repository validation flow from scratch.
Inputs
- The current repository diff.
- The current branch history, including whether the branch already contains work-in-progress commits.
- Optional explicit file scope when the user wants to commit only part of the current worktree.
- Repository commit rules from repo docs and shared standards.
- User intent for amending the existing branch commit versus creating intentionally separated commit history.
- Installed shared package root:
${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/currentWorkflow
- Build repository context first.
- Read the target repository
AGENTS.mdonce per session. If you already loaded it earlier in this session and still have its full contents, reuse them instead of re-reading; if the context was summarized or you are unsure it is complete, read it again. Do not pre-load shared docs in this step; read them lazily only when the repository points to them. - Read repository-specific docs when they exist, because they may extend or override shared guidance.
- Read shared docs only when the repository explicitly points to them. Resolve those shared docs from
${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/currentwhen available; otherwise read them from themainbranch of the shared GitHub repository.
- Inspect the current change scope.
- Review the current branch and diff.
- Identify which files are intended for this commit.
- If unrelated files are present, keep them out of the commit.
- If the intended scope is unclear, ask the user before staging.
- Confirm validation state.
- Check whether the repository-required validation has already been completed.
- If repository docs require checks before commit and they have not been run yet, stop and direct the flow back to the validation task instead of silently committing.
- If the repository relies on shared validation guidance from this package, read
knowledge/build-and-checks.mdusing the shared-doc resolution rule from the repository context step, and use it as the source of truth for commit-time validation andpre-commitexpectations. - If repository-required commit-time validation prerequisites are missing, stop and direct the flow back to the validation or pre-commit-fix task instead of attempting a blind commit.
- Stage only the intended files.
- Add only the files that belong to the requested commit.
- Avoid staging unrelated edits, generated junk, or accidental local files.
- Choose amend versus a new commit.
- Inspect whether the current branch already contains user-facing commits for the same work.
- If the branch already has a commit and the user did not explicitly ask for a separate follow-up commit, prefer updating the existing branch commit with
git commit --amend. - Create a new commit only when the user explicitly wants intentionally separated history or repository context requires it.
- If the branch is already pushed and amending would require rewriting published history, call that out clearly before proceeding.
- Build the commit message.
- Follow repository commit rules from repo docs first.
- Use shared standards only when the repository points to them or does not define a stricter local rule.
- For repositories that follow this package standard, read
standards/commit-messages.mdusing the shared-doc resolution rule from the repository context step, and use it as the source of truth.
- Create the commit.
- Amend the existing branch commit when the branch already has one and the user did not request separate history.
- Otherwise create a single clean commit unless the user explicitly requested intentionally separated commits.
- Review the repository-required automatic commit-time hooks and confirm the commit completed cleanly.
- If hooks fail or rewrite files, stop and direct the flow to the pre-commit-failure task instead of retrying blindly.
- Report the result clearly.
- Show which files were staged and committed.
- Show whether the result was an amended commit or a new commit.
- Show the final commit title.
- Show blockers clearly when validation, hooks, or Git errors prevent the commit.
Guardrails
- Never stage unrelated files silently.
- Never skip repository-required validation without telling the user.
- Never bypass repository-required commit-time hooks or their prerequisite setup when the repo workflow requires them.
- Never invent commit-message rules; read repository context first.
- Never create an unnecessary extra commit when the user expectation is a single squashed branch commit.
- Never amend a pushed branch silently when that will require force-pushing rewritten history.
- Never force a multi-commit history unless the user explicitly wants intentionally separated commits.
- Never mix PR creation or Jira transitions into this task.
Expected Outcome
The intended repository changes are staged cleanly and committed with a repository-compliant message, or the task stops with a clear blocker that explains what must be resolved before commit.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

