/frappe-apps-manager:frappe-microservice-scaffoldfrom frappe-apps-manager
Generates complete Frappe microservice boilerplate with tenant isolation, Containerfile, and entrypoint. Use when creating new tenant-aware services from scratch.
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.
Generate complete, production-ready Frappe microservice following frappe-microservice-lib patterns.
from frappe_microservice import create_microservice
def get_current_tenant_id():
from flask import g
from frappe_microservice import get_user_tenant_id
if hasattr(g, 'tenant_id') and g.tenant_id:
return g.tenant_id
if hasattr(g, 'current_user') and g.current_user:
user_email = g.current_user
if user_email in ('Guest', 'Administrator'):
return None
tenant_id = get_user_tenant_id(user_email)
if tenant_id:
g.tenant_id = tenant_id
return tenant_id
return None
app = create_microservice(
"service-name",
get_tenant_id_func=get_current_tenant_id,
load_framework_hooks=['frappe', 'erpnext']
)
# Auto CRUD endpoints
app.register_resource("DocType Name")
# Creates: GET, POST, GET/{name}, PUT/{name}, DELETE/{name}
@app.secure_route('/endpoint', methods=['GET'])
def handler(user):
tenant_id = get_current_tenant_id()
app.set_tenant_id(tenant_id)
data = app.tenant_db.get_all('DocType', filters={...})
return {"data": data}
# ✅ Good - automatic tenant filtering
app.tenant_db.get_all('DocType', filters={...})
app.tenant_db.get_doc('DocType', name)
app.tenant_db.insert_doc('DocType', data)
# ❌ Bad - no tenant isolation
frappe.db.get_all('DocType', filters={...})
FROM frappe-microservice-base:latest
WORKDIR /app
COPY . /app/service/
RUN ln -s /app/service/entrypoint.py /app/entrypoint.py
EXPOSE 8000
CMD ["/opt/venv/bin/python", "/app/service/entrypoint.py"]
import sys
sys.path.insert(0, '/app/service')
from server import app
from frappe_microservice.entrypoint import run_app
if __name__ == '__main__':
run_app(app)
<service-name>-service/
├── server.py
├── Containerfile
├── entrypoint.py
├── requirements.txt (optional)
├── controllers/ (optional)
└── tests/ (optional)
get_current_tenant_id()app.tenant_db exclusively@app.secure_routefrappe.db.begin() and app.tenant_db.commit()app.tenant_db for all queriesExample Services: See frappe_ms_poc/orders-service/server.py and frappe_ms_poc/signup-service/server.py
Remember: This skill is model-invoked. Claude will use it autonomously when detecting microservice scaffolding needs.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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