# Existing App Workflow Use this flow when the user wants to extend, modify, or fix an app that already exists. ## Step 1: Find and confirm bench root The bench root is typically the parent of the workspace directory, or the workspace itself. Look for `apps/`, `sites/`, and `Procfile`. ```bash ls apps/ sites/ Procfile ``` If the workspace is inside the app (e.g. user opened `apps/myapp/`), go up: ```bash ls ../../apps/ ../../sites/ ../../Procfile ``` ## Step 2: Locate the app ```bash ls apps/ ``` Find the app directory. Read its module structure: ```bash ls apps/// ``` Each subdirectory under the module is a Frappe module (contains DocTypes, etc.): ```bash ls apps//// ``` Do NOT create a second app. Do NOT run `bench new-app`. ## Step 3: Confirm site and app installation See [site-management.md](./site-management.md) for finding the right site for this app. Verify the app is installed: ```bash bench --site list-apps ``` If not installed: ```bash bench --site install-app ``` ## Step 4: Enable developer mode ```bash bench set-config -g developer_mode 1 ``` ## Step 5: Build / modify features Read the app's existing code to understand patterns before making changes. Load only the relevant feature references from the main SKILL.md table. Key files to read first: - `apps//setup.cfg` or `pyproject.toml` — app metadata - `apps///hooks.py` — existing hooks - `apps////` — existing DocTypes and modules ## Step 6: Migrate and verify ```bash bench --site migrate ``` Same rules as new app — see [new-app.md](./new-app.md#step-7-migrate-and-verify) for migrate rules.