snowflake

Writes and reviews Snowflake SQL queries against the singleton connection pool with strict bind alignment.

12|6|Updated Jul 14, 2025
One-click install
npx skills add https://github.com/linuxfoundation/lfx-self-serve --skill snowflake-linuxfoundation
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: snowflake
Source: https://github.com/linuxfoundation/lfx-self-serve/tree/main/.claude/skills/snowflake
Command: npx skills add https://github.com/linuxfoundation/lfx-self-serve --skill snowflake-linuxfoundation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing or modifying Snowflake-backed analytics queries in the LFX One backend is error-prone: SQL bind mismatches are the most common Critical bug, and bypassing the singleton connection pool breaks query deduplication and warehouse selection. This Skill enforces the correct patterns before code review catches them. ## Core Features & Use Cases - Bind Discipline Enforcement: Walks through SQL left-to-right to verify every ? placeholder has a matching value in the binds array, preventing Critical review flags. - Singleton Pool Compliance: Ensures all new analytics endpoints route through snowflake.service.ts rather than creating ad-hoc connections. - Parameterized Query Guidance: Blocks string interpolation of user input into SQL and pushes filtering into Snowflake columns instead of post-fetch JS filtering. - Use Case: When adding a new analytics endpoint under apps/lfx-one/src/server/, use this Skill to write the query, align binds, select the right warehouse, and log via the logger service correctly. ## Quick Start Use the snowflake skill to add a new Snowflake-backed analytics endpoint with a parameterized query and correctly aligned binds.

Frequently Asked Questions about snowflake

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a Snowflake-backed analytics endpoint in an Express server?▼

Add the endpoint under apps/lfx-one/src/server and route all queries through the existing snowflake.service.ts singleton pool. Write parameterized SQL with ? placeholders, align the binds array in order, and filter by project or persona columns in SQL rather than in JavaScript.

How do I fix SQL bind mismatch errors in Snowflake queries?▼

Count every ? placeholder in the SQL from left to right and confirm the binds array has exactly that many values in the same order. Bind mismatches are treated as Critical bugs in review, so verify alignment before submitting.

Can I create a new Snowflake connection instead of using snowflake.service.ts?▼

No. snowflake.service.ts is a protected file implementing the singleton pool with query deduplication and warehouse selection. New consumers must go through it, and new query methods extend it only under code-owner review.

Why does my Snowflake query return empty results or dropped rows?▼

Empty results often come from misaligned binds, filtering in JavaScript after over-fetching, or querying the wrong warehouse. Check the Snowflake integration architecture doc and the known-false-positive patterns in the data-and-snowflake knowledge base.

When should I not use this Snowflake query skill?▼

Do not use it for Snowflake access provisioning, which routes to the lfx-snowflake-access flow or Terraform for service accounts. It also does not cover BI MCP semantic-layer work, which belongs to the lfx-mcp or lfx-lens skills.