agentleFS
softwareone-platformsoftwareone-platform/mpt-extension-skills/skills/mpt-ext-workflow-notify-pr-ready/SKILL.md

mpt-ext-workflow-notify-pr-ready

Skill3 starsChanged 4 months agoApache-2.0View on GitHub

Run the on-demand flow that notifies a Microsoft Teams chat when a reviewed PR is green — all checks pass and CodeRabbit approved. Evaluates once and stops; it does not wait for review.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

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

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

    line 46
  2. Very specific:

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

    line 47
  3. Very specific:

    Use mpt-ext-task-notify-pr-ready-in-teams for the target PR, passing the optional --to destination through.

    line 50
  4. Distinctive:

    When nothing was sent, state whether the PR was not green (with the reasons) or the destination was unresolved.

    line 56
  5. Distinctive:

    Never wait, poll, or retry for CodeRabbit.

    line 60
  6. Distinctive:

    Never post when the green gate fails or the destination is unresolved.

    line 61
  7. Distinctive:

    Never reimplement the green evaluation, destination resolution, or message delivery owned by the underlying task and tool skills.

    line 62
  8. Distinctive:

    Never mix PR creation, Jira transitions, or review-comment handling into this workflow.

    line 63
  9. Distinctive:

    Prefer the narrower task skill when the user only wants the notification step without workflow reporting.

    line 64
  10. Distinctive:

    When the PR is green, its details are delivered to the correct Teams chat on demand.

    line 72

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

Notify PR Ready

Purpose

Coordinate the on-demand step that publishes a pull request's details to a Microsoft Teams chat once the PR is green: all required checks pass and CodeRabbit has approved.

Use When

  • A developer wants to announce, on demand, that a reviewed PR is ready.
  • CodeRabbit has already run and the PR is expected to be green.
  • The team is notified in a Teams chat that may vary per project.

Do Not Use When

  • CodeRabbit has not run yet and the flow would need to wait or poll for it.
  • The task is only to post an arbitrary Teams message.
  • The task is to open or update the PR, transition Jira, or handle review comments.

Inputs

  • The target PR: a PR number or the current branch's PR.
  • Optional --to <destination> override for the Teams destination.
  • GitHub authentication to read PR checks and reviews.
  • The Teams webhook URL available through an environment variable (never committed).
  • Installed shared package root:
${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current

Assumptions

  • The notification is triggered on demand, after CodeRabbit has finished; this flow evaluates the gate once and stops rather than waiting.
  • The repository's CodeRabbit configuration submits a formal APPROVED review when clean, so the gate can pass.
  • Destination resolution and delivery are handled by the underlying task and tool skills.

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. Notify when the PR is green.
  • Use mpt-ext-task-notify-pr-ready-in-teams for the target PR, passing the optional --to destination through.
  • Let that task read the PR, evaluate the green gate once, resolve the destination, render the card, and deliver it through the Teams tool.
  • Act on its returned outcome: report delivery on success; on a failed gate or unresolved destination, stop and report the exact blocker it returns. Do not wait or poll.
  1. Report the handoff clearly.
  • State whether the notification was sent and to which destination environment variable (name only).
  • When nothing was sent, state whether the PR was not green (with the reasons) or the destination was unresolved.

Guardrails

  • Never wait, poll, or retry for CodeRabbit; delegate a single check-once evaluation to the task.
  • Never post when the green gate fails or the destination is unresolved.
  • Never reimplement the green evaluation, destination resolution, or message delivery owned by the underlying task and tool skills.
  • Never mix PR creation, Jira transitions, or review-comment handling into this workflow.
  • Prefer the narrower task skill when the user only wants the notification step without workflow reporting.

Shared References

  • mpt-ext-task-notify-pr-ready-in-teams — evaluate the green gate, resolve the destination, and deliver the notification.

Expected Outcome

When the PR is green, its details are delivered to the correct Teams chat on demand; otherwise nothing is sent and the developer receives a clear reason.

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.