frappe-impl-serverscripts

Build sandbox-safe server-side logic in Frappe/ERPNext via Server Script.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a structured approach to implementing sandbox-safe server-side logic in Frappe/ERPNext via Setup > Server Script, reducing unsafe imports, ad-hoc scripting, and brittle automation.

Core Features & Use Cases

  • Document Event-based server scripts for validation, auto-fill, and automation.
  • API endpoints, Scheduler integration, and clear guidelines for migration to controllers.
  • Decision trees and best-practice patterns to enforce security, error handling, and maintainability.

Quick Start

Create a new server script under Setup > Server Script and select a Script Type to implement a sandbox-safe workflow.

Frequently Asked Questions about frappe-impl-serverscripts

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

FAQPage Schema
How do I create sandbox-safe server scripts in Frappe?

Sandbox-safe server scripts in Frappe are created under Setup > Server Script by selecting a Script Type and applying decision trees that enforce security, error handling, and structured workflows.

What types of automation can I build with Frappe Server Script?

Frappe Server Script supports document event-based validation, auto-fill, automation, API endpoint creation, scheduler integration, and permission queries within a sandbox-safe environment.

How does Frappe Server Script handle document events and validation?

Frappe Server Script handles document events by triggering server-side logic for validation, auto-fill, and automation, ensuring sandbox safety through structured best-practice patterns.

When should I migrate my Frappe Server Script to a controller?

Migration to controllers is recommended when server scripts outgrow sandbox constraints, with the Skill providing clear guidelines and decision trees for maintaining security and maintainability.

Can I build API endpoints and scheduled jobs using Frappe Server Script?

Yes, Frappe Server Script supports building API endpoints and scheduler integration, offering a structured approach to server-side logic without relying on unsafe imports or ad-hoc scripting.

What are the limitations of using Server Script in ERPNext for workflows?

Server Script in ERPNext is limited by sandbox safety constraints and potential brittleness, requiring adherence to best practices for error handling and structured workflows to avoid maintainability issues.