revops
Design and optimize systems connecting marketing, sales, and customer success into a unified revenue engine.
frappe-tenant-query
Generate tenant-isolated database queries using TenantAwareDB to prevent cross-tenant access.
Full skill instructions
Create database queries with automatic tenant isolation using app.tenant_db.
# ✅ Good - automatic tenant filtering
tenant_id = get_current_tenant_id()
app.set_tenant_id(tenant_id)
data = app.tenant_db.get_all('DocType', filters={...})
# ❌ Bad - no tenant isolation
data = frappe.db.get_all('DocType', filters={...})
# Get all
docs = app.tenant_db.get_all('Sales Order', filters={'status': 'Draft'}, limit=20)
# Get single
doc = app.tenant_db.get_doc('Sales Order', 'SO-00001')
# Insert
doc = app.tenant_db.insert_doc('Sales Order', {'customer': 'CUST-001'})
# Update
doc = app.tenant_db.get_doc('Sales Order', 'SO-00001')
doc.status = 'Submitted'
doc.save()
app.tenant_db.commit()
# Count
count = app.tenant_db.count('Sales Order', filters={'status': 'Draft'})
# Exists
exists = app.tenant_db.exists('Sales Order', 'SO-00001')
tenant_id = app.tenant_db.get_tenant_id()
# ✅ Good - parameterized
result = app.tenant_db.sql("""
SELECT name, customer, grand_total
FROM `tabSales Order`
WHERE tenant_id = %s AND status = %s
LIMIT %s
""", (tenant_id, 'Draft', 10), as_dict=True)
# ❌ NEVER use string formatting
try:
frappe.db.begin()
doc1 = app.tenant_db.insert_doc('DocType1', data1)
doc2 = app.tenant_db.insert_doc('DocType2', data2)
app.tenant_db.commit()
except Exception as e:
app.tenant_db.rollback()
raise
app.set_tenant_id(tenant_id)frappe.db directlyapp.tenant_db.get_tenant_id()DoesNotExistError for cross-tenant accessapp.tenant_db.get_all('DocType', filters={...})app.tenant_db.get_doc('DocType', name)app.tenant_db.insert_doc('DocType', data)doc.save(), app.tenant_db.commit()doc.delete(), app.tenant_db.commit()Remember: This skill is model-invoked. Claude will use it autonomously when detecting tenant-aware query needs.
Design and optimize systems connecting marketing, sales, and customer success into a unified revenue engine.
Strategic planning and optimization for email capture offers and gated content.
Directory submissions: the foundation layer of distribution that passes backlinks and discovery surface area into your marketing pages.
Sequence and choreograph multi-step animations with precise timing control and nested timelines.
Structured framework for planning product launches, feature announcements, and go-to-market strategies.
Upload files to Google Drive with automatic MIME type detection and metadata.
Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.
firecrawl lead gen
firecrawl lead research
firecrawl demo walkthrough
Team leadership persona with standup coordination, meeting prep, task delegation, and team communication.
Identify large Google Drive files consuming storage quota.
Revolutionize Video Creation with AI-Generated Avatars and Voices
Social media on autopilot
Design custom logos instantly with AI.
Text-heavy marketing and design images
Boost Your SEO with Content and SEO Silos
Revolutionize Your Marketing with AI-Powered MarketingBlocks!
10X faster & free AI content creation for 100+ use cases
Tribescaler | Make Your Tweets Go Viral