/dev10x-coding:slack-review-requestfrom dev10x-coding
Posts a Slack review request for a PR using per-project YAML config for channel and mentions. Verifies PR isn't already human-approved before notifying.
Ships in dev10x-coding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill follows references/task-orchestration.md patterns.
Create a task at invocation, mark completed when done:
REQUIRED: Create a task at invocation. Execute at startup:
TaskCreate(subject="Post Slack review request", activeForm="Posting review request")Mark completed when done: TaskUpdate(taskId, status="completed")
Post a review notification to the project's configured Slack channel with appropriate team and user mentions.
Configuration lives in ~/.config/Dev10x/slack-config-code-review-requests.yaml:
default_action: ask # "skip" or "ask" for unconfigured projects
projects:
my-app:
channel: C0EXAMPLE01 # Slack channel ID
mentions: # resolved via slack-config.yaml
- "@backend-team" # user group → <!subteam^ID>
- "@alice" # user → <@SLACK_ID>
internal-tools:
skip: true # no Slack notification
Mentions are resolved against ~/.config/Dev10x/slack-config.yaml
user_groups and users mappings.
channel and mentions from config; fetch PR
details; format message with JTBD if present; ask user for confirmation.skip: true: Report "Slack notification skipped" and done.default_action: ask): Ask user for
channel and mentions interactively. If user provides them, proceed;
otherwise done.default_action: skip): Skip silently.Before posting a Slack ping, verify the PR is not already approved
on its current HEAD by a human reviewer. Re-pinging reviewers
on a human-approved PR is noise — the supervisor's next action is
merge, not another review pass. Bot approvals (claude[bot],
github-actions[bot], etc.) MUST NOT short-circuit the Slack ping.
gh pr view is the supported call site):
gh pr view {pr_number} --repo {repo} --json reviewDecision,reviews,headRefOid # cli-friction: allow raw-gh-pr — review-state precheck
author.login ends with [bot] or whose author.type == "Bot"
before matching against headRefOid. Bot approvals do not
satisfy the "human review" requirement.state == "APPROVED" and matching
commit.oid == headRefOid exists: skip the Slack notification.
Report "Slack notification skipped — PR already approved on
current HEAD by {login}" and stop.Skip this precheck when invoked with --force flag or when the
caller passes bypass_approval_check: true (e.g., re-review
notifications composed by dev10x-coding:gh-pr-monitor Phase 2.7 after
fixups, where the caller has already validated state).
REQUIRED: Run the prepare subcommand to resolve project config
and format the Slack message. Do NOT inline yq reads of
slack-config.yaml, manual mention resolution, or hand-built message
strings — the script handles user-group → <!subteam^ID> resolution,
user → <@SLACK_ID> resolution, JTBD extraction from the PR body,
and channel lookup in one call. Inlining bypasses these and produces
malformed mentions.
uvx dev10x skill notify slack-review-prepare \
--pr {pr_number} --repo {repo}
Output is JSON with keys:
skip: boolean — project is configured to skipask: boolean — no config found; user input requiredchannel: Slack channel ID (or null)message: formatted Slack message (or null)reason: short explanation if skip or askCheck the prepare output:
If skip=true: Report "Slack notification skipped for
{repo}" and done. Do not ask user.
If ask=true: Use AskUserQuestion to ask for:
If user provides a channel, resolve mentions and update config (optional — may save to YAML for future use). Then proceed to Step 3 with resolved config.
If user declines, done.
Otherwise: Continue to Step 3 with resolved config.
Use AskUserQuestion to show:
If user chooses "Skip", done. If "Post to Slack", proceed to Step 4.
Delegate to Skill(dev10x-comm:slack) for posting. Write the message to
a temporary file and pass it:
Skill(skill="dev10x-comm:slack", args="--channel {channel} --message-file {temp_file}")
NEVER call slack-review-request.py send or slack-notify.py
directly — delegate to the slack skill (which now invokes
uvx dev10x skill notify slack-send) so global Slack posting
rules are honored. The version-pinned scripts are an internal
fallback only.
Report success: channel ID, thread timestamp (if available).
This skill is invoked by:
dev10x-coding:request-review — combined review request orchestratordev10x-coding:gh-pr-monitor Phase 2.7 (re-review notification)It handles only Slack posting — no GitHub API calls.
For re-review notifications (Phase 2.7 in dev10x-coding:gh-pr-monitor), the
calling skill composes a custom message (e.g., "@reviewer please take
another look") and invokes this skill with --message directly,
skipping the prepare step.
Messages include:
<url|my-app#42>**When**
paragraph and formatted as a blockquoteExample output:
<!subteam^S0EXAMPLE> <@U0ALICE> Please review <https://github.com/org/my-app/pull/42|my-app#42>
Fix payment routing
> *When* a customer uses a new card, *wants to* bypass 3D Secure, *so*
> *can* complete checkout faster.
/dev10x-coding:slack-review-request # uses current branch PR
/dev10x-coding:slack-review-request --manual # force config review
Skill("dev10x-coding:slack-review-request",
args={
"pr_number": 42,
"repo": "org/my-app",
"ask_if_unconfigured": true,
}
)
dev10x-coding:gh-pr-monitor — calls this skill in Phase 3 (review request workflow)slack-config.yaml — mention resolution mappingsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dev10x-guru/dev10x-claude --plugin dev10x-coding40 skills in this plugin
/ci-reviewdev10x-coding:ci-reviewUse when a change to a Claude CI review prompt, args file, reviewer agent or CLI pin needs checking before it merges — so you read what the CI code review and PR hygiene check would post on a real PR, with nothing reaching GitHub unless you choose, after reading the report, to share it as one marked replica comment. TRIGGER when: "what would the CI review say", replaying the Claude CI review locally, verifying a review prompt or model change on a PR. DO NOT TRIGGER when: self-reviewing a branch with no PR (use dev10x-coding:review), or reviewing someone's PR and posting (use dev10x-coding:gh-pr-review).
/fanoutdev10x-coding:fanoutProcess multiple independent work items as a worktree-isolated swarm — each item runs the full dev10x-coding:work-on lifecycle inside its own background Agent with isolation="worktree" (under Herdr, its own Herdr workspace and agent). Honors dependencies, minimizes conflicts, auto-advances by default. TRIGGER when: 2+ independent work items need parallel processing (PRs, issues, tickets). DO NOT TRIGGER when: single task or sequential dependency chain (use dev10x-coding:work-on); already running as a swarm child (see recursive-fanout guard).