streamlit-dev
CommunityMaster Streamlit, build robust apps faster.
Authornera0875
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Streamlit development can be complex, leading to common pitfalls like incorrect session state management, inefficient caching, rerun loops, and suboptimal UI/UX. This Skill provides expert guidance to avoid these issues and build high-quality, stable, and performant Streamlit applications.
Core Features & Use Cases
- Robust Session Management: Learn to correctly initialize and manage
st.session_stateto prevent bugs and ensure data consistency across reruns. - Optimized Caching: Understand and apply
@st.cache_resourceeffectively for singletons (like database connections or ML models), while strictly avoiding problematic@st.cache_datausage to prevent desynchronization. - Controlled Reruns & Saves: Implement explicit save patterns with buttons and prevent infinite rerun loops, ensuring a stable and predictable user experience.
- Best Practice UI/UX: Design visually appealing and compact interfaces using
st.metric,st.container(border=True),st.expander, and Plotly charts, adhering to strict visual rules for clarity and user engagement. - Secure & Performant Code: Get guidance on handling async operations safely, ensuring SQL safety with parameterized queries, managing database connections with
try/finally, and optimizing app performance.
Quick Start
Help me develop a Streamlit application that manages user session state for a multi-page dashboard, ensuring proper caching and a compact UI layout using containers and expanders.
Dependency Matrix
Required Modules
anthropicstreamlitasyncpg
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: streamlit-dev Download link: https://github.com/nera0875/blv-pentesting-copilot/archive/main.zip#streamlit-dev Please download this .zip file, extract it, and install it in the .claude/skills/ directory.