skills/source/agents/frappe-agent-interpreter/SKILL.md
Use when receiving vague or unclear ERPNext/Frappe development requests that need interpretation. Transforms requirements like 'make invoice auto-calculate' or 'add approval workflow' into concrete technical specifications. Determines which Frappe mechanisms to use and maps to the full 61-skill catalog. Keywords: vague requirement, clarify scope, translate business need, technical spec, implementation plan, what does this mean, unclear requirement, translate to code, how to build this.
npx skillsauth add OpenAEC-Foundation/ERPNext_Anthropic_Claude_Development_Skill_Package frappe-agent-interpreterInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Transforms vague or incomplete Frappe/ERPNext development requests into clear, actionable technical specifications mapped to the full 61-skill catalog.
Purpose: Bridge the gap between "what the user wants" and "what needs to be built"
USER REQUEST ANALYSIS
|
+-- Request is vague/incomplete
| "Make the invoice do something when submitted"
| --> USE THIS AGENT
|
+-- Request lacks technical specifics
| "Add approval before order confirmation"
| --> USE THIS AGENT
|
+-- Multiple implementation paths possible
| "Automate inventory updates"
| --> USE THIS AGENT
|
+-- Request has clear technical specs already
| "Create Server Script on validate for Sales Invoice"
| --> Skip agent, use relevant frappe-* skills directly
STEP 1: EXTRACT INTENT
- What is the business problem?
- What should happen? When? To what data?
- Who should be affected (roles/users)?
STEP 2: IDENTIFY TRIGGER CONTEXT
- Document lifecycle event? (save/submit/cancel)
- User action? (button click, field change)
- Time-based? (daily, hourly, cron)
- External event? (webhook, API call)
STEP 3: DETERMINE MECHANISM
- Client Script, Server Script, or Controller?
- Hooks configuration needed?
- Custom app required?
- v16 extend_doctype_class applicable?
STEP 4: GENERATE SPECIFICATION
- DocType(s), event/trigger, mechanism, data flow
- Error handling requirements
- Version compatibility (v14/v15/v16)
STEP 5: MAP TO SKILLS
- List required frappe-* skills from full catalog
- Note dependencies between skills
See references/workflow.md for detailed steps.
| Requirement Pattern | Mechanism | Custom App? | |---------------------|-----------|:-----------:| | "Auto-calculate on form" | Client Script + Server Script | No | | "Validate before save" | Server Script (validate) | No | | "Send notification after submit" | Server Script (on_submit) | No | | "Add button to form" | Client Script | No | | "Scheduled report/sync" | hooks.py scheduler_events | Yes | | "Filter list per user" | Server Script (Permission Query) | No | | "Custom REST API" | Server Script (API) or @frappe.whitelist() | Depends | | "Complex transaction with rollback" | Controller | Yes | | "External library needed (requests)" | Controller | Yes | | "Approval workflow" | Built-in Workflow + optional Server Script | No | | "Print format customization" | Jinja template (Print Format) | No | | "Custom report" | Script Report or Query Report | Depends | | "Background processing" | frappe.enqueue() | Yes | | "File upload handling" | Controller + File hooks | Yes | | "Cache invalidation" | Cache API + hooks | Yes | | "Website/portal page" | Web template + routing | Yes | | "UI component (dashboard, etc.)" | Page or Custom Page | Yes |
extend_doctype_class (v16) or need doc_events (v14+)?ALWAYS generate specifications in this format:
## Technical Specification
### Summary
[One sentence describing what will be built]
### Business Requirement
[Original user request, clarified]
### Implementation
| Aspect | Value |
|--------|-------|
| **DocType(s)** | [List] |
| **Trigger** | [Event/action] |
| **Mechanism** | [Client Script / Server Script / Controller / etc.] |
| **Version** | [v14 / v15 / v16 / all] |
### Data Flow
1. [Step 1]
2. [Step 2]
### Error Handling
[Strategy]
### Required Skills
- [ ] frappe-skill-name - for [purpose]
### Validation Criteria
[How to verify it works]
| Skill | Use For |
|-------|---------|
| frappe-syntax-clientscripts | Client Script JS syntax |
| frappe-syntax-serverscripts | Server Script Python sandbox syntax |
| frappe-syntax-controllers | Controller class syntax |
| frappe-syntax-hooks | hooks.py configuration syntax |
| frappe-syntax-hooks-events | Document event hook syntax |
| frappe-syntax-whitelisted | @frappe.whitelist() syntax |
| frappe-syntax-jinja | Jinja template syntax |
| frappe-syntax-scheduler | Scheduler/enqueue syntax |
| frappe-syntax-customapp | App structure syntax |
| frappe-syntax-doctypes | DocType JSON definition syntax |
| frappe-syntax-reports | Report definition syntax |
| Skill | Use For |
|-------|---------|
| frappe-core-database | Database operations, ORM, raw SQL |
| frappe-core-permissions | Permission system, roles, rules |
| frappe-core-api | REST API, resource API |
| frappe-core-workflow | Workflow engine, states, transitions |
| frappe-core-notifications | Email, push, system notifications |
| frappe-core-files | File upload, attachment, storage |
| frappe-core-cache | Redis cache, cache invalidation |
| Skill | Use For |
|-------|---------|
| frappe-impl-clientscripts | Client Script implementation patterns |
| frappe-impl-serverscripts | Server Script implementation patterns |
| frappe-impl-controllers | Controller implementation patterns |
| frappe-impl-hooks | Hook implementation patterns |
| frappe-impl-whitelisted | Whitelisted method patterns |
| frappe-impl-jinja | Jinja template patterns |
| frappe-impl-scheduler | Scheduled task/background job patterns |
| frappe-impl-customapp | Custom app development workflow |
| frappe-impl-reports | Report building patterns |
| frappe-impl-workflow | Workflow implementation patterns |
| frappe-impl-website | Website/portal development |
| frappe-impl-ui-components | UI component patterns |
| frappe-impl-integrations | External system integration |
| Skill | Use For |
|-------|---------|
| frappe-errors-clientscripts | Client Script error patterns |
| frappe-errors-serverscripts | Server Script error patterns |
| frappe-errors-controllers | Controller error patterns |
| frappe-errors-hooks | Hook error patterns |
| frappe-errors-api | API error patterns |
| frappe-errors-permissions | Permission error patterns |
| frappe-errors-database | Database error patterns |
| Skill | Use For |
|-------|---------|
| frappe-ops-bench | Bench CLI commands |
| frappe-ops-deployment | Production deployment |
| frappe-ops-backup | Backup and restore |
| frappe-ops-performance | Performance tuning |
| frappe-ops-upgrades | Version upgrade procedures |
| frappe-ops-cloud | Cloud hosting (FC, AWS, etc.) |
| frappe-ops-app-lifecycle | App versioning and releases |
| frappe-ops-frontend-build | Frontend asset building |
| Skill | Use For |
|-------|---------|
| frappe-testing-unit | Unit and integration tests |
| frappe-testing-cicd | CI/CD pipeline setup |
| Skill | Use For |
|-------|---------|
| frappe-agent-interpreter | THIS SKILL - requirement interpretation |
| frappe-agent-validator | Code validation before deployment |
| frappe-agent-debugger | Debugging Frappe issues |
| frappe-agent-migrator | Data migration planning |
| frappe-agent-architect | Architecture decision-making |
| Mechanism | Required Skills |
|-----------|----------------|
| Client Script | frappe-syntax-clientscripts, frappe-impl-clientscripts, frappe-errors-clientscripts |
| Server Script (Doc Event) | frappe-syntax-serverscripts, frappe-impl-serverscripts, frappe-errors-serverscripts |
| Server Script (API) | frappe-syntax-serverscripts, frappe-core-api, frappe-errors-api |
| Server Script (Scheduler) | frappe-syntax-serverscripts, frappe-syntax-scheduler, frappe-impl-scheduler |
| Server Script (Permission) | frappe-syntax-serverscripts, frappe-core-permissions, frappe-errors-permissions |
| Controller | frappe-syntax-controllers, frappe-impl-controllers, frappe-errors-controllers |
| Hooks | frappe-syntax-hooks, frappe-impl-hooks, frappe-errors-hooks |
| Custom App | frappe-syntax-customapp, frappe-impl-customapp, frappe-ops-bench |
| Jinja Template | frappe-syntax-jinja, frappe-impl-jinja |
| Database Operations | frappe-core-database, frappe-errors-database |
| Whitelisted Method | frappe-syntax-whitelisted, frappe-impl-whitelisted |
| Workflow | frappe-core-workflow, frappe-impl-workflow |
| Reports | frappe-syntax-reports, frappe-impl-reports |
| Website/Portal | frappe-impl-website, frappe-syntax-jinja |
| Integration | frappe-impl-integrations, frappe-impl-customapp |
| Background Jobs | frappe-impl-scheduler, frappe-syntax-scheduler |
| Testing | frappe-testing-unit, frappe-testing-cicd |
| Deployment | frappe-ops-deployment, frappe-ops-bench |
| User Phrase | Mechanism | Key Skills |
|-------------|-----------|------------|
| "auto-calculate", "automatically fill" | Client Script + Server Script | frappe-impl-clientscripts, frappe-impl-serverscripts |
| "validate", "check before save" | Server Script (validate) | frappe-impl-serverscripts |
| "prevent", "block", "don't allow" | Server Script + frappe.throw() | frappe-errors-serverscripts |
| "send email", "notify" | Server Script or Notification | frappe-core-notifications |
| "sync", "integrate", "API" | Controller (custom app) | frappe-impl-integrations |
| "every day", "schedule" | Scheduler or hooks.py | frappe-impl-scheduler |
| "only see their own" | Permission Query | frappe-core-permissions |
| "approval", "authorize" | Built-in Workflow | frappe-core-workflow, frappe-impl-workflow |
| "add button", "custom action" | Client Script | frappe-impl-clientscripts |
| "print format", "PDF" | Jinja Template | frappe-impl-jinja |
| "report", "dashboard" | Script/Query Report | frappe-impl-reports |
| "deploy", "go live" | Deployment workflow | frappe-ops-deployment |
| "test", "CI" | Testing framework | frappe-testing-unit |
| "cache", "performance" | Cache + optimization | frappe-core-cache, frappe-ops-performance |
ALWAYS consider version compatibility:
| Feature | v14 | v15 | v16 |
|---------|:---:|:---:|:---:|
| Server Script sandbox | Yes | Yes | Yes |
| extend_doctype_class | No | No | Yes |
| Chrome PDF rendering | No | No | Yes |
| Data masking | No | No | Yes |
| UUID naming rule | No | No | Yes |
| Type annotations (best practice) | No | No | Yes |
| Scheduler tick (seconds) | 240 | 60 | 60 |
| job_id dedup | No | Yes | Yes |
Before completing interpretation, ALWAYS verify:
See references/checklists.md for detailed checklists. See references/examples.md for interpretation examples.
tools
Use when implementing OAuth providers, Connected Apps, Webhooks, Payment Gateways, or Data Import/Export in Frappe. Prevents authentication failures from wrong OAuth flow, missed webhook deliveries, and data corruption during bulk imports. Covers OAuth2 provider/client, Connected App DocType, Webhook DocType, Payment Gateway integration, Data Import, Data Export, frappe.integrations module. Keywords: OAuth, Connected App, Webhook, Payment Gateway, Data Import, Data Export, integration, API key, OAuth2, webhook trigger, connect to external service, OAuth setup, webhook configuration, import data, export data..
development
Use when implementing hooks.py configurations in a Frappe custom app. Covers step-by-step workflows for doc_events, scheduler_events, override/extend_doctype_class, permission hooks, extend_bootinfo, fixtures, asset injection, website hooks, and doctype_js. Prevents broken transactions, missed migrations, and multi-app conflicts. Keywords: hooks.py, doc_events, scheduler_events, override doctype,, how to add hook, when to use doc_events, scheduler setup, override existing behavior. extend doctype class, permission hook, scheduler job, fixtures, doctype_js, extend_bootinfo, website hooks.
development
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.
development
Use when building Document Controllers in a custom Frappe app: file creation, lifecycle hooks, validation, autoname, submittable workflows, controller override, child table controllers, flags system, migration from hooks.py and Server Scripts. Keywords: how to implement controller, which hook to use, validate vs on_update, override controller, submittable document, autoname, flags, extend_doctype_class, controller testing, child table controller, which hook to use, when does validate run, how to override save, document lifecycle.