developing-with-streamlit

作者: streamlit

用于所有Streamlit开发任务的路由技能:应用创建、编辑、调试、样式设计、优化和部署。根据任务类型路由到专业子技能:性能优化、仪表板构建、设计改进、组件选择、主题设置、布局、数据展示、多页面应用、会话状态、聊天界面、自定义组件以及Snowflake集成。包含定位Streamlit源文件、识别入口点(streamlit_app.py、app.py)的工作流程,以及...

npx skills add https://github.com/streamlit/agent-skills --skill developing-with-streamlit

Developing with Streamlit

Streamlit (>=1.57) ships detailed reference documentation for building Streamlit apps inside its pip package. The bundled skill is a routing SKILL.md plus a references/ folder of topic-specific reference docs (dashboards, themes, layouts, session state, custom components, etc.).

Usage

Run the discovery script with the user's project directory:

python <SKILL_DIR>/scripts/discover.py --project-dir <USER_PROJECT_DIR>

The script prints either:

  • A path on stdout (exit 0) — the bundled SKILL.md. Read it; it points into references/.
  • An ERROR: block on stderr (non-zero exit). Follow the printed instructions and re-run.

<SKILL_DIR> is the directory containing this file; <USER_PROJECT_DIR> is the absolute path to the user's project. Passing --project-dir matters because the script resolves .venv, ../.venv, Pipfile, poetry.lock, pdm.lock, and uv.lock relative to it.