share-pr
Installation
SKILL.md
Share PR
Prerequisites
- Slack MCP (required) — used by step 7 to deliver channel posts and DMs (
slack_send_message). Without it, the skill can compose and preview the message but cannot send it. - Atlassian MCP (optional) — used by step 3 to enrich the message with Jira ticket context (
getJiraIssue). Without it, the Jira block is silently skipped. ghCLI — used for all GitHub operations (gh pr view,gh pr diff,gh pr edit --add-reviewer). Not an MCP — install separately.slack-channelsandteam-refskills — invoked from step 5 to resolve channel and person targets. If they're not installed, ask the user to install them first or provide channel IDs / Slack user IDs inline.
Step 1 — Detect current PR
- If the user provided a PR number or URL, run:
gh pr view <ref> --json url,title,body,number,headRefName - Otherwise run:
gh pr view --json url,title,body,number,headRefName - If no PR is found, inform the user and stop.
- Save the PR title, URL, body, and number for later steps.