erpnext-syntax-whitelisted

Standardize ERPNext whitelisted API patterns with validation and permission checks.

163|53|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/OpenAEC-Foundation/ERPNext_Anthropic_Claude_Development_Skill_Package --skill erpnext-syntax-whitelisted
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: erpnext-syntax-whitelisted
Source: https://github.com/OpenAEC-Foundation/ERPNext_Anthropic_Claude_Development_Skill_Package/tree/main/skills/source/syntax/erpnext-syntax-whitelisted
Command: npx skills add https://github.com/OpenAEC-Foundation/ERPNext_Anthropic_Claude_Development_Skill_Package --skill erpnext-syntax-whitelisted

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

ERPNext whitelisted API patterns are often implemented inconsistently, leading to security gaps and maintenance burden. This Skill provides a standardized, deterministic framework for API endpoints, permission checks, and client-server interactions.

Core Features & Use Cases

  • Deterministic templates and examples for @frappe.whitelist, frappe.call, and frm.call across ERPNext v14–v16.
  • Comprehensive security patterns including input validation, permission checks, and safe error handling.
  • Real-world use cases demonstrating server-to-client communication and API structure.

Quick Start

Use this skill to generate robust ERPNext whitelisted API patterns for new endpoints and client calls.

Frequently Asked Questions about erpnext-syntax-whitelisted

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use the @frappe.whitelist decorator for secure API endpoints?▼

The @frappe.whitelist decorator secures API endpoints by enforcing input validation, permission checks, and safe error handling. It standardizes server-to-client communication patterns across ERPNext v14–v16.

What is the best way to handle input validation and permissions in frappe.call?▼

Implement robust input validation and permission checks within your whitelisted methods before executing frappe.call operations. This ensures secure server-side processing and prevents unauthorized data access.

Does this ERPNext API syntax skill support version 14 through 16?▼

Yes, the ERPNext API syntax patterns cover versions 14 through 16. The templates ensure consistent @frappe.whitelist usage, frm.call interactions, and secure endpoint structures across these versions.

Why are my ERPNext whitelisted methods causing security gaps?▼

ERPNext whitelisted methods often cause security gaps due to inconsistent implementation. Standardizing API patterns with deterministic templates enforces necessary permission checks and safe error handling to eliminate vulnerabilities.

Can I standardize client-server interactions using frm.call in ERPNext?▼

Yes, you can standardize client-server interactions using deterministic frm.call patterns. These templates provide robust structures for secure API endpoints and reliable server-to-client data communication.

When do I need to implement explicit permission checks for ERPNext API endpoints?▼

You need explicit permission checks for ERPNext API endpoints whenever exposing whitelisted methods to clients. Enforcing validation and permissions within the @frappe.whitelist decorator prevents unauthorized access.