[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KGGGZ9THQDXJ9451TJQT64":3,"skill-same:01M6KGGGZ9THQDXJ9451TJQT64":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M6KGGGZ9THQDXJ9451TJQT64","building-streamlit-dashboards",null,"Building dashboards in Streamlit. Use when creating KPI displays, metric cards, or data-heavy layouts. Covers borders, cards, responsive layouts, and dashboard composition.","legout\u002Fpi-config","legout","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1469563?v=4","01M6KGERP7E8TF4XARRKPFJ6HQ","Volker L.","01M6KGERT1FYD049PP1WW923TZ",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Fdeveloping-with-streamlit\u002Fskills\u002Fbuilding-streamlit-dashboards\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29],"dashboards","streamlit","building streamlit dashboards","building dashboards","dashboard","data","kpi","Composition","use","responsive","metric","2026-11-10 10:12:30",false,"---\nname: building-streamlit-dashboards\ndescription: Building dashboards in Streamlit. Use when creating KPI displays, metric cards, or data-heavy layouts. Covers borders, cards, responsive layouts, and dashboard composition.\nlicense: Apache-2.0\n---\n\n# Streamlit dashboards\n\nCompose metrics, charts, and data into clean dashboard layouts.\n\n## Cards with borders\n\nUse `border=True` to create visual cards. Supported on `st.container`, `st.metric`, `st.columns`, and `st.form`:\n\n```python\n# Container card\nwith st.container(border=True):\n    st.subheader(\"Sales Overview\")\n    st.line_chart(sales_data)\n\n# Metric card\nst.metric(\"Revenue\", \"$1.2M\", \"+12%\", border=True)\n\n# Column cards\nfor col in st.columns(3, border=True):\n    with col:\n        st.metric(\"Users\", \"1.2k\")\n```\n\n## Card labels\n\nAdd context to cards with headers or bold text:\n\n```python\n# With subheader\nwith st.container(border=True):\n    st.subheader(\"Monthly Trends\")\n    st.line_chart(data)\n\n# With bold label\nwith st.container(border=True):\n    st.markdown(\"**Top Products**\")\n    st.dataframe(top_products)\n```\n\n## KPI rows\n\nUse horizontal containers for responsive metric rows:\n\n```python\nwith st.container(horizontal=True):\n    st.metric(\"Revenue\", \"$1.2M\", \"-7%\", border=True)\n    st.metric(\"Users\", \"762k\", \"+12%\", border=True)\n    st.metric(\"Orders\", \"1.4k\", \"+5%\", border=True)\n```\n\nHorizontal containers wrap on smaller screens. Prefer them over `st.columns` for metric rows.\n\n## Metrics with sparklines\n\nAdd trend context with `chart_data`:\n\n```python\nweekly_values = [700, 720, 715, 740, 762, 755, 780]\n\nst.metric(\n    \"Active Users\",\n    \"780k\",\n    \"+3.2%\",\n    border=True,\n    chart_data=weekly_values,\n    chart_type=\"line\",  # or \"bar\"\n)\n```\n\nSparklines show y-values only—use for evenly-spaced data like daily\u002Fweekly snapshots.\n\n## Dashboard layout\n\nCombine cards into a dashboard:\n\n```python\n# KPI row\nwith st.container(horizontal=True):\n    st.metric(\"Revenue\", \"$1.2M\", \"-7%\", border=True, chart_data=rev_trend, chart_type=\"line\")\n    st.metric(\"Users\", \"762k\", \"+12%\", border=True, chart_data=user_trend, chart_type=\"line\")\n    st.metric(\"Orders\", \"1.4k\", \"+5%\", border=True, chart_data=order_trend, chart_type=\"bar\")\n\n# Charts row\ncol1, col2 = st.columns(2)\nwith col1:\n    with st.container(border=True):\n        st.subheader(\"Revenue by Region\")\n        st.bar_chart(region_data, x=\"region\", y=\"revenue\")\n\nwith col2:\n    with st.container(border=True):\n        st.subheader(\"Monthly Trend\")\n        st.line_chart(monthly_data, x=\"month\", y=\"value\")\n\n# Data table\nwith st.container(border=True):\n    st.subheader(\"Recent Orders\")\n    st.dataframe(orders_df, hide_index=True)\n```\n\n## Sidebar filters\n\nPut filters in the sidebar to maximize dashboard space:\n\n```python\nwith st.sidebar:\n    date_range = st.date_input(\"Date range\", value=(start, end))\n    region = st.multiselect(\"Region\", regions, default=regions)\n    \n# Main area is all dashboard content\n```\n\n## Dashboard templates\n\nReady-to-use dashboard templates are available in `templates\u002Fapps\u002F`:\n\n| Template | Features |\n|----------|----------|\n| `dashboard-metrics` | Metric cards with sparklines, date filtering, focus mode |\n| `dashboard-metrics-snowflake` | Same as above, with Snowflake connection |\n| `dashboard-companies` | Company comparison, filterable data tables |\n| `dashboard-compute` | `@st.fragment` for independent updates, popover filters |\n| `dashboard-compute-snowflake` | Same as above, with Snowflake connection |\n| `dashboard-feature-usage` | Feature adoption tracking, trend analysis |\n| `dashboard-seattle-weather` | Weather data visualization |\n| `dashboard-stock-peers` | Stock peer comparison |\n| `dashboard-stock-peers-snowflake` | Same as above, with Snowflake connection |\n\nEach template uses synthetic data that can be replaced with real queries. See `templates\u002Fapps\u002FREADME.md` for setup instructions.\n\n## Related skills\n\n- `using-streamlit-layouts`: Columns, containers, tabs, dialogs\n- `displaying-streamlit-data`: Charts, dataframes, column configuration\n- `optimizing-streamlit-performance`: Caching and fragments for heavy dashboards\n\n## References\n\n- [st.container](https:\u002F\u002Fdocs.streamlit.io\u002Fdevelop\u002Fapi-reference\u002Flayout\u002Fst.container)\n- [st.metric](https:\u002F\u002Fdocs.streamlit.io\u002Fdevelop\u002Fapi-reference\u002Fdata\u002Fst.metric)\n- [st.columns](https:\u002F\u002Fdocs.streamlit.io\u002Fdevelop\u002Fapi-reference\u002Flayout\u002Fst.columns)\n","# Streamlit dashboards\n\nCompose metrics, charts, and data into clean dashboard layouts.\n\n## Cards with borders\n\nUse `border=True` to create visual cards. Supported on `st.container`, `st.metric`, `st.columns`, and `st.form`:\n\n```python\n# Container card\nwith st.container(border=True):\n    st.subheader(\"Sales Overview\")\n    st.line_chart(sales_data)\n\n# Metric card\nst.metric(\"Revenue\", \"$1.2M\", \"+12%\", border=True)\n\n# Column cards\nfor col in st.columns(3, border=True):\n    with col:\n        st.metric(\"Users\", \"1.2k\")\n```\n\n## Card labels\n\nAdd context to cards with headers or bold text:\n\n```python\n# With subheader\nwith st.container(border=True):\n    st.subheader(\"Monthly Trends\")\n    st.line_chart(data)\n\n# With bold label\nwith st.container(border=True):\n    st.markdown(\"**Top Products**\")\n    st.dataframe(top_products)\n```\n\n## KPI rows\n\nUse horizontal containers for responsive metric rows:\n\n```python\nwith st.container(horizontal=True):\n    st.metric(\"Revenue\", \"$1.2M\", \"-7%\", border=True)\n    st.metric(\"Users\", \"762k\", \"+12%\", border=True)\n    st.metric(\"Orders\", \"1.4k\", \"+5%\", border=True)\n```\n\nHorizontal containers wrap on smaller screens. Prefer them over `st.columns` for metric rows.\n\n## Metrics with sparklines\n\nAdd trend context with `chart_data`:\n\n```python\nweekly_values = [700, 720, 715, 740, 762, 755, 780]\n\nst.metric(\n    \"Active Users\",\n    \"780k\",\n    \"+3.2%\",\n    border=True,\n    chart_data=weekly_values,\n    chart_type=\"line\",  # or \"bar\"\n)\n```\n\nSparklines show y-values only—use for evenly-spaced data like daily\u002Fweekly snapshots.\n\n## Dashboard layout\n\nCombine cards into a dashboard:\n\n```python\n# KPI row\nwith st.container(horizontal=True):\n    st.metric(\"Revenue\", \"$1.2M\", \"-7%\", border=True, chart_data=rev_trend, chart_type=\"line\")\n    st.metric(\"Users\", \"762k\", \"+12%\", border=True, chart_data=user_trend, chart_type=\"line\")\n    st.metric(\"Orders\", \"1.4k\", \"+5%\", border=True, chart_data=order_trend, chart_type=\"bar\")\n\n# Charts row\ncol1, col2 = st.columns(2)\nwith col1:\n    with st.container(border=True):\n        st.subheader(\"Revenue by Region\")\n        st.bar_chart(region_data, x=\"region\", y=\"revenue\")\n\nwith col2:\n    with st.container(border=True):\n        st.subheader(\"Monthly Trend\")\n        st.line_chart(monthly_data, x=\"month\", y=\"value\")\n\n# Data table\nwith st.container(border=True):\n    st.subheader(\"Recent Orders\")\n    st.dataframe(orders_df, hide_index=True)\n```\n\n## Sidebar filters\n\nPut filters in the sidebar to maximize dashboard space:\n\n```python\nwith st.sidebar:\n    date_range = st.date_input(\"Date range\", value=(start, end))\n    region = st.multiselect(\"Region\", regions, default=regions)\n    \n# Main area is all dashboard content\n```\n\n## Dashboard templates\n\nReady-to-use dashboard templates are available in `templates\u002Fapps\u002F`:\n\n| Template | Features |\n|----------|----------|\n| `dashboard-metrics` | Metric cards with sparklines, date filtering, focus mode |\n| `dashboard-metrics-snowflake` | Same as above, with Snowflake connection |\n| `dashboard-companies` | Company comparison, filterable data tables |\n| `dashboard-compute` | `@st.fragment` for independent updates, popover filters |\n| `dashboard-compute-snowflake` | Same as above, with Snowflake connection |\n| `dashboard-feature-usage` | Feature adoption tracking, trend analysis |\n| `dashboard-seattle-weather` | Weather data visualization |\n| `dashboard-stock-peers` | Stock peer comparison |\n| `dashboard-stock-peers-snowflake` | Same as above, with Snowflake connection |\n\nEach template uses synthetic data that can be replaced with real queries. See `templates\u002Fapps\u002FREADME.md` for setup instructions.\n\n## Related skills\n\n- `using-streamlit-layouts`: Columns, containers, tabs, dialogs\n- `displaying-streamlit-data`: Charts, dataframes, column configuration\n- `optimizing-streamlit-performance`: Caching and fragments for heavy dashboards\n\n## References\n\n- [st.container](https:\u002F\u002Fdocs.streamlit.io\u002Fdevelop\u002Fapi-reference\u002Flayout\u002Fst.container)\n- [st.metric](https:\u002F\u002Fdocs.streamlit.io\u002Fdevelop\u002Fapi-reference\u002Fdata\u002Fst.metric)\n- [st.columns](https:\u002F\u002Fdocs.streamlit.io\u002Fdevelop\u002Fapi-reference\u002Flayout\u002Fst.columns)\n",{"name":5,"license":15,"description":7},"main","3efae68c898153694a2f4aad309c7ff9847b5602","installed-skills\u002Fdeveloping-with-streamlit\u002Fskills\u002Fbuilding-streamlit-dashboards",0,"https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config","https:\u002F\u002Fgithub.com\u002Flegout","2026-04-28 16:32:33",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add legout\u002Fpi-config --skill building-streamlit-dashboards",{"tool":48,"command":49},"bunx","bunx skills add legout\u002Fpi-config --skill building-streamlit-dashboards",{"tool":51,"command":52},"pnpm","pnpm dlx skills add legout\u002Fpi-config --skill building-streamlit-dashboards","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Fdeveloping-with-streamlit\u002Fskills\u002Fbuilding-streamlit-dashboards\u002FSKILL.md",true,[],[57,84,105,118,131,152],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":30},"01M6KGW7MYKZ8MWFKN1V8ZJ2EG","visual-explainer","Generate beautiful, self-contained HTML pages that visually explain systems, code changes, plans, and data. Use when the user asks for a diagram, architecture overview, diff review, plan review, project recap, comparison table, or any visual explanation of technical concepts. Also use proactively when you are about to render a complex ASCII table (4+ rows or 3+ columns) — present it as a styled HTML page instead.","MIT","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-explainer\u002FSKILL.md",[],[65,66,67,68,69,70,71,72,73,27,74,75,76,77,78,79,80,81,82,83],"visual explainer","explainer","visual","image","architecture","generate","plan","table","view","files","project","present","as","ascii table","ascii","you","concepts","surf","for",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":30},"01M6KGTMTJR6RXXC8AF29MQQW5","table-extractor",">","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Ftable-extractor\u002FSKILL.md",[],[72,91,92,93,94,95,96,24,97,98,99,100,101,102,103,104],"table extractor","PDF","MCP","gpt","extraction","office","parsing","extract","en","zh","camelot","sonnet","opus","tables",{"skillNo":106,"name":107,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":30},"01M6KGSWF2R22Z63PAY5NT6GRY","smart-ocr","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Fsmart-ocr\u002FSKILL.md",[],[111,112,92,93,113,94,95,96,97,114,98,99,100,115,116,102,103,117],"ocr","smart ocr","support","text","multilingual","processing","paddleocr",{"skillNo":119,"name":120,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":30},"01M6KGMKKFNC1PRNX2W3E243DR","html-slides","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Fhtml-slides\u002FSKILL.md",[],[124,125,126,127,93,128,94,96,99,100,129,130,102,103],"slides","html","html slides","pptx","web","revealjs","presentation",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":30},"01M6KGJGVM0TWW632Y6VQQV2WN","using-streamlit-session-state","Using st.session_state to manage state across Streamlit reruns. Use when persisting data, handling widget state, implementing callbacks, or debugging state issues. Covers initialization patterns, widget-state association, and common gotchas.","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Fdeveloping-with-streamlit\u002Fskills\u002Fusing-streamlit-session-state\u002FSKILL.md",[],[138,139,20,140,141,142,143,24,144,27,145,146,147,148,149,150,151],"state","session","session state","using streamlit session state","debugging","issues","common","manage","patterns","across","widget","Callbacks","implementing","initialization",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":30},"01M6KGJD12GJB7W0ZG66JK00F6","using-streamlit-markdown","Covers all Markdown features in Streamlit including GitHub-flavored syntax plus Streamlit extensions like colored text, badges, Material icons, and LaTeX. Use when formatting text, labels, tooltips, or any text-rendering element.","https:\u002F\u002Fgithub.com\u002Flegout\u002Fpi-config\u002Fblob\u002Fmain\u002Finstalled-skills\u002Fdeveloping-with-streamlit\u002Fskills\u002Fusing-streamlit-markdown\u002FSKILL.md",[],[159,20,160,161,162,163,114,164,27,165,166,167,168,169,170,171],"markdown","using streamlit markdown","github","icons","LaTeX","syntax","formatting","element","material","rendering","extensions","features","labels"]