home / skills / splitleaseteam / splitlease_monorepo / slack-webhook
/.claude/skills/slack-webhook
This skill sends concise Slack alerts for task completions, errors, and security issues using the TINYTASKAGENT webhook to keep you informed.
npx playbooks add skill splitleaseteam/splitlease_monorepo --skill slack-webhookReview the files below or copy the command above to add this skill to your agents.
---
name: slack-webhook
description: |
Claude's voice for alerting users via Slack. Use this skill to send notifications when:
(1) A task completes that the user should know about (deployments, builds, long-running operations)
(2) An error or failure occurs that requires attention
(3) A security issue, vulnerability, or concerning pattern is discovered
(4) A warning about potential problems (deprecated APIs, risky patterns, data inconsistencies)
(5) Anything requiring the user's immediate attention
Triggers: "notify me", "alert", "let me know", "send to slack", or proactively when encountering issues the user should see immediately.
IMPORTANT: This skill is designed for external use only. It will refuse to run inside the splitleasesharath GitHub account
to prevent accidental modifications to the production codebase.
---
# Slack Webhook Notifications
Send 1-line summaries to Slack via `TINYTASKAGENT` webhook.
## End of Task (MANDATORY)
After completing any task, send a brief summary:
```bash
python "C:/Users/Split Lease/Documents/Split Lease/.claude/skills/slack-webhook/scripts/send_slack.py" "<1-line summary>" --type success
```
Keep summaries concise: "Implemented X", "Fixed Y bug", "Deployed Z to staging"
## Message Types
| Type | When to Use |
|------|-------------|
| `success` | Task completed successfully |
| `error` | Task failed or encountered errors |
| `warning` | Potential issues found |
| `urgent` | Security issues, critical failures |
| `info` | General status updates |
## Examples
```bash
# Successful completion
python "...send_slack.py" "Built slack-webhook skill with TINYTASKAGENT support" --type success
# Error encountered
python "...send_slack.py" "Build failed: 3 TypeScript errors in auth.ts" --type error
# Security concern
python "...send_slack.py" "Found hardcoded API key in config.js" --type urgent
```
## Configuration
Webhook URL resolved from (in order):
1. `TINYTASKAGENT` environment variable
2. `.env` file in cwd or home directory
3. `--webhook` argument (override)
This skill sends concise, actionable Slack notifications using the TINYTASKAGENT webhook. It reports task completions, errors, warnings, security alerts, and other items that require immediate attention. The skill is for external use only and will refuse to run inside the splitleasesharath GitHub account to avoid accidental production modifications.
After any task, call the script with a one-line summary and a message type (success, error, warning, urgent, info). The webhook URL is resolved from the TINYTASKAGENT environment variable, a .env file in the working or home directory, or an explicit --webhook argument. Messages are formatted as single-line summaries to keep Slack channels clear and actionable.
How do I set the webhook URL?
Set TINYTASKAGENT in the environment, add it to a .env file in the working or home directory, or pass --webhook when sending a message.
What message length is recommended?
Keep it to one short sentence so it reads clearly in Slack channels and is easy to scan.
Can I run this from the splitleasesharath GitHub account?
No. The skill refuses to run inside the splitleasesharath GitHub account to prevent accidental changes to production.