developing-with-streamlit
Kỹ năng định tuyến cho tất cả các tác vụ phát triển Streamlit: tạo ứng dụng, chỉnh sửa, gỡ lỗi, tạo kiểu, tối ưu hóa và triển khai. Định tuyến đến các kỹ năng phụ chuyên biệt dựa trên loại tác vụ: tối ưu hóa hiệu suất, xây dựng bảng điều khiển, cải thiện thiết kế, lựa chọn widget, tạo chủ đề, bố cục, hiển thị dữ liệu, ứng dụng đa trang, trạng thái phiên, giao diện trò chuyện, thành phần tùy chỉnh và tích hợp Snowflake. Bao gồm quy trình làm việc để định vị tệp nguồn Streamlit, xác định điểm vào (streamlit_app.py
npx skills add https://github.com/streamlit/agent-skills --skill developing-with-streamlitDeveloping 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.