/frappe-apps-manager:frappe-patch-generatorfrom frappe-apps-manager
Generates and manages database migration patches for Frappe applications. Use for data transformations, schema corrections, or one-time setup tasks during app updates.
Ships in frappe-apps-manager. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create robust data migration and system update scripts that run safely during bench migrate.
In patches.txt (located in your app's inner package):
my_app.patches.v1_0.migrate_customer_data
In my_app/patches/v1_0/migrate_customer_data.py:
import frappe
def execute():
"""Main entry point for the patch"""
# Use frappe.db.sql for bulk updates
frappe.db.sql("""
UPDATE `tabCustomer`
SET full_name = CONCAT(first_name, ' ', last_name)
WHERE full_name IS NULL
""")
# Or use the ORM for complex logic
customers = frappe.get_all("Customer", filters={"status": "Active"})
for d in customers:
doc = frappe.get_doc("Customer", d.name)
doc.process_legacy_data()
doc.save()
def execute():
# Check if field exists before operating
if frappe.db.has_column("Customer", "legacy_id"):
# Perform migration
pass
# Reload DocType if schema changes are needed during the patch
frappe.reload_doc("selling", "doctype", "customer")
tabPatch Log.frappe.db.sql for Performance: For large datasets, direct SQL is much faster than frappe.get_doc.print or frappe.logger() for long-running patches to provide feedback during bench migrate.Remember: Patches are the primary way to evolve a production database safely. Always test them on a copy of production data first.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub vyogotech/frappe-apps-manager --plugin frappe-apps-manager90 skills in this plugin
/frappe-add-service-composeAdd a new microservice to dev-podman-compose.yml with proper configuration, dependencies, and networking./frappe-agent-debuggerUse when debugging Frappe errors, using bench console for live inspection, analyzing tracebacks, or reading Frappe log files. Prevents wasted debugging time from ignoring log context, misreading tracebacks, and not using bench console effectively. Covers bench console, frappe.logger, error log DocType, traceback analysis, common error patterns, log file locations, pdb/debugger integration, VS Code DAP, profiling, Frappe Recorder, mariadb diagnostics. Keywords: debug, bench console, traceback, error log, frappe.logger, pdb, debugging, log analysis, inspect, VS Code, DAP, profiling, recorder, mariadb, monitor, ERPNext error, how to debug, find the bug, what went wrong, stack trace, error message..
/frappe-agent-interpreterUse 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.
Other plugins' skills for the same job