/frappe-apps-manager:frappe-rest-apifrom frappe-apps-manager
Builds and consumes Frappe REST APIs: auto CRUD on /api/resource, custom @frappe.whitelist endpoints, token/session/OAuth auth, file uploads, and response handling.
Ships in frappe-apps-manager. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Frappe exposes two API surfaces: auto CRUD over DocTypes, and custom RPC via whitelisted methods.
Cross-ref: frappe-api-handler (generating whitelisted methods), frappe-secure-endpoint (access control patterns).
| Surface | Route | Use |
|---|---|---|
| Auto CRUD | /api/resource/<DocType> | Standard list/read/create/update/delete |
| Custom RPC | /api/method/<dotted.path> | Whitelisted Python functions |
| File upload | /api/method/upload_file | Attach files to documents |
| Login | /api/method/login | Session cookie auth |
GET /api/resource/Sales Order # list
GET /api/resource/Sales Order/SO-0001 # one doc
POST /api/resource/Sales Order # create (JSON body)
PUT /api/resource/Sales Order/SO-0001 # update
DELETE /api/resource/Sales Order/SO-0001 # delete
# filters / fields / paging
GET /api/resource/Sales Order?filters=[["status","=","Draft"]]&fields=["name","customer"]&limit_page_length=20
# expand linked fields in list/read responses
GET /api/resource/Sales Order?expand=["customer"]
GET /api/resource/Sales Order/SO-0001?expand_links=True
# debug: returns executed SQL under exc in payload
GET /api/resource/Sales Order?debug=True
import frappe
@frappe.whitelist() # logged-in users
def order_summary(customer: str) -> dict:
frappe.has_permission("Sales Order", "read", throw=True)
rows = frappe.get_all("Sales Order",
filters={"customer": customer}, fields=["name", "grand_total"])
return {"count": len(rows), "rows": rows}
@frappe.whitelist(allow_guest=True) # public — validate everything yourself
def public_status(token: str): ...
Call: GET/POST /api/method/myapp.api.order_summary?customer=ACME.
# Token auth (server-to-server) — header on every call:
Authorization: token <api_key>:<api_secret>
# Generate per-user in: User → API Access → Generate Keys
curl -H "Authorization: token KEY:SECRET" \
"https://your-site.example.com/api/method/myapp.api.order_summary?customer=ACME"
Session auth (browser): login at /api/method/login → cookie sid + X-Frappe-CSRF-Token for writes.
OAuth: pass Authorization: Bearer <access_token> (see OAuth setup docs).
Remote methods: use GET when the method only reads; use POST when it mutates DB (framework auto-commits on successful POST).
curl -H "Authorization: token KEY:SECRET" \
-F "file=@/path/inv.pdf" -F "doctype=Sales Order" -F "docname=SO-0001" \
https://your-site.example.com/api/method/upload_file
{"message": <your return value>}.exc_type / _server_messages. Raise frappe.PermissionError,
frappe.ValidationError, frappe.DoesNotExistError to map to 403/417/404.allow_guest=True = the open internet; validate inputs, rate-limit, never trust the caller.Document objects.frappe.get_all (ignores user perms, fast) vs frappe.get_list (applies user perms) deliberately.fields/filters you don't validate from untrusted callers.Source: https://docs.frappe.io/framework/user/en/api/rest
Contributed from sbknext/forge-frappe-skill (MIT) — https://github.com/sbknext/forge-frappe-skill
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub vyogotech/frappe-apps-manager --plugin frappe-apps-manager90 skills in this plugin
/frappe-add-service-composeAdd a new microservice to dev-podman-compose.yml with proper configuration, dependencies, and networking./frappe-agent-debuggerUse when debugging Frappe errors, using bench console for live inspection, analyzing tracebacks, or reading Frappe log files. Prevents wasted debugging time from ignoring log context, misreading tracebacks, and not using bench console effectively. Covers bench console, frappe.logger, error log DocType, traceback analysis, common error patterns, log file locations, pdb/debugger integration, VS Code DAP, profiling, Frappe Recorder, mariadb diagnostics. Keywords: debug, bench console, traceback, error log, frappe.logger, pdb, debugging, log analysis, inspect, VS Code, DAP, profiling, recorder, mariadb, monitor, ERPNext error, how to debug, find the bug, what went wrong, stack trace, error message..
/frappe-agent-interpreterUse when receiving vague or unclear ERPNext/Frappe development requests that need interpretation. Transforms requirements like 'make invoice auto-calculate' or 'add approval workflow' into concrete technical specifications. Determines which Frappe mechanisms to use and maps to the full 61-skill catalog. Keywords: vague requirement, clarify scope, translate business need, technical spec, implementation plan, what does this mean, unclear requirement, translate to code, how to build this.
Other plugins' skills for the same job