openaec-foundation/frappe_claude_skill_package/frappe-impl-customapp
Claude Code and agent skill by openaec-foundation/frappe_claude_skill_package
- community
Checking that the SKILL.md file is still in the repository.
Use when building a custom Frappe app from scratch. Covers bench new-app walkthrough, app structure decisions, adding DocTypes, hooks, patches, fixtures management, development workflow (bench migrate, build, clear-cache), testing, packaging, installing on another site, version management, and app dependencies for v14/v15/v16. Keywords: create custom app, new frappe app, bench new-app, app structure, module creation, doctype creation, fixtures, patches, deployment, packaging, data migration, patch file, patches.txt, migrate data between DocTypes, create new app from scratch.
Install
npx vskill@latest install openaec-foundation/frappe_claude_skill_package/frappe-impl-customappSKILL.md
The same SKILL.md was published earlier as openaec-foundation/frappe_claude_skill_package/frappe-impl-customapp.
Frappe Custom App - Implementation
Workflow for building a custom Frappe app from scratch. For exact syntax, see frappe-syntax-customapp.
Version: v14/v15/v16 compatible
Main Decision: Do You Need a Custom App?
Rule: ALWAYS start with the simplest solution. Server Scripts + Custom Fields solve 70% of needs without a custom app.
Step 1: Create App Structure
ALWAYS verify immediately:
Step 2: Configure pyproject.toml (v15+)
Rule: NEVER put frappe or erpnext in [project].dependencies -- they are NOT on PyPI.
Step 3: Configure hooks.py
Rule: ALWAYS declare required_apps with all dependencies.
Step 4: Define Modules
| App Size | Module Strategy | |
|---|---|---|
| 1-5 DocTypes | ONE module with app name | |
| 6-15 DocTypes | 2-4 modules by functional area | |
| 15+ DocTypes | Modules by business domain |
Rule: Each DocType belongs to EXACTLY one module. Module name in modules.txt maps to directory: My Custom App --> my_custom_app/.
Adding a Module
Step 5: Install and Create DocTypes
This creates:
Step 6: Add Hooks
doc_events (v14/v15/v16)
extend_doctype_class (v16 ONLY -- preferred)
Rule: ALWAYS call super().method() when overriding lifecycle methods in v16.
Scheduler Events
See frappe-impl-hooks and frappe-impl-scheduler for complete patterns.
Step 7: Add Patches
Create Patch File
Register in patches.txt
Rules:
- ALWAYS check if patch is needed (guard clause)
- ALWAYS batch process 1000+ records
- ALWAYS commit after each batch
- NEVER run untested patches on production
Step 8: Fixtures Management
Configure in hooks.py
Export and Verify
Rules:
- ALWAYS filter fixtures to YOUR app's customizations
- NEVER include transactional data (invoices, orders)
- NEVER export without filters for shared DocTypes (Custom Field, Workflow)
- Fixtures auto-import during
bench migrate
Step 9: Development Workflow
Essential Commands
Development Cycle
Step 10: Testing the App
See frappe-testing-unit for writing test cases.
Step 11: Packaging for Distribution
Via Git (standard method)
Install on Another Site
Version Management
| Change Type | Version Bump | Example | |
|---|---|---|---|
| Breaking changes | MAJOR | 1.x -> 2.0.0 | |
| New features | MINOR | 1.1.x -> 1.2.0 | |
| Bug fixes | PATCH | 1.2.0 -> 1.2.1 |
Step 12: App Dependencies
Frappe/ERPNext Dependencies
Python Package Dependencies
Rule: NEVER create circular dependencies between apps.
Version-Specific Considerations
| Aspect | v14 | v15 | v16 | |
|---|---|---|---|---|
| Build config | setup.py | pyproject.toml | pyproject.toml | |
| DocType extension | doc_events | doc_events | extend_doctype_class preferred | |
| Python minimum | 3.10 | 3.10 | 3.11 | |
| Patch format | INI sections | INI sections | INI sections |
v16 Breaking Changes to Know
extend_doctype_classhook: Cleaner extension via mixins- Data masking: Field-level privacy configuration
- UUID naming: New naming rule option
- Chrome PDF: wkhtmltopdf deprecated
Critical Rules Summary
ALWAYS
- Start with
bench new-app- NEVER create structure manually - Define
__version__in__init__.py - Use
dynamic = ["version"]in pyproject.toml - Test patches on database copy before production
- Filter fixtures to your app's customizations only
- Version your patches (v1_0, v2_0 directories)
- Test installation on a fresh site
NEVER
- Put frappe/erpnext in
[project].dependencies - Include transactional data in fixtures
- Hardcode site-specific values (use settings DocTypes)
- Skip
frappe.db.commit()in large patches - Delete fields without backup patch
- Modify core ERPNext files directly
Reference Files
| File | Contents | |
|---|---|---|
| workflows.md | 8 step-by-step implementation guides | |
| decision-tree.md | Complete decision flowcharts | |
| examples.md | 5 complete working app examples | |
| anti-patterns.md | Common mistakes to avoid |
See Also
frappe-syntax-customapp- Exact syntax referencefrappe-syntax-hooks- Hooks configuration syntaxfrappe-impl-hooks- Hook implementation patternsfrappe-core-database- Database operations for patchesfrappe-impl-scheduler- Scheduled task implementationfrappe-ops-bench- Bench commands referencefrappe-ops-app-lifecycle- App versioning and release managementfrappe-testing-unit- Writing tests for your appfrappe-testing-cicd- CI/CD pipeline for app testing
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/source/impl/frappe-impl-customapp/SKILL.md
Popularity
- Repository stars
- 91
- Repository forks
- 26
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/openaec-foundation/frappe_claude_skill_package/frappe-impl-customapp)