openaec-foundation/frappe_claude_skill_package/frappe-core-notifications
Claude Code and agent skill by openaec-foundation/frappe_claude_skill_package
- community
Checking that the SKILL.md file is still in the repository.
Use when implementing email notifications, system alerts, Assignment Rules, Auto Repeat, or ToDo items. Prevents misconfigured Email Accounts, broken notification templates, and silent delivery failures. Covers frappe.sendmail, Notification DocType, Email Account setup, Jinja email templates, Assignment Rules, Auto Repeat scheduling, ToDo API. Keywords: notification, email, sendmail, Email Account, Assignment Rule, Auto Repeat, ToDo, alert, template, notify on approval, email when status changes, alert, email not sending, notification not working..
Install
npx vskill@latest install openaec-foundation/frappe_claude_skill_package/frappe-core-notificationsSKILL.md
The same SKILL.md was published earlier as openaec-foundation/frappe_claude_skill_package/frappe-core-notifications.
Frappe Notification System
Quick Reference
| Channel | Method | Use Case | |
|---|---|---|---|
frappe.sendmail() | Programmatic email with full control | ||
| Notification DocType (Email) | No-code email on document events | ||
| System | frappe.publish_realtime() | In-app real-time alerts via socket.io | |
| System | Notification DocType (System) | No-code in-app alerts | |
| SMS | Notification DocType (SMS) | No-code SMS on document events | |
| Slack | Notification DocType (Slack) | No-code Slack webhook messages | |
| Assignment | frappe.desk.form.assign_to.add() | Assign document to user (creates ToDo) | |
| ToDo | frappe.get_doc({"doctype": "ToDo", ...}) | Direct task creation | |
| Comment | doc.add_comment("Comment", text) | Timeline comment on document | |
| Tag | doc.add_tag("tag_name") | Document tagging for filtering |
Decision Tree
Notification DocType
The Notification DocType enables no-code alerts across four channels.
Event Triggers
| Event | Fires When | |
|---|---|---|
| New | Document is created | |
| Save | Document is saved | |
| Submit | Document is submitted | |
| Cancel | Document is cancelled | |
| Value Change | Specific field value changes | |
| Days Before | N days before a date field value | |
| Days After | N days after a date field value | |
| Method | Custom Python method is called |
Condition Syntax
ALWAYS use Python expressions in the Condition field:
Available context: doc, nowdate(), frappe.utils.*.
Recipient Configuration
| Source | Description | |
|---|---|---|
| Document Field | Email/phone field on the document | |
| Role | All users with specified role | |
| Custom | Hard-coded email address | |
| All Assignees | All users assigned to the document | |
| Condition | Jinja expression to filter recipients |
Jinja Message Template
Template variables: {{ doc }}, {{ doc.fieldname }}, {{ comments }}, {{ nowdate() }}.
Attach Print
Set Attach Print to include a PDF of the document. Select a Print Format for custom layout.
frappe.sendmail(): Programmatic Email
Rules:
- ALWAYS set
reference_doctypeandreference_namewhen the email relates to a document — this links the email in the document timeline. - NEVER set
now=Truein production — it blocks the request. Usedelayed=True(default) to queue via Email Queue. - ALWAYS ensure an Email Account with "Enable Outgoing" is configured before calling
frappe.sendmail.
Email Queue
Emails are queued in the Email Queue DocType and sent by the scheduler. Check queue status:
frappe.publish_realtime(): System Notifications
Room Types
| Room | Audience | |
|---|---|---|
user:{email} | Single user (set user=) | |
doctype:{dt} | All users viewing that list | |
doc:{dt}/{dn} | All users viewing that document | |
all | All Desk users site-wide | |
task_progress:{id} | Background task progress |
Built-in Events
| Event | Purpose | |
|---|---|---|
msgprint | Show message dialog to user | |
list_update | Refresh document list view | |
docinfo_update | Refresh document info sidebar | |
progress | Show progress bar |
ALWAYS set after_commit=True when publishing from within a database transaction — otherwise the event fires before data is committed and the client may read stale data.
Assignment Rules
Auto-assign documents to users based on conditions (no code).
Configuration Fields
| Field | Purpose | |
|---|---|---|
| Document Type | Which DocType triggers the rule | |
| Assign Condition | Python expression (same as Notification) | |
| Assignment Days | Limit to specific weekdays | |
| Users | List of users to assign to | |
| Assignment Rule | Round Robin, Load Balancing, or Based on Field |
Programmatic Assignment
NEVER call close() as a different user than the assignee — it raises a permission error.
Auto Repeat
Creates recurring copies of documents on a schedule.
| Field | Purpose | |
|---|---|---|
| Reference DocType | Which DocType to repeat | |
| Reference Document | Source document to copy | |
| Frequency | Daily, Weekly, Monthly, Quarterly, Half-yearly, Yearly | |
| Start Date / End Date | Schedule window | |
| Notify By Email | Send notification on creation |
ALWAYS set an End Date on Auto Repeat — open-ended schedules create documents indefinitely and are difficult to debug.
ToDo API
ToDo statuses: Open, Closed, Cancelled.
Comments and Tags
Version Differences
| Feature | v14 | v15 | v16 | |
|---|---|---|---|---|
| Notification DocType | All 4 channels | All 4 channels | All 4 channels | |
| Minutes Before/After | Not available | Available | Available | |
frappe.publish_realtime | Available | Available | Available | |
| Assignment Rules | Available | Available | Available |
See Also
- references/email-system.md — Email Account, Email Queue, Communication linking, Newsletter, Notification Log
- references/examples.md — Full notification workflow examples
- references/anti-patterns.md — Common mistakes and fixes
- references/api-reference.md — Complete API signatures
frappe-core-database— Database operations referenced in notificationsfrappe-core-permissions— Permission model for notification access
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/source/core/frappe-core-notifications/SKILL.md
Popularity
- Repository stars
- 87
- Repository forks
- 25
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Apr 2026, 7 months ago.
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/openaec-foundation/frappe_claude_skill_package/frappe-core-notifications)