360 Secure SkillHub
360 安全技能中心

developing-with-streamlit

用 Python 脚本在用户项目环境中定位已安装 Streamlit 附带的参考文档目录,并据此指导 Streamlit 应用的创建、编辑、调试、样式与主题定制以及部署;缺少依赖时给出安装提示并要求重跑。

分类:开发
streamlit
热度 36.93
最近更新 2026-10-19 06:52:14

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add streamlit/agent-skills/developing-with-streamlit
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
developing-with-streamlit
description
Use for ALL Streamlit tasks: creating, editing, debugging, beautifying, styling, theming, optimizing, or deploying Streamlit apps. Also custom components, st.components.v2, HTML/JS/CSS work. Discovers and loads version-matched reference docs from the user's installed Streamlit (>=1.57). Triggers: streamlit, st., dashboard, app.py, beautify, style, CSS, color, background, theme, button, widget styling, custom component, st.components, CCv2, session state, performance, cache, fragment, slow rerun, deploy.
allowed-tools
Bash(python ${CLAUDE_SKILL_DIR}/scripts/discover.py:*) Bash(python3 ${CLAUDE_SKILL_DIR}/scripts/discover.py:*)

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.