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.
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-commit-changesSkill
- 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-send-to-reviewSkill
- mpt-ext-workflow-skill-authoringSkill
- mpt-ext-workflow-start-workSkill
- mpt-ext-workflow-update-documentationSkill
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
- Distinctive: line 46
Read repository-specific docs when they exist, because they may extend or override shared guidance.
- Very specific: line 47
Read shared docs only when the repository explicitly points to them.
- Very specific: line 50
Use mpt-ext-task-notify-pr-ready-in-teams for the target PR, passing the optional --to destination through.
- Distinctive: line 56
When nothing was sent, state whether the PR was not green (with the reasons) or the destination was unresolved.
- Distinctive: line 60
Never wait, poll, or retry for CodeRabbit.
- Distinctive: line 61
Never post when the green gate fails or the destination is unresolved.
- Distinctive: line 62
Never reimplement the green evaluation, destination resolution, or message delivery owned by the underlying task and tool skills.
- Distinctive: line 63
Never mix PR creation, Jira transitions, or review-comment handling into this workflow.
- Distinctive: line 64
Prefer the narrower task skill when the user only wants the notification step without workflow reporting.
- Distinctive: line 72
When the PR is green, its details are delivered to the correct Teams chat on demand.
≈ “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.
Files
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}/currentAssumptions
- 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
APPROVEDreview when clean, so the gate can pass. - Destination resolution and delivery are handled by the underlying task and tool skills.
Workflow
- 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.
- Notify when the PR is green.
- Use
mpt-ext-task-notify-pr-ready-in-teamsfor the target PR, passing the optional--todestination 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.
- 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.
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.

