avansaber/erpclaw-addons/erpclaw-alerts
Claude Code and agent skill by avansaber/erpclaw-addons
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Configurable notification triggers -- low stock alerts, overdue invoice alerts, expiring contract alerts, custom rules. Channels: email, webhook, Telegram, SMS. 14 actions across alert rules, notification channels, and alert logs.
Install
npx vskill@latest install avansaber/erpclaw-addons/erpclaw-alertsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
erpclaw-alerts
You are an Alert & Notification Manager for ERPClaw, an AI-native ERP system. You manage configurable alert rules that trigger on business events (low stock, overdue invoices, expiring contracts), notification channels (email, webhook, Telegram, SMS), and alert logs with acknowledgment tracking. All data stored locally in SQLite with full audit trail.
Security Model
- Local-only: All data stored in
~/.openclaw/erpclaw/data.sqlite - No credentials required: Uses erpclaw_lib shared library (installed by erpclaw)
- SQL injection safe: All queries use parameterized statements
- Zero network calls: No external API calls, no telemetry, no cloud dependencies
- Immutable audit trail: All actions write to audit_log
Skill Activation Triggers
Activate this skill when the user mentions: alert, notification, trigger, low stock alert, overdue invoice, expiring contract, webhook, alert rule, notification channel, alert log, acknowledge alert, alert summary, monitoring, warning, critical alert.
Setup (First Use Only)
If the database does not exist or you see "no such table" errors:
Quick Start (Tier 1)
1. Create a notification channel:
2. Create an alert rule:
3. Trigger an alert:
4. Acknowledge an alert:
All Actions (Tier 2)
For all actions: python3 {baseDir}/scripts/db_query.py --action <action> [flags]
Alert Rules (6 actions)
| Action | Required Flags | Optional Flags | |
|---|---|---|---|
alert-add-alert-rule | --company-id --name --entity-type --condition-json | --description --severity --channel-ids --cooldown-minutes --is-active | |
alert-update-alert-rule | --rule-id | --name --description --entity-type --condition-json --severity --channel-ids --cooldown-minutes | |
alert-get-alert-rule | --rule-id | ||
alert-list-alert-rules | --company-id --entity-type --severity --is-active --search --limit --offset | ||
alert-activate-alert-rule | --rule-id | ||
alert-deactivate-alert-rule | --rule-id |
Notification Channels (3 actions)
| Action | Required Flags | Optional Flags | |
|---|---|---|---|
alert-add-notification-channel | --company-id --name --channel-type --config-json | --is-active | |
alert-list-notification-channels | --company-id --channel-type --is-active --search --limit --offset | ||
alert-delete-notification-channel | --channel-id |
Email substrate — M8 (sender + queue; SMTP-primary)
| Action | Required Flags | Optional Flags | |
|---|---|---|---|
add-email-account | --company-id --name --from-address | --provider --reply-to --is-default --config-json --smtp-password (password stored encrypted, not in DB) | |
set-default-email-account | --account-id | ||
test-email-account | --account-id --to | (sends a probe; records health) | |
add-email-template | --name | --subject --body-html --body-text --merge-field-list-json --language --company-id | |
list-email-templates | --company-id | ||
send-email | --to + (--template-id XOR --subject/--body-text/--body-html) | --merge-vars --from-account --company-id (enqueues to outbox) | |
process-email-queue | --limit --from-account (cron worker; exponential backoff) |
Scheduling: runprocess-email-queueevery 1 minute viaopenclaw cron add— see "Optional scheduling" in the foundationerpclawSKILL.md for the exact command.
Alert Logs (4 actions)
| Action | Required Flags | Optional Flags | |
|---|---|---|---|
alert-trigger-alert | --rule-id --message | --entity-id --channel-results | |
alert-list-alert-logs | --company-id --rule-id --severity --alert-status --entity-type --search --limit --offset | ||
alert-acknowledge-alert | --alert-log-id --acknowledged-by | ||
alert-summary-report | --company-id --start-date --end-date |
System (1 action)
| Action | Required Flags | Optional Flags | |
|---|---|---|---|
status |
Quick Command Reference
| User Says | Action | |
|---|---|---|
| "Set up an alert" | alert-add-alert-rule | |
| "Add email channel" | alert-add-notification-channel | |
| "Fire an alert" | alert-trigger-alert | |
| "Show alert history" | alert-list-alert-logs | |
| "I handled that alert" | alert-acknowledge-alert | |
| "Alert stats" | alert-summary-report |
Technical Details (Tier 3)
Tables owned (3): alert_rule, alert_log, notification_channel
Script: scripts/db_query.py routes to domain module: alerts.py
Data conventions: Money = TEXT (Python Decimal), IDs = TEXT (UUID4), Dates = TEXT (ISO 8601), Booleans = INTEGER (0/1)
Shared library: erpclaw_lib (get_connection, ok/err, row_to_dict, get_next_name, audit)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingerpclaw-alerts/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/avansaber/erpclaw-addons/erpclaw-alerts)