Skip to content
Back to skills

Frappe Architect

ASecurity

Plan and design Frappe/ERPNext solutions before coding - choose custom app vs customization, DocType and data model design, app structure, dependencies, which extension mechanism to use. Use for new features, new apps, or "how should I build X" questions.

  • 10 stars
  • 0 votes
  • 1 copy
  • 2 views
  • Added November 24, 2026
ai-agents

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add irfanzahoor/frappe_core_skills --skill frappe-architect --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Frappe Architect?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Frappe Architect
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/irfanzahoor-frappe-architect/badge)](https://www.skillsdirectory.com/skills/irfanzahoor-frappe-architect)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: frappe-architect
description: Plan and design Frappe/ERPNext solutions before coding - choose custom app vs customization, DocType and data model design, app structure, dependencies, which extension mechanism to use. Use for new features, new apps, or "how should I build X" questions.
---

# Frappe Solution Design

Do this before writing code for any non-trivial feature. Give the user a short plan.

## 1. Customize or build?
| Situation | Choose |
|---|---|
| Fewer than about 10 extra fields on an existing DocType | Custom Fields (fixtures) |
| Small validation, UI-only access | Server Script (see frappe-server-scripts) |
| Real business logic, tests, version control | **Custom app** (default for teams) |
| Change behaviour of an ERPNext DocType | hooks: `doc_events`, or v16 `extend_doctype_class`. Override a class only as a last resort. |
| New business object | New DocType in the custom app |

Never modify ERPNext/Frappe source.

## 2. Data model
- One DocType per real-world thing. Link to existing data, don't copy it (no duplicate customer name fields
  except `fetch_from` read-only display).
- Child tables only for rows that live and die with the parent. Otherwise make a separate DocType + Link.
- Every DocType gets naming (`naming_series` / `autoname`), mandatory fields, permissions per role, and `track_changes` if auditable.
- Submittable (`is_submittable`) when the doc becomes final (orders, approvals).
- Single DocType for settings. Use Password fields for secrets.
- Add indexes (`search_index`) on fields used in filters/reports.

## 3. App structure
- `required_apps` in hooks.py lists dependencies (base apps first). No circular dependencies.
- Group by module (`modules.txt`). Keep shared helpers in `<app>/utils/`, and overrides in `<module>/overrides/`.
- Ship config as fixtures filtered by module: Custom Field, Property Setter, Workflow, Role, Notification.

## 4. Plan output (give this to the user)
1. Approach and why (app vs customization).
2. DocTypes/fields to add (name, key fields, links).
3. Logic locations (file per rule) and hooks used.
4. Permissions/roles.
5. Data migration (patches) if any.
6. Version notes (v14/v15/v16), then implement with frappe-core.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.