Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

feat(google-spaces-updates): Add skill for posting team updates to Google Chat

Jeze7f9ce8ca8ad
diff --git a/skills/google-spaces-updates/.claude-plugin/plugin.json b/skills/google-spaces-updates/.claude-plugin/plugin.json
new file mode 100644
index 00000000..5e599874
--- /dev/null
+++ b/skills/google-spaces-updates/.claude-plugin/plugin.json
@@ -0,0 +1,12 @@
+{
+ "name": "google-spaces-updates",
+ "description": "Post team updates to Google Chat Spaces via webhook. Supports deployment notifications, bug fixes, feature announcements, and questions. Reads config from .claude/settings.json, formats messages with rich formatting, and includes git context (commits, branches, changed files). Use when: post to team, notify team, update the team, after deployments, completing features, fixing bugs reported by team, or asking questions that need team input.",
+ "version": "1.0.0",
+ "author": {
+ "name": "Jeremy Dawes",
+ "email": "[email protected]"
+ },
+ "license": "MIT",
+ "repository": "https://github.com/jezweb/claude-skills",
+ "keywords": ["google spaces","google chat","team notifications","webhook","deployment updates","team chat","chat spaces api","notify team","post update","team collaboration","slack alternative project: { name: my-project","repo: github.com/org/my-project }","team: { chat_webhook: https://chat.googleapis.com/v1/spaces/SPACE_ID/messages?key=KEY&token=TOKEN","members: [Deepinder","Joshua"]
+}
diff --git a/skills/google-spaces-updates/README.md b/skills/google-spaces-updates/README.md
new file mode 100644
index 00000000..d37490ba
--- /dev/null
+++ b/skills/google-spaces-updates/README.md
@@ -0,0 +1,51 @@
+# Google Spaces Updates
+
+Post team updates to Google Chat Spaces via webhook.
+
+## Auto-trigger keywords
+
+- "post to team", "notify team", "update the team"
+- "tell Deepinder", "tell Joshua", "tell Raquel"
+- "google spaces", "team chat"
+- After deployments, major features, or when asking questions
+
+## What this skill does
+
+1. Reads project config from `.claude/settings.json`
+2. Formats messages based on update type
+3. Posts to Google Spaces webhook with rich formatting
+4. Includes relevant context (commits, URLs, files changed)
+
+## Commands
+
+| Command | Purpose |
+|---------|---------|
+| `/google-spaces-updates setup` | Create settings.json for current project |
+| `/google-spaces-updates deployment` | Post deployment notification |
+| `/google-spaces-updates bugfix` | Post bug fix notification |
+| `/google-spaces-updates feature` | Post feature completion |
+| `/google-spaces-updates question` | Ask team a question |
+| `/google-spaces-updates custom "message"` | Post custom message |
+
+## When NOT to use
+
+- Minor refactors, typo fixes
+- WIP commits that aren't ready for review
+- Internal debugging/testing
+- Anything that would just be noise
+
+## Prerequisites
+
+Project must have `.claude/settings.json` with:
+```json
+{
+ "project": { "name": "...", "repo": "..." },
+ "team": { "chat_webhook": "https://chat.googleapis.com/v1/spaces/..." }
+}
+```
+
+Run `/google-spaces-updates setup` to create this file interactively.
+
+## Testing
+
+For developing new formats or debugging, use the test space webhook in `test-config.json` instead of posting to real team spaces.
diff --git a/skills/google-spaces-updates/SKILL.md b/skills/google-spaces-updates/SKILL.md
new file mode 100644
index 00000000..0ba4b62d
--- /dev/null
+++ b/skills/google-spaces-updates/SKILL.md
@@ -0,0 +1,246 @@
+---
+name: google-spaces-updates
+description: |
+ Post team updates to Google Chat Spaces via webhook. Supports deployment notifications, bug fixes,
+ feature announcements, and questions. Reads config from .claude/settings.json, formats messages
+ with rich formatting, and includes git context (commits, branches, changed files).
+
+ Use when: "post to team", "notify team", "update the team", after deployments, completing features,
+ fixing bugs reported by team, or asking questions that need team input.
+
+ Keywords: google spaces, google chat, team notifications, webhook, deployment updates, team chat,
+ chat spaces api, notify team, post update, team collaboration, slack alternative
+---
+
+# Google Spaces Updates
+
+**Status**: Production Ready
+**Last Updated**: 2026-01-03
+
+Post updates to a team Google Chat Space via webhook.
+
+---
+
+## Quick Start
+
+### 1. Setup (first time per project)
+
+Run `/google-spaces-updates setup` or manually create `.claude/settings.json`:
+
+```json
+{
+ "project": {
+ "name": "my-project",
+ "repo": "github.com/org/my-project"
+ },
+ "team": {
+ "chat_webhook": "https://chat.googleapis.com/v1/spaces/SPACE_ID/messages?key=KEY&token=TOKEN",
+ "members": ["Deepinder", "Joshua", "Raquel"]
+ }
+}
+```
+
+### 2. Post an update
+
+```
+"Post deployment update to team"
+"Tell the team about the new feature"
+"Ask the team about the auth approach"
+```
+
+---
+
+## How It Works
+
+### Step 1: Check for project settings
+
+Look for `.claude/settings.json` in the current project directory:
+
+```bash
+cat .claude/settings.json 2>/dev/null || echo "NOT_FOUND"
+```
+
+If NOT_FOUND, ask the user:
+> "This project doesn't have Google Spaces configured. Would you like me to set it up? I'll need the webhook URL for your team's Google Space."
+
+Then create the file using the template in `templates/settings-template.json`.
+
+### Step 2: Determine update type
+
+Based on the command or context, determine the update type:
+
+| Type | When to use |
+|------|-------------|
+| `deployment` | After pushing to production/staging, deploying to Vercel/etc |
+| `bugfix` | After fixing a bug, especially one reported by team |
+| `feature` | After completing a feature that's ready for review/use |
+| `question` | When blocked or need team input on a decision |
+| `custom` | For anything else |
+
+### Step 3: Gather context
+
+Collect relevant information to include:
+
+```bash
+# Recent commits (for context)
+git log --oneline -3 2>/dev/null
+
+# Current branch
+git branch --show-current 2>/dev/null
+
+# Changed files (if recent changes)
+git diff --name-only HEAD~1 2>/dev/null | head -10
+```
+
+Also use context from the conversation:
+- What was just completed
+- Any preview/production URLs
+- Relevant file paths
+- Who might need to know
+
+### Step 4: Format the message
+
+Use the appropriate template from `templates/` directory.
+
+**Key formatting rules for Google Chat:**
+- Use `*bold*` for emphasis (not **markdown bold**)
+- Use `_italic_` for secondary text
+- Newlines work as expected
+- Keep messages concise but informative
+- Include actionable links when relevant
+
+### Step 5: Post to webhook
+
+```bash
+curl -X POST "WEBHOOK_URL" \
+ -H "Content-Type: application/json" \
+ -d '{"text": "MESSAGE_HERE"}'
+```
+
+Replace:
+- `WEBHOOK_URL` with value from `.claude/settings.json` → `team.chat_webhook`
+- `MESSAGE_HERE` with the formatted message (escape quotes properly)
+
+### Step 6: Confirm to user
+
+After posting, tell the user:
+> "Posted update to team chat: [brief summary of what was posted]"
+
+---
+
+## Message Templates
+
+### Deployment
+```
+🚀 *Deployed: [PROJECT_NAME]*
+
+[WHAT_CHANGED - 1-2 sentences]
+
+• Branch: `[BRANCH]`
+• Commit: `[COMMIT_HASH]`
+[• Preview: URL (if applicable)]
+[• Production: URL (if applicable)]
+
+_Posted by [USER] via Claude Code_
+```
+
+### Bug Fix
+```
+🐛 *Bug Fixed: [PROJECT_NAME]*
+
+*Problem:* [What was broken]
+*Solution:* [How it was fixed]
+*Files:* [Key files changed]
+
+[• Commit: `[COMMIT_HASH]`]
+
+_Please verify if you reported this issue._
+```
+
+### Feature Complete
+```
+✨ *Feature Complete: [PROJECT_NAME]*
+
+*[FEATURE_NAME]*
+
+[DESCRIPTION - what it does, 1-2 sentences]
+
+[• Demo: URL]
+[• Files: key files]
+
+_Ready for review/testing._
+```
+
+### Question
+```
+❓ *Question: [PROJECT_NAME]*
+
+[QUESTION - clear and specific]
+
+*Context:*
+[Relevant background - what you're working on, what you've tried]
+
+*Options considered:*
+1. [Option A]
+2. [Option B]
+
+_@[PERSON] - would appreciate your input_
+```
+
+### Custom
+```
+📢 *Update: [PROJECT_NAME]*
+
+[MESSAGE]
+
+_Posted by [USER] via Claude Code_
+```
+
+---
+
+## Setup Command
+
+When user runs `/google-spaces-updates setup`:
+
+1. Ask for the Google Spaces webhook URL
+2. Ask for project name (or detect from package.json/repo)
+3. Ask for team members (optional)
+4. Create `.claude/settings.json` using the template
+5. Add `.claude/` to `.gitignore` if not already there
+6. Confirm setup is complete
+
+---
+
+## Proactive Suggestions
+
+Suggest posting an update when:
+- User says "done", "finished", "completed" after significant work
+- After a `git push` to main/master/production
+- User mentions team members by name
+- User seems blocked and might benefit from team input
+
+Ask: "Would you like me to post an update to the team about this?"
+
+---
+
+## When NOT to Use
+
+- Minor refactors, typo fixes
+- WIP commits that aren't ready for review
+- Internal debugging/testing
+- Anything that would just be noise
+
+---
+
+## Getting a Webhook URL
+
+1. Open Google Chat
+2. Navigate to your Space
+3. Click Space name → **Apps & integrations** → **Webhooks**
+4. Click **Add webhook**
+5. Name it (e.g., "Claude Code Updates")
+6. Copy the webhook URL
+
+The URL format: `https://chat.googleapis.com/v1/spaces/SPACE_ID/messages?key=KEY&token=TOKEN`
+
+**Security**: Keep webhook URLs private. Add `.claude/settings.json` to `.gitignore`.
diff --git a/skills/google-spaces-updates/templates/bugfix.md b/skills/google-spaces-updates/templates/bugfix.md
new file mode 100644
index 00000000..d892bd28
--- /dev/null
+++ b/skills/google-spaces-updates/templates/bugfix.md
@@ -0,0 +1,44 @@
+# Bug Fix Message Template
+
+## Format
+
+```
+🐛 *Bug Fixed: {PROJECT_NAME}*
+
+*Problem:* {WHAT_WAS_BROKEN}
+*Solution:* {HOW_IT_WAS_FIXED}
+*Files:* {KEY_FILES_CHANGED}
+
+• Commit: `{COMMIT_HASH}`
+{IF_DEPLOYED}• Live at: {URL}
+
+_Please verify if you reported this issue._
+```
+
+## Example
+
+```
+🐛 *Bug Fixed: Acme Dashboard*
+
+*Problem:* Users getting logged out randomly after 5 minutes
+*Solution:* Fixed session refresh logic - was using wrong timestamp format
+*Files:* lib/auth/session.ts, middleware.ts
+
+• Commit: `e4f5g6h`
+• Live at: https://acme-dashboard.vercel.app
+
+_Please verify if you reported this issue._
+```
+
+## When to use
+
+- After fixing a bug someone on the team reported
+- After fixing a production issue
+- When the fix needs verification from whoever found it
+
+## What to include
+
+- Clear description of what was broken (as user would see it)
+- Brief explanation of the fix (not too technical)
+- Files changed (helps team know what to review)
+- Request for verification
diff --git a/skills/google-spaces-updates/templates/custom.md b/skills/google-spaces-updates/templates/custom.md
new file mode 100644
index 00000000..42959ddc
--- /dev/null
+++ b/skills/google-spaces-updates/templates/custom.md
@@ -0,0 +1,34 @@
+# Custom Message Template
+
+## Format
+
+```
+📢 *Update: {PROJECT_NAME}*
+
+{MESSAGE}
+
+_Posted by {USER} via Claude Code_
+```
+
+## Example
+
+```
+📢 *Update: Acme Dashboard*
+
+Heads up - I'll be refactoring the authentication module over the next few days. The API interface will stay the same, but if you're working on anything auth-related, let me know so we don't step on each other's toes.
+
+_Posted by Alex via Claude Code_
+```
+
+## When to use
+
+- General announcements
+- Heads-up about upcoming work
+- Status updates that don't fit other categories
+- Sharing useful information with the team
+
+## What to include
+
+- Keep it concise and actionable
+- If there's something the team should do, be clear about it
+- If it's FYI only, make that clear too
diff --git a/skills/google-spaces-updates/templates/deployment.md b/skills/google-spaces-updates/templates/deployment.md
new file mode 100644
index 00000000..ba7ceb71
--- /dev/null
+++ b/skills/google-spaces-updates/templates/deployment.md
@@ -0,0 +1,44 @@
+# Deployment Message Template
+
+## Format
+
+```
+🚀 *Deployed: {PROJECT_NAME}*
+
+{SUMMARY - what was deployed, 1-2 sentences}
+
+• Branch: `{BRANCH}`
+• Commit: `{COMMIT_HASH}`
+{IF_PREVIEW_URL}• Preview: {PREVIEW_URL}
+{IF_PRODUCTION_URL}• Production: {PRODUCTION_URL}
+
+_Posted by {USER} via Claude Code_
+```
+
+## Example
+
+```
+🚀 *Deployed: Acme Dashboard*
+
+User authentication flow with OAuth support. Added login, logout, and session management.
+
+• Branch: `feature/auth`
+• Commit: `a1b2c3d`
+• Preview: https://acme-dashboard-preview.vercel.app
+• Production: https://acme-dashboard.vercel.app
+
+_Posted by Alex via Claude Code_
+```
+
+## When to use
+
+- After `vercel deploy` or `git push` to production
+- After merging PR to main
+- When staging/preview is ready for review
+
+## What to include
+
+- Brief summary of what changed
+- Branch and commit for traceability
+- URLs so team can verify
+- Keep it concise - details are in the code
diff --git a/skills/google-spaces-updates/templates/feature.md b/skills/google-spaces-updates/templates/feature.md
new file mode 100644
index 00000000..a1311f34
--- /dev/null
+++ b/skills/google-spaces-updates/templates/feature.md
@@ -0,0 +1,44 @@
+# Feature Complete Message Template
+
+## Format
+
+```
+✨ *Feature Complete: {PROJECT_NAME}*
+
+*{FEATURE_NAME}*
+
+{DESCRIPTION - what it does, how to use it, 2-3 sentences}
+
+{IF_DEMO_URL}• Demo: {DEMO_URL}
+• Files: {KEY_FILES}
+
+_Ready for review/testing._
+```
+
+## Example
+
+```
+✨ *Feature Complete: Acme Dashboard*
+
+*Export to CSV*
+
+Users can now export their data to CSV from any table view. Click the download icon in the top-right corner, select date range, and choose which columns to include. Works with up to 10,000 rows.
+
+• Demo: https://acme-dashboard.vercel.app/reports
+• Files: components/export/, lib/csv-generator.ts
+
+_Ready for review/testing._
+```
+
+## When to use
+
+- After completing a feature that's ready for others to see/use
+- When something is ready for QA or client review
+- After implementing something the team discussed
+
+## What to include
+
+- Feature name (clear, not technical)
+- What it does and how to use it (user perspective)
+- Demo link if available
+- Note that it's ready for review
diff --git a/skills/google-spaces-updates/templates/question.md b/skills/google-spaces-updates/templates/question.md
new file mode 100644
index 00000000..b3639b5e
--- /dev/null
+++ b/skills/google-spaces-updates/templates/question.md
@@ -0,0 +1,58 @@
+# Question Message Template
+
+## Format
+
+```
+❓ *Question: {PROJECT_NAME}*
+
+{QUESTION - clear and specific}
+
+*Context:*
+{RELEVANT_BACKGROUND - what you're working on, what you've tried}
+
+*Options considered:*
+1. {OPTION_A}
+2. {OPTION_B}
+{3. OPTION_C if applicable}
+
+_Would appreciate input from the team._
+```
+
+## Example
+
+```
+❓ *Question: Acme Dashboard*
+
+Should we support dark mode in the embed widgets?
+
+*Context:*
+Working on the embeddable dashboard widgets. Some customers have dark-themed websites and the white widget looks out of place. Adding dark mode would require ~2 hours of work.
+
+*Options considered:*
+1. Add dark mode with auto-detect based on parent page
+2. Add manual toggle in widget settings
+3. Skip for now, revisit based on customer feedback
+
+_Would appreciate input from the team._
+```
+
+## When to use
+
+- When blocked on a decision
+- When multiple valid approaches exist
+- When the decision affects others on the team
+- When you need domain knowledge you don't have
+
+## What to include
+
+- Clear, specific question (not vague)
+- Context so team understands the situation
+- Options you've considered (shows you've thought about it)
+- Why you need input (optional but helpful)
+
+## Tips
+
+- Don't ask questions that could be answered by reading docs
+- Include enough context that someone can answer without asking clarifying questions
+- If urgent, say so at the start
+- If you have a recommendation, mention it
diff --git a/skills/google-spaces-updates/templates/settings-template.json b/skills/google-spaces-updates/templates/settings-template.json
new file mode 100644
index 00000000..3fc81a47
--- /dev/null
+++ b/skills/google-spaces-updates/templates/settings-template.json
@@ -0,0 +1,19 @@
+{
+ "project": {
+ "name": "PROJECT_NAME",
+ "repo": "owner/repo-name",
+ "production_url": "https://your-app.vercel.app",
+ "staging_url": "https://staging.your-app.vercel.app"
+ },
+ "team": {
+ "chat_webhook": "https://chat.googleapis.com/v1/spaces/SPACE_ID/messages?key=API_KEY&token=TOKEN",
+ "members": {
+ "project_manager": "Name",
+ "developers": ["Dev1", "Dev2"]
+ }
+ },
+ "notifications": {
+ "post_on": ["deployments", "major_changes", "bug_fixes", "feature_completions", "questions"],
+ "mention_on_questions": true
+ }
+}
diff --git a/skills/google-spaces-updates/test-config.json b/skills/google-spaces-updates/test-config.json
new file mode 100644
index 00000000..5bd8e325
--- /dev/null
+++ b/skills/google-spaces-updates/test-config.json
@@ -0,0 +1,4 @@
+{
+ "test_webhook": "https://chat.googleapis.com/v1/spaces/AAQAZ2LOguk/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=b0UjCCk1d5XNWyjJF_nOzqg_TlB-lsD-bBqidLVRNHA",
+ "note": "Use this webhook for testing new message formats before posting to real team spaces"
+}