Skip to content

jezweb/claude-skills / plugins/integrations/skills/google-chat-messages

google-chat-messages

Verified

Send Google Chat messages via incoming webhooks — text, rich cards (cardsV2), threaded replies. TypeScript types, card builder utility, widget reference inline. Use whenever the user wants to post to Google Chat from a script, build a chatbot reply, send a notification card, build a Google Chat webhook integration, or troubleshoot card / threading issues.

FileKindSize
SKILL.mdskill md9.6 KB
assets/card-builder.tsscript1.5 KB
assets/types.tsscript1.5 KB
assets/webhook-sender.tsscript1.8 KB

assets/types.ts

View on GitHub
// Google Chat cardsV2 TypeScript types for webhook messages
// Reference: https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages

export interface WebhookMessage {
  text?: string;
  cardsV2?: CardWithId[];
  thread?: Thread;
}

export interface Thread {
  threadKey?: string;
}

export interface CardWithId {
  cardId: string;
  card: Card;
}

export interface Card {
  header?: CardHeader;
  sections: CardSection[];
}

export interface CardHeader {
  title: string;
  subtitle?: string;
  imageUrl?: string;
  imageType?: 'SQUARE' | 'CIRCLE';
}

export interface CardSection {
  header?: string;
  widgets: Widget[];
  collapsible?: boolean;
  uncollapsibleWidgetsCount?: number;
}

export interface Widget {
  textParagraph?: { text: string };
  image?: { imageUrl: string; altText?: string };
  decoratedText?: DecoratedText;
  buttonList?: { buttons: Button[] };
  divider?: Record<string, never>;
}

export interface DecoratedText {
  topLabel?: string;
  text: string;
  bottomLabel?: string;
  startIcon?: Icon;
  endIcon?: Icon;
  wrapText?: boolean;
  onClick?: OnClick;
  button?: Button;
}

export interface Icon {
  knownIcon?: string;
  iconUrl?: string;
  altText?: string;
}

export interface Button {
  text: string;
  icon?: Icon;
  color?: { red?: number; green?: number; blue?: number; alpha?: number };
  onClick: OnClick;
  disabled?: boolean;
  altText?: string;
}

export interface OnClick {
  openLink?: { url: string };
  action?: {
    function?: string;
    parameters?: { key: string; value: string }[];
  };
}
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall