frappe-live-code-extractor
Installation
SKILL.md
frappe-live-code-extractor
Queries the live Frappe database (read-only) and writes each artifact's code into source files and meta.json under <app>/live/<doctype-slug>/. Makes all DB-resident code visible to grep, LSP, and AI assistants. Safe to run at any time.
All doctypes — built-in Frappe types and custom app types — are treated identically. Each doctype has a config.json at <app>/live/<doctype-slug>/config.json. The script resolves it via a 3-step fallback:
- App config —
<app>/live/<doctype-slug>/config.jsonif it exists - Skill asset — copies the bundled default from
assets/into the app tree, then uses it - Agent — interview the user / infer from context to create a config (see REFERENCE.md)
Quick start
--app is required. The agent must determine the app before calling the script.
Agent: inferring the app
If the user has not specified an app, determine it from context: