frappe-errors-serverscripts SKILL.md skillA
frappe-errors-serverscripts from impertio-studio/frappe_claude_skill_package is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add impertio-studio/frappe_claude_skill_package/frappe-errors-serverscripts@v2.0Pins v2.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- impertio-studio/frappe_claude_skill_package
- Path
skills/source/errors/frappe-errors-serverscripts/SKILL.md- Versions recorded
- 4
- Latest version
- v2.0, committed Mar 30, 2026
- First version recorded
- Mar 20, 2026
- Size
- 12,222 bytes
- Repository stars
- 202
- License
- a license file GitHub does not identify
Use when debugging or preventing errors in Frappe Server Scripts. Prevents ImportError (the #1 error), NameError for restricted builtins, sandbox violations, doc_events not firing, wrong script type selection, SQL injection, permission denied in scheduled scripts, infinite loops, and API scripts not returning JSON. Covers error message mapping table. Keywords: server script error, ImportError, NameError, sandbox,, ImportError in server script, script not running, sandbox error, restricted…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Server Script Errors — Diagnosis and Resolution
Cross-refs: `frappe-syntax-serverscripts` (syntax), `frappe-impl-serverscripts` (workflows), `frappe-errors-clientscripts` (client-side).
---
## CRITICAL: Server Scripts Disabled by Default [v15+]
Starting from Frappe v15, Server Scripts are **disabled by default**. You MUST enable them:
```python
# In site_config.json
{ "server_script_enabled": 1 }
```
On Frappe Cloud: Server Scripts are ONLY available on **private benches**, NOT on shared benches.
---
## Error Diagnosis Flowchart
```
ERROR IN SERVER SCRIPT
│
├─► ImportError / NameError
│ ├─► "import json" → BLOCKED. Use frappe.parse_json()
│ ├─► "import datetime" → BLOCKED. Use frappe.utils
│ ├─► "import os/sys/subprocess" → BLOCKED. Security restriction
│ └─► "NameError: name 'dict' is not defined" → Some builtins restricted
│
├─► SyntaxError: not allowed
│ ├─► "try/except" → BLOCKED by RestrictedPython [v14-v15]
│ ├─► "raise ValueError" → BLOCKED. Use frappe.throw()
│ └─► "exec/eval" → BLOCKED. Security restriction
│
├─► Script runs but nothing happens
│ ├─► Wrong Script Type selected → Check Document Event vs API vs Scheduler
…Read the whole file at its exact version.
How to install
mdr add impertio-studio/frappe_claude_skill_package/frappe-errors-serverscripts@sha256:8fae9ec94236e97fThe line at the top of this page pins the label v2.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_lsgqdorpxjbdbncr)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Mar 20, 2026 and Mar 30, 2026, about one every 3 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v2.0 latest | 2026-03-30 | d83dc82 | 12,222 B | A | view · diff |
| v2.0 | 2026-03-30 | 875ff50 | 12,135 B | A | view · diff |
| v2.0 | 2026-03-20 | b98b77e | 12,144 B | A | view · diff |
| v2.0 | 2026-03-20 | 191313a | 14,441 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (12222 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
impertio-studio/frappe_claude_skill_package · 202 stars · license a license file GitHub does not identify · pushed 2026-09-17 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_lsgqdorpxjbdbncr GET https://markdownregistry.com/api/v1/resolve?ref=impertio-studio/frappe_claude_skill_package/frappe-errors-serverscripts GET https://markdownregistry.com/api/v1/blob/8fae9ec94236e97f462612195c4742ce0fda6fe9b9a71f79cddf48bf26da509b
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.