agentleFS
softwareone-platformsoftwareone-platform/mpt-extension-skills/skills/mpt-ext-task-commit-changes/SKILL.md

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.

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
  1. Distinctive:

    Create a clean, repository-compliant Git commit for completed work.

    line 10
  2. Distinctive:

    Read repository-specific docs when they exist, because they may extend or override shared guidance.

    line 43
  3. Very specific:

    Read shared docs only when the repository explicitly points to them.

    line 44
  4. Distinctive:

    If unrelated files are present, keep them out of the commit.

    line 49
  5. Distinctive:

    If the intended scope is unclear, ask the user before staging.

    line 50
  6. Distinctive:

    Check whether the repository-required validation has already been completed.

    line 53
  7. Distinctive:

    If repository docs require checks before commit and they have not been run yet, stop and direct the flow back to the validation task …

    line 54
  8. Very specific:

    If the repository relies on shared validation guidance from this package, read knowledge/build-and-checks.md using the shared-doc …

    line 55
  9. Distinctive:

    If repository-required commit-time validation prerequisites are missing, stop and direct the flow back to the validation or pre-commit-fix …

    line 56
  10. Distinctive:

    Add only the files that belong to the requested commit.

    line 59
  11. Distinctive:

    Avoid staging unrelated edits, generated junk, or accidental local files.

    line 60
  12. Distinctive:

    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 …

    line 64
  13. Distinctive:

    Create a new commit only when the user explicitly wants intentionally separated history or repository context requires it.

    line 65
  14. Distinctive:

    If the branch is already pushed and amending would require rewriting published history, call that out clearly before proceeding.

    line 66
  15. Distinctive:

    Follow repository commit rules from repo docs first.

    line 69
  16. Distinctive:

    Use shared standards only when the repository points to them or does not define a stricter local rule.

    line 70
  17. Distinctive:

    If hooks fail or rewrite files, stop and direct the flow to the pre-commit-failure task instead of retrying blindly.

    line 77
  18. Distinctive:

    Never stage unrelated files silently.

    line 87
  19. Distinctive:

    Never skip repository-required validation without telling the user.

    line 88
  20. Distinctive:

    Never bypass repository-required commit-time hooks or their prerequisite setup when the repo workflow requires them.

    line 89
  21. Distinctive:

    Never invent commit-message rules.

    line 90
  22. Distinctive:

    Never create an unnecessary extra commit when the user expectation is a single squashed branch commit.

    line 91
  23. Distinctive:

    Never amend a pushed branch silently when that will require force-pushing rewritten history.

    line 92
  24. Distinctive:

    Never force a multi-commit history unless the user explicitly wants intentionally separated commits.

    line 93
  25. Distinctive:

    Never mix PR creation or Jira transitions into this task.

    line 94

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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}/current

Workflow

  1. Build repository context first.
  • Read the target repository AGENTS.md once 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}/current when available; otherwise read them from the main branch of the shared GitHub repository.
  1. 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.
  1. 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.md using the shared-doc resolution rule from the repository context step, and use it as the source of truth for commit-time validation and pre-commit expectations.
  • 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.
  1. 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.
  1. 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.
  1. 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.md using the shared-doc resolution rule from the repository context step, and use it as the source of truth.
  1. 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.
  1. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.