connect-snowflake
Skill by ai-analyst-lab
Connect-snowflake runs queries against the live Snowflake warehouse instead of the local DuckDB practice copy. It is for users who need live warehouse numbers and already have Snowflake credentials configured.
Install connect-snowflake
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst /tmp/ai-analyst && mkdir -p ~/.claude/skills && cp -r /tmp/ai-analyst/.claude/skills/connect-snowflake ~/.claude/skills/connect-snowflakeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst /tmp/ai-analyst && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ai-analyst/.claude/skills/connect-snowflake ~/.gemini/antigravity-cli/skills/connect-snowflakeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The connect-snowflake skill switches an assistant from the local DuckDB practice copy to the live Snowflake warehouse. The repo defaults to local DuckDB even when the active dataset declares a Snowflake connection. Remote access is opt-in, through the AAP_USE_REMOTE=1 environment flag or use_remote: true in .knowledge/active.yaml.
Before any query runs, the skill checks the connection type with ConnectionManager.verify_remote(), which reads session context from Snowflake. Queries use DATABASE.SCHEMA.TABLE names and are logged automatically by ConnectionManager.query(). Credentials must already exist, since first-time setup is handled by /setup-snowflake. It is aimed at analysts who need live warehouse data.
Written from the project's SKILL.md and checked against it.
What it can do
- Remote opt-inSwitches queries from the local DuckDB copy to Snowflake using an environment flag or a manifest setting.
- ConnectionManager.verify_remote()Confirms the session is on Snowflake and returns account, warehouse, database and schema identity.
- ConnectionManager.query()Runs SQL against the warehouse and auto-logs each query at execution by default.
- ConnectionManager.table_reference()Returns the fully qualified DATABASE.SCHEMA.TABLE name for a Snowflake source.
- Query logging fallbackLogs queries run through other paths, such as a raw connector or MCP, using scripts/log_query.py.
What you need
- A Snowflake account with credentials (PAT or legacy password)
- Credentials already configured, via /setup-snowflake for first-time setup
- snowflake-connector-python, installed with pip install -e ".[warehouses]"
- Python 3
Try asking
- Connect to Snowflake and run a count of events by event_type
- Is this query hitting Snowflake or DuckDB?
- Go remote and query the live orders table by month
Good to know
- Assumes Snowflake credentials already exist; first-time setup is a separate skill.
- Short table names are rejected by the course analytical-query policy, so fully qualified names are required.
- Requires snowflake-connector-python to be installed.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/connect-snowflake/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to connect-snowflake
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
connect-snowflake: common questions
How do I tell whether a query ran on Snowflake or DuckDB?
The connection_type should print snowflake. verify_remote() also returns a remote flag and the session identity, and remote: False means the query is not on Snowflake.
Where are the Snowflake credentials stored?
A personal access token lives in .env as SNOWFLAKE_TOKEN, and a legacy password uses SNOWFLAKE_PASSWORD. Account, user, warehouse, database, schema and role come from the dataset manifest.
How do I switch back to local DuckDB?
Unset AAP_USE_REMOTE for the shell, or set use_remote: false in .knowledge/active.yaml. connection_type will then report duckdb.
How do I install connect-snowflake?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is connect-snowflake free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is connect-snowflake safe to use?
It scores 62 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to connect-snowflake?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
