streamlit-dev

Develop Streamlit applications with session state, caching, and compact UI layouts.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/nera0875/blv-pentesting-copilot --skill streamlit-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: streamlit-dev
Source: https://github.com/nera0875/blv-pentesting-copilot/tree/main/.claude/skills/streamlit
Command: npx skills add https://github.com/nera0875/blv-pentesting-copilot --skill streamlit-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires anthropic, streamlit, asyncpg, and includes scripts (resource) and references (resource) components.

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_state to prevent bugs and ensure data consistency across reruns.
  • Optimized Caching: Understand and apply @st.cache_resource effectively for singletons (like database connections or ML models), while strictly avoiding problematic @st.cache_data usage 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.