frappe-app-dev
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFrappe Full-Stack App Builder
Frappe全栈应用构建器
Global Rules
全局规则
- Use bare . Not
bench. Not a full path../env/bin/bench - Do not run ,
which bench,bench --version, or check frappe version. No discovery commands.bench --help - Do not delegate bench detection to a subagent. Run yourself.
ls apps/ sites/ Procfile - Do not create DocType folders with . Frappe creates them via
mkdir.bench migrate - Run in a background process only.
bench start - Before running , check if it's already running in an existing terminal. Do not start a second instance.
bench start - Always pass explicitly to bench commands. Never run bare
--site <site>.bench migrate
- 使用纯命令,而非
bench或完整路径。./env/bin/bench - 不要运行、
which bench、bench --version或检查frappe版本,禁止使用探测类命令。bench --help - 不要将bench检测任务委托给子Agent,自行运行。
ls apps/ sites/ Procfile - 不要使用创建DocType文件夹,Frappe会通过
mkdir自动创建。bench migrate - 仅在后台进程中运行。
bench start - 运行前,检查现有终端中是否已在运行,不要启动第二个实例。
bench start - 执行bench命令时,务必显式传递参数,切勿直接运行
--site <site>。bench migrate
Flow Selection
流程选择
Determine which flow applies, then read ONLY the relevant file:
确定适用的流程后,仅阅读相关文件:
Creating a brand new app
创建全新应用
Read new-app.md — covers bench setup, app scaffolding, site creation, and installation.
阅读new-app.md —— 涵盖bench配置、应用脚手架搭建、站点创建与安装。
Working on an existing app
处理现有应用
Read existing-app.md — covers finding the bench, locating the app, confirming site, and extending features.
阅读existing-app.md —— 涵盖查找bench、定位应用、确认站点及扩展功能。
Feature References
功能参考
Load ONLY the references needed for the current task:
| Topic | When to load | File |
|---|---|---|
| Site management | Finding/creating/managing sites | site-management.md |
| DocTypes | Creating/modifying DocTypes, fields, naming | doctypes.md |
| Controllers | Document lifecycle, server logic | controllers.md |
| Whitelisted APIs | REST endpoints, | api.md |
| Database & ORM | | database.md |
| Caching | Redis, | caching.md |
| Realtime | WebSocket, | realtime.md |
| Background jobs | | background-jobs.md |
| Hooks | | hooks.md |
| Permissions | Roles, DocType permissions, | permissions.md |
| Testing | Writing & running tests | testing.md |
| Frontend & UI | Desk UI, Vue SPA, portal pages | frontend.md (router → 3 sub-files) |
| Bench CLI | All bench commands reference | bench-operations.md |
仅加载当前任务所需的参考文档:
| 主题 | 加载时机 | 文件路径 |
|---|---|---|
| 站点管理 | 查找/创建/管理站点时 | site-management.md |
| DocTypes | 创建/修改DocTypes、字段、命名规则时 | doctypes.md |
| 控制器 | 文档生命周期、服务器逻辑开发时 | controllers.md |
| 白名单API | REST端点开发、使用 | api.md |
| 数据库与ORM | 使用 | database.md |
| 缓存 | Redis、 | caching.md |
| 实时功能 | WebSocket、 | realtime.md |
| 后台任务 | | background-jobs.md |
| 钩子函数 | | hooks.md |
| 权限管理 | 角色、DocType权限、 | permissions.md |
| 测试 | 编写与运行测试时 | testing.md |
| 前端与UI | 桌面UI、Vue SPA、门户页面开发时 | frontend.md (路由 → 3个子文件) |
| Bench CLI | 所有bench命令参考时 | bench-operations.md |