Frappe Agent Interpreter 标志

Frappe Agent Interpreter

组织
Impertio-Studio
frappe-agent-interpreter

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.

概览

发布者Impertio-Studio
代码仓库Frappe_Claude_Skill_Package
技能名称frappe-agent-interpreter
星标数
180
复刻数
53
附带文件
3
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 3 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Impertio-Studio 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Frappe Agent Interpreter AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Impertio-Studio/Frappe_Claude_Skill_Package/tree/main/skills/source/agents/frappe-agent-interpreter
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Impertio-Studio/Frappe_Claude_Skill_Package.git /tmp/Frappe_Claude_Skill_Package
mkdir -p .claude/skills
cp -r /tmp/Frappe_Claude_Skill_Package/skills/source/agents/frappe-agent-interpreter .claude/skills/frappe-agent-interpreter
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Frappe Agent Interpreter,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Frappe Agent Interpreter。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Frappe Agent Interpreter 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Frappe Code Interpreter Agent

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"

When to Use This Agent

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

Interpretation Workflow

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.

Mechanism Selection Matrix

Requirement PatternMechanismCustom App?
"Auto-calculate on form"Client Script + Server ScriptNo
"Validate before save"Server Script (validate)No
"Send notification after submit"Server Script (on_submit)No
"Add button to form"Client ScriptNo
"Scheduled report/sync"hooks.py scheduler_eventsYes
"Filter list per user"Server Script (Permission Query)No
"Custom REST API"Server Script (API) or @frappe.whitelist()Depends
"Complex transaction with rollback"ControllerYes
"External library needed (requests)"ControllerYes
"Approval workflow"Built-in Workflow + optional Server ScriptNo
"Print format customization"Jinja template (Print Format)No
"Custom report"Script Report or Query ReportDepends
"Background processing"frappe.enqueue()Yes
"File upload handling"Controller + File hooksYes
"Cache invalidation"Cache API + hooksYes
"Website/portal page"Web template + routingYes
"UI component (dashboard, etc.)"Page or Custom PageYes

Clarifying Questions Framework

1. WHAT Questions

  • What DocType(s) are involved?
  • What data needs to change?
  • What should the outcome be?

2. WHEN Questions

  • On form load? On field change? Before/after save?
  • Before/after submit? On a schedule? Button click?

3. WHO Questions

  • All users? Specific roles? Document owner only?

4. WHERE Questions

  • In the form (UI)? Database only? Report? External system?

5. ERROR Questions

  • Block the operation? Show warning? Log silently?

6. VERSION Questions (v16 considerations)

  • Target single version or multi-version compatibility?
  • Can we use extend_doctype_class (v16) or need doc_events (v14+)?
  • Type annotations desired? (v16 best practice)

Output Specification Template

ALWAYS generate specifications in this format:

markdown
## 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]

Complete Skill Catalog (61 skills)

Syntax Layer (11 skills)

SkillUse For
frappe-syntax-clientscriptsClient Script JS syntax
frappe-syntax-serverscriptsServer Script Python sandbox syntax
frappe-syntax-controllersController class syntax
frappe-syntax-hookshooks.py configuration syntax
frappe-syntax-hooks-eventsDocument event hook syntax
frappe-syntax-whitelisted@frappe.whitelist() syntax
frappe-syntax-jinjaJinja template syntax
frappe-syntax-schedulerScheduler/enqueue syntax
frappe-syntax-customappApp structure syntax
frappe-syntax-doctypesDocType JSON definition syntax
frappe-syntax-reportsReport definition syntax

Core Layer (7 skills)

SkillUse For
frappe-core-databaseDatabase operations, ORM, raw SQL
frappe-core-permissionsPermission system, roles, rules
frappe-core-apiREST API, resource API
frappe-core-workflowWorkflow engine, states, transitions
frappe-core-notificationsEmail, push, system notifications
frappe-core-filesFile upload, attachment, storage
frappe-core-cacheRedis cache, cache invalidation

Implementation Layer (12 skills)

SkillUse For
frappe-impl-clientscriptsClient Script implementation patterns
frappe-impl-serverscriptsServer Script implementation patterns
frappe-impl-controllersController implementation patterns
frappe-impl-hooksHook implementation patterns
frappe-impl-whitelistedWhitelisted method patterns
frappe-impl-jinjaJinja template patterns
frappe-impl-schedulerScheduled task/background job patterns
frappe-impl-customappCustom app development workflow
frappe-impl-reportsReport building patterns
frappe-impl-workflowWorkflow implementation patterns
frappe-impl-websiteWebsite/portal development
frappe-impl-ui-componentsUI component patterns
frappe-impl-integrationsExternal system integration

Error Layer (7 skills)

SkillUse For
frappe-errors-clientscriptsClient Script error patterns
frappe-errors-serverscriptsServer Script error patterns
frappe-errors-controllersController error patterns
frappe-errors-hooksHook error patterns
frappe-errors-apiAPI error patterns
frappe-errors-permissionsPermission error patterns
frappe-errors-databaseDatabase error patterns

Ops Layer (8 skills)

SkillUse For
frappe-ops-benchBench CLI commands
frappe-ops-deploymentProduction deployment
frappe-ops-backupBackup and restore
frappe-ops-performancePerformance tuning
frappe-ops-upgradesVersion upgrade procedures
frappe-ops-cloudCloud hosting (FC, AWS, etc.)
frappe-ops-app-lifecycleApp versioning and releases
frappe-ops-frontend-buildFrontend asset building

Testing Layer (2 skills)

SkillUse For
frappe-testing-unitUnit and integration tests
frappe-testing-cicdCI/CD pipeline setup

Agent Layer (5 skills)

SkillUse For
frappe-agent-interpreterTHIS SKILL - requirement interpretation
frappe-agent-validatorCode validation before deployment
frappe-agent-debuggerDebugging Frappe issues
frappe-agent-migratorData migration planning
frappe-agent-architectArchitecture decision-making

Skill Dependencies Map

MechanismRequired Skills
Client Scriptfrappe-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
Controllerfrappe-syntax-controllers, frappe-impl-controllers, frappe-errors-controllers
Hooksfrappe-syntax-hooks, frappe-impl-hooks, frappe-errors-hooks
Custom Appfrappe-syntax-customapp, frappe-impl-customapp, frappe-ops-bench
Jinja Templatefrappe-syntax-jinja, frappe-impl-jinja
Database Operationsfrappe-core-database, frappe-errors-database
Whitelisted Methodfrappe-syntax-whitelisted, frappe-impl-whitelisted
Workflowfrappe-core-workflow, frappe-impl-workflow
Reportsfrappe-syntax-reports, frappe-impl-reports
Website/Portalfrappe-impl-website, frappe-syntax-jinja
Integrationfrappe-impl-integrations, frappe-impl-customapp
Background Jobsfrappe-impl-scheduler, frappe-syntax-scheduler
Testingfrappe-testing-unit, frappe-testing-cicd
Deploymentfrappe-ops-deployment, frappe-ops-bench

Common Pattern Recognition

User PhraseMechanismKey Skills
"auto-calculate", "automatically fill"Client Script + Server Scriptfrappe-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 Notificationfrappe-core-notifications
"sync", "integrate", "API"Controller (custom app)frappe-impl-integrations
"every day", "schedule"Scheduler or hooks.pyfrappe-impl-scheduler
"only see their own"Permission Queryfrappe-core-permissions
"approval", "authorize"Built-in Workflowfrappe-core-workflow, frappe-impl-workflow
"add button", "custom action"Client Scriptfrappe-impl-clientscripts
"print format", "PDF"Jinja Templatefrappe-impl-jinja
"report", "dashboard"Script/Query Reportfrappe-impl-reports
"deploy", "go live"Deployment workflowfrappe-ops-deployment
"test", "CI"Testing frameworkfrappe-testing-unit
"cache", "performance"Cache + optimizationfrappe-core-cache, frappe-ops-performance

Version Awareness

ALWAYS consider version compatibility:

Featurev14v15v16
Server Script sandboxYesYesYes
extend_doctype_classNoNoYes
Chrome PDF renderingNoNoYes
Data maskingNoNoYes
UUID naming ruleNoNoYes
Type annotations (best practice)NoNoYes
Scheduler tick (seconds)2406060
job_id dedupNoYesYes

Agent Output Checklist

Before completing interpretation, ALWAYS verify:

  • Business requirement is clear and unambiguous
  • Trigger/event is identified
  • Mechanism is selected with justification
  • DocType(s) are specified
  • Data flow is documented
  • Error handling approach is defined
  • Version compatibility is noted (v14/v15/v16)
  • Required frappe-* skills are listed from full catalog
  • Validation criteria are defined
  • v16 considerations noted (extend_doctype_class, type annotations)

See references/checklists.md for detailed checklists. See references/examples.md for interpretation examples.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Frappe Agent Interpreter AI 技能有什么作用?

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.

为什么在 TypingMind 中使用 Frappe Agent Interpreter?

因为您只需安装一次,就能搭配任何模型使用。Frappe Agent Interpreter 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Frappe Agent Interpreter?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Impertio-Studio/Frappe_Claude_Skill_Package/tree/main/skills/source/agents/frappe-agent-interpreter。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Frappe Agent Interpreter?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Frappe Agent Interpreter 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Frappe Agent Interpreter 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Frappe Agent Interpreter AI 技能免费吗?

是的。Impertio-Studio 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇