agentsclimarketplace

Edge lake

Skill blotoutio/skills/skills/edge-lake

Edge Lake is Blotout's event data lake built on Cloudflare R2 that stores all website and shop events (page views, purchases, add to carts, etc.) and makes them queryable via SQL. Use this skill for querying event data, building analytics dashboards, funnel analysis, attribution reporting, traffic analysis, bot detection, and WAF attack analysis. Use this skill when the developer mentions: edge lake, event data lake, R2 data lake, event queries, SQL events, funnel analysis, attribution analysis, bot score, WAF attack score, traffic analysis, conversion funnel, revenue reporting, event analytics, lake.events, edgeLakeQuery, edgeLakeCodeQuery, or provider API edge lake.From its SKILL.md

Install
npx -y skills add blotoutio/skills --skill edge-lake

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

7.1 KB, as published. Nobody here has run it

Edge Lake Skill

Edge Lake is a per-domain event data lake built on Cloudflare R2 that captures and stores all website/shop event data. Events are queryable via SQL (R2 SQL) for analytics, funnel analysis, attribution reporting, and more.

How Edge Lake Works

  1. Event Capture — EdgeTag captures browser events (PageView, Purchase, etc.) at the edge
  2. Storage — Events are stored in Cloudflare R2 as structured data, partitioned by timestamp
  3. Query — Use R2 SQL to query the lake.events table for analysis
  4. Code Queries — For complex analysis (joins, funnels), use server-side JavaScript with multiple parallel queries

Adding Edge Lake to a Domain

Edge Lake is a singleton channel — only one per domain. Three ways to add it:

  1. Shopify App — Install from https://apps.shopify.com/blotout-datanexus (Shopify stores only). Adds Edge Lake automatically with the default schema.
  2. Contact Blotout Support — Email [email protected] to have Edge Lake enabled on your domain.
  3. Script API — If you have white-label API access, POST https://api.edgetag.io/v1/script with providerId: "edgeLake" and the JSON schema as a secret.

See Setup Guide for full details on all methods, required secrets, and schema customization.

Access Methods

EdgeTag MCP (Claude, Cursor, AI assistants)

Remote MCP server at https://mcp.edgetag.io. Authenticates via OAuth (redirects to EdgeTag login). See MCP Setup for connection instructions.

ToolWhen to Use
edgeLakeQuerySimple single SQL queries with small result sets
edgeLakeCodeQueryComplex analysis: multiple queries + JS processing (funnels, joins, aggregations)
edgeLakeTrafficAnalysisPre-built traffic overview (browsers, OS, devices, countries)
edgeLakeBotScoreBot detection analysis by Cloudflare bot scores
edgeLakeAttackAnalysisWAF attack classification analysis

Provider API (programmatic access)

Base URL: https://api.edgetag.io/v1/provider/edgeLake/{scriptId}

EndpointMethodWhen to Use
/{scriptId}/queryPOSTExecute SQL queries against lake.events
/{scriptId}/funnelPOSTConversion funnel analysis (PageView → Purchase)
/{scriptId}/traffic-analysisPOSTTraffic breakdown by browser, OS, device, country
/{scriptId}/bot-scorePOSTBot detection by Cloudflare bot scores
/{scriptId}/attack-analysisPOSTWAF attack classification
/{scriptId}/bot-categoriesPOSTBot traffic grouped by verified bot category
/{scriptId}/bot-category-detailPOSTUser agents for a specific bot category

See Provider API Reference for full request/response shapes and authentication.

Quick Decision Trees

"I need to add Edge Lake to a domain"

"I need to query event data"

  • Simple query (one table, one filter) → See references/sql-reference.md
  • Complex analysis (funnels, joins, aggregations) → See references/code-queries.md
  • Traffic overview (browsers, devices, countries) → Use edgeLakeTrafficAnalysis MCP tool or POST /{scriptId}/traffic-analysis
  • Bot detection → Use edgeLakeBotScore MCP tool or POST /{scriptId}/bot-score
  • Security analysis → Use edgeLakeAttackAnalysis MCP tool or POST /{scriptId}/attack-analysis
  • Programmatic access from app code → See references/provider-api.md

"I need to build a report"

Reference Files

FileContents
Setup GuideHow to add Edge Lake via dashboard or API, schema customization
SQL ReferenceTable schema, column reference, R2 SQL syntax and limitations
Code QueriesMulti-query patterns with JavaScript processing
MCP SetupHow to connect Claude Desktop, Cursor, or Claude Code to EdgeTag MCP
Provider APIREST API endpoints, authentication, request/response shapes
GotchasCommon query mistakes and R2 SQL pitfalls

Key Constraints

  • Read-only: Only SELECT statements allowed
  • Single table: All queries against lake.events
  • No JOINs: Use edgeLakeCodeQuery for multi-query joins in JavaScript
  • No subqueries, CTEs, UNION, window functions, IN lists
  • ALWAYS filter on event_timestamp for performance (enables R2 file pruning)
  • LIMIT max 10,000 rows per query

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.