slack-workflows by claude-office-skills/skills
npx skills add https://github.com/claude-office-skills/skills --skill slack-workflows通过智能工作流实现 Slack 自动化,用于通知、站会收集、审批流程和跨平台集成。基于 n8n 自动化模式。
此技能涵盖:
workflow: "Async Standup"
schedule: "9:00 AM weekdays"
steps:
1. send_prompt:
channel: each team member (DM)
message: |
👋 早上好!该开站会了。
请分享:
1️⃣ 你昨天完成了什么?
2️⃣ 你今天要做什么?
3️⃣ 有任何阻碍吗?
请在此线程中回复 👇
2. collect_responses:
timeout: 2_hours
reminder: at_1_hour
3. compile_summary:
time: "11:00 AM"
channel: "#team-standup"
format: |
📋 *每日站会 - {date}*
{for_each_member}
*{name}*
✅ 昨天:{yesterday}
📌 今天:{today}
🚧 阻碍:{blockers}
---
{end_for}
*总结:*
• {total} 位团队成员已回复
• {blockers_count} 个阻碍被标记
4. flag_blockers:
if: blockers_count > 0
notify: manager
action: create_thread_for_discussion
workflow: "Expense Approval"
trigger: form_submission OR slash_command
steps:
1. receive_request:
data:
- requester
- amount
- category
- description
- receipt_url
2. route_approval:
rules:
- if: amount < 100
approver: direct_manager
- if: amount >= 100 AND amount < 1000
approver: department_head
- if: amount >= 1000
approver: [department_head, finance]
type: sequential
3. send_approval_request:
channel: DM to approver
message: |
📝 *费用审批请求*
*来自:* {requester}
*金额:* ${amount}
*类别:* {category}
*描述:* {description}
[查看收据]({receipt_url})
actions:
- button: "✅ 批准"
action: approve
- button: "❌ 拒绝"
action: reject
- button: "💬 提问"
action: request_info
4. handle_response:
approved:
- notify_requester: "您的费用已获批准!🎉"
- create_task: in_accounting_system
- log: in_expense_tracker
rejected:
- notify_requester: "费用未获批准。原因:{reason}"
- log: with_rejection_reason
5. escalate_if_no_response:
timeout: 24_hours
action: remind_approver
final_escalation: 48_hours
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
workflow: "Employee Onboarding"
trigger: new_employee_added_to_HRIS
timeline:
day_minus_7:
- create_channels:
- "#welcome-{name}"
- add_to: ["#general", "#team-{department}"]
- notify_it: "为 {name} 设置笔记本电脑"
- notify_manager: "入职流程将在 7 天后开始"
day_1:
- morning:
- post_welcome: "#general"
message: |
🎉 欢迎 *{name}* 加入团队!
职位:{title}
团队:{department}
地点:{office}
趣事:{fun_fact}
打个招呼,让他们感到受欢迎!👋
- dm_new_hire:
message: |
欢迎加入 {Company}!🚀
这是您的第一步:
1. [完成人力资源文书工作]({hr_link})
2. [设置您的账户]({it_link})
3. [认识团队]({org_chart})
您的伙伴是 @{buddy_name} - 随时联系!
- afternoon:
- schedule_intros: with_key_stakeholders
day_3:
- check_in:
dm: "第一周感觉如何?有什么问题吗?"
day_7:
- survey:
question: "您的入职体验如何?"
scale: 1-5
day_30:
- feedback_request:
dm: "您已经在这里一个月了!我们有什么可以改进的地方?"
workflow: "Incident Alert"
trigger: monitoring_alert OR manual
severity_levels:
critical:
- create_channel: "#incident-{timestamp}"
- notify: "@channel in #engineering"
- page: on_call_engineer
- create_war_room: video_link
- start_timer: for_resolution_tracking
high:
- notify: "#engineering-alerts"
- assign: on_call_engineer
- create_ticket: in_jira
medium:
- notify: "#engineering-alerts"
- create_ticket: in_jira
low:
- create_ticket: in_jira
- notify: next_business_day
incident_channel_template: |
🚨 *事件:{title}*
*严重性:* {severity}
*状态:* 调查中
*开始时间:* {timestamp}
*指挥官:* @{commander}
---
*受影响的系统:*
{systems}
*客户影响:*
{impact}
---
📋 *行动项:*
• [ ] 确定根本原因
• [ ] 实施修复
• [ ] 验证解决方案
• [ ] 与利益相关者沟通
🔗 *链接:*
• [操作手册]({runbook_url})
• [仪表板]({dashboard_url})
• [视频会议室]({video_url})
resolution_flow:
1. commander_declares: "resolved"
2. notify_stakeholders: resolution_message
3. archive_channel: after_24_hours
4. create_postmortem: in_notion
5. schedule_review: in_calendar
workflow: "CRM to Slack Notifications"
triggers:
hubspot_deal_won:
channel: "#wins"
message: |
🎉 *交易完成!*
*公司:* {company}
*价值:* ${amount}
*销售代表:* @{sales_rep}
*产品:* {product}
恭喜!🚀
hubspot_deal_lost:
channel: "#sales-team"
message: |
📊 *交易失败*
*公司:* {company}
*价值:* ${amount}
*原因:* {loss_reason}
*竞争对手:* {competitor}
请在下方线程中讨论经验教训 👇
github_pr_merged:
channel: "#engineering"
message: |
✅ PR 已合并:*{pr_title}*
由 @{author} 提交
{pr_description_summary}
stripe_payment_failed:
channel: "#revenue-alerts"
message: |
⚠️ *支付失败*
*客户:* {customer_email}
*金额:* ${amount}
*原因:* {failure_reason}
[在 Stripe 中查看]({stripe_link})
slash_commands:
/kudos:
description: "向队友表示认可"
usage: "/kudos @person for [reason]"
action:
- post_to: "#kudos"
- format: |
🌟 *点赞!*
@{sender} 向 @{recipient} 点赞
> {reason}
- track: in_recognition_spreadsheet
/pto:
description: "申请休假"
usage: "/pto [start_date] to [end_date] for [reason]"
action:
- create_approval: pto_approval_flow
- update_calendar: block_dates
- notify_team: if_approved
/standup:
description: "提交异步站会"
usage: "/standup"
action:
- open_modal: standup_form
- collect_responses: yesterday, today, blockers
- post_to: "#team-standup"
/poll:
description: "创建快速投票"
usage: "/poll 'Question' 'Option 1' 'Option 2' ..."
action:
- create_message: with_reactions
- track_votes: by_reaction_count
- close_poll: after_24h_or_manual
channel_automation:
project_channels:
trigger: jira_project_created
action:
- create_channel: "#proj-{project_key}"
- add_members: project_team
- set_topic: "{project_name} - {project_description}"
- pin_message: project_resources
- archive: when_project_completed
customer_channels:
trigger: deal_closed_won
action:
- create_channel: "#customer-{company}"
- add_members: [csm, sales_rep, support]
- set_purpose: "{company} 的支持频道"
- integrate: zendesk_alerts
cleanup:
schedule: monthly
rules:
- archive_if:
no_messages: 90_days
AND:
not_pinned: true
not_customer_channel: true
- notify_before_archive: 7_days
请求 : "在 Slack 中设置交易完成通知"
输出 :
# 交易完成通知设置
## 工作流配置
```yaml
trigger: hubspot_deal_stage_changed
condition: new_stage == "Closed Won"
action:
channel: "#wins"
message: see_below
🎉 *交易完成!*
━━━━━━━━━━━━━━━━━━━━━━
🏢 *公司:* {company_name}
💰 *价值:* ${deal_amount}
👤 *销售代表:* @{owner_slack_id}
📦 *产品:* {product_line}
━━━━━━━━━━━━━━━━━━━━━━
*交易摘要:*
• 销售周期:{days_in_pipeline} 天
• 线索来源:{lead_source}
• 行业:{industry}
🎊 恭喜团队!
// HubSpot Trigger → Slack Node
{
"nodes": [
{
"name": "HubSpot Trigger",
"type": "n8n-nodes-base.hubspotTrigger",
"parameters": {
"eventsUi": {
"eventValues": ["deal.propertyChange"]
},
"property": "dealstage",
"value": "closedwon"
}
},
{
"name": "Format Message",
"type": "n8n-nodes-base.set",
"parameters": {
"values": {
"message": "🎉 *DEAL CLOSED!*\n\n🏢 {{$json.company}}\n💰 ${{$json.amount}}"
}
}
},
{
"name": "Slack",
"type": "n8n-nodes-base.slack",
"parameters": {
"channel": "#wins",
"text": "={{$json.message}}"
}
}
]
}
🎉 *交易完成!*
━━━━━━━━━━━━━━━━━━━━━━
🏢 *公司:* Acme Corporation
💰 *价值:* $45,000
👤 *销售代表:* @alice.chen
📦 *产品:* Enterprise Plan
━━━━━━━━━━━━━━━━━━━━━━
*交易摘要:*
• 销售周期:45 天
• 线索来源:Inbound - Website
• 行业:Technology
🎊 恭喜团队!
---
*Slack Workflows Skill - Part of Claude Office Skills*
每周安装次数
24
仓库
GitHub 星标数
5
首次出现
1 天前
安全审计
安装于
claude-code22
gemini-cli5
github-copilot5
codex5
amp5
cline5
Automate Slack with intelligent workflows for notifications, standup collection, approval processes, and cross-platform integrations. Based on n8n automation patterns.
This skill covers:
workflow: "Async Standup"
schedule: "9:00 AM weekdays"
steps:
1. send_prompt:
channel: each team member (DM)
message: |
👋 Good morning! Time for standup.
Please share:
1️⃣ What did you complete yesterday?
2️⃣ What are you working on today?
3️⃣ Any blockers?
Reply in this thread 👇
2. collect_responses:
timeout: 2_hours
reminder: at_1_hour
3. compile_summary:
time: "11:00 AM"
channel: "#team-standup"
format: |
📋 *Daily Standup - {date}*
{for_each_member}
*{name}*
✅ Yesterday: {yesterday}
📌 Today: {today}
🚧 Blockers: {blockers}
---
{end_for}
*Summary:*
• {total} team members responded
• {blockers_count} blockers flagged
4. flag_blockers:
if: blockers_count > 0
notify: manager
action: create_thread_for_discussion
workflow: "Expense Approval"
trigger: form_submission OR slash_command
steps:
1. receive_request:
data:
- requester
- amount
- category
- description
- receipt_url
2. route_approval:
rules:
- if: amount < 100
approver: direct_manager
- if: amount >= 100 AND amount < 1000
approver: department_head
- if: amount >= 1000
approver: [department_head, finance]
type: sequential
3. send_approval_request:
channel: DM to approver
message: |
📝 *Expense Approval Request*
*From:* {requester}
*Amount:* ${amount}
*Category:* {category}
*Description:* {description}
[View Receipt]({receipt_url})
actions:
- button: "✅ Approve"
action: approve
- button: "❌ Reject"
action: reject
- button: "💬 Ask Question"
action: request_info
4. handle_response:
approved:
- notify_requester: "Your expense was approved! 🎉"
- create_task: in_accounting_system
- log: in_expense_tracker
rejected:
- notify_requester: "Expense not approved. Reason: {reason}"
- log: with_rejection_reason
5. escalate_if_no_response:
timeout: 24_hours
action: remind_approver
final_escalation: 48_hours
workflow: "Employee Onboarding"
trigger: new_employee_added_to_HRIS
timeline:
day_minus_7:
- create_channels:
- "#welcome-{name}"
- add_to: ["#general", "#team-{department}"]
- notify_it: "Set up laptop for {name}"
- notify_manager: "Onboarding starts in 7 days"
day_1:
- morning:
- post_welcome: "#general"
message: |
🎉 Please welcome *{name}* to the team!
Role: {title}
Team: {department}
Location: {office}
Fun fact: {fun_fact}
Say hi and make them feel welcome! 👋
- dm_new_hire:
message: |
Welcome to {Company}! 🚀
Here are your first steps:
1. [Complete HR paperwork]({hr_link})
2. [Set up your accounts]({it_link})
3. [Meet the team]({org_chart})
Your buddy is @{buddy_name} - reach out anytime!
- afternoon:
- schedule_intros: with_key_stakeholders
day_3:
- check_in:
dm: "How's your first week going? Any questions?"
day_7:
- survey:
question: "How was your onboarding experience?"
scale: 1-5
day_30:
- feedback_request:
dm: "You've been here a month! What could we improve?"
workflow: "Incident Alert"
trigger: monitoring_alert OR manual
severity_levels:
critical:
- create_channel: "#incident-{timestamp}"
- notify: "@channel in #engineering"
- page: on_call_engineer
- create_war_room: video_link
- start_timer: for_resolution_tracking
high:
- notify: "#engineering-alerts"
- assign: on_call_engineer
- create_ticket: in_jira
medium:
- notify: "#engineering-alerts"
- create_ticket: in_jira
low:
- create_ticket: in_jira
- notify: next_business_day
incident_channel_template: |
🚨 *INCIDENT: {title}*
*Severity:* {severity}
*Status:* Investigating
*Started:* {timestamp}
*Commander:* @{commander}
---
*Affected Systems:*
{systems}
*Customer Impact:*
{impact}
---
📋 *Actions:*
• [ ] Identify root cause
• [ ] Implement fix
• [ ] Verify resolution
• [ ] Communicate to stakeholders
🔗 *Links:*
• [Runbook]({runbook_url})
• [Dashboard]({dashboard_url})
• [Video Room]({video_url})
resolution_flow:
1. commander_declares: "resolved"
2. notify_stakeholders: resolution_message
3. archive_channel: after_24_hours
4. create_postmortem: in_notion
5. schedule_review: in_calendar
workflow: "CRM to Slack Notifications"
triggers:
hubspot_deal_won:
channel: "#wins"
message: |
🎉 *Deal Closed!*
*Company:* {company}
*Value:* ${amount}
*Rep:* @{sales_rep}
*Product:* {product}
Congrats! 🚀
hubspot_deal_lost:
channel: "#sales-team"
message: |
📊 *Deal Lost*
*Company:* {company}
*Value:* ${amount}
*Reason:* {loss_reason}
*Competitor:* {competitor}
Thread for learnings 👇
github_pr_merged:
channel: "#engineering"
message: |
✅ PR merged: *{pr_title}*
by @{author}
{pr_description_summary}
stripe_payment_failed:
channel: "#revenue-alerts"
message: |
⚠️ *Payment Failed*
*Customer:* {customer_email}
*Amount:* ${amount}
*Reason:* {failure_reason}
[View in Stripe]({stripe_link})
slash_commands:
/kudos:
description: "Give recognition to a teammate"
usage: "/kudos @person for [reason]"
action:
- post_to: "#kudos"
- format: |
🌟 *Kudos!*
@{sender} gave kudos to @{recipient}
> {reason}
- track: in_recognition_spreadsheet
/pto:
description: "Request time off"
usage: "/pto [start_date] to [end_date] for [reason]"
action:
- create_approval: pto_approval_flow
- update_calendar: block_dates
- notify_team: if_approved
/standup:
description: "Submit async standup"
usage: "/standup"
action:
- open_modal: standup_form
- collect_responses: yesterday, today, blockers
- post_to: "#team-standup"
/poll:
description: "Create a quick poll"
usage: "/poll 'Question' 'Option 1' 'Option 2' ..."
action:
- create_message: with_reactions
- track_votes: by_reaction_count
- close_poll: after_24h_or_manual
channel_automation:
project_channels:
trigger: jira_project_created
action:
- create_channel: "#proj-{project_key}"
- add_members: project_team
- set_topic: "{project_name} - {project_description}"
- pin_message: project_resources
- archive: when_project_completed
customer_channels:
trigger: deal_closed_won
action:
- create_channel: "#customer-{company}"
- add_members: [csm, sales_rep, support]
- set_purpose: "Support channel for {company}"
- integrate: zendesk_alerts
cleanup:
schedule: monthly
rules:
- archive_if:
no_messages: 90_days
AND:
not_pinned: true
not_customer_channel: true
- notify_before_archive: 7_days
Request : "Set up a deal win notification in Slack"
Output :
# Deal Win Notification Setup
## Workflow Configuration
```yaml
trigger: hubspot_deal_stage_changed
condition: new_stage == "Closed Won"
action:
channel: "#wins"
message: see_below
🎉 *DEAL CLOSED!*
━━━━━━━━━━━━━━━━━━━━━━
🏢 *Company:* {company_name}
💰 *Value:* ${deal_amount}
👤 *Sales Rep:* @{owner_slack_id}
📦 *Product:* {product_line}
━━━━━━━━━━━━━━━━━━━━━━
*Deal Summary:*
• Sales cycle: {days_in_pipeline} days
• Lead source: {lead_source}
• Industry: {industry}
🎊 Congrats to the team!
// HubSpot Trigger → Slack Node
{
"nodes": [
{
"name": "HubSpot Trigger",
"type": "n8n-nodes-base.hubspotTrigger",
"parameters": {
"eventsUi": {
"eventValues": ["deal.propertyChange"]
},
"property": "dealstage",
"value": "closedwon"
}
},
{
"name": "Format Message",
"type": "n8n-nodes-base.set",
"parameters": {
"values": {
"message": "🎉 *DEAL CLOSED!*\n\n🏢 {{$json.company}}\n💰 ${{$json.amount}}"
}
}
},
{
"name": "Slack",
"type": "n8n-nodes-base.slack",
"parameters": {
"channel": "#wins",
"text": "={{$json.message}}"
}
}
]
}
🎉 *DEAL CLOSED!*
━━━━━━━━━━━━━━━━━━━━━━
🏢 *Company:* Acme Corporation
💰 *Value:* $45,000
👤 *Sales Rep:* @alice.chen
📦 *Product:* Enterprise Plan
━━━━━━━━━━━━━━━━━━━━━━
*Deal Summary:*
• Sales cycle: 45 days
• Lead source: Inbound - Website
• Industry: Technology
🎊 Congrats to the team!
---
*Slack Workflows Skill - Part of Claude Office Skills*
Weekly Installs
24
Repository
GitHub Stars
5
First Seen
1 day ago
Security Audits
Gen Agent Trust HubPassSocketFailSnykWarn
Installed on
claude-code22
gemini-cli5
github-copilot5
codex5
amp5
cline5
Azure RBAC 权限管理工具:查找最小角色、创建自定义角色与自动化分配
104,600 周安装