developing-with-streamlit

bởi 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-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.

Thêm skills từ streamlit

template-skill
streamlit
Thay thế bằng mô tả về kỹ năng và thời điểm sử dụng nó.
official
building-streamlit-chat-ui
streamlit
Xây dựng giao diện trò chuyện trong Streamlit. Sử dụng khi tạo giao diện hội thoại, chatbot hoặc trợ lý AI. Bao gồm st.chat_message, st.chat_input, tin nhắn…
official
building-streamlit-custom-components-v2
streamlit
Builds bidirectional Streamlit Custom Components v2 (CCv2) using `st.components.v2.component`. Use when authoring inline HTML/CSS/JS components or packaged…
official
building-streamlit-dashboards
streamlit
Xây dựng bảng điều khiển trong Streamlit. Sử dụng khi tạo màn hình hiển thị KPI, thẻ chỉ số hoặc bố cục nhiều dữ liệu. Bao gồm đường viền, thẻ, bố cục phản hồi và bảng điều khiển…
official
building-streamlit-multipage-apps
streamlit
Xây dựng ứng dụng Streamlit đa trang. Sử dụng khi tạo ứng dụng có nhiều trang, thiết lập điều hướng hoặc quản lý trạng thái giữa các trang.
official
choosing-streamlit-selection-widgets
streamlit
Chọn widget lựa chọn Streamlit phù hợp. Sử dụng khi quyết định giữa radio buttons, selectbox, segmented control, pills hoặc các widget chọn tùy chọn khác.…
official
connecting-streamlit-to-snowflake
streamlit
Kết nối ứng dụng Streamlit với Snowflake. Sử dụng khi thiết lập kết nối cơ sở dữ liệu, quản lý bí mật hoặc truy vấn Snowflake từ ứng dụng Streamlit.
official
creating-streamlit-themes
streamlit
Tạo và tùy chỉnh giao diện Streamlit. Sử dụng khi thay đổi màu sắc, phông chữ hoặc giao diện ứng dụng, hoặc điều chỉnh ứng dụng theo hướng dẫn thương hiệu. Bao gồm config.toml…
official