/dev10x-coding:gchat-review-requestfrom dev10x-coding
Posts a Google Chat review request for a PR using per-repo config for space and mentions. Supports card panels with PR details and optional preview app buttons.
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.
REQUIRED: Create a task at invocation. Execute at startup:
TaskCreate(subject="Post Google Chat review request", activeForm="Posting review request")Mark completed when done: TaskUpdate(taskId, status="completed")
Per-repo config in gchat-config-code-review-requests.yaml (resolved via the
shared Dev10x config home):
default_action: ask # "skip" or "ask" for unconfigured repos
default_card: true # cardsV2 panels for every repo (the default)
projects:
my-app:
space: tt-reviews # alias from gchat-config.yaml
mentions:
- "@dev-team-fe" # user group -> native group mention token
preview: true # add a Preview App button (front-end repos)
preview_environment: preview # optional: which deployment to use
plain-text-repo:
space: tt-reviews
card: false # opt this repo out, back to plain text
internal-tools:
skip: true
Mentions resolve against gchat-config.yaml user_groups and users.
Cards are the default. A review request renders as a panel — PR title as the card header, the Job Story as formatted text, and an Open PR button (plus Preview App when one resolves) — accompanied by a short text line carrying the mentions, because a card cannot resolve them.
Two opt-outs remain, narrowest first: a per-repo card: false, and a
global default_card: false. Either restores the single plain-text
message; the per-repo key wins over the global one.
Preview App is opt-in (GH-1262), unlike cards: the URL costs a
Deployments API call per review request and most repos deploy nothing to
look at. Set preview: true per repo, or default_preview: true
globally with per-repo preview: false to opt back out. The URL comes
from deployment_status.environment_url on the PR's head SHA — the field
Vercel, Netlify and Pages all populate — taking the most recent
deployment whose current status is success. preview_environment names
one environment when a repo deploys several per commit.
Preview deployments are asynchronous, so the button is simply absent when
none has landed yet: the ping is never delayed or blocked waiting for a
deployment, and an API failure is silent. A repo with card: false gets
the URL as a line in the message instead, rather than losing it.
Skip the ping if the PR is already human-approved on its current HEAD (bot
approvals do not count). Mirror dev10x-coding:slack-review-request Step 0:
gh pr view {pr_number} --repo {repo} --json reviewDecision,reviews,headRefOid # cli-friction: allow raw-gh-pr — review-state precheck
Drop reviews whose author.login ends with [bot] or author.type == "Bot".
If a HUMAN APPROVED review matches headRefOid, report "skipped — already
approved" and stop. Skip this precheck when invoked with --force.
If the PR is still a draft, do NOT post the review request — a draft is not
ready for review.
Report that the PR must be marked ready first (via
dev10x-coding:gh-pr-request-review / gh pr ready) and stop.
Skip this check when invoked with --force.
REQUIRED: Run the prepare subcommand — do NOT inline YAML reads or hand-build the message:
uvx dev10x skill notify gchat-review-prepare --pr {pr_number} --repo {repo}
Output JSON keys: skip, ask, space, message, reason,
resolved_mentions, pr_url, pr_title, preview_url, card,
fallback_text.
preview_url is null unless the repo opted in AND a deployment
succeeded on the PR's head SHA. It is already rendered into card (as a
button) or message (as a line) — the key is there for callers that want
the URL itself.
card holds the panel unless the repo opted out, in which case it is
null. When set, message shrinks to the mentions line and the
formatted body lives in the card.
skip=true → report "Google Chat notification skipped for {repo}", done.ask=true → REQUIRED: Call AskUserQuestion for space alias (required)
and mentions (optional). Then continue to Step 3 with the envelope you
already have: card, fallback_text, pr_url and pr_title are
rendered on this path too, so an unconfigured repo posts the same panel a
configured one does. Only space was unknown. Any mentions the user
supplies here are used verbatim — prepare cannot resolve them to
<users/ID> tokens without a config entry.An ask=true envelope whose card is null means the repo opted out of
cards, not that the default was lost (GH-1307). Do NOT rebuild the message
by hand on this path.
REQUIRED: Call AskUserQuestion showing the formatted message with options
"Post to Google Chat" / "Skip". If "Skip", done.
Delegate to Skill(dev10x-comm:gchat) — write the message to a temp file and pass it:
Skill(skill="dev10x-comm:gchat", args="--space {space} --message-file {temp_file}")
When card is non-null, write that JSON to a second temp file and pass
both halves so the mentions still notify:
Skill(skill="dev10x-comm:gchat", args="--space {space} --message-file {temp_file} --card-file {card_file} --fallback-text {fallback_text}")
NEVER call the CLI gchat-send directly from here — delegate to the
dev10x-comm:gchat skill so transport rules stay centralized.
Report success: space alias and returned message name.
spaces.messages.create is enabled and the bot is in the space.@alias to member <users/ID> tokens.What 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).