Streamlit 开发助手(官方出品)
## 本站导读(中文补充,非官方原文) 这是 Streamlit 官方出品的开发助手(原仓库 streamlit/agent-skills ★224,Apache-2.0 协议;以下正文为官方英文原文)。 它覆盖 Streamlit 应用全流程:创建、调试、美化、主题、性能优化与部署,还能按你本地安装的 Streamlit 版本自动匹配参考文档。 适合用 Python 做数据看板、AI Demo 的开发者。 - 官方原文:https://github.com/streamlit/agent-skills
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 intoreferences/. - 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.