How lubusin/frappe-skills works
Purpose and Distribution
This repository is a framework-knowledge package for AI coding assistants working on Frappe. It is not a runnable Frappe application: its primary deliverable is structured Markdown skill instructions, installed through the Skills CLI or copied into an assistant’s skill directory. Repository-level orientation and installation are in README.md.
Routing and Task Intake
The task-selection layer directs an assistant from a user request to the appropriate specialized procedure. router/SKILL.md is the primary routing entry point; project-triage/SKILL.md establishes project type, installed Frappe apps, framework version, and available tooling before implementation-oriented skills are applied.
Core Frappe Development Guidance
The main backend-development domains are separated into focused skills:
• Application scaffolding, hooks, services, jobs, and integrations: app-development/SKILL.md
• Schema/model and lifecycle-controller work around Frappe DocTypes: doctype-development/SKILL.md
• REST/RPC endpoints, authentication, permissions, rate limits, and webhooks: api-development/SKILL.md
• Production-grade workflows, queues, SLAs, integrations, and authorization patterns: enterprise-patterns/SKILL.md
Each skill is a procedural front door, with detailed constraints moved to its local references/ content.
UI, Data Presentation, and Document Output
A separate presentation layer covers Frappe Desk customization, external frontends, reports, forms, and rendered documents. Key boundaries are Desk-side JavaScript APIs (desk-customization/SKILL.md), Vue 3/Frappe UI frontend work (frontend-development/SKILL.md), reporting (reports/SKILL.md), and Jinja/print rendering (printing-templates/SKILL.md). Public data-capture workflows are handled independently in web-forms/SKILL.md.
Reference-Driven Execution Model
The control flow is: select skill → gather declared inputs → follow its procedure → consult topical references when needed → run the skill’s verification and handle documented failure modes. For example, API work expands from api-development/SKILL.md into api-development/references/authentication.md, api-development/references/permissions.md, and api-development/references/webhooks.md; DocType work similarly expands through doctype-development/references/controllers.md and doctype-development/references/doctypes.md.
Runtime and Infrastructure Boundaries
The guidance targets the Frappe ecosystem, including Python server-side code, Frappe Desk/browser JavaScript, Vue 3 via Frappe UI, and Jinja templating. Operational guidance is encapsulated in frappe-manager/SKILL.md, including Bench, Docker-based environments, command workflows, and SSL material under frappe-manager/references/. Testing guidance spans unit/integration/UI approaches in testing/SKILL.md.
Embedded Reference Implementation
The repository includes a compact illustrative Frappe app rather than production runtime code. app-development/assets/mini-app-template/your_app/hooks.py represents app integration points; app-development/assets/mini-app-template/your_app/doctype/ demonstrates DocType assets and controllers; app-development/assets/mini-app-template/your_app/services/sample_service.py and background_jobs/sample_job.py show service and asynchronous-job boundaries. This template anchors the documented app architecture in concrete expected file layouts.
Main entry points: router/SKILL.md Skill router · app-development/SKILL.md App development · project-triage/SKILL.md Project triage · doctype-development/SKILL.md DocType development
Components 20
Task Intake
- Skill router · Primary entry point for selecting a procedure.
router/SKILL.md - Project triage · Establishes project type, apps, Frappe version, and tooling.
project-triage/SKILL.md
Development Skills
- App development · Covers scaffolding, hooks, services, jobs, and integrations.
app-development/SKILL.md - DocType development · Covers schema and lifecycle controllers.
doctype-development/SKILL.md - API development · Covers REST/RPC, auth, permissions, limits, and webhooks.
api-development/SKILL.md - Enterprise patterns · Covers queues, SLAs, integrations, and authorization.
enterprise-patterns/SKILL.md - API references · Authentication, permissions, and webhook constraints.
api-development/references/authentication.md - DocType references · Controller and DocType implementation constraints.
doctype-development/references/controllers.md
Presentation Skills
- Desk customization · Covers Desk-side JavaScript APIs.
desk-customization/SKILL.md - Frontend development · Covers Vue 3 and Frappe UI.
frontend-development/SKILL.md - Reports
reports/SKILL.md - Print templates · Covers Jinja and print rendering.
printing-templates/SKILL.md - Web forms · Covers public data-capture workflows.
web-forms/SKILL.md
Operations & Quality
- Frappe manager · Covers Bench, Docker, commands, and SSL operations.
frappe-manager/SKILL.md - Testing · Covers unit, integration, and UI testing.
testing/SKILL.md
Reference App Template
Illustrative Frappe app layout embedded with app-development guidance.
- App hooks · Concrete app integration points.
app-development/assets/mini-app-template/your_app/hooks.py - DocType assets · Example DocType assets and controllers.
- Sample service · Example service boundary.
app-development/assets/mini-app-template/your_app/services/sample_service.py - Sample background job · Example asynchronous-job boundary.
app-development/assets/mini-app-template/your_app/background_jobs/sample_job.py
Other components
- Repository orientation · Explains installation through Skills CLI or skill-directory copy.
README.md
Connections 19
- Repository orientation → Skill router: installs and starts with
- Skill router → Project triage: triages implementation work
- Project triage → App development: routes backend tasks
- Project triage → DocType development: routes model tasks
- Project triage → API development: routes API tasks
- Skill router → Desk customization: routes UI tasks
- Skill router → Frontend development: routes frontend tasks
- Skill router → Reports: routes reporting tasks
- Skill router → Print templates: routes document-output tasks
- Skill router → Web forms: routes public-form tasks
- API development → API references: consults
- DocType development → DocType references: consults
- App development → App hooks: anchors in example
- App development → Sample service: anchors in example
- App development → Sample background job: anchors in example
- DocType development → DocType assets: anchors in example
- App development → Enterprise patterns: extends with production patterns
- Frappe manager → Testing: supports verification workflows
- Testing → App development: verifies implementation