Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

frappe-doctype-builder

БесплатноБез исполняемых скриптовНе проверен

Build Frappe DocTypes with fields, permissions, and naming configurations. Use this skill when creating or modifying DocType structures.

Venkateshvenki404224от Venkateshvenki404224★ 29 звёзд на GitHub14 установок в других каталогах

Об этом скилле

Frappe DocType Builder Skill

Build complete DocType definitions with proper field types, permissions, and configurations.

Global Rules

These Frappe conventions apply to everything this skill generates, and override any conflicting example below.

  • Bench commands: use bare bench (never ./env/bin/bench or a full path). Always pass --site <site> explicitly — never run a bare bench migrate / bench run-tests. Run bench start in the background and only if it isn't already running. Don't run discovery commands (which bench, bench --version).
  • DocType files live at apps/<app>/<app>/<module>/doctype/<name>/<name>.json — the app name appears twice (directory + Python package) — with an empty __init__.py alongside. Never mkdir the folder; write the JSON and run bench --site <site> migrate to create the structure. Don't add creation, modified, owner, modified_by, or docstatus as fields — Frappe manages them.
  • Database & ORM: prefer frappe.qb.get_query() over raw frappe.db.sql(). Use frappe.db.get_all() for server logic (ignores permissions) and frappe.db.get_list() for user-facing APIs (enforces them). Never use frappe.db.set_value() on a field with validation or lifecycle logic — load the doc and doc.save() so controller hooks run. Batch-fetch related records; never query inside a loop (N+1).
  • Never call frappe.db.commit() in controllers, request handlers, background jobs, or patches — Frappe auto-commits on success and rolls back on uncaught errors. Flush manually only to make a write visible to a subsequent frappe.enqueue() (or pass enqueue_after_commit=True).
  • Permissions & APIs: put permission checks inside controller methods (enforced on every call path), not in API wrappers. Type-hint every @frappe.whitelist() parameter so Frappe validates and casts it, and pass methods=[...] to pin the HTTP verb.

Upstream data-model planning (which DocTypes to create, how they relate, reuse vs extend) is done by the frappe-doctype-architect skill; this skill emits the JSON from that plan.

When to Use This Skill

Claude should invoke this skill when:

  • User wants to create a new DocType
  • User needs to add fields to an existing DocType
  • User asks about DocType structure or design
  • User wants to modify DocType properties
  • User needs help with DocType JSON schema

Capabilities

1. DocType JSON Generation

Create complete DocType JSON files with:

  • Metadata (name, module, naming, permissions)
  • Fields with proper types and options
  • Permissions for different roles
  • Form layout and sections
  • Naming series configuration

2. Field Type Expertise

Support all Frappe field types:

  • Data: Short text fields
  • Text: Long text with editor options
  • Int: Integer numbers
  • Float: Decimal numbers
  • Currency: Money values
  • Date: Date picker
  • Datetime: Date and time
  • Time: Time picker
  • Link: Reference to another DocType
  • Select: Dropdown with options
  • Check: Boolean checkbox
  • Table: Child table
  • Attach: File upload
  • Attach Image: Image upload with preview
  • Signature: Signature capture
  • HTML: Custom HTML content
  • Markdown Editor: Markdown content
  • Code: Code editor with syntax highlighting
  • Dynamic Link: Polymorphic references
  • Rating: Star rating
  • Color: Color picker
  • Geolocation: GPS coordinates

3. DocType Patterns

Master DocType:

{
  "name": "Customer",
  "module": "CRM",
  "autoname": "naming_series:",
  "naming_rule": "By naming series",
  "track_changes": 1,
  "is_submittable": 0
}

Transaction DocType:

{
  "name": "Sales Order",
  "module": "Selling",
  "is_submittable": 1,
  "autoname": "naming_series:",
  "track_changes": 1
}

A submittable DocType (is_submittable: 1) automatically gets a docstatus field — 0 Draft, 1 Submitted, 2 Cancelled. Do not declare docstatus as a field.

Child Table:

{
  "name": "Sales Order Item",
  "module": "Selling",
  "istable": 1,
  "editable_grid": 1
}

A child DocType needs "istable": 1 and an empty __init__.py in its folder; it carries no permissions block (it inherits the parent's).

Settings DocType:

{
  "name": "System Settings",
  "module": "Core",
  "issingle": 1
}

4. Common Field Patterns

Naming Series field (pairs with autoname: "naming_series:"):

{
  "fieldname": "naming_series",
  "fieldtype": "Select",
  "label": "Naming Series",
  "options": "CUST-.YYYY.-\nCUST-",
  "reqd": 1
}

Naming strategies

Pick exactly one. Do not conflate naming series with an expression — they are distinct mechanisms.

  • Naming series — autoname: "naming_series:" plus a naming_series Select field whose options use the dotted series syntax (CUST-.YYYY.-). User-configurable per document.
  • Field (natural key) — autoname: "field:fieldname". The document name is taken from that fie
Полный SKILL.md на GitHub

Установить frappe-doctype-builder в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл frappe-doctype-builder?

Build Frappe DocTypes with fields, permissions, and naming configurations. Use this skill when creating or modifying DocType structures.

Как установить скилл frappe-doctype-builder?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл frappe-doctype-builder запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить frappe-doctype-builder с