frappe-impl-serverscripts

Design sandbox-safe Frappe server scripts for document events and automation.

Updated May 31, 2026
One-click install
npx skills add https://github.com/anonymousminati/Res-POS --skill frappe-impl-serverscripts-anonymousminati
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frappe-impl-serverscripts
Source: https://github.com/anonymousminati/Res-POS/tree/main/.claude/skills/impl/frappe-impl-serverscripts
Command: npx skills add https://github.com/anonymousminati/Res-POS --skill frappe-impl-serverscripts-anonymousminati

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you implement Frappe server-side automation without building a custom app, so you can ship validation, defaults, APIs, scheduled jobs, and permission logic quickly and safely.

Core Features & Use Cases

  • Server-side validation: Enforce required fields, cross-document rules, and business constraints before save or submit.
  • Auto-fill and calculations: Populate derived fields, totals, and status values directly in document events.
  • API endpoints: Create whitelisted server script methods for lightweight REST actions with input checks and permission enforcement.
  • Scheduler automation: Run daily or cron-based tasks for reminders, batch updates, and background maintenance.
  • Permission queries: Restrict list views by user, role, territory, company, or ownership.
  • Migration guidance: Decide when a server script is enough and when to move logic into a controller or hooks.

Quick Start

Ask this Skill to design the correct Frappe server script for your DocType event, including the safest script type, sandbox-safe Python, and the exact instructions needed to test it.

Frequently Asked Questions about frappe-impl-serverscripts

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

FAQPage Schema
How do I write safe Frappe server scripts for document validation?

Safe Frappe server scripts for document validation enforce required fields, cross-document rules, and business constraints before save or submit. Use sandbox-safe Python patterns, select the correct DocType event, and apply permission checks to prevent unauthorized modifications.

Can I create REST API endpoints using Frappe server scripts?

Yes, you can create whitelisted server script methods for lightweight REST actions in Frappe. These endpoints include input validation checks and permission enforcement, providing a quick way to expose APIs without building a custom app.

What is the best way to run scheduled jobs in Frappe without a custom app?

The best way to run scheduled jobs without a custom app is using Frappe server scripts. They support daily or cron-based tasks for reminders, batch updates, and background maintenance, applying sandbox-safe patterns to ensure stable execution.

How do I restrict list views by user role in Frappe?

You restrict list views by user role in Frappe using permission query server scripts. These scripts filter list views based on user, role, territory, company, or ownership, ensuring users only see documents they are authorized to access.

When should I move Frappe server script logic to a custom app controller?

You should move logic to a custom app controller when it exceeds server script sandbox limits or requires complex imports. Migration guidance helps decide when server scripts are no longer sufficient and hooks or controllers become necessary for stability.

Does Frappe server script automation work for auto-fill and field calculations?

Yes, Frappe server script automation works for auto-fill and calculations by populating derived fields, totals, and status values directly in document events. This allows you to automate data entry logic safely without modifying core application code.