api-development

api-development is a skill for Claude Code, Codex from lubusIN/frappe-skills. It costs 41 tokens per session (1,576 once invoked), scanned A, original, MIT.

A skill for creating REST and RPC APIs in Frappe. REST APIs use standard web requests for data, while RPC endpoints expose custom actions; it also covers webhooks, authentication, permissions, and background jobs.

In plain words
What is it for?
Use it to expose DocType data, create custom actions, receive callbacks through webhooks, connect external systems, handle batch work, or define endpoint permissions and request formats.
Why use it?
It helps turn Frappe data and business rules into controlled interfaces for frontends and other software. It also provides patterns for deciding how requests should be authenticated and authorized.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to expose DocType data, create custom actions, receive callbacks through webhooks, connect external systems, handle batch work, or define endpoint permissions and request formats.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lubusin/frappe-skills/api-development
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lubusIN/frappe-skills --skill api-development
Clone the repo
git clone --depth 1 https://github.com/lubusIN/frappe-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/lubusin/frappe-skills/api-development/github.svg)](https://agentmods.dev/skills/lubusin/frappe-skills/api-development)
Your own site
<a href="https://agentmods.dev/skills/lubusin/frappe-skills/api-development"><img src="https://agentmods.dev/badge/skills/lubusin/frappe-skills/api-development/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/lubusin/frappe-skills/api-development"><img src="https://agentmods.dev/badge/skills/lubusin/frappe-skills/api-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,576 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 53
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01576
Opus 5.5 $0.00016 $0.00630
Sonnet 5.5 $0.00008 $0.00315
Haiku 4.5 $0.00004 $0.00158

Measured 2mo ago against content hash 6cb3c9433767, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

api-development/SKILL.md · 239 lines

How it starts

The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Frappe API Development

Build secure, well-designed APIs using Frappe's REST and RPC patterns.

When to use

  • Creating custom RPC endpoints (@frappe.whitelist)
  • Building REST API integrations
  • Implementing webhooks for external systems
  • Setting up API authentication (token, OAuth)
  • Exposing business logic to frontends

Inputs required

  • API purpose (CRUD, action, integration)
  • Authentication requirements (public, user, API key)
  • Permission requirements per endpoint
  • Request/response format expectations

Procedure

0) Choose API pattern

Need Pattern
DocType CRUD Use built-in REST API
Custom action RPC with @frappe.whitelist
External callback Webhook DocType
Batch operations Background job + status endpoint

1) Built-in REST API (DocType CRUD)

Frappe provides automatic REST endpoints for all DocTypes:

# Create
POST /api/resource/Customer
{"customer_name": "Acme Corp"}

# Read
GET /api/resource/Customer/CUST-001

# Update
PUT /api/resource/Customer/CUST-001
{"customer_name": "Acme Corporation"}

# Delete
DELETE /api/resource/Customer/CUST-001

# List with filters
GET /api/resource/Customer?filters=[["status","=","Active"]]

2) Custom RPC endpoints

Create whitelisted methods in your app:

# my_app/api.py
import frappe

@frappe.whitelist()
def process_order(order_id, action):
    """Process an order with the given action."""
    # Always verify permissions
    doc = frappe.get_doc("Sales Order", order_id)
    if not frappe.has_permission("Sales Order", "write", doc):
        frappe.throw("Not permitted", frappe.PermissionError)
    
    # Business logic
    if action == "approve":
        doc.status = "Approved"
        doc.save()
    
    return {"status": "success", "order": doc.name}

@frappe.whitelist(allow_guest=True)
def public_endpoint():
    """Public endpoint - no auth required."""
    return {"message": "Hello, World!"}

Call via:

POST /api/method/my_app.api.process_order
{"order_id": "SO-001", "action": "approve"}

Read the full file on GitHub · 239 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 239 lines · 41 tokens per session scan A 6cb3c9433767

Subscribe to this mod's changes

api-development is a skill published in the GitHub repository lubusIN/frappe-skills (68 stars, last pushed 2d ago), licensed MIT. It adds 41 tokens to every session and 1,576 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

api-development compared with skills from other repositories

api-development next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-developmentlubusIN/frappe-skillsSkill682d agoMITA41Claude Code, Codex
build-mcp-serveranthropics/claude-plugins-officialSkill46kyesterdayApache-2.0A111Claude Code
data-manager-api-setupgoogle/skillsSkill22kyesterdayApache-2.0A86Claude Code, Codex
vss-manage-video-io-storageNVIDIA-AI-Blueprints/video-search-and-summarizationSkill2.0kyesterdayApache-2.0A143Claude Code, Codex
workers-best-practicescloudflare/skillsSkill3.3kyesterdayApache-2.0A25Claude Code
vss-search-archiveNVIDIA-AI-Blueprints/video-search-and-summarizationSkill2.0kyesterdayApache-2.0A67Claude Code, Codex
newclacky-ai/openclackySkill1.2kyesterdayMITA10Claude Code