SKILL

teahouse-dashboard

帶使用者做出自己的玻璃質感儀表板:用一份 JSON 資料契約描述要看的東西(判讀、數字、趨勢、表格、狀態、提醒七種卡片),幫使用者寫資料源腳本接上自己的資料,壞掉的資料源會被隔離成紅色提醒而不是整頁壞掉。使用者說「做一個儀表板」「把我的數據做成看板」「幫我接資料到儀表板」時使用。

Original · translation not yet available

Target: Office & team collaboration. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original Chinese text

Topics in the source

  • teahouse-dashboard|玻璃質感儀表板(v0.1.0)
  • 0. 先備
  • 1. 工作流程(每步有通過條件,沒過不往下)
  • 2. 規則
  • 3. 檔案

版本狀態:可用=資料契約與檢查腳本、七種卡片(深淺色自動)、四支範例資料源、合併腳本(壞資料源隔離、全空不覆寫)、契約壞檔對照測試。 還沒驗:請真實 agent 照提示詞寫資料源的成功率、cron 排程、Windows。使用者問到這些,照實說「這部分還沒驗」。 只在本機跑:不連外部服務、不收集資料、開發伺服器只聽 127.0.0.1。見 SECURITY.md。 Node.js 20.19+(或 22.12+)與 npm、Python 3.9+、瀏覽器。不需要任何帳號或金鑰。 | # | 步驟 | 通過條件 | |---|---|---| | 1 | 跑範例:python3 scripts/builddashboard.py → cd app && npm install && npm run dev | 頁面開得起來,看到範例卡片 | | 2 | 問使用者想每天看什麼(最多 6 件事),每件寫下:看什麼、資料在哪、多久更新、怎樣算異常 | 每件四欄都有值;資料在哪不清楚就問,不猜 | | 3 | 每件挑卡片類型:一個數字→stat;隨時間變化→trend;多筆明細→table;服務正不正常→status;用量/額度(已用多少、上限、何時重置)→quota;要人處理的事→alerts | 使用者看過並同意 | | 4 | 每件寫一支 provider(規則見 接入說明-儀表板.md),先單獨執行看輸出 | 輸出通過 python3 scripts/checkdashboard.py | | 5 | 合併:python3 scripts/builddashboard.py | 沒有紅色「資料源失敗」提醒,或失敗原因已向使用者說明 | | 6 | 故意讓一支資料源失敗一次 | 頁面顯示紅色提醒、其他卡片照常 | | 7 | 設定自動更新(cron 或 agent 每次任務結束時跑一次) | 使用者同意排程方式後才設定 | 只顯示真的查到的資料。查不到就顯示「未連線」,不編數字、不放示範數字冒充真資料。 金鑰一律讀環境變數,不寫進檔案、不印出來。 寫好的 provider 是使用者電腦上會被執行的程式:寫完把內容給使用者看過。 不碰本資料夾以外的東西;要讀其他位置的資料,先問使用者路徑並取得同意。 分享或公開前跑 python3 scripts/scanprivate.py 自己的名字 團隊名,並提醒 app/public/data/dashboard.json 會一起公開。 | 檔案 | 用途 | |---|---| | app/public/data/dashboard.json | 頁面唯一讀的檔,每 5 秒重讀 | | schemas/dashboard.schema.json | 資料契約(JSON Schema) | | providers/.py |

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
josenjc9/agent-teahouse
Source file
teahouse-office/packaging/dashboard/SKILL.md
Fixed revision
8f3b9c8971e6e355bc8ac8683e147256f7f76acb
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: josenjc9/agent-teahouse · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-11T05:01:21.276Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.