frappe-app-dev
БесплатноБез исполняемых скриптовНе проверенHow to run and change Frappe apps with Pilot. Use before any work in a Frappe app (a repository with hooks.py and DocTypes): writing or reviewing code…
от frappe★ 185 звёзд на GitHubОб этом скилле
Frappe app development
Pilot replaces bench for development. Run Frappe commands through it, such as pilot frappe --site SITE migrate. Always pass --site, because a bench's default site can be a different one.
Code is done when you have run it on the app's site as a user with the right role, and scanned the files you changed (see Code). Report the scan result.
Run the app you are changing
Work in the bench your checkout already uses, and leave other benches and their Python alone. Pilot supports two layouts:
- Bench with several apps: the checkout sits in a bench's
apps/folder, next tofrappe. Pilot commands run anywhere inside the bench folder use that bench. Herepilot dev inforeports "no bench yet" and suggestspilot dev setup. Ignore that, and use the bench you are in. - Bench per app: the checkout is a standalone repository, and
pilot dev setupmade a bench for it, with the app linked in. In the checkout,pilot dev infoshows that bench and the site URL. No bench yet?pilot dev setupcreates one.
Then:
- Turn off what you do not need. An idle bench uses about 3.8 GB by default, and about 450 MB with both of these:
- Set
watch_apps_js = falseunder[bench]inbench.toml(2.8 GB), unless you are changing Frappe or Desk bundles. - Run
pilot processes disable frappe-flow_server(200 MB), unless you need Frappe's AI chat.
- Set
- Start the bench:
pilot startin a bench with several apps,pilot dev startin a standalone checkout. Both stay in the foreground, so run them in a way that outlives your session.migrate,execute, and tests need the Redis they run. - Run
pilot frappe --site SITE migrate.ls sitesin the bench lists the sites.
While you work:
pilot stopin the bench or checkout stops that bench and leaves other benches running.- On a frappe-ui app,
pilot dev startregeneratesfrontend/src/types/doctypes.ts. Keep that file out of commits unless the change is intended.
To set up a new bench for several apps, or to change Frappe itself, run pilot new NAME --frappe-branch BRANCH, pilot -b NAME init, pilot -b NAME get-app <repo URL> for each app, and pilot -b NAME new-site SITE --apps <apps>. For one app, pilot dev setup in its checkout is quicker. pilot new defaults to version-16 and MariaDB, while pilot dev setup defaults to develop and SQLite.
Test site for a PR
Give the PR a bench of its own, so your work stays as it is. Check the PR's base branch first: gh pr view <N> --json baseRefName. Frappe develop fits a develop base. For a version-N base, use Frappe version-N. Use MariaDB when the PR touches raw SQL, and SQLite otherwise. The Frappe branch and the database are fixed once the bench exists.
The app runs alone. Use a bench per app (about 4 minutes):
cd <app checkout>
git worktree add --detach <WT> # WT: a new folder outside any bench, such as ~/worktrees/<app>-pr<N>
cd <WT>
gh pr checkout <N> --detach
pilot dev setup # add --frappe-branch version-N or --database mariadb if needed
pilot dev info
The app needs other apps, or you work in a bench with several apps. Make a new bench with all of them (about 6 minutes for one app). Benches live in benches/ in the Pilot folder, such as ~/pilot/benches/<B>.
pilot new <B> --frappe-branch develop --database sqlite # or version-N, or leave out --database for MariaDB
pilot -b <B> init
pilot -b <B> get-app <repo URL> # once for each app the PR's app needs
pilot -b <B> get-app <PR app repo URL> --skip-assets
cd ~/pilot/benches/<B>/apps/<app>
gh pr checkout <N> --detach
pilot -b <B> build --apps <app>
pilot -b <B> new-site <B>.localhost --apps <apps> --admin-password admin
Then trim and start the bench as described in Run the app you are changing.
- Ready: you can log in, and the app's own page loads in a browser, such as
/gfor Gameplan.pingand login pass even when the frontend is missing. Hand over the URL and the login. - New commits: in a bench per app, run
pilot dev setupagain. It installs requirements, migrates, and rebuilds, but never pulls or switches branches in a linked app. In a bench with several apps, rungh pr checkout <N> --detachinapps/<app>, thenpilot -b <B> build --apps <app>andmigrate. - Remove: run
pilot stopfirst. In a bench per app, runpilot --yes dev drop, thengit worktree remove --force <WT>from the main checkout. In a bench with several apps, runpilot -y -b <B> drop-site <site> --no-backup, thenpilot -y -b <B> drop. Ask before you drop a site or bench you did not create.
Serve a site on another hostname
Frappe picks the site from the hostname. Add an alias in the bench's sites/ folder with ln -s <site> <hostname>, or requests return 404. Remove the alias before you drop the site.
Point the hostname at the port that fits the work:
- **Site por
Установить frappe-app-dev в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл frappe-app-dev?
How to run and change Frappe apps with Pilot. Use before any work in a Frappe app (a repository with hooks.py and DocTypes): writing or reviewing code, running migrate or tests, or getting a test site for a PR.
Как установить скилл frappe-app-dev?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл frappe-app-dev запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic