AgentSkillsCN

notify-mr

向团队 Slack 频道发布评审请求,针对现有 MR 提出评审建议。适用于您的草稿 MR 已准备好接受评审、您想提醒团队注意待处理的评审,或您在初步工作完成后已将 MR 标记为可提交时使用。

SKILL.md
--- frontmatter
name: notify-mr
description: Post a review request to the team Slack channel for an existing MR. Use when your draft MR is ready for review, you want to remind the team about a pending review, or you marked an MR ready after initial work.

Notify MR

Notify the team Slack channel about an MR ready for review.

Inputs

InputTypeRequiredPurpose
mr_idstringyesGitLab MR IID (e.g. 1459)
projectstringnoGitLab project path
issue_keystringnoJira key for context
messagestringnoCustom message
reminderboolfalseFormat as reminder vs new MR
slack_formatboolfalseSlack link format

Workflow

1. Load Persona

  • persona_load("developer")

2. Resolve Project

  • Use project, session project, or default from config (repositoriesgitlab)

3. Fetch MR Details

  • gitlab_mr_view(project, mr_id) — title, url, extract issue key from title

4. Fetch Jira (if issue_key)

  • jira_view_issue(issue_key) — summary for context

5. Build Message

  • Team mention: @aa-api-team (from config slack.channels.team.group_handle)
  • Lines: "🔀 Please review:" or "⏰ Reminder - Please review:"
  • Jira link: <jira_url/browse/{key}|{key}: {summary}>
  • MR link: <mr_web_url|!{mr_id}: {title}>
  • Custom message if provided

6. Post to Slack

  • persona_load("slack") — switch for Slack tools
  • slack_post_team(text="{message}")

7. Memory

  • memory_session_log("Notified team about MR !{mr_id}", "Reminder/New, Jira: {issue_key}")

MCP Tools

  • persona_load (developer, slack)
  • gitlab_mr_view
  • jira_view_issue
  • slack_post_team
  • memory_session_log

Config

  • config.jsonslack.channels.team: group_id, group_handle
  • config.jsonrepositoriesgitlab for project path

Output

  • Team notified / Message ready
  • MR URL, Jira link
  • Known issues (VPN, not_in_channel) if any