agentleFS
softwareone-platformsoftwareone-platform/mpt-extension-skills/skills/mpt-ext-workflow-complete-after-merge/SKILL.md

mpt-ext-workflow-complete-after-merge

Skill3 starsChanged 4 months agoApache-2.0View on GitHub

Run the final post-merge step after a PR is merged: verify the merge, then hand off Jira to its correct post-merge status. End-of-flow wrapper; excludes review publication and feedback.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 48
  2. Very specific:

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

    line 49
  3. Very specific:

    Use mpt-ext-tool-gh-pr-ops to read the current PR state or merge status.

    line 52
  4. Distinctive:

    Stop and report the blocker when merge completion is not confirmed.

    line 53
  5. Very specific:

    Use mpt-ext-task-move-jira-to-qa once merge completion is confirmed.

    line 56
  6. Distinctive:

    Do not move the issue to a post-merge status before merge completion is confirmed.

    line 57
  7. Distinctive:

    Never assume a PR was merged without reading the current PR state first.

    line 67
  8. Distinctive:

    Never move Jira to a post-merge status before merge completion.

    line 68
  9. Distinctive:

    Never mix review publication or comment handling into this workflow.

    line 69
  10. Distinctive:

    Prefer the narrower task skill when the user only asked to move Jira after merge and merge confirmation is already known.

    line 70

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Complete After Merge

Purpose

Coordinate the post-merge Jira completion step for reviewed work.

Use When

  • The user wants to finish the workflow after the pull request has merged.
  • The task requires confirming merge completion and moving Jira to its correct post-merge status.
  • The workflow should only perform the final post-merge handoff.

Do Not Use When

  • The pull request is still awaiting review or merge.
  • The task is to create or update the pull request.
  • The task is to process review comments.
  • The task is to move Jira into Code Review.

Inputs

  • Existing pull request context from the current branch or an explicit PR number.
  • Jira issue key for the merged work.
  • Repository merge and Jira workflow rules from repo docs.
  • GitHub authentication that can read the pull request merge state.
  • Jira authentication for the post-merge transition used by this workflow.
  • Installed shared package root:
${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current

Assumptions

  • The implementation and review work are already complete.
  • The only remaining workflow action is the post-merge Jira handoff.
  • The repository or Jira workflow defines the correct post-merge state, with Done as the default for subtasks and QA as the default otherwise.

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. Confirm merge completion.
  • Use mpt-ext-tool-gh-pr-ops to read the current PR state or merge status.
  • Stop and report the blocker when merge completion is not confirmed.
  1. Move Jira to its post-merge status.
  • Use mpt-ext-task-move-jira-to-qa once merge completion is confirmed.
  • Do not move the issue to a post-merge status before merge completion is confirmed.
  1. Report the completion state clearly.
  • State that merge completion was confirmed.
  • State which post-merge Jira status was selected.
  • State whether the Jira issue moved to that status or was already there.
  • Surface blockers clearly when merge state, Jira workflow, or permissions stop the flow.

Guardrails

  • Never assume a PR was merged without reading the current PR state first.
  • Never move Jira to a post-merge status before merge completion.
  • Never mix review publication or comment handling into this workflow.
  • Prefer the narrower task skill when the user only asked to move Jira after merge and merge confirmation is already known.

Expected Outcome

Merge completion is confirmed and the related Jira issue is transitioned to the correct post-merge status, or the workflow stops with a clear blocker that explains why the final handoff cannot proceed yet.

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.