Build and deploy Streamlit apps natively in Snowflake with Snowpark integration and Marketplace publishing.
Works with
Supports two runtime options: Warehouse Runtime (personal instances, Anaconda packages) and Container Runtime (shared instances, PyPI packages, significantly lower cost)
Includes Snowpark session integration for native data access, multi-page app structure, and caller's rights connections (v1.53.0+) for per-user data isolation
Prevents 14 documented errors including package cha
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionstreamlit-snowflakeExecute the skills CLI command in your project's root directory to begin installation:
Fetches streamlit-snowflake from jezweb/claude-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate streamlit-snowflake. Access via /streamlit-snowflake in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
697
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
697
stars
Build and deploy Streamlit apps natively within Snowflake, including Marketplace publishing as Native Apps.
Copy the templates to your project:
# Create project directory
mkdir my-streamlit-app && cd my-streamlit-app
# Copy templates (Claude will provide these)
Update placeholders in snowflake.yml:
definition_version: 2
entities:
my_app:
type: streamlit
identifier: my_streamlit_app # ← Your app name
stage: my_app_stage # ← Your stage name
query_warehouse: my_warehouse # ← Your warehouse
main_file: streamlit_app.py
pages_dir: pages/
artifacts:
- common/
- environment.yml
# Deploy to Snowflake
snow streamlit deploy --replace
# Open in browser
snow streamlit deploy --replace --open
Use when:
Don't use when:
Snowflake offers two runtime options for Streamlit apps:
environment.yml with Snowflake Anaconda Channelrequirements.txt or pyproject.toml with PyPI packagesContainer Runtime Configuration:
CREATE STREAMLIT my_app
FROM '@my_stage/app_folder'
MAIN_FILE = 'streamlit_app.py'
RUNTIME_NAME = 'SYSTEM$ST_CONTAINER_RUNTIME_PY3_11'
COMPUTE_POOL = my_compute_pool
QUERY_WAREHOUSE = my_warehouse;
Key difference: Container runtime allows external PyPI packages - not limited to Snowflake Anaconda Channel.
See: Runtime Environments
Streamlit apps support two privilege models:
Security implications:
Use caller's rights when:
See Caller's Rights Connection pattern below.
my-streamlit-app/
├── snowflake.yml # Project definition (required)
├── environment.yml # Package dependencies (required)
├── streamlit_app.py # Main entry point
├── pages/ # Multi-page apps
│ └── data_explorer.py
├── common/ # Shared utilities
│ └── utils.py
└── .gitignore
import streamlit as st
# Get Snowpark session (native SiS connection)
conn = st.connection("snowflake")
session = conn.session()
# Query data
df = session.sql("SELECT * FROM my_table LIMIT 100").to_pandas()
st.dataframe(df)
Execute queries with viewer's privileges instead of owner's privileges:
import streamlit as st
# Use caller's rights for data isolation
conn = st.connection("snowflake", type="callers_rights")
# Each viewer sees only data they have permission to access
df = conn.query("SELECT * FROM sensitive_customer_data")
st.dataframe(df)
Security comparison:
| Connection Type | Privilege Model | Use Case |
|---|---|---|
type="snowflake" (default) |
Owner's rights | Internal tools, trusted users |
type="callers_rights" (v1.53.0+) |
Caller's rights | Public apps, data isolation |
Source: Streamlit v1.53.0 Release
@st.cache_data(ttl=600) # Cache for 10 minutes
def load_data(query: str):
conn = st.connection("snowflake")
return conn.session().sql(query).to_pandas()
# Use cached function
df = load_data("SELECT * FROM large_table")
Warning: In Streamlit v1.22.0-1.53.0, params argument is not included in cache key. Use ttl=0 to disable caching when using parametrized queries, or upgrade to 1.54.0+ when available (Issue #13644).
When using Snowpark DataFrames with charts or tables, select only required columns to avoid fetching unnecessary data:
# ❌ Fetches all 50 columns even though chart only needs 2
df = session.table("wide_table") # 50 columns
st.line_chart(df, x="date", y="value")
# ✅ Fetch only needed columns for better performance
df = session.table("wide_table").select("date", "value")
st.line_chart(df, x="date", y="value")
# 5-10x faster for wide tables
Why it matters: st.dataframe() and chart components call df.to_pandas() which evaluates ALL columns, even if the visualization only needs some. Pre-selecting columns reduces data transfer and improves performance (Issue #11701).
environment.yml (required format):
name: sf_env
channels:
- snowflake # REQUIRED - only supported channel
dependencies:
- streamlit=1.35.0 # Explicit version (default is old 1.22.0)
- pandas
- plotly
- altair=4.0 # Version 4.0 supported in SiS
- snowflake-snowpark-python
This skill prevents 14 documented errors:
| Error | Cause | Prevention |
|---|---|---|
PackageNotFoundError |
Using conda-forge or external channel | Use channels: - snowflake (or Container Runtime for PyPI) |
| Missing Streamlit features | Default version 1.22.0 | Explicitly set streamlit=1.35.0 (or use Container Runtime for 1.49+) |
ROOT_LOCATION deprecated |
Old CLI syntax | Use Snowflake CLI 3.14.0+ with FROM source_location |
| Auth failures (2026+) | Password-only authentication | Use key-pair or OAuth (see references/authentication.md) |
| File upload fails | File >200MB | Keep uploads under 200MB limit |
| DataFrame display fails | Data >32MB | Paginate or limit data before display |
page_title not supported |
SiS limitation | Don't use page_title, page_icon, or menu_items in st.set_page_config() |
| Custom component error | SiS limitation | Only components without external service calls work |
_snowflake module not found |
Container Runtime migration | Use from snowflake.snowpark.context import get_active_session instead of from _snowflake import get_active_session (Migration Guide) |
| Cached query returns wrong data with different params | params not in cache key (v1.22.0-1.53.0) |
Use ttl=0 to disable caching for parametrized queries, or upgrade to 1.54.0+ when available (Issue #13644) |
Invalid connection_name 'default' with kwargs only |
Missing secrets.toml or connections.toml | Create minimal .streamlit/secrets.toml with [connections.snowflake] section (Issue #9016) |
| Native App upgrades unexpectedly | Implicit default Streamlit version (BCR-1857) | Explicitly set streamlit=1.35.0 in environment.yml to prevent automatic version changes (BCR-1857) |
| File paths fail in Container Runtime subdirectories | Some commands use entrypoint-relative paths | Use pathlib to resolve absolute paths: Path(__file__).parent / "assets/logo.png" (Runtime Docs) |
| Slow performance with wide Snowpark DataFrames | st.dataframe() fetches all columns even if unused |
Pre-select only needed columns: df.select("col1", "col2") before passing to Streamlit (Issue #11701) |
# Deploy and replace existing
snow streamlit deploy --replace
# Deploy and open in browser
snow streamlit deploy --replace --open
# Deploy specific entity (if multiple in snowflake.yml)
snow streamlit deploy my_app --replace
See references/ci-cd.md for GitHub Actions workflow template.
To publish your Streamlit app to Snowflake Marketplace:
templates-native-app/ templatesSee templates-native-app/README.md for complete workflow.
my-native-app/
├── manifest.yml # Native App manifest
├── setup.sql # Installation script
├── streamlit/
│ ├── environment.yml
│ ├── streamlit_app.py
│ └── pages/
└── README.md
Only packages from the Snowflake Anaconda Channel are available:
-- Query available packages
SELECT * FROM information_schema.packages
Implementation Guide
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Steps
- 1Install skill using provided installation command
- 2Test with simple use case relevant to your work
- 3Evaluate output quality and relevance
- 4Iterate on prompts to improve results
- 5Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Related Skills
wordpress-elementor
125jezweb/claude-skills
Productivitysame reporeact-native
22jezweb/claude-skills
Frontendsame repozustand-state-management
7jezweb/claude-skills
Productivitysame repoml-paper-writing
75davila7/claude-code-templates
AI/MLsame categorybeautiful-mermaid
31intellectronica/agent-skills
AI/MLsame categoryllm-council
26am-will/codex-skills
AI/MLsame categoryReviews
4.5★★★★★69 reviews- TTariq Diallo★★★★★Dec 28, 2024
streamlit-snowflake is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- MMichael Nasser★★★★★Dec 28, 2024
We added streamlit-snowflake from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- CChen Rahman★★★★★Dec 12, 2024
Registry listing for streamlit-snowflake matched our evaluation — installs cleanly and behaves as described in the markdown.
- XXiao Thomas★★★★★Dec 4, 2024
streamlit-snowflake fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- XXiao Lopez★★★★★Nov 23, 2024
streamlit-snowflake has been reliable in day-to-day use. Documentation quality is above average for community skills.
- EEvelyn Chen★★★★★Nov 19, 2024
Solid pick for teams standardizing on skills: streamlit-snowflake is focused, and the summary matches what you get after install.
- AAanya Verma★★★★★Nov 3, 2024
Useful defaults in streamlit-snowflake — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- EEvelyn Yang★★★★★Oct 22, 2024
I recommend streamlit-snowflake for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- LLiam Choi★★★★★Oct 14, 2024
Solid pick for teams standardizing on skills: streamlit-snowflake is focused, and the summary matches what you get after install.
- EEvelyn Jackson★★★★★Oct 10, 2024
streamlit-snowflake has been reliable in day-to-day use. Documentation quality is above average for community skills.
showing 1-10 of 69
1 / 7Discussion
Comments — not star reviews- No comments yet — start the thread.