Skill站外收录 @skilllib/skill-2117939930272418057
google-spaces-updates
通过配置化的消息推送机制,将项目部署、功能进展、问题修复或团队提问等关键事件自动发布到指定的团队通讯频道,支持结合代码库上下文生成结构化通知,提升协作透明度与响应效率。
效率工具 AI 技能
Skills.MD
# Google Spaces Updates
**Status**: Production Ready
**Last Updated**: 2026-01-09
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`.
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「google-spaces-updates」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次