<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Luke Chi on Medium]]></title>
        <description><![CDATA[Stories by Luke Chi on Medium]]></description>
        <link>https://medium.com/@lukechi?source=rss-bf7dd692afe9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*oy8TwqyWZDrkMkS9.</url>
            <title>Stories by Luke Chi on Medium</title>
            <link>https://medium.com/@lukechi?source=rss-bf7dd692afe9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:41:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lukechi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[買了一個三鍵小鍵盤，讓 AI 幫你在 Mac 上裝好、設好]]></title>
            <link>https://medium.com/@lukechi/%E8%B2%B7%E4%BA%86%E4%B8%80%E5%80%8B%E4%B8%89%E9%8D%B5%E5%B0%8F%E9%8D%B5%E7%9B%A4-%E8%AE%93-ai-%E5%B9%AB%E4%BD%A0%E5%9C%A8-mac-%E4%B8%8A%E8%A3%9D%E5%A5%BD-%E8%A8%AD%E5%A5%BD-a42779bc5b5d?source=rss-bf7dd692afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a42779bc5b5d</guid>
            <dc:creator><![CDATA[Luke Chi]]></dc:creator>
            <pubDate>Sun, 01 Nov 2026 07:56:33 GMT</pubDate>
            <atom:updated>2026-11-01T07:56:33.026Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*tOgvA63SCVmD30SL5YvsDQ.png" /></figure><p>我買了一個小小的鍵盤：三顆按鍵加一個旋鈕，可以自己決定每顆鍵按下去做什麼。賣家給的設定程式是 Windows 版，我用 Mac。這篇記錄我怎麼靠跟 AI 對話，一個下午就把它裝好、測好、設成三組自己要的功能。</p><blockquote>我自己的用法：<strong>第一組用來跟 Claude 語音對話（一鍵開始講話、一鍵送出）</strong>，第二組用 Mac 內建的聽寫，第三組用來切換桌面和視窗。你可以完全照抄，也可以叫 AI 幫你設計自己的。</blockquote><p>你不需要懂程式，只要會插線、會按鍵、會把文字貼給 AI。文中有八段我實際用過的話，照抄就能讓 AI 帶著你走一遍。技術細節全部收在最後的附錄，想知道為什麼再翻。</p><h3>這把鍵盤是什麼，能幫你做什麼</h3><p>它叫 SIKAI SK-KB3，在 PChome 買的，藍牙版、白色。機身上有三顆大按鍵和一個可以轉、可以按的旋鈕，側邊還有一個小開關和一顆小按鈕。它裡面可以存三組設定，按側邊小按鈕就能在三組之間切換，等於一個鍵盤當三個用。</p><p>設定存在鍵盤自己身上，不是存在電腦裡。所以設好之後換另一台電腦、接 iPad，功能都跟著走，電腦上也不用一直開著任何程式。</p><p>開始前準備四樣東西：</p><ul><li>一台能跑 macOS 14（Sonoma）或更新系統的 Mac。設定程式 MINIKeyboard 不支援更舊的系統，舊 Mac 可以改走附錄裡的網頁版備案。</li><li>一條 USB 線，建議是大的方頭（USB-A）轉小的橢圓頭（USB-C）那種。兩頭都是小橢圓頭的線很多人回報會設定不進去。</li><li>一個能上網查資料、也能在你電腦上執行指令的 AI 助理。我用的是 Claude Code 桌面版，其他類似工具也行。</li><li>大約一個下午。大部分時間是 AI 在做事，你負責插線、按鍵試、回答它「正常」或「不正常」。</li></ul><h3>先認識側邊的開關和按鈕</h3><p>說明書對這兩個東西的說法很容易讓人誤會，實際試過之後是這樣：</p><ul><li><strong>小開關</strong>是藍牙的電源。撥到 ON 它才會用藍牙，撥到 OFF 就安靜省電。它不是「有線／無線」的選擇器：只要插著線，它就是有線鍵盤，與開關無關。</li><li><strong>小按鈕</strong>是切換三組設定的鍵。按一下換下一組，第三組再按回到第一組。插線和藍牙時都能用。</li><li><strong>要改設定一定要插線</strong>。藍牙只能用，不能改。改完拔線，設定還在。</li><li><strong>藍牙配對</strong>：拔線、開關撥 ON，到 Mac 的藍牙設定找「MINI_KEYBOARD」點連線就好。</li><li><strong>背光只在插線時亮</strong>，藍牙下不亮是正常的，不是壞掉。電量也只有藍牙時看得到，在藍牙設定裡。</li></ul><h3>跟著 AI 一步一步做：八段可以直接貼的話</h3><p>整個過程的分工很簡單：AI 負責查資料、檢查軟體安不安全、下載安裝、操作設定程式；你負責插線、按鍵試、告訴它你想要什麼。下面八段話依順序貼給 AI，每貼一段等它做完、你確認完，再貼下一段。網址、型號、檔名、我已經查到的結論都已經填好，只有方括號裡的是你自己的狀況（電腦型號、鍵盤排列、你想要的功能），要換成你的。</p><p>幾個讓事情順利的小習慣：一開始就把商品頁、賣家給的檔案連結、官網都給 AI；告訴它你用什麼電腦、有沒有把鍵盤改成特殊排列；要求它先檢查再安裝、先小測試再正式設定。它問你「正常嗎」的時候，回「全部正常」或說出哪一顆鍵不對就好。</p><p><strong>第 1 段：請 AI 先幫你研究，先不要裝任何東西</strong></p><p>你要做的：把鍵盤插上電腦，把連結填進去。AI 會讀出鍵盤的身分、找出所有能設定它的軟體，給你一個推薦。我這次得到的答案是一個開源的 Mac 程式 MINIKeyboard，不需要用任何模擬 Windows 的方法。</p><pre>我買了 SIKAI 的可程式化小鍵盤，型號 SK-KB3，規格是 3 鍵 + 1 旋鈕，藍牙版。<br>相關網頁，可以用瀏覽器開啟或下載檔案：<br>- PChome 商品頁：https://24h.pchome.com.tw/prod/DCAHEK-A900JZ8KU-002<br>- 賣家提供的設定程式資料夾：https://drive.google.com/drive/folders/1m9YSF83-EVrxRK2sd_-7g4rdjez-YIuB （這是賣家的資料夾，打不開就略過，不影響後面步驟）<br>- SIKAI 官網軟體下載頁：https://www.sikaiglobal.com/post/keyboard-software</pre><pre>我用 macOS [版本]，[Apple Silicon / Intel]，鍵盤 layout 是 [QWERTY / 其他]。<br>如果有原生 Mac 方案，我不想用 CrossOver 或任何模擬 Windows 的方式。<br>鍵盤已經接上這台電腦。</pre><pre>已知資訊，請先驗證再採用：<br>- 別人實測這把鍵盤的 USB ID 是 514C:8850，韌體是 MINI KEYBOARD 884x 標準韌體。<br>- 別人最後採用的是開源 App MINIKeyboard（https://github.com/hobbyworker/MINIKeyboardApple），原生 Apple Silicon、有簽章與公證。<br>- ch57x-keyboard-tool 會把這個 USB ID 的鍵盤弄到全部失效（https://github.com/kriomant/ch57x-keyboard-tool/issues/194），不要用。</pre><pre>請幫我：<br>1. 用 ioreg 或 system_profiler 讀出我這把鍵盤的 USB Vendor ID / Product ID 與介面，確認跟上面已知的一致。<br>2. 確認 MINIKeyboard 現在的最新版本與支援的 macOS 版本，我的系統能不能跑。<br>3. 如果這些已知資訊有任何一項跟現況不符，告訴我，並重新評估其他路線。<br>4. 給我一個推薦路線與備案，先不要安裝任何東西。</pre><p><strong>第 2 段：裝之前，請 AI 先檢查這個程式安不安全</strong></p><p>你要做的：什麼都不用，等它讀完。一個會直接碰你 USB 裝置的程式，值得花十分鐘讓 AI 把它的原始碼看一遍：會不會連網路、會不會偷讀你打字、是誰寫的。它會給你一個「可以裝」或「有疑慮」的結論。</p><pre>在下載 MINIKeyboard-1.2.0.dmg 之前，先幫我審查它的原始碼有沒有資安威脅。<br>專案在 https://github.com/hobbyworker/MINIKeyboardApple 。請 clone 到暫存目錄，不要執行它。</pre><pre>請逐項回答，每一項附上你看到的檔案路徑：<br>1. 所有對外網路連線（URLSession、socket、第三方更新框架）連到哪裡，用什麼簽章驗證。<br>2. 有沒有 Process、shell、AppleScript、提權、LaunchAgent、非設定目的的檔案寫入。<br>3. 它怎麼選擇要打開的 USB / HID 裝置？會不會讀到我其他鍵盤的按鍵？需不需要「輸入監控」權限？<br>4. 簽章設定：Hardened Runtime、App Sandbox、entitlements 各是什麼，為什麼。<br>5. 建置與發布流程：有沒有 CI？Release 的 dmg 是誰打包的？有沒有公布 sha256？<br>6. 第三方依賴有哪些、版本是否鎖定。<br>7. 專案年齡、作者背景、star 與 issue 狀況。</pre><pre>別人在 2026 年 11 月審過 1.2.0 版的結論是：唯一網路連線是 Sparkle 自動更新，沒有 shell 與提權，只認 Vendor ID 1189 與 514C 的設定介面，不需要輸入監控權限。<br>請用現在的程式碼重新確認這些結論是否仍然成立，有變化要特別標出來。<br>最後給我一個結論：對這個用途來說風險是否可接受，剩餘風險是什麼。</pre><p><strong>第 3 段：請 AI 下載，並確認下載到的就是作者發布的那個</strong></p><p>你要做的：等。這一段是防止下載到被動過手腳的檔案。AI 會核對檔案指紋、檢查 Apple 的開發者簽章和公證，任何一關沒過它就會停下來。</p><pre>下載並驗證。從 https://github.com/hobbyworker/MINIKeyboardApple/releases 拿最新版的 MINIKeyboard-x.y.z.dmg，放在一個新的空目錄。驗證順序：<br>1. sha256 與 Release 頁公布的值比對。<br>2. 掛載 dmg 後跑 codesign --verify --deep --strict --verbose=2。<br>3. spctl -a -vv -t exec，確認是 Notarized Developer ID。別人驗證 1.2.0 時簽章是 Developer ID Application: Juhyun Lee，Team ID 286RLLA327，請確認一致；不一致要停下來。<br>4. stapler validate 確認公證票已 staple。<br>5. 檢查 Info.plist 裡的 Sparkle 更新 feed URL，別人看到的是 mini-kb.hobbyworker.me 下的 updates/mac.xml，它應該指回同一個 GitHub Release。<br>任何一步失敗就停下來告訴我，不要安裝。全部通過再問我要不要裝。</pre><p><strong>第 4 段：安裝，然後分四個小階段測試</strong></p><p>你要做的：每個階段結束時實際按按鍵、轉轉旋鈕、按側邊小按鈕切換，然後回答「全部正常」。第四階段要拔線、把小開關撥到 ON、用藍牙連上再測一次。先用最小的改動確認「寫得進、讀得回、按得出」，出問題才知道是哪一步壞的。</p><pre>開始安裝：把 MINIKeyboard.app 放進 /Applications。第一次開啟時 Sparkle 會問要不要自動檢查更新，幫我選「不要」。<br>裝完後不要直接寫我的正式配置，先走下面四個階段，每階段只改最少的東西：<br>- 階段 1 辨識：確認 App 顯示「已連線 514C:8850 · 按鍵 3 個 · 旋鈕 1 個」，讀出出廠值（預期三層都是 A/B/C，旋鈕 左 1／右 3／按 2）。<br>- 階段 2 最小寫入：第 1 層 KEY1 改成 x，旋鈕改成 音量−／音量+／靜音，儲存後讀回比對。<br>- 階段 3 切層：第 2 層 KEY1 = y、第 3 層 KEY1 = z，我用側邊按鈕切層驗證 x → y → z 循環。<br>- 階段 4 持久與無線：退出 App、拔線、藍牙配對（裝置名稱 MINI_KEYBOARD）後再測鍵、旋鈕、切層。<br>每個階段寫完後停下來讓我實按，我回「全部正常」你再進下一階段。<br>已知事實，請在階段 4 順便確認：側邊切換開關是藍牙電源，不是有線／無線選擇器；側邊按鈕是層切換鍵，有線與藍牙都能切；設定一律要插線。<br>要小心 App 右下角「清除」與「清除層」兩個鈕很近，後者會清掉整層。</pre><p><strong>第 5 段：跟 AI 討論一組設定要怎麼排</strong></p><p>你要做的：告訴它你想用這組做什麼、你拿鍵盤時哪顆鍵最好按。它會提案每顆鍵放什麼、有什麼風險（例如把「全選後刪除」做成一鍵，誤按會把打好的字清掉）。討論完你說「好，寫進去」，它才會動手。三組設定就重複這一段三次。</p><pre>我想討論第 [1] 層怎麼設定。用途是 [Claude Desktop 語音輸入]。<br>根據我手持的方式，比較容易按的順序是 [KEY3 &gt; KEY2 &gt; KEY1]。<br>這個情境會用到的動作與快速鍵（以 Claude Desktop 為例，換成你的情境就改這段）：<br>- 啟動／結束聽寫：⌘D（Claude Desktop 預設）<br>- 送出：Enter<br>- 清空輸入框：沒有單一快速鍵，用 ⌘A 全選再 Delete<br>- 捲動對話：滑鼠滾輪<br>我的鍵盤 layout 是 [QWERTY / 其他]，請注意小鍵盤送的是實體鍵碼。<br>已知限制：滾輪在這個韌體裡每格固定 ±1，改不了速度；藍牙模式送不出 F13–F24；每鍵最多 18 個輸入。<br>請按「最高頻放最好按、破壞性放最難按」的原則給我一個提案，列出每個位置要在 App 裡選什麼、OS 會收到什麼、有什麼風險（例如把 ⌘A 和 Delete 做成同一顆鍵的巨集，誤觸會刪掉打好的字）。<br>先討論，我確認後你再寫進鍵盤。寫入後確認 App 顯示「沒有未儲存的變更」。</pre><p><strong>第 6 段：如果你把鍵盤改成非標準排列，多問這一句</strong></p><p>大部分人可以跳過。我的 Mac 鍵盤排列改成 Colemak-DH，小鍵盤送出的字母會被電腦「翻譯」成另一個字母，設定時要先換算。詳細原因在附錄。</p><pre>我的 macOS 鍵盤 layout 是 [Colemak-DH ANSI]。小鍵盤送實體鍵碼，OS 再套 layout。<br>已知例子：在 Colemak-DH 下，App 選 ⌘ + C 鍵位，OS 收到的是 ⌘D；要 ⌘H 要選 QWERTY 的 M 鍵位；A、X、Z、Enter、Delete、方向鍵、F 鍵、修飾鍵在兩個 layout 位置相同。<br>我要 OS 收到 [⌘H]。請告訴我在設定 App 的 QWERTY 鍵盤圖上要點哪個鍵位，並說明推導過程。<br>往後我提到字母快速鍵時，先問我指的是「輸出字母」還是「鍵位」，再換算。</pre><p><strong>第 7 段：想要的功能做不出來時，請它說清楚原因</strong></p><p>你要做的：接受它的結論或選一個折衷方案。我想把「連按兩下 Control 啟動 Mac 聽寫」做成一顆鍵，鍵盤本身做不到，最後改成「那顆鍵送一次 Control，我自己按兩下」。要求 AI 說清楚原因，可以避免它硬湊一個看起來有做其實沒用的設定。</p><pre>我想把 [連按兩下 Control 啟動 macOS 聽寫] 做成一顆鍵。<br>別人在 MINIKeyboard 1.2.0 試過的結論：這個韌體把修飾鍵當旗標不當按鍵碼，單獨 Control 會變成「等下一個鍵」；「僅變更鍵」可以做成一個輸入但第二個相同修飾鍵被忽略；左 Control 接右 Control 會合併成和弦。所以做不到。<br>請先從 App 現在的原始碼與韌體協定確認這個結論是否仍然成立，實際試最多三種寫法（僅修飾鍵、左右 Control 交替、加延遲）。<br>做不到就明白告訴我原因，並給我不改系統快速鍵的折衷方案（別人的做法是那顆鍵送單獨一次左 Control，自己連按兩下），不要硬湊。</pre><p><strong>第 8 段：收尾，請 AI 寫筆記、清檔案、記住這些事</strong></p><p>你要做的：看一下它列出要刪的檔案，沒問題就說「刪」。筆記留著，下次想改設定或換電腦就不用重新研究。</p><pre>三層都實測通過了。請：<br>1. 把裝置識別（USB ID 514C:8850、884x 韌體）、軟體比較、資安審查摘要、安裝步驟、四階段驗證結果、三層配置表、做不到的事與來源寫成一篇筆記。<br>2. 把下載的 MINIKeyboard-x.y.z.dmg、解壓目錄、clone 的原始碼清掉，只留 /Applications/MINIKeyboard.app。清之前先列出你要刪的檔案給我看。<br>3. 把鍵位換算規則、韌體限制（修飾鍵雙擊做不到、滾輪速度固定、藍牙無 F13 以上）、不要用 ch57x-keyboard-tool 記進你的長期記憶，下次改設定不用重查。</pre><h3>裝好之後，第一次打開會看到什麼</h3><p>AI 裝完後，你會在「應用程式」資料夾看到一個叫 MINIKeyboard 的程式。第一次打開它會問要不要自動檢查更新，我選「不要」，有需要再手動檢查。接著就是這五步：</p><ol><li>鍵盤插線。程式左上角會顯示「已連線」，還會寫它認到了 3 個按鍵和 1 個旋鈕。不會跳任何權限請求。</li><li>按 ⌘R 讀取鍵盤現在的設定。新鍵盤三組都是 A、B、C 三個字母，旋鈕是 1、2、3。</li><li>畫面上方選第幾組、點一顆鍵，下方選你要它做的事（打字、音量、滑鼠滾輪都有）。</li><li>按 ⌘S 儲存。大約 5 秒，完成後右下角會寫「沒有未儲存的變更」，代表它寫進鍵盤並且讀回來核對過了。</li><li>拔線、關程式。設定已經在鍵盤裡了。</li></ol><p>兩個我踩過的坑。第一，右下角有「清除」和「清除層」兩個鈕挙很近，前者只清你點選的那一顆鍵，後者會把整組清光，點錯要重做。好在沒按儲存前不會寫進鍵盤。第二，程式裡選的「第幾組」跟鍵盤現在在第幾組是兩件事，存完要用側邊小按鈕切到對的那組才會生效。</p><h3>分四個小階段測試，不要一次到位</h3><p>第 4 段話貼給 AI 之後，它會帶你走這四個階段。每個階段只改一點點，你按一按確認，沒問題再往下。這樣就算哪裡不對，也馬上知道是哪一步。</p><ol><li><strong>認得出來嗎</strong>：AI 打開程式讀鍵盤；你看畫面是不是寫 3 鍵 1 旋鈕。我的結果：通過。</li><li><strong>寫得進去嗎</strong>：AI 把第一組的第一顆鍵改成字母 x，旋鈕改成音量；你開一個文字檔按按看，轉旋鈕看音量有沒有動。我的結果：通過。</li><li><strong>三組切得換嗎</strong>：AI 把第二組改成 y、第三組改成 z；你按側邊小按鈕，看打出來的字母是不是 x → y → z 輪流。我的結果：通過。</li><li><strong>拔線還在嗎</strong>：AI 關程式；你拔線、開藍牙再測一次。我的結果：通過。</li></ol><p>階段 2 用音量當旋鈕的測試值，是因為轉一下螢幕就會跳出音量條，一眼就知道有沒有反應。階段 3 用三個不同字母，是為了一打就知道現在在第幾組。</p><h3>我的三組設定，可以照抄</h3><p>排法有三個原則。最常按的功能放手指最好到的鍵（我拿鍵盤的方式是第 3 鍵最好按，第 1 鍵最難），會刪東西的功能放最難按的位置。切換是 1 → 2 → 3 → 1 單向輪流，第三組要按兩下才到，所以放「進去會待一陣子」的用途。三組盡量讓同一顆鍵做類似的事（送出、全選、刪除、捲動），換組手不用重新適應。</p><p>每一行的格式是「位置：按下去發生什麼（在設定程式選什麼）」。如果你的 Mac 鍵盤排列是預設的，選字母就是那個字母；我的排列改過，所以有兩行選的字母跟實際效果不同，原因在附錄。</p><p><strong>第一組：跟 Claude 語音對話</strong></p><ul><li>第 3 鍵：開始聽我講話／講完變成文字（⌘ + D，我的排列要選 C 鍵位）</li><li>第 2 鍵：送出（Enter）</li><li>第 1 鍵：全選輸入框的文字（⌘ + A）</li><li>旋鈕按下：刪除，接在全選後就是清空（Delete）</li><li>旋鈕左轉：對話往下捲（滑鼠滾輪向下）</li><li>旋鈕右轉：對話往上捲（滑鼠滾輪向上）</li></ul><p>一輪對話長這樣：按第 3 鍵 → 講話 → 再按第 3 鍵 → 看一眼文字 → 按第 2 鍵送出。講錯要重來：按第 1 鍵、按旋鈕。</p><p><strong>第二組：用 Mac 內建的聽寫</strong></p><p>跟第一組只差第 3 鍵：改成送一次左 Control（設定程式裡選 Control，再按「僅變更鍵」）。Mac 的聽寫是連按兩下 Control 啟動，鍵盤做不出「自動按兩下」，所以我自己快速按兩下第 3 鍵。講完按第 2 鍵，聽寫會結束並送出。其他五個位置跟第一組一模一樣。</p><p><strong>第三組：切換桌面和視窗</strong></p><ul><li>第 3 鍵：同一個程式的視窗輪流切（⌘ + `，鍵盤左上角那顆）</li><li>第 2 鍵：把目前的程式藏起來（⌘ + H，我的排列要選 M 鍵位）</li><li>第 1 鍵：把所有視窗撥開露出桌面（F11）</li><li>旋鈕按下：一次看到所有視窗，Mission Control（Control + ↑）</li><li>旋鈕左轉：切到左邊的桌面（Control + ←）</li><li>旋鈕右轉：切到右邊的桌面（Control + →）</li></ul><p>這組全部是 Mac 本來就有的快速鍵，不用裝任何東西。如果你改過「系統設定 → 鍵盤 → 快速鍵 → Mission Control」那一組，效果會不同。我也考慮過拿第三組當影片剪輯用（旋鈕逐格前進後退、按下播放），旋鈕轉一格就是一步的特性很適合，有剪片習慣的人可以試。</p><h3>先知道它做不到的事，省得白試</h3><ul><li><strong>「同一個鍵自動按兩下」做不到</strong>，尤其是 Control、Shift 這類修飾鍵。所以 Mac 聽寫沒辦法一鍵啟動，只能像第二組那樣自己按兩下。</li><li><strong>旋鈕捲動的速度改不了</strong>，轉一格永遠是滾一格。覺得慢，到「系統設定 → 滑鼠 → 滾動速度」拉快一點。</li><li><strong>藍牙時送不出 F13 以上的鍵</strong>。平常用不到，如果 AI 建議你用 F13、F14 當自訂快速鍵，要提醒它你會用藍牙。</li><li><strong>電量只有藍牙時看得到</strong>，設定程式裡沒有。</li><li><strong>每顆鍵最多連續做 18 個動作</strong>，一般人用不到這麼多。</li></ul><h3>附錄</h3><p>以下是給想知道「為什麼」的人，或者要貼給 AI 當參考的技術細節：鍵盤的硬體身分、為什麼選這個程式、裝前到底檢查了什麼、改過鍵盤排列的人要怎麼換算。照著前面做就能完成，這裡不看也沒關係。</p><h3>裝置規格與識別指令</h3><p>這裡是鍵盤的硬體身分證。你不需要看懂，AI 會用它來判斷哪些軟體能設定這把鍵盤。它不是 SIKAI 自己的韌體，而是市面上很多小鍵盤共用的「MINI KEYBOARD 884x 標準韌體」，這點決定了哪些工具能用。</p><ul><li>型號：SIKAI SK-KB3，3 鍵 + 1 旋鈕，藍牙版</li><li>USB Vendor ID / Product ID：514C:8850（十進位 20812 / 34896）</li><li>韌體家族：MINI KEYBOARD 884x 標準韌體 v11</li><li>USB 規格：USB 1.1，12 Mb/s</li><li>介面 0：設定通道，HID 報告 ID 3，65 位元組，usage page 0xFF00</li><li>介面 1：鍵盤 + 滑鼠 + 多媒體（一般輸入）</li><li>每鍵上限：18 個輸入步驟，延遲 0 到 6000 ms</li><li>層數：3 層，設定存在鍵盤內</li></ul><p>鍵盤插上 USB 線後，用下面的指令確認 macOS 有沒有看到它。輸出 1 代表有線在線，0 代表沒接上或切換開關位置不對。</p><pre>ioreg -p IOUSB -l -w0 | grep -c &#39;&quot;idVendor&quot; = 20812&#39;</pre><p>要看完整的 USB 描述（序號、介面數、速度），用「系統資訊 → USB」或下面的指令。</p><pre>system_profiler SPUSBDataType | grep -A 12 -i &#39;MINI&#39;</pre><h3>軟體路線比較</h3><p>因為韌體是 884x 標準家族，所有支援這個家族的工具理論上都能用。實際評估五條路線後，只有 MINIKeyboard 同時滿足「原生 Apple Silicon」、「有簽章與公證」、「原始碼公開可審」三個條件。</p><ul><li><a href="https://github.com/hobbyworker/MINIKeyboardApple">MINIKeyboard 1.2.0</a>（開源 Swift）：原生 Universal，Developer ID + 公證。採用，全程通過。</li><li><a href="https://github.com/jvspier/macropad-rebind">macropad-rebind</a>（WebHID 網頁版）：原生，不需簽章。備案，3×1 排版未實機確認。</li><li><a href="https://www.sikaiglobal.com/post/keyboard-software">SIKAI 官網 Mac 版 pkg</a>（2025–09）：x86_64、Qt 5.12.9，Developer ID + 公證。備案，未安裝。</li><li>賣家 Google Drive Mac zip（2024–09）：x86_64，無簽章。不建議。</li><li>CrossOver 跑 Windows 版：Wine。用不到。</li></ul><p>一個要避開的工具：ch57x-keyboard-tool。GitHub <a href="https://github.com/kriomant/ch57x-keyboard-tool/issues/194">issue #194</a> 回報 514C:8850 寫入「成功」後所有按鍵失效，它支援的是另一個韌體家族。</p><h3>安裝前的資安檢查</h3><p>一個會直接開 USB 裝置的工具，安裝前值得花十分鐘看它到底做了什麼。這次先審原始碼，再驗證下載的 binary 跟原始碼是同一個東西。</p><p><strong>原始碼審查重點</strong>（81 個 Swift 檔，MIT 授權）：</p><ul><li>唯一的網路連線是 Sparkle 2.10.0 自動更新框架，EdDSA 簽章、依賴鎖定在固定 commit。沒有其他 URLSession 或 socket。</li><li>沒有 Process／shell 呼叫、沒有提權、沒有 LaunchAgent、沒有檔案寫入，設定只存 UserDefaults。</li><li>裝置比對只認 Vendor ID 1189 與 514C 加上固定八個 Product ID，只打開小鍵盤的設定介面（usage page 0xFF00），不碰一般鍵盤介面。</li><li>HID 輸入回呼丟棄 32 位元組以下的報告，所以它讀不到你的按鍵輸入，也不需要「輸入監控」權限。</li><li>Hardened Runtime 開、App Sandbox 關（IOKit HID 需要），entitlements 為空。</li><li>剩餘風險：repo 沒有 CI，dmg 由作者本機打包；專案 2026–10 才建立，知名度低。對一個 4 MB 的 USB 設定工具屬可接受。</li></ul><p><strong>Binary 驗證</strong>：下載 GitHub Releases 的 MINIKeyboard-1.2.0.dmg 後，依序跑下面四步。每一步都要通過才繼續。</p><pre>shasum -a 256 ~/Downloads/MINIKeyboard-1.2.0.dmg   # 與 GitHub Release 頁公布的值比對</pre><pre>hdiutil attach ~/Downloads/MINIKeyboard-1.2.0.dmg</pre><pre>codesign --verify --deep --strict --verbose=2 /Volumes/MINIKeyboard/MINIKeyboard.app</pre><pre>spctl -a -vv -t exec /Volumes/MINIKeyboard/MINIKeyboard.app   # 預期：accepted, source=Notarized Developer ID</pre><p>這次的結果：sha256 與 release 一致，codesign 通過，spctl 顯示 Notarized Developer ID（Juhyun Lee，Team 286RLLA327），公證票已 staple，更新 feed 指回同一個 release。若你不想用自動更新，第一次開 App 時 Sparkle 會問，選「不要檢查」即可，之後從選單手動 Check for Updates。</p><h3>自訂鍵盤 layout 的鍵位換算</h3><p>小鍵盤送出的是<strong>實體鍵碼</strong>（HID usage），macOS 收到後再套用目前輸入法的 layout。如果你用 QWERTY 以外的 layout（這次是 Colemak-DH ANSI），App 裡選的字母與 OS 實際收到的字母會不同。</p><ul><li>App 選「⌘ + C 鍵位」→ OS 收到 <strong>⌘D</strong>，因為 Colemak-DH 的 D 放在 QWERTY 的 C 位置。Claude Desktop 預設的聽寫快速鍵正好是 ⌘D，所以這次是刻意選 C 鍵位。</li><li>要 ⌘H（隱藏 App）則選 QWERTY 的 M 鍵位，因為 Colemak-DH 的 H 在那裡。</li><li>A、X、Z、Enter、Delete、方向鍵、F 鍵、修飾鍵在兩個 layout 位置相同，不受影響。</li><li>測試階段的「第 2 層 KEY1 = y」在 Colemak-DH 下實際打出 j，這就是發現這件事的起點。</li></ul><p>對策很簡單：設字母類快速鍵時，先在你的 layout 圖上找到目標字母，看它落在 QWERTY 的哪個位置，再在 App 裡選那個位置。跟 AI 討論時要先講清楚你指的是「輸出字母」還是「鍵位」，否則很容易各說各話。</p><h3>來源與相關連結</h3><ul><li><a href="https://github.com/hobbyworker/MINIKeyboardApple">MINIKeyboardApple（hobbyworker）</a>：採用的開源設定 App，Releases 頁有 dmg 與 sha256。</li><li><a href="https://github.com/jvspier/macropad-rebind">macropad-rebind（jvspier）</a>：WebHID 網頁版備案。</li><li><a href="https://github.com/kriomant/ch57x-keyboard-tool/issues/194">ch57x-keyboard-tool issue #194</a>：514C:8850 寫入後失效的回報。</li><li><a href="https://www.sikaiglobal.com/post/keyboard-software">SIKAI 官方軟體下載頁</a>：官方 Mac 版 pkg 與 Windows 版。</li><li><a href="https://sikaicase.com/blogs/support/sikai-case-mini-keyboard-software-setting-japanese">SIKAI 無線機型說明書（日文）</a>：官方對切換開關與層的說法，本文實測後有修正。</li><li><a href="https://24h.pchome.com.tw/prod/DCAHEK-A900JZ8KU-002">PChome 24h 商品頁</a>：購買來源。</li><li>賣家 Google Drive 資料夾「自定義小鍵盤設定程式」：Windows 7z 與無簽章的 Mac zip，未採用。連結屬於賣家，可能隨時失效。</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a42779bc5b5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Anthropic 的「小企業平權」實驗]]></title>
            <link>https://medium.com/@lukechi/anthropic-%E7%9A%84-%E5%B0%8F%E4%BC%81%E6%A5%AD%E5%B9%B3%E6%AC%8A-%E5%AF%A6%E9%A9%97-5e129718273b?source=rss-bf7dd692afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e129718273b</guid>
            <category><![CDATA[anthropic-claude]]></category>
            <dc:creator><![CDATA[Luke Chi]]></dc:creator>
            <pubDate>Mon, 18 May 2026 11:46:25 GMT</pubDate>
            <atom:updated>2026-05-18T11:46:25.115Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI 如何讓小型企業獲得大公司的能力</h3><blockquote><em>當 AI 從「工具」變成「營運夥伴」，小型企業第一次有機會以極低成本獲得原本只有大公司才有的營運能力。</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PxsuA_zUcSNfjgk2-0zHpA.png" /></figure><h3>問題：小型企業的「AI 採用鴻溝」</h3><p>小型企業佔美國 GDP 的 44%，僱用近一半的私營部門勞動力。但 Anthropic 觀察到一個關鍵矛盾：</p><p><strong>小型企業有需求，但落後於大型企業的 AI 採用率。</strong></p><p>這個差距來自三個結構性障礙：</p><ol><li><strong>資源障礙</strong>：沒有大公司的預算聘請 AI 專家或進行長時間測試</li><li><strong>知識障礙</strong>：不知道「何時以及如何使用」AI 工具</li><li><strong>信任障礙</strong>：數據安全是小型企業對 AI 最大的顧慮</li></ol><h3>核心論點：Anthropic 的解決方案是「整合 + 教育」，而非「更強的模型」</h3><p>這個策略的核心洞察是：<strong>工具本身不夠，企業主和團隊需要知道何時以及如何使用它們。</strong></p><p>Anthropic 的做法不是推出「更小企業版的 Claude」，而是重新思考如何讓現有產品真正嵌入小型企業的工作流。</p><h3>支柱一：整合到既有工具（Claude Cowork）</h3><p>通過 Claude Cowork 連接小型企業已經使用的工具：</p><ul><li><strong>財務</strong>：QuickBooks、PayPal、Docusign</li><li><strong>營銷</strong>：HubSpot、Canva</li><li><strong>協作</strong>：Google Workspace、Microsoft 365</li></ul><p><strong>關鍵設計</strong>：用戶先批准計劃，然後執行。這回應了小型企業主的控制需求。</p><h3>支柱二：預建場景（15 個代理工作流 + 15 項技能）</h3><p>不讓企業主從零開始，直接提供：</p><ul><li><strong>15 個即開即用的代理工作流</strong>：薪資規劃、月末結賬、業務洞察、營銷活動執行、發票追討</li><li><strong>15 項針對重複性任務的技能</strong></li></ul><h3>支柱三：教育 + 巡迴（Roadshow）</h3><p>Anthropic 舉辦巡迴活動，邀請小型企業主體驗：</p><ul><li>參與者獲贈一個月的 Claude Max 訂閱</li><li>實際演示如何將 AI 整合到日常營運</li></ul><h3>支持論據：客戶的真實反饋</h3><h3>論據一：發現「不知道存在的問題」</h3><blockquote><em>Purity Coffee COO：「不僅能幫我解決問題，還讓我發現了不知道存在的問題。」</em></blockquote><p>這個反饋揭示了 AI 作為營運夥伴的獨特價值：<strong>AI 可以從數據中看到人類忽略的模式</strong>。</p><h3>論據二：約束條件的重新定義</h3><blockquote><em>Simple Modern CEO：「我們以爲的約束條件已經不再是約束了。這很有力量。」</em></blockquote><p>這句話捕捉到了 AI 對小型企業最深刻的影響：<strong>原本限制企業擴張的瓶頸（時間、人力、分析能力）被重新定義了</strong>。</p><h3>論據三：從重複工作中解放</h3><blockquote><em>MidCentral Energy 技術經理：「從大量枯燥的文書工作中解放出來，做更多增值任務。」</em></blockquote><h3>行動建議：小型企業如何開始？</h3><h3>如果你是小型企業主</h3><ol><li><strong>盤點重複性工作</strong>：哪些任務佔用你或團隊大量時間？</li><li><strong>識別數據密集任務</strong>：哪些決策需要分析大量資訊？</li><li><strong>從一個場景開始</strong>：不要試圖一次性整合所有工具</li></ol><h3>如果你是服務小型企業的從業者</h3><ol><li><strong>思考「何時以及如何使用」</strong>：不只是推銷工具，提供場景化指導</li><li><strong>重視數據安全溝通</strong>：這是小型企業最大的顧慮</li><li><strong>提供預建解決方案</strong>：降低採用門檻</li></ol><h3>結語：從「技術平權」到「營運平權」</h3><p>Anthropic 的核心主張是：</p><blockquote><em>「小型企業佔據近一半的美國經濟，但它們從沒有大公司的資源。AI 是終於可以縮小這個差距的第一項技術。」</em></blockquote><p>這個合作的真正價值不在技術突破，而在<strong>商業模式的重構</strong>：</p><ul><li>人類經營企業，Claude 幫助減輕深夜工作負擔</li><li>將 AI 整合到企業主已經使用的工具中</li><li>提供「何時以及如何使用」的指導</li></ul><p>當「我們以爲的約束條件已經不再是約束」時，小型企業的競爭格局將被重新定義。</p><p><em>來源：</em><a href="https://www.anthropic.com/news/claude-for-small-business"><em>Anthropic News — Claude for Small Business</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e129718273b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI 時代的「部署鴻溝」]]></title>
            <link>https://medium.com/@lukechi/ai-%E6%99%82%E4%BB%A3%E7%9A%84-%E9%83%A8%E7%BD%B2%E9%B4%BB%E6%BA%9D-99312fcb662c?source=rss-bf7dd692afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/99312fcb662c</guid>
            <category><![CDATA[anthropic-claude]]></category>
            <dc:creator><![CDATA[Luke Chi]]></dc:creator>
            <pubDate>Sat, 16 May 2026 14:49:18 GMT</pubDate>
            <atom:updated>2026-05-16T14:49:18.222Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI 如何成為全球公益的槓桿：Anthropic 與 Gates Foundation 的 2 億美元合作</h3><p>當 AI 從技術實驗走向大規模部署，關鍵問題不再是「AI 能做什麼」，而是「AI 應該優先解決什麼問題」 — — 這個合作展示了如何將企業規模、技術能力與公益經驗結合，創造可衡量的全球影響力。</p><h3>問題：AI 時代的「部署鴻溝」</h3><p>2026 年 5 月，Anthropic 宣布與 Gates Foundation 成立 2 億美元合作夥伴關係。表面看來，這是又一個「科技巨頭做公益」的新聞。但這個合作的設計邏輯值得深究。</p><p>核心問題有三層：</p><ol><li><strong>技術層</strong>：AI 能力已超越人類專家水平，但這些能力如何轉化為實際影響？</li><li><strong>組織層</strong>：公益機構有領域知識和執行網絡，但缺乏 AI 技術能力；AI 公司有技術，但缺乏領域理解</li><li><strong>規模層</strong>：全球仍有 46 億人缺乏基本醫療服務，如何讓 AI 在資源有限的情況下產生最大槓桿？</li></ol><h3>核心論點：這個合作展示了「有益部署（Beneficial Deployments）」的可複製框架</h3><p>這個合作的核心價值不在金額，而在框架設計。Anthropic 明確將此定義為「Beneficial Deployments」 — — 這不只是慈善，而是系統性地思考如何讓 AI 能力流向高價值場景。</p><h3>框架的三個支柱</h3><p><strong>支柱一：資源組合（Grant + Credits + Engineering）</strong></p><p>資源類型作用為什麼需要三者結合資金（Grant funding）支持傳統公益項目Gates Foundation 已有成熟的項目管理流程Claude 使用權（Usage credits）降低 AI 使用門檻讓合作夥伴能大規模測試 AI 應用工程支持（Technical support）協助技術落地解決「有資源但無能力」的問題</p><p><strong>支柱二：領域聚焦（四條垂直）</strong></p><ol><li><strong>Global Health</strong>：疫苗開發、疾病預測、醫療資源配置</li><li><strong>Life Sciences</strong>：neglected diseases（脊髓灰質炎、HPV、子癇前症）研究</li><li><strong>Education</strong>：K-12 數學導師、職業指導、識字率提升</li><li><strong>Economic Mobility</strong>：小農農業支持、技能認證、職業發展</li></ol><p><strong>支柱三：公共產品思維（Public Goods）</strong></p><p>合作中多次強調「public goods」：基準測試（benchmarks）、數據集（datasets）、知識圖譜（knowledge graphs）。這意味著：</p><ul><li>不只在封閉環境測試</li><li>成果可被其他機構使用</li><li>建立可累積的基礎設施</li></ul><h3>支持論據：為什麼這個框架可能成功？</h3><h3>論據一：Gates Foundation 的領域能力</h3><p>Gates Foundation 在以下領域有数十年累積：</p><ul><li>疾病模型建立（與 Institute for Disease Modeling 合作）</li><li>疫苗開發管道管理</li><li>全球供應鏈配置</li></ul><p><strong>AI 的角色</strong>：不是替換，而是增強。例如：</p><ul><li>AI 計算篩選疫苗候選 → 減少臨床前開發成本</li><li>AI 預測瘧疾/TB 治療部署 → 優化資源配置</li></ul><h3>論據二：明確的「不做什么」</h3><p>這個合作有清晰的邊界：</p><ul><li>聚焦 4 個領域，而非全面鋪開</li><li>4 年期限，有明確時間框架</li><li>與現有合作夥伴共同執行，而非另起爐灶</li></ul><p><strong>為什麼這重要</strong>：公益失敗的主因往往是範圍蔓延（scope creep）和資源分散。</p><h3>論據三：透明度承諾</h3><p>Anthropic 明確表示：「我們將隨著合作擴展，公開我們的思考和決策過程。」</p><p>這回應了一個關鍵批評：大型科技公司的公益行動常被質疑為「洗綠（greenwashing）」或「PR stunt」。公開決策過程讓外界可以：</p><ul><li>檢視資源配置邏輯</li><li>評估實際影響</li><li>提出改進建議</li></ul><h3>行動建議：這個框架的啟示</h3><h3>對 AI 從業者</h3><p>思考你的工作如何連接到高價值場景：</p><ul><li>你開發的能力可以解決什麼實際問題？</li><li>誰有領域知識可以合作？</li><li>如何建立可衡量的影響指標？</li></ul><h3>對公益從業者</h3><p>主動思考 AI 整合：</p><ul><li>你的領域中，哪些問題適合 AI 解決？</li><li>如何將領域知識轉化為 AI 可用的格式（數據集、基準測試）？</li><li>如何與技術合作夥伴建立平等對話？</li></ul><h3>對投資者/政策制定者</h3><p>評估「AI for good」的框架：</p><ul><li>不只是看金額，看資源組合設計</li><li>不只是看意圖，看執行能力</li><li>不只是看短期影響，看公共產品累積</li></ul><h3>結語：從「技術奇點」到「部署奇點」</h3><p>這個合作的核心洞察是：<strong>AI 的最大價值不在技術突破本身，而在如何將現有技術部署到最高價值場景</strong>。</p><p>當 AI 能力已經足夠強大時，瓶頸不再是「能不能做到」，而是：</p><ul><li>我們優先解決什麼問題？</li><li>如何確保解決方案的正確性？</li><li>如何讓解決方案可擴展、可累積？</li></ul><p>Gates Foundation 的几十年經驗 + Anthropic 的 AI 能力 + 2 億美元資源 + 4 年時間框架 = 一個值得觀察的實驗。</p><p>結果將告訴我們：AI 能否成為人類歷史上第一個真正的大規模公益槓桿？</p><p><em>來源：</em><a href="https://www.anthropic.com/news/gates-foundation-partnership"><em>Anthropic News</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99312fcb662c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[用 SearXNG + MCP 自建本地搜尋]]></title>
            <link>https://medium.com/@lukechi/%E7%94%A8-searxng-mcp-%E8%87%AA%E5%BB%BA%E6%9C%AC%E5%9C%B0%E6%90%9C%E5%B0%8B-bdb47eddc7fb?source=rss-bf7dd692afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdb47eddc7fb</guid>
            <category><![CDATA[local-llm]]></category>
            <category><![CDATA[claude-code]]></category>
            <dc:creator><![CDATA[Luke Chi]]></dc:creator>
            <pubDate>Sat, 16 May 2026 06:21:58 GMT</pubDate>
            <atom:updated>2026-05-16T06:33:42.665Z</atom:updated>
            <content:encoded><![CDATA[<h3>Claude Code 搭配 Local LLM 時，WebSearch 必然失效 — — 用 SearXNG + MCP 自建本地搜尋</h3><blockquote><em>當你把 </em><em>ANTHROPIC_BASE_URL 指向 localhost，Claude Code 的搜尋能力就斷了。這不是 bug，是架構限制。本文用一套 Docker Compose + 三行設定，把搜尋能力補回來。</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fw2HWVNLZOHImUrMRYjFHQ.png" /></figure><h3>問題：換了 Local LLM，搜尋就消失了</h3><p>越來越多開發者嘗試用 Ollama、OMLX 等工具在本地跑 LLM，再透過 Claude Code CLI 的 ANTHROPIC_BASE_URL 環境變數把推論導向 localhost。</p><p>這個組合表面上能用 — — 聊天正常、程式碼生成正常、檔案讀寫正常。但你很快會發現一件事：<strong>WebSearch 工具壞了。</strong></p><p>原因很直接。Claude Code 的 WebSearch 不是模型的能力，而是 Anthropic 伺服器端的基礎設施服務。當你把 base URL 改指 localhost，模型推論走本地，但搜尋請求也跟著送到本地——而你的本地 LLM server 根本不知道怎麼處理搜尋。</p><pre>Claude Code (cloud)  →  WebSearch → Anthropic Search API → 結果<br>Claude Code (local)  →  WebSearch → localhost:11434/???  → 💥</pre><p>你拿回了推論的控制權，卻失去了搜尋的能力。對 AI-assisted coding 來說，這不是小事 — — 沒有搜尋，你的 agent 就無法查文件、驗證 API 用法、取得最新資訊。</p><h3>核心論點：MCP 協議讓你可以自己把搜尋接回來</h3><p>Claude Code 的工具系統基於 MCP（Model Context Protocol），這代表你可以用一個自建的 MCP server 來取代失效的 WebSearch，而模型完全不需要知道背後換了什麼。</p><p>搜尋引擎的選擇上，<strong>SearXNG 是最務實的方案</strong>，理由有三：</p><ol><li><strong>免費且不需要 API key。</strong> Google CSE 每日 100 次就要付費，Brave Search 按查詢收費。SearXNG 跑在你的機器上，沒有任何外部依賴。</li><li><strong>Meta-search 架構。</strong> 它不是自己建索引，而是同時查詢 Google、DuckDuckGo、Brave、GitHub、StackOverflow 等 150+ 個引擎，合併去重後回傳。一次搜尋，多個來源。</li><li><strong>原生 JSON API。</strong> 啟用後直接 GET /search?q=...&amp;format=json，回傳結構化資料，MCP server 拿來就能用。</li></ol><p>架構變成這樣：</p><pre>Claude Code (local LLM)<br><br>    ↓ MCP 協議<br><br>mcp-searxng (MCP Server)<br><br>    ↓ HTTP JSON API<br><br>SearXNG (Docker, localhost:8888)<br><br>    ↓ 平行查詢<br><br>Google / DuckDuckGo / Brave / GitHub / ...</pre><p>每一層都跑在你的機器上，除了最終的搜尋引擎查詢。</p><h3>實作：三步完成設定</h3><p>以下是經過驗證、目前正在運行的設定。</p><h3>Step 1：用 Docker Compose 部署 SearXNG</h3><p>建立專案目錄：</p><pre>mkdir -p ~/docker_service/searxng/config ~/docker_service/searxng/data<br>cd ~/docker_service/searxng</pre><p>建立 docker-compose.yml：</p><pre>services:<br>  redis:<br>    container_name: searxng-redis<br>    image: valkey/valkey:7-alpine<br>    command: valkey-server --save 60 1 --loglevel warning<br>    networks:<br>      - searxng_net<br>    restart: always<br>    healthcheck:<br>      test: [&quot;CMD&quot;, &quot;valkey-cli&quot;, &quot;ping&quot;]<br>      interval: 5s<br>      timeout: 3s<br>      retries: 5<br><br>  searxng:<br>    container_name: searxng<br>    image: searxng/searxng:latest<br>    networks:<br>      - searxng_net<br>    ports:<br>      - &quot;127.0.0.1:8888:8080&quot;<br>    volumes:<br>      - ./config:/etc/searxng:rw<br>      - ./data:/var/cache/searxng:rw<br>    depends_on:<br>      redis:<br>        condition: service_healthy<br>    cap_drop:<br>      - ALL<br>    cap_add:<br>      - CHOWN<br>      - SETGID<br>      - SETUID<br>    logging:<br>      driver: &quot;json-file&quot;<br>      options:<br>        max-size: &quot;10m&quot;<br>        max-file: &quot;3&quot;<br>    restart: always<br><br>networks:<br>  searxng_net:<br>    driver: bridge</pre><p>幾個值得注意的設計決策：</p><ul><li>127.0.0.1:8888：只綁 loopback，不對外開放。這是給本機 MCP server 用的，不需要也不應該暴露到網路上。</li><li><strong>Valkey（Redis fork）</strong>：SearXNG 的 rate limiter 需要它。雖然我們會關掉 limiter，但保留 Redis 讓快取機制能正常運作。</li><li>cap_drop: ALL：最小權限原則。只保留 SearXNG 需要的三個 capabilities。</li></ul><h3>Step 2：設定 SearXNG</h3><p>建立 config/settings.yml——這是最關鍵的檔案：</p><pre>use_default_settings: true<br><br>server:<br>    secret_key: &quot;用 openssl rand -hex 32 產生填入&quot;<br>    base_url: http://localhost:8888/<br>    image_proxy: true<br>    limiter: false<br><br>search:<br>    safe_search: 0<br>    autocomplete: duckduckgo<br>    formats:<br>      - html<br>      - json<br><br>ui:<br>    default_locale: zh-Hant-TW<br><br>valkey:<br>    url: redis://redis:6379/0<br><br>engines:<br>  - name: google<br>    engine: google<br>    weight: 1.0<br>    timeout: 3.0<br>  - name: duckduckgo<br>    engine: duckduckgo<br>    weight: 1.0<br>  - name: brave<br>    engine: brave<br>    weight: 1.5<br>    shortcut: br<br>  - name: github<br>    engine: github<br>    weight: 2.0<br>    categories: it<br>    shortcut: gh</pre><p><strong>三個必須正確的設定：</strong></p><ol><li>formats<strong> 必須包含 </strong>json<strong>。</strong> 預設只有 html。沒有這行，JSON API 請求會回傳 403 Forbidden——這是最常見的踩坑點。</li><li>limiter: false<strong>。</strong> 這是本機私人使用，不需要 rate limiting。開著只會擋到你自己。</li><li>secret_key<strong> 必須填入。</strong> 用 openssl rand -hex 32 產生一組，貼進去。</li></ol><p>engines 的配置可以按需求調整。上面的設定把 GitHub 權重設為 2.0，因為對 coding assistant 來說，GitHub 的搜尋結果往往比一般網頁更有用。</p><p>產生 secret key 並啟動：</p><pre>openssl rand -hex 32<br># 把結果貼到 settings.yml 的 secret_key</pre><pre>docker compose up -d</pre><p>驗證 JSON API 是否正常：</p><pre>curl &#39;http://localhost:8888/search?q=test&amp;format=json&#39; | head -c 200</pre><p>如果看到 JSON 結構（包含 results 陣列），就代表 SearXNG 已經準備好了。</p><h3>Step 3：設定 Claude Code MCP</h3><p>在 ~/.claude.json（全域設定）中加入 MCP server：</p><pre>{<br>  &quot;mcpServers&quot;: {<br>    &quot;searxng&quot;: {<br>      &quot;command&quot;: &quot;mcp-searxng&quot;,<br>      &quot;env&quot;: {<br>        &quot;SEARXNG_URL&quot;: &quot;http://localhost:8888&quot;<br>      }<br>    }<br>  }<br>}</pre><p>這裡用的是 <a href="https://github.com/ihor-sokoliuk/mcp-searxng">mcp-searxng</a>（ihor-sokoliuk 開發），目前 GitHub 星數 780+、NPM 週下載量約 5,400，是最成熟的選項。它提供兩個工具：</p><ul><li>searxng_web_search：送查詢到 SearXNG，回傳結構化結果（標題、URL、摘要、分數）</li><li>web_url_read：抓取 URL 內容並轉為 Markdown——功能上等同 Claude Code 原生的 WebFetch</li></ul><p>安裝 MCP server：</p><pre>npm install -g mcp-searxng</pre><p>重啟 Claude Code，搜尋能力就回來了。</p><h3>驗證：確認一切正常</h3><p>重啟 Claude Code 後，可以這樣驗證：</p><pre># 確認 Docker 容器都在跑<br>docker ps --format &quot;table {{.Names}}\t{{.Status}}\t{{.Ports}}&quot; | grep searxng</pre><p>預期看到：</p><pre>searxng         Up X hours   127.0.0.1:8888-&gt;8080/tcp<br>searxng-redis   Up X hours (healthy)   6379/tcp</pre><p>然後在 Claude Code 中直接要求搜尋 — — 它應該會使用 searxng_web_search 而非 WebSearch。</p><p>如果你想完全禁用原生 WebSearch，避免它偶爾被調用後報錯，可以在 Claude Code settings 中加入：</p><pre>{<br>  &quot;permissions&quot;: {<br>    &quot;deny&quot;: [&quot;WebSearch(*)&quot;]<br>  }<br>}</pre><h3>進階：搜尋結果的品質調校</h3><p>SearXNG 的評分公式是 score = Σ(引擎權重 / 結果排名位置)。同一個 URL 被多個引擎回傳時，分數會累加。這代表你可以透過調整引擎權重來優化結果品質：</p><ul><li><strong>開發相關查詢</strong>：把 github、stackoverflow 的 weight 調高（如 2.0）</li><li><strong>時效性查詢</strong>：搜尋時加上 time_range=month 參數</li><li><strong>特定領域</strong>：用 categories 參數（it、science、news）縮窄範圍</li></ul><p>實際使用中，建議在 Claude Code 的 CLAUDE.md 中加入搜尋策略的指引——比如要求 agent 對每個使用者查詢展開為 2-3 個互補的搜尋詞，涵蓋不同角度，再平行執行。這能顯著提升搜尋命中率。</p><h3>結語</h3><p>把 Claude Code 的推論導向 local LLM 是趨勢，但搜尋能力不該因此斷掉。SearXNG + MCP 這套方案的核心價值在於：<strong>你用一個 </strong>docker compose up -d<strong> 和三行 JSON 設定，就把一個依賴雲端的功能變成了完全本地化的基礎設施。</strong></p><p>整套系統的資源佔用很小（SearXNG + Valkey 總共不到 512 MB 記憶體），常駐運行沒有負擔。而且因為 MCP 協議的抽象，不管背後是 Anthropic API、Ollama、還是任何相容的 local LLM，搜尋工具都能正常運作。</p><p>搜尋是 AI coding assistant 的基礎能力。不該讓一個環境變數的改動，就把它整個拿走。</p><p><em>本文的設定已在 macOS + Docker Desktop 環境下驗證運行。SearXNG 相關資源：</em><a href="https://docs.searxng.org/"><em>官方文件</em></a><em>、</em><a href="https://github.com/searxng/searxng"><em>GitHub</em></a><em>、</em><a href="https://github.com/ihor-sokoliuk/mcp-searxng"><em>mcp-searxng</em></a><em>。</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdb47eddc7fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude 101 #1 #zh_TW]]></title>
            <link>https://medium.com/@lukechi/claude-101-1-zh-tw-01859958d12a?source=rss-bf7dd692afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/01859958d12a</guid>
            <category><![CDATA[claude]]></category>
            <dc:creator><![CDATA[Luke Chi]]></dc:creator>
            <pubDate>Sat, 02 May 2026 13:52:43 GMT</pubDate>
            <atom:updated>2026-05-03T04:20:10.218Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mhOGNTIFcRp5eatCr4RDfw.png" /></figure><p>要駕馭像 Claude 這樣的 AI 代理，你不需要懂得艱澀的程式語言，你只需要掌握「精準委託授權」的藝術。剛開始使用 AI 時，你一定會遇到一些困擾：AI 回答的語氣不對、格式跑掉，或是答案太空泛細節過於模糊。這不是系統故障，而是我們精進提示詞的絕佳機會。</p><p>這是一份為你準備的「AI 溝通除錯指南」，教你如何將令人沮喪的無效對話，轉化為精準、高品質的專業產出。</p><p><strong>TL;DR</strong></p><p>掌握這 4 步驟 Eval 流程，徹底改變你與 Claude 協作的品質。</p><p>Claude 不只是聊天機器人，更是你的 AI 夥伴。它可被你指揮引導，能與你協作，以『有用、無害、誠實』為核心設計理念。</p><h3>常見問題與解法</h3><p>開始使用 Claude 時，你一定會遇到「回應不如預期」的時刻。這不是失敗，而是一個訊號 — — 每一次落差，都是你磨利 prompt、理解 Claude 如何「讀懂你」的機會。</p><p>以下是五個最常見的卡關情境，以及對應的調整方法。</p><h3>1. 回應太過籠統</h3><p><strong>問題出在哪：</strong> 你的 prompt 沒有提供足夠的情境脈絡。</p><p><strong>試試這樣做：</strong> 補上受眾、角色、限制條件等具體資訊。</p><p>與其寫「幫我寫一封關於專案延遲的 email」，不如試試：</p><blockquote><em>「幫我寫一封 email 給我們的企業客戶，說明軟體整合將延後兩週。他們目前態度都很包容，但這已是第二次延期。語氣要專業，但帶有歉意。」</em></blockquote><p>具體性不是加分項，而是決定品質的關鍵槓桿。</p><h3>2. 回應太長（或太短）</h3><p><strong>問題出在哪：</strong> Claude 在猜測你想要的篇幅。</p><p><strong>試試這樣做：</strong> 直接說清楚。「給我兩段摘要就好。」或「控制在 100 字以內。」或「我需要完整深入的分析，長度不是問題。」一句話交代篇幅，能省下你後續一整輪的編修。</p><h3>3. Claude 沒有照你要的格式呈現</h3><p><strong>問題出在哪：</strong> Claude 理解了「<strong>內容</strong>」，但沒抓到「<strong>呈現方式</strong>」。</p><p><strong>試試這樣做：</strong> 用範例示範，不要只用文字描述。直接貼一段你想要的格式範例，或明確指定結構 — — 「用條列式，每個段落加粗體標題」。一個五秒的範例，勝過五十個字的說明。</p><h3>4. 你拿到了聽起來很有信心、但其實是錯的資訊</h3><p><strong>問題出在哪：</strong> Claude 偶爾會生成「看起來合理但實際錯誤」的內容，特別是涉及具體事實或冷門主題時。</p><p><strong>試試這樣做：</strong> 高風險的工作，務必獨立查證關鍵事實。可以請 Claude 引用來源，或標示信心程度。當資訊時效性重要時，開啟網路搜尋功能，讓回應有實際資料支撐。</p><p>把 Claude 當作一位聰明的協作夥伴，而不是無所不知的神諭。</p><h3>5. 語氣不對</h3><p><strong>問題出在哪：</strong> Claude 預設「有用且專業」的語氣，但這未必符合你的風格或受眾。</p><p><strong>試試這樣做：</strong> 用自然的語言描述你想要的語氣 — — 「再口語一點」或「這段要聽起來權威而正式」。更好的做法是：直接貼一段你想要的風格範本，請 Claude 模仿。</p><h3>迭代式的心態</h3><p>使用 Claude 時，最關鍵的觀念轉變是：<strong>你的第一個 prompt 很少能產出完美結果 — — 而這完全沒問題。</strong></p><p>把第一個 prompt 想成「對話的起點」，而不是「一次到位的指令」。真正能從 Claude 身上榨出最大價值的人，通常都有三個共同習慣。</p><p><strong>他們把初稿當作起點，而不是終點。</strong> 他們會檢視 Claude 的產出，分辨哪些可用、哪些不行，然後一輪輪打磨，而不是全收或全棄。</p><p><strong>他們給的回饋很具體。</strong> 「再短一點」可以用，但「刪掉前兩段，結論改得更具行動導向」效果好得多。具體的輸入，換來具體的輸出。</p><p><strong>他們知道何時該重開一個對話。</strong> 當一個對話已經偏離軌道，與其拼命拉回來，不如開一個新的 chat、用更清楚的 prompt 重新開始 — — 通常更快、更省力。</p><p>心態的轉變其實很單純：你不是在對搜尋引擎下指令，而是在跟一位<strong>會回應清晰度、情境與回饋的協作夥伴</strong>一起工作。</p><h3>如何判斷 Claude 真的擅長你的工作？</h3><p>當你把 Claude 越來越深地織進日常工作裡，一個安靜的問題會慢慢浮現：<strong>我怎麼知道 Claude 在這件事上真的夠好？</strong></p><p>不是在抽象意義上。不是在公開的 benchmark 上。<strong>而是在那些填滿你每一週的具體任務上。</strong></p><p>這正是「<strong>discernment（判別力）</strong>」變得關鍵的地方 — — 也是 evals 派上用場的時刻。</p><h3>Eval 到底是什麼</h3><p>「Eval」是 evaluation 的縮寫，在 AI 領域聽起來常常伴隨著複雜的 pipeline、評分量表、整支工程團隊的畫面。先把那些都放一邊。</p><p>回到本質，eval 不過就是<strong>一套系統性的方法，用來測試 Claude 在某類對你重要的任務上表現如何</strong>。它讓你從「猜」進化到「知道」，也讓你培養出一種直覺：<strong>Claude 在哪些地方是你的乘數效應，又在哪些地方不是。</strong></p><h3>為什麼這件事比你想像的更重要</h3><p>你的工作是獨一無二的。Claude 可能寫得出漂亮的行銷文案，卻在你領域的技術文件上頻頻失手；可能完美處理客戶 email，卻抓不到你內部 Slack 的微妙語感。<strong>「普遍表現好」對你的工作來說，毫無意義。</strong></p><p>跑幾輪簡單的 eval，會帶給你三件事：</p><p>你會開始<strong>看清 Claude 在哪裡帶來最大槓桿</strong> — — 哪些任務可以放心交付，哪些必須親自把關。</p><p>你會<strong>辨識出哪些任務需要更多鷹架</strong> — — 更多 context、更多範例、更多護欄，Claude 才能產出堪用的成果。</p><p>長期下來，你會<strong>建立起有根據的信心</strong>，知道哪些重複性工作可以交給 Claude，而不是在「過度信任」和「過度檢查」之間來回擺盪。</p><h3>一套簡單的 eval 流程</h3><p>你不需要基礎建設。不需要評分量表。不需要一位工程師。以下這四個步驟，任何人花一個下午就能跑完。</p><h4>1. 蒐集範例</h4><p>收集 5 到 10 個你經常處理的任務樣本 — — 你寫過的 email、你交付過的報告、你做過的分析。<strong>真實工作中的真實成果。</strong></p><p>這就是你的 <strong>ground truth</strong>。是 Claude 必須對齊、甚至要超越的標準。</p><h4>2. 設計測試 prompt</h4><p>寫一些理論上應該產出類似結果的 prompt。把你在實際工作時自然擁有的 context 放進去 — — 受眾、限制、目的、語氣。</p><p>這一步最常見的陷阱，是丟出單薄的 prompt，再回頭嚴格審判 Claude 給出的單薄產出。<strong>把你會給一位新進員工的資訊量，給 Claude。</strong></p><h4>3. 比對產出</h4><p>跑完 prompt 後，把 Claude 的回應跟你自己的範例並排攤開，然後誠實地問三個問題：</p><ul><li>Claude 有沒有抓到<strong>關鍵資訊</strong>？</li><li><strong>語氣與風格</strong>是否符合受眾？</li><li>哪裡<strong>缺了東西</strong>？又有哪裡其實<strong>比你寫得更好</strong>？</li></ul><p>最後一個問題很重要。Eval 不只是揪出 Claude 的不足，<strong>也是發現 Claude 超越你的地方</strong> — — 這樣你才知道什麼時候該放下身段、讓 Claude 做主。</p><h4>4. 調整你的方法</h4><p>根據你學到的東西，有三個槓桿可以拉：</p><p><strong>調整 prompt</strong> — — 把那些原本只在你腦中、卻沒落到字面上的 context，補進去。</p><p><strong>補上範例</strong> — — 示範什麼叫做「好」，用你自己的語氣和標準。</p><p><strong>標出人工檢核點</strong> — — 找出哪些任務或子任務，人工審查不能省，把這個環節明確寫進工作流程裡。</p><h3>真正的收穫</h3><p>跑 eval 的重點，不是替 Claude 打分數。<strong>而是替你自己的直覺打分數。</strong></p><p>那些覺得「Claude 對我的工作沒什麼用」的人，多半從沒系統性地測試過 — — 試了兩次、結果普通，就下了結論。那些覺得「Claude 是魔法」的人，其實也沒測試過 — — 他們只是被幾次漂亮的產出沖昏頭，假設後面也會一樣。</p><p>Eval 把這兩種錯覺都切開。你不再只是<strong>對 Claude 抱有看法</strong>，而是<strong>握有證據</strong>。而那些證據，一個任務、一份產出地累積起來，最終會幫你打造出一套真正有效的工作流 — — 你和 Claude 各自做著自己最擅長的事。</p><p>這已經不只是更好的 prompting。<strong>這是工藝。</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01859958d12a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude 101 #1]]></title>
            <link>https://medium.com/@lukechi/claude-101-1-c7bfe8a2d73e?source=rss-bf7dd692afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7bfe8a2d73e</guid>
            <category><![CDATA[claude]]></category>
            <dc:creator><![CDATA[Luke Chi]]></dc:creator>
            <pubDate>Sat, 02 May 2026 13:51:49 GMT</pubDate>
            <atom:updated>2026-05-02T13:51:49.970Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mhOGNTIFcRp5eatCr4RDfw.png" /></figure><p>Mastering an AI like Claude isn’t about knowing secret coding languages; it’s about mastering the art of delegation. When you first start working with AI, you will inevitably encounter friction — moments where the tone is off, the format is ignored, or the details are just a bit too vague. These aren’t glitches; they are opportunities to refine your approach. Here is your troubleshooting guide to turning frustrating AI miscommunications into precise, high-quality results.</p><p><strong>TL;DR</strong></p><p>A simple 4-step eval approach will dramatically improve the results you get from Claude.</p><p>Claude is more than a chatbot. Claude is designed to be steerable and collaborative. Claude is built to be helpful, harmless, and honest.</p><h3>Common Challenges (and How to Fix Them)</h3><p>When you start working with Claude, you’ll hit moments where the response misses the mark. That’s not a failure — it’s a signal. Each unexpected output is a chance to sharpen your prompt and learn how Claude “reads” you.</p><p>Here are the five most common pitfalls, why they happen, and how to fix them.</p><h3>1. The response feels too generic</h3><p><strong>What’s happening:</strong> Your prompt didn’t carry enough context about your specific situation.</p><p><strong>Try this:</strong> Add details about your audience, role, and constraints.</p><p>Instead of <em>“Write an email about the project delay,”</em> try:</p><blockquote><em>“Write an email to our enterprise client explaining that the software integration will be delayed by two weeks. They’ve been patient so far, but this is the second delay. Keep it professional but apologetic.”</em></blockquote><p>Specificity isn’t optional — it’s the lever that controls quality.</p><h3>2. The response is too long (or too short)</h3><p><strong>What’s happening:</strong> Claude is guessing at appropriate length.</p><p><strong>Try this:</strong> Be explicit. <em>“Give me a two-paragraph summary.”</em> Or <em>“Keep this under 100 words.”</em> Or <em>“I need a comprehensive analysis — length isn’t a concern.”</em> A single sentence about length saves you a full round of editing.</p><h3>3. Claude didn’t follow your format</h3><p><strong>What’s happening:</strong> Claude understood <em>what</em> you want, but not <em>how</em> you want it presented.</p><p><strong>Try this:</strong> Show, don’t just tell. Paste an example of the format you want, or describe the structure explicitly — <em>“Use bullet points with bold headers for each section.”</em> A five-second example beats a fifty-word description.</p><h3>4. You got confident-sounding information that turned out to be wrong</h3><p><strong>What’s happening:</strong> Claude occasionally generates plausible but incorrect information — especially on specific facts or niche topics.</p><p><strong>Try this:</strong> For high-stakes work, verify key facts independently. Ask Claude to cite sources or flag its confidence level. And when current information matters, enable web search to ground responses in real data.</p><p>Treat Claude as a brilliant collaborator — not an oracle.</p><h3>5. The tone isn’t right</h3><p><strong>What’s happening:</strong> Claude defaults to helpful and professional, which may not match your voice or audience.</p><p><strong>Try this:</strong> Describe the tone in plain language — <em>“Make this more conversational”</em> or <em>“This should sound authoritative and formal.”</em> Better yet, paste a paragraph in the style you want and ask Claude to match it.</p><h3>The Iteration Mindset</h3><p>Here’s the most important shift when working with Claude: <strong>your first prompt rarely produces a perfect result — and that’s not the point.</strong></p><p>Think of your initial prompt as the start of a conversation, not a one-shot request. The people who get the most out of Claude tend to share three habits.</p><p><strong>They treat first drafts as starting points.</strong> Instead of accepting or discarding what Claude produces, they review it, identify what’s working and what isn’t, and refine from there.</p><p><strong>They give specific feedback.</strong> <em>“Make it shorter”</em> works. But <em>“Cut the first two paragraphs and make the conclusion more action-oriented”</em> works far better. Specific feedback in, specific output back.</p><p><strong>They know when to start fresh.</strong> If a conversation has gone off track, opening a new chat with a clearer prompt is often faster than trying to redirect a tangled thread.</p><p>The mindset shift is simple: you’re not issuing commands to a search engine. You’re collaborating with a teammate who responds to clarity, context, and feedback.</p><h3>How to Tell if Claude Is Actually Good at Your Job</h3><p>As you weave Claude into more of your work, a quiet question starts to surface: <em>how do I actually know if Claude is good at this?</em></p><p>Not in general. Not on benchmarks. <strong>On the specific tasks that fill your week.</strong></p><p>This is where <strong>discernment</strong> becomes essential — and where evals come in.</p><h3>What evals actually are</h3><p>“Eval” is short for evaluation, and in the AI world it’s loaded with images of complex pipelines, scoring rubrics, and engineering teams. Forget all that for a moment.</p><p>At its core, an eval is just <strong>a systematic way to test how well Claude performs on a specific type of task that matters to you.</strong> It’s how you stop guessing and start knowing. It’s how you build intuition for where Claude is a force multiplier — and where it isn’t.</p><h3>Why this matters more than you think</h3><p>Your work is unique. Claude might write brilliant marketing copy and stumble on technical documentation in your specific domain. It might nail customer emails but miss the nuance of your internal Slack culture. <strong>General performance tells you nothing about your performance.</strong></p><p>Running a few simple evals gives you three things:</p><p>You start to <strong>see where Claude adds the most leverage</strong> in your workflow — which tasks to delegate confidently, and which to keep close.</p><p>You <strong>identify the tasks that need more scaffolding</strong> — more context, more examples, more guardrails before Claude can produce something usable.</p><p>And over time, you <strong>build justified confidence</strong> in Claude’s outputs for recurring work, instead of either over-trusting or over-checking every response.</p><h3>A simple eval approach</h3><p>You don’t need infrastructure. You don’t need a scoring rubric. You don’t need an engineer. Here’s a four-step approach anyone can run in an afternoon.</p><h4>1. Gather examples</h4><p>Collect 5–10 examples of a task you do regularly — emails you’ve written, reports you’ve produced, analyses you’ve delivered. Real artifacts from your actual work.</p><p>This is your <strong>ground truth</strong>. It’s the thing Claude needs to match — or improve on.</p><h4>2. Create test prompts</h4><p>Write prompts that should generate similar outputs. Include the context you’d naturally have when doing this work — the audience, the constraints, the goal, the tone.</p><p>The trap here is to write thin prompts and then judge Claude harshly for thin outputs. <strong>Give Claude what you’d give a new hire</strong> doing the same task.</p><h4>3. Compare outputs</h4><p>Run your prompts and put Claude’s responses side-by-side with your examples. Then ask three honest questions:</p><ul><li>Does Claude capture the <strong>key information</strong>?</li><li>Is the <strong>tone and style</strong> appropriate for the audience?</li><li>What’s <strong>missing</strong>, and what could actually be <strong>better</strong> than what you produced?</li></ul><p>That last question matters. Evals aren’t just about catching where Claude falls short — they’re about catching where Claude exceeds you, so you know when to defer to it.</p><h4>4. Refine your approach</h4><p>Based on what you learn, you have three levers to pull:</p><p><strong>Adjust your prompts</strong> — add the context that was implicit in your head but missing on the page.</p><p><strong>Add examples</strong> — show Claude what “good” looks like in your specific voice and standard.</p><p><strong>Mark the human checkpoints</strong> — identify the tasks or sub-tasks where human review isn’t optional, and bake that into your workflow.</p><h3>The real payoff</h3><p>The point of running evals isn’t to grade Claude. It’s to <strong>grade your own intuition</strong>.</p><p>Most people who feel “Claude isn’t that useful for my work” have never actually tested it systematically. They’ve tried it twice, gotten mediocre results, and concluded. Most people who feel “Claude is magic” haven’t tested it either — they’re surfing on a few good outputs and assuming the rest will follow.</p><p>Evals cut through both. You stop having opinions about Claude and start having <strong>evidence</strong>. And that evidence — task by task, output by output — is what lets you build a workflow where you and Claude are each doing what you’re genuinely best at.</p><p>That’s not just better prompting. That’s craft.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7bfe8a2d73e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Garmin-MCP 完整設定教學]]></title>
            <link>https://medium.com/@lukechi/garmin-mcp-%E5%AE%8C%E6%95%B4%E8%A8%AD%E5%AE%9A%E6%95%99%E5%AD%B8-e77e03334216?source=rss-bf7dd692afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e77e03334216</guid>
            <dc:creator><![CDATA[Luke Chi]]></dc:creator>
            <pubDate>Sat, 21 Mar 2026 14:42:27 GMT</pubDate>
            <atom:updated>2026-03-23T14:31:49.255Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>用自然語言問 Claude AI：「我昨天睡了幾個小時？」「這週的靜止心率趨勢如何？」不用寫任何程式，只要設定好就能讓 AI 直接幫你查看 Garmi Connect 數據</blockquote><h4>這篇文章能幫你做到什麼?</h4><p>如果你有 Garmin 手錶，你的健康數據，例如睡眠、心率、壓力、步數、訓練紀錄等等，都存在 Garmin Connect 裡，但每次要查看你得打開 APP 一個一個翻找。</p><p>設定完成後，你可以直接用問 AI：我昨天睡幾個小時？深層睡眠佔多少？這週的靜止心率是多少？幫我看看最近一次跑步的配速和心率區間，我的訓練準備度如何？</p><p>AI 會即時從你的 Garmin Connect 帳號取得資料，然後用你聽得懂的方式回答你。</p><p>不需要寫任何程式碼，就算你完全沒有程式背景，只要照著以下步驟一步一步做，就能設定成功。每一步我都會說明這是在做什麼，以及怎麼確認成功了。常見問題也會標示出來，放心跟著做就好。</p><h4>前置準備</h4><p>在開始之前請確認你有以下東西：</p><p>一台 Mac 電腦，本教學以 macOS 為主，Windows 或 Linux 也能用，但部分步驟，特別是背景服務的設定會不同。</p><p>Terminal 終端機。Terminal 是 Mac 內建的工具，讓你用文字指令操作電腦。不用害怕它，你只要把本文的指令複製貼上就好。</p><blockquote>怎麼打開 Terminal？按 Command 加空白，輸入 Terminal，按 Enter。</blockquote><p>Python 3.12 或更新版本。MacOS 通常已內建 Python。打開 Terminal 輸入</p><blockquote>python3 --version</blockquote><p>你應該會看到類似 Python 3.12.x 或更新的版本號。如果版本因爲 3.12 或者出現 command not found，請到這邊 (https://www.python.org/downloads/)下載最新版安裝。</p><p>UV 是一個現代化的 Python 套件管理工具，我們用它來安裝 Garmin-MCP。在 Terminal 輸入以下指令：</p><blockquote>curl -LsSf <a href="https://astral.sh/uv/install.sh">https://astral.sh/uv/install.sh</a> | sh</blockquote><p>安裝完成後，關閉 Terminal 再重新打開，這樣新指令才會生效，然後驗證一下用這個指令</p><blockquote>uv — version</blockquote><p>看到版本號就表示安裝成功。</p><p>安裝 ClaudeCode CLI。Claude Code 是 Anthropic 的命令列 AI 助手。如果你還沒有安裝，請參考官方安裝指南 <a href="https://docs.anthropic.com/en/docs/claude-code/overview">https://docs.anthropic.com/en/docs/claude-code/overview</a>。在 Terminal 輸入以下指令確認已安裝</p><blockquote>claude — version</blockquote><p>最後，Garmin Connected on帳號就是你平時用來同步Garmin手錶數據的那個帳號Email加密碼，如果你有啟用兩步驗證，等一下認證時會需要輸入驗證碼。</p><h4>## 第一步：認識 garmin-mcp 專案</h4><p>什麼是 garmin-mcp？</p><p>[garmin-mcp](<a href="https://github.com/Taxuspt/garmin_mcp">https://github.com/Taxuspt/garmin_mcp</a>) 是一個開源專案，由開發者 Taxuspt 建立。它是一個 MCP（Model Context Protocol）server。</p><p>MCP 是什麼？ 你可以把它想像成 AI 和外部服務之間的「翻譯官」。Claude 本身不知道你的 Garmin 數據，但透過 MCP server，它就能「連線」到 Garmin Connect，讀取你的健康數據。</p><p>garmin-mcp 支援 **96 種以上的工具**，幾乎涵蓋了 Garmin Connect 上所有的數據：</p><pre><br>| 類別 | 工具數量 | 範例 |<br>|------|----------|------|<br>| 活動管理 | 14 | 查看跑步、騎車、游泳紀錄 |<br>| 健康與生活 | 31 | 睡眠、心率、壓力、血氧、呼吸 |<br>| 訓練與表現 | 9 | 訓練狀態、耐力分數、比賽預測 |<br>| 體重追蹤 | 5 | 體重、體脂、BMI |<br>| 裝置管理 | 7 | 手錶資訊、電池、設定 |<br>| 還有更多... | 30+ | 挑戰、徽章、營養、訓練計畫 |</pre><h4>安裝 garmin-mcp</h4><p>在 Terminal 輸入：</p><blockquote>uv tool install garmin-mcp — from git+<a href="https://github.com/Taxuspt/garmin_mcp">https://github.com/Taxuspt/garmin_mcp</a> — python 3.12</blockquote><p>這個指令做了什麼？</p><p>- `uv tool install`：在一個獨立的環境中安裝工具，不會影響你電腦上其他的 Python 程式<br>- ` — from git+<a href="https://...`/">https://...`</a>：直接從 GitHub 下載最新版<br>- ` — python 3.12`：指定使用 Python 3.12</p><p>怎麼確認安裝成功？</p><blockquote>garmin-mcp — help</blockquote><p>如果看到使用說明，就表示安裝成功。<br>如果出現「command not found」，<br>試試關閉 Terminal 再重新打開。</p><h4>第二步：Garmin Connect 認證</h4><p>安裝好套件後，需要讓它登入你的 Garmin Connect 帳號。<br>這個步驟只需要做一次 — 登入成功後，它會把認證資訊（token）存在你的電腦上，<br>之後就不用再輸入密碼了。</p><p>執行認證</p><p>在 Terminal 輸入：</p><blockquote>garmin-mcp-auth</blockquote><p>它會依序問你三件事：</p><blockquote>Email: （輸入你的 Garmin Connect email）<br>Password: （輸入密碼，畫面上不會顯示任何字元，這是正常的）</blockquote><p>如果你有開啟雙重驗證（MFA），它還會問：</p><blockquote>Garmin Connect MFA required. Please check your email/phone for the code.<br>MFA code: （輸入你收到的驗證碼）</blockquote><p>登入成功後，你會看到類似這樣的訊息：</p><blockquote>Successfully authenticated with Garmin Connect!<br>Tokens saved to ~/.garminconnect</blockquote><h4>驗證認證是否有效</h4><blockquote>garmin-mcp-auth — verify</blockquote><p>如果看到「Tokens are valid」就表示一切正常。</p><p>Token 存在哪裡？</p><p>認證資訊存在你的家目錄下的隱藏資料夾：</p><blockquote>~/.garminconnect/<br>├── oauth1_token.json<br>└── oauth2_token.json</blockquote><p>這些檔案包含登入 token（不是你的密碼），garmin-mcp 每次啟動時會自動讀取它們。Token 的有效期限通常是數個月，過期後只需要重新執行<br> `garmin-mcp-auth` 即可。</p><h4>⚠️ 常見問題</h4><p>**Q: 密碼輸入後說「Invalid credentials」？**<br>- 確認你輸入的是 Garmin Connect 的帳號密碼（不是 Garmin Express 或其他 Garmin 服務）<br>- 密碼輸入時畫面不會顯示任何字元（包括 `***`），這是安全機制，正常輸入按 Enter 就好</p><p>**Q: 我的 Garmin 帳號是中國區的（garmin.cn）？**<br>- 使用以下指令：</p><blockquote>GARMIN_IS_CN=true garmin-mcp-auth</blockquote><p>**Q: 我不想每次都互動輸入怎麼辦？**<br>- 可以用環境變數：</p><blockquote>GARMIN_EMAIL=你的email GARMIN_PASSWORD=你的密碼 garmin-mcp-auth</blockquote><h4>第三步：基本用法 — Claude Desktop（stdio 模式）</h4><p>如果你使用的是 **Claude Desktop**（桌面版 App），<br>最簡單的方式是直接在設定檔中加入 garmin-mcp。</p><p>設定方式</p><p>找到 Claude Desktop 的設定檔：<br>- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`</p><p>如果這個檔案不存在，請自己建立一個。用 Terminal 輸入：</p><blockquote>open ~/Library/Application\ Support/Claude/</blockquote><p>這會打開 Finder，你可以在這個資料夾裡找到或建立 `claude_desktop_config.json`。</p><p>將以下內容加入（或修改已有的內容）：</p><blockquote>{<br> “mcpServers”: {<br> “garmin”: {<br> “command”: “uvx”,<br> “args”: [<br> “ — python”,<br> “3.12”,<br> “ — from”,<br> “git+<a href="https://github.com/Taxuspt/garmin_mcp">https://github.com/Taxuspt/garmin_mcp</a>”,<br> “garmin-mcp”<br> ]<br> }<br> }<br>}</blockquote><p>存檔後，**重新啟動 Claude Desktop**。</p><h4>怎麼確認成功？</h4><p>在 Claude Desktop 的對話框中輸入：</p><p>&gt; 「幫我查一下我昨天的睡眠數據」</p><p>如果 Claude 能回傳你的睡眠資訊（時數、深淺眠比例等），<br>就表示設定成功了！</p><h4>這個模式的限制</h4><p>stdio 模式是「每次開啟 Claude Desktop 時才啟動 garmin-mcp」。這意味著：<br>- 每次啟動都需要重新初始化（幾秒鐘的等待）<br>- 只有 Claude Desktop 能用，其他工具無法共用這個連線</p><p>如果你想要更快的連線速度、<br>或同時在 Claude Code CLI 等多個地方使用，<br>請繼續看下一步的「SSE 背景服務模式」。</p><p>.</p><pre><br><br><br>---<br><br>## 第四步：進階 — SSE 背景服務模式<br><br>### 為什麼要用 SSE 模式？<br><br>在前一步的 stdio 模式中，每次開啟 Claude 時，<br>它都會重新啟動一個 garmin-mcp 程式、重新認證、重新建立連線。<br>如果你經常使用，這樣其實不太有效率。<br><br>**SSE（Server-Sent Events）模式** 的做法不同：<br>它讓 garmin-mcp 在背景持續運行，像一個常駐的小服務。Claude 要用的時候，只需要「連上去」就好，不用每次重新啟動。<br><br>好處：<br>- **連線速度快**：Claude 瞬間就能連上，不用等初始化<br>- **多個 client 共用**：Claude Desktop、Claude Code CLI 都能同時連到同一個服務<br>- **穩定**：服務在背景持續運行，不會因為關掉 Claude 就斷線<br><br>### 建立 SSE 啟動腳本<br><br>garmin-mcp 套件預設使用 stdio 模式。<br>我們需要建立一個小小的 wrapper 腳本，讓它改用 SSE 模式。<br><br>在 Terminal 中依序執行以下指令。<br><br>首先，找到你的 Python 路徑（等一下會用到）：<br><br>```bash<br>ls ~/.local/share/uv/tools/garmin-mcp/bin/python<br>```<br><br>確認這個檔案存在。然後建立腳本：<br><br>```bash<br>cat &gt; ~/.local/bin/garmin-mcp-sse &lt;&lt; ‘SCRIPT’<br>#!/Users/你的使用者名稱/.local/share/uv/tools/garmin-mcp/bin/python<br>&quot;&quot;&quot;<br>Wrapper that runs garmin-mcp in SSE (HTTP) mode for persistent operation.<br>&quot;&quot;&quot;<br>from mcp.server.fastmcp import FastMCP<br><br>_original_run = FastMCP.run<br><br>def _sse_run(self, transport=&quot;sse&quot;):<br>    _original_run(self, transport=&quot;sse&quot;)<br><br>FastMCP.run = _sse_run<br><br>import os<br>os.environ.setdefault(&quot;FASTMCP_PORT&quot;, &quot;8765&quot;)<br><br>from garmin_mcp import main<br>main()<br>SCRIPT<br>```<br><br>⚠️ **重要：** 請把第一行的 `你的使用者名稱` 替換成你的 Mac 使用者名稱。不確定的話，在 Terminal 輸入 `whoami` 就能看到。<br><br>例如：如果你的使用者名稱是 `john`，第一行應該是：<br>```<br>#!/Users/john/.local/share/uv/tools/garmin-mcp/bin/python<br>```<br><br>然後給腳本執行權限：<br><br>```bash<br>chmod +x ~/.local/bin/garmin-mcp-sse<br>```<br><br>### 手動測試<br><br>先測試看看 SSE 服務能不能正常啟動：<br><br>```bash<br>~/.local/bin/garmin-mcp-sse<br>```<br><br>你應該會看到類似這樣的輸出：<br><br>```<br>INFO:     Started server process<br>INFO:     Uvicorn running on http://0.0.0.0:8765<br>```<br><br>這表示服務正在運行，監聽 port 8765。按 `Ctrl + C` 可以停止它。<br><br>### ⚠️ 常見問題<br><br>**Q: 出現「Address already in use」？**<br>- 表示 port 8765 已經被其他程式佔用。你可以：<br>  - 先找出並停止佔用的程式：`lsof -i :8765`<br>  - 或者把腳本中的 `8765` 改成其他數字（例如 `8766`），後面的設定也要跟著改<br><br>**Q: 出現「No module named ‘garmin_mcp’」？**<br>- 檢查腳本第一行的 Python 路徑是否正確<br>- 確認第一步的安裝有成功完成<br><br>---<br><br>## 第五步：macOS launchd 開機自動啟動<br><br>上一步我們手動啟動了 SSE 服務，但每次重開機都要手動跑一次太麻煩了。macOS 有一個叫 **launchd** 的機制，可以讓程式在開機時自動啟動，而且如果程式意外關閉，它還會自動重啟。<br><br>### 建立 launchd 設定檔<br><br>在 Terminal 輸入：<br><br>```bash<br>cat &gt; ~/Library/LaunchAgents/com.garmin-mcp.plist &lt;&lt; ‘PLIST’<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;<br>&lt;plist version=&quot;1.0&quot;&gt;<br>&lt;dict&gt;<br>    &lt;key&gt;Label&lt;/key&gt;<br>    &lt;string&gt;com.garmin-mcp&lt;/string&gt;<br>    &lt;key&gt;ProgramArguments&lt;/key&gt;<br>    &lt;array&gt;<br>        &lt;string&gt;/Users/你的使用者名稱/.local/bin/garmin-mcp-sse&lt;/string&gt;<br>    &lt;/array&gt;<br>    &lt;key&gt;RunAtLoad&lt;/key&gt;<br>    &lt;true/&gt;<br>    &lt;key&gt;KeepAlive&lt;/key&gt;<br>    &lt;true/&gt;<br>    &lt;key&gt;StandardOutPath&lt;/key&gt;<br>    &lt;string&gt;/tmp/garmin-mcp-sse.log&lt;/string&gt;<br>    &lt;key&gt;StandardErrorPath&lt;/key&gt;<br>    &lt;string&gt;/tmp/garmin-mcp-sse.log&lt;/string&gt;<br>    &lt;key&gt;ThrottleInterval&lt;/key&gt;<br>    &lt;integer&gt;10&lt;/integer&gt;<br>&lt;/dict&gt;<br>&lt;/plist&gt;<br>PLIST<br>```<br><br>⚠️ **重要：** 把 `你的使用者名稱` 替換成你的 Mac 使用者名稱。<br><br>**這個設定做了什麼？**<br><br>| 設定 | 說明 |<br>|------|------|<br>| `Label` | 這個服務的名稱，用來辨識 |<br>| `ProgramArguments` | 要執行的程式（就是我們剛剛建立的 SSE 腳本） |<br>| `RunAtLoad` | 登入 Mac 時自動啟動 |<br>| `KeepAlive` | 如果程式意外關閉，自動重新啟動 |<br>| `StandardOutPath` | 程式的輸出記錄（log）存在哪裡 |<br>| `ThrottleInterval` | 重啟間隔最少 10 秒（避免瘋狂重啟） |<br><br>### 載入並啟動服務<br><br>```bash<br>launchctl load ~/Library/LaunchAgents/com.garmin-mcp.plist<br>```<br><br>### 確認服務是否在運行<br><br>```bash<br>launchctl list | grep garmin-mcp<br>```<br><br>你應該會看到類似這樣的輸出：<br><br>```<br>12345    0    com.garmin-mcp<br>```<br><br>- 第一個數字（12345）是 process ID，表示服務正在運行<br>- 中間的 `0` 表示上次退出碼為 0（正常）<br><br>你也可以確認 port 8765 是否有在監聽：<br><br>```bash<br>lsof -i :8765<br>```<br><br>### 查看 log<br><br>如果遇到問題，可以查看服務的 log：<br><br>```bash<br>cat /tmp/garmin-mcp-sse.log<br>```<br><br>或即時追蹤 log（按 `Ctrl + C` 停止追蹤）：<br><br>```bash<br>tail -f /tmp/garmin-mcp-sse.log<br>```<br><br>### 管理服務<br><br>```bash<br># 停止服務<br>launchctl unload ~/Library/LaunchAgents/com.garmin-mcp.plist<br><br># 重新啟動服務<br>launchctl unload ~/Library/LaunchAgents/com.garmin-mcp.plist<br>launchctl load ~/Library/LaunchAgents/com.garmin-mcp.plist<br><br># 查看所有 garmin 相關服務<br>launchctl list | grep garmin<br>```<br><br>### ⚠️ 常見問題<br><br>**Q: `launchctl list` 顯示 process ID 為 `-`（減號）？**<br>- 表示服務沒有成功啟動。請查看 log：`cat /tmp/garmin-mcp-sse.log`<br>- 最常見的原因是 Python 路徑不對，請回到上一步確認<br><br>**Q: 重開機後服務沒有自動啟動？**<br>- 確認 plist 檔案在正確的位置：`ls ~/Library/LaunchAgents/com.garmin-mcp.plist`<br>- 重新載入：`launchctl load ~/Library/LaunchAgents/com.garmin-mcp.plist`<br><br>---<br><br>## 第六步：Claude Code CLI MCP 設定<br><br>現在 garmin-mcp SSE 服務已經在背景運行了，<br>接下來要告訴 Claude Code CLI 怎麼連上去。<br><br>### 設定方式<br><br>在 Terminal 輸入：<br><br>```bash<br>claude mcp add garmin \<br>  --transport sse \<br>  --url http://localhost:8765/sse<br>```<br><br>或者，你也可以手動編輯 Claude Code 的設定檔。打開 `~/.claude/settings.json`（如果不存在就建立一個），在 `mcpServers` 區塊中加入：<br><br>```json<br>{<br>  &quot;mcpServers&quot;: {<br>    &quot;garmin&quot;: {<br>      &quot;command&quot;: &quot;npx&quot;,<br>      &quot;args&quot;: [<br>        &quot;mcp-remote&quot;,<br>        &quot;http://localhost:8765/sse&quot;,<br>        &quot;--transport&quot;,<br>        &quot;sse-only&quot;,<br>        &quot;--allow-http&quot;<br>      ]<br>    }<br>  }<br>}<br>```<br><br>**這段設定做了什麼？**<br>- 使用 `mcp-remote`（一個 npm 工具）連接到本機 `localhost:8765` 上運行的 SSE 服務<br>- `--transport sse-only`：只使用 SSE 連線方式<br>- `--allow-http`：允許使用 HTTP（因為是本機連線，不需要 HTTPS）<br><br>### 驗證連線成功<br><br>開啟一個新的 Claude Code 對話，然後問它：<br><br>```<br>你能用 garmin 工具嗎？幫我查一下我昨天的步數<br>```<br><br>如果 Claude 成功回傳你的步數資料，就表示一切設定完成！<br><br>### ⚠️ 常見問題<br><br>**Q: Claude 說找不到 garmin 工具？**<br>- 確認 SSE 服務正在運行：`lsof -i :8765`<br>- 如果沒有運行，手動啟動或重新載入 launchd：`launchctl load ~/Library/LaunchAgents/com.garmin-mcp.plist`<br><br>**Q: 出現「mcp-remote: command not found」？**<br>- 需要先安裝 Node.js。到 [nodejs.org](https://nodejs.org/) 下載安裝<br>- `npx` 會自動下載 `mcp-remote`，第一次連線時可能需要等幾秒<br><br>---<br><br>## 第七步（選配）：每日自動同步<br><br>這一步是進階用法——讓 Mac 每天自動呼叫 Claude Code CLI，把 Garmin 數據同步到你自己的資料庫或服務。如果你只是想在對話中即時查詢 Garmin 數據，前面六步已經足夠，可以跳過這一步。<br><br>### 概念<br><br>macOS 的 launchd 可以設定「定時任務」，類似鬧鐘。我們可以讓它每天在固定時間，自動跑一個 Claude Code CLI 指令，把昨天的 Garmin 數據同步下來。<br><br>### 建立定時同步設定<br><br>```bash<br>cat &gt; ~/Library/LaunchAgents/com.garmin-sync.plist &lt;&lt; &#39;PLIST&#39;<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;<br>&lt;plist version=&quot;1.0&quot;&gt;<br>&lt;dict&gt;<br>    &lt;key&gt;Label&lt;/key&gt;<br>    &lt;string&gt;com.garmin-sync&lt;/string&gt;<br>    &lt;key&gt;ProgramArguments&lt;/key&gt;<br>    &lt;array&gt;<br>        &lt;string&gt;/Users/你的使用者名稱/.local/bin/claude&lt;/string&gt;<br>        &lt;string&gt;-p&lt;/string&gt;<br>        &lt;string&gt;Sync yesterday&#39;s Garmin data: sleep, HRV, heart rate, steps, stress, and activities.&lt;/string&gt;<br>        &lt;string&gt;--allowedTools&lt;/string&gt;<br>        &lt;string&gt;mcp__garmin__*,mcp__meumetric__*&lt;/string&gt;<br>    &lt;/array&gt;<br>    &lt;key&gt;StartCalendarInterval&lt;/key&gt;<br>    &lt;dict&gt;<br>        &lt;key&gt;Hour&lt;/key&gt;<br>        &lt;integer&gt;11&lt;/integer&gt;<br>        &lt;key&gt;Minute&lt;/key&gt;<br>        &lt;integer&gt;0&lt;/integer&gt;<br>    &lt;/dict&gt;<br>    &lt;key&gt;StandardOutPath&lt;/key&gt;<br>    &lt;string&gt;/tmp/garmin-sync.log&lt;/string&gt;<br>    &lt;key&gt;StandardErrorPath&lt;/key&gt;<br>    &lt;string&gt;/tmp/garmin-sync.log&lt;/string&gt;<br>&lt;/dict&gt;<br>&lt;/plist&gt;<br>PLIST<br>```<br><br>⚠️ 把 `你的使用者名稱` 替換成你的 Mac 使用者名稱。<br><br>**這個設定做了什麼？**<br>- 每天早上 11:00 自動執行<br>- 呼叫 Claude Code CLI（`-p` 是 prompt 模式，不開啟互動對話）<br>- 用指定的 prompt 請 Claude 同步昨天的 Garmin 數據<br>- `--allowedTools`：只允許使用 Garmin 相關的 MCP 工具<br><br>你可以根據需求修改：<br>- 同步時間（改 `Hour` 和 `Minute`）<br>- 同步的 prompt（改 `-p` 後面的文字）<br><br>### 載入並驗證<br><br>```bash<br>launchctl load ~/Library/LaunchAgents/com.garmin-sync.plist<br>launchctl list | grep garmin-sync<br>```<br><br>查看同步結果：<br><br>```bash<br>cat /tmp/garmin-sync.log<br>```<br><br>---<br><br>## 疑難排解<br><br>### Token 過期了怎麼辦？<br><br>Garmin OAuth token 通常有效數個月。過期後，garmin-mcp 會無法連線到 Garmin Connect。只需要重新認證：<br><br>```bash<br>garmin-mcp-auth --force-reauth<br>```<br><br>然後重新啟動 SSE 服務：<br><br>```bash<br>launchctl unload ~/Library/LaunchAgents/com.garmin-mcp.plist<br>launchctl load ~/Library/LaunchAgents/com.garmin-mcp.plist<br>```<br><br>### SSE 服務掛了？<br><br>檢查服務狀態：<br><br>```bash<br>launchctl list | grep garmin-mcp<br>```<br><br>查看 log 找出原因：<br><br>```bash<br>tail -50 /tmp/garmin-mcp-sse.log<br>```<br><br>重啟服務：<br><br>```bash<br>launchctl unload ~/Library/LaunchAgents/com.garmin-mcp.plist<br>launchctl load ~/Library/LaunchAgents/com.garmin-mcp.plist<br>```<br><br>### 更新 garmin-mcp 套件<br><br>當 garmin-mcp 發布新版本時，更新方式：<br><br>```bash<br>uv tool upgrade garmin-mcp<br>```<br><br>更新後記得重啟 SSE 服務。<br><br>### 完整檢查清單<br><br>如果遇到問題，依序檢查：<br><br>1. **Python 版本**：`python3 --version`（需要 3.12+）<br>2. **garmin-mcp 安裝**：`garmin-mcp --help`<br>3. **認證 token**：`garmin-mcp-auth --verify`<br>4. **SSE 服務運行**：`lsof -i :8765`<br>5. **SSE 服務 log**：`cat /tmp/garmin-mcp-sse.log`<br>6. **Claude Code MCP 設定**：檢查 `~/.claude/settings.json` 中的 garmin 區塊<br><br>---<br><br>## 架構總覽<br><br>設定完成後，整個系統的運作方式如下：<br><br>```<br>┌─────────────────┐<br>│   Garmin 手錶    │<br>│  （自動同步到）   │<br>└────────┬────────┘<br>         ▼<br>┌─────────────────┐<br>│  Garmin Connect  │<br>│   （雲端服務）    │<br>└────────┬────────┘<br>         ▼<br>┌─────────────────┐     ┌──────────────────────┐<br>│  garmin-mcp-sse  │◄────│  launchd 自動啟動     │<br>│  localhost:8765  │     │  開機常駐 + 自動重啟  │<br>└────────┬────────┘     └──────────────────────┘<br>         ▼<br>┌─────────────────┐<br>│  Claude Code CLI │<br>│  或 Claude Desktop│<br>│ （透過 mcp-remote │<br>│   連線到 SSE）    │<br>└─────────────────┘<br>```<br><br>1. Garmin 手錶自動把數據同步到 Garmin Connect 雲端<br>2. garmin-mcp-sse 在你的 Mac 上持續運行，隨時準備從 Garmin Connect 取得數據<br>3. 你跟 Claude 對話時，Claude 透過 MCP 連線到 garmin-mcp-sse，讀取你的數據<br><br>你的 Garmin 帳號密碼只在第一次認證時使用，之後都是用 OAuth token 自動處理，安全且方便。<br><br>---<br><br>## 使用技巧：注意數據量大小<br><br>設定完成後，你可以盡情問 Claude 各種 Garmin 數據。但有一個重要的實用技巧值得知道：<br><br>### 有些數據非常大，有些很小<br><br>Garmin 的數據分為兩種：<br><br>| 類型 | 說明 | 數據量 | 範例 |<br>|------|------|--------|------|<br>| **Summary（摘要）** | Garmin 已經幫你算好的每日總結 | 很小（~300 bytes） | 昨天總共走了 8,000 步、平均心率 65 |<br>| **Raw（原始時序）** | 每 15 分鐘一筆的完整紀錄 | 非常大（20~50 KB/天） | 每 15 分鐘的心率、壓力值、Body Battery |<br><br>舉例來說，你問「我昨天的靜止心率是多少？」——Claude 只需要呼叫 `get_rhr_day`，回傳大約 300 bytes 的摘要數據，瞬間就有答案。<br><br>但如果你問「給我昨天每 15 分鐘的心率變化」——Claude 會呼叫 `get_heart_rates`，回傳約 30~50 KB 的時序數據。這不僅傳輸慢，還會佔用 AI 的 context window（可以理解為 AI 的「工作記憶」），導致對話品質下降。<br><br>### 建議的問法<br><br>| 推薦 ✅ | 避免 ❌ |<br>|---------|---------|<br>| 「我昨天的**平均**心率是多少？」 | 「給我昨天**每 15 分鐘**的心率數據」 |<br>| 「我昨天的睡眠**總結**」 | 「給我昨天睡眠的**完整原始數據**」 |<br>| 「這週的**每日**壓力指數」 | 「這週**每小時**的壓力變化」 |<br>| 「我的 Body Battery **最低和最高**是多少？」 | 「列出 Body Battery 的**所有數據點**」 |<br><br>### 哪些數據適合用 Summary，哪些本來就很小？<br><br>| 數據類型 | 建議用法 | 工具名稱 |<br>|----------|----------|----------|<br>| 睡眠 | 用 Summary | `get_sleep_summary`（不是 `get_sleep_data`） |<br>| 心率 | 用 Summary | `get_heart_rates_summary`（不是 `get_heart_rates`） |<br>| 壓力 | 用 Summary | `get_stress_summary`（不是 `get_stress_data`） |<br>| 呼吸 | 用 Summary | `get_respiration_summary`（不是 `get_respiration_data`） |<br>| 靜止心率 | 本身就小 | `get_rhr_day` |<br>| HRV | 本身就小 | `get_hrv_data` |<br>| 血氧 | 本身就小 | `get_spo2_data` |<br>| 訓練準備度 | 本身就小 | `get_training_readiness` |<br>| 活動紀錄 | 本身就小 | `get_activities` |<br>| 體重/體組成 | 本身就小 | `get_body_composition` |<br><br>一般來說，你不需要刻意記住這些工具名稱——只要在問問題時，用「總結」、「平均」、「最高最低」這類字眼，Claude 自然會選擇輕量的 Summary 端點。但如果你發現某次查詢特別慢或 Claude 的回應被截斷，很可能就是踩到了大量原始數據的情況。<br><br>---<br><br>## 結語<br><br>恭喜你完成設定！現在你可以隨時用自然語言問 Claude 你的健康數據了。<br><br>這個設定的美妙之處在於——一切都在你的電腦上本地運行。你的 Garmin 數據不會經過任何第三方伺服器（除了 Garmin Connect 本身），也不需要把帳號密碼交給任何雲端服務。<br><br>試試看問 Claude 這些問題：<br>- 「我這週的平均睡眠時間是多少？」<br>- 「我最近一次跑步的細節？」<br>- 「我的靜止心率這個月有什麼趨勢？」<br>- 「我現在的訓練準備度如何？」<br><br>Happy tracking! 🏃‍♂️⌚</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e77e03334216" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[最近的生活]]></title>
            <link>https://medium.com/@lukechi/%E6%9C%80%E8%BF%91%E7%9A%84%E7%94%9F%E6%B4%BB-44f93ac2da74?source=rss-bf7dd692afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/44f93ac2da74</guid>
            <dc:creator><![CDATA[Luke Chi]]></dc:creator>
            <pubDate>Sun, 08 Feb 2026 09:55:14 GMT</pubDate>
            <atom:updated>2026-02-08T12:18:06.912Z</atom:updated>
            <content:encoded><![CDATA[<p>今天很快速地翻完 “優勢思維” 這本書了，拖了好久。</p><p>很喜歡第四章最後的重點總結：</p><ul><li>面對生活中的每個決定，都要試著從關注自己、從內在出發，更主動的為自己做選擇，拿回生活的主導權。</li><li>做著這份工作感到痛苦的人是你，有權利終止它的人只有你，請不要把決定權讓給別人。</li><li>讓自己活得更開心、更有動力，是自己的責任和特權呀。學習為自己做出好的決定，是更接近自由的好對策。</li><li>主觀地為自己設定目標，只要是對你來說重要的，真的想改變的事，能帶你往更好的地方前進一小步，就是好目標。</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44f93ac2da74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude Skills: Extend AI Capabilities in 5 Minutes [2025 Guide]]]></title>
            <link>https://medium.com/@lukechi/claude-skills-extend-ai-capabilities-in-5-minutes-2025-guide-66c6c4c0fffd?source=rss-bf7dd692afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/66c6c4c0fffd</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[claude-skills]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <dc:creator><![CDATA[Luke Chi]]></dc:creator>
            <pubDate>Tue, 23 Dec 2025 14:54:55 GMT</pubDate>
            <atom:updated>2025-12-23T14:54:55.721Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kG83A_AjoO6OvuSwMbMChg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bM6wrxKsQ0nlT9Doz6Exdg.png" /></figure><h3>Does This Sound Familiar?</h3><p>Every time you use an AI tool, you find yourself explaining the same things over and over: “Our brand color is navy blue #1E40AF,” “Document titles should use Noto Sans TC Bold,” “Code must follow the Airbnb style guide.”</p><p>Once, twice, ten times…</p><p><strong>Wouldn’t it be great if Claude could just remember all this?</strong></p><p>Good news — now it can.</p><h3>What Are Claude Skills?</h3><p><strong>Skills</strong> are a feature from Anthropic that lets you “package” your expertise for Claude. Simply put, a Skill is an instruction set that tells Claude:</p><blockquote><em>“When the user wants to do X, execute it this way.”</em></blockquote><p>Once configured, Claude applies it automatically — no need to repeat yourself every time. This isn’t a prompt template. This is a <strong>reusable professional knowledge module</strong>.</p><h3>What Can Skills Do?</h3><p>Use Case Example</p><p>📄 Document Processing</p><ul><li>Create PDFs, DOCX, PPTX with company brand guidelines</li></ul><p>📊 Data Analysis</p><ul><li>Process data following your organization’s analysis workflow</li></ul><p>🎨 Creative Design</p><ul><li>Generate UI components that match your design system</li></ul><p>🛠️ Technical Tasks</p><ul><li>Test web apps, build MCP servers</li></ul><p>💼 Business Processes</p><ul><li>Write internal announcements, meeting notes</li></ul><h3>Real Example: How I Tripled My Efficiency with Skills</h3><p>Let me share a real use case. I write technical documentation weekly with strict formatting requirements:</p><ul><li>Headings can’t exceed three levels</li><li>Code blocks must specify the language</li><li>Each section needs a brief summary</li><li>Technical terms need English annotations on first mention</li></ul><p>Before, I had to paste a long explanation at the start of every conversation. Now, I just say:</p><blockquote><em>“Help me write an API document.”</em></blockquote><p>Claude automatically applies my documentation standards.</p><p><strong>That’s the power of Skills.</strong></p><h3>Official Skills Repository</h3><p>📍 <strong>GitHub</strong>: <a href="https://github.com/anthropics/skills">https://github.com/anthropics/skills</a></p><p>Anthropic has open-sourced a complete Skills collection on GitHub, now with over <strong>21,000 stars</strong>.</p><p>These skills fall into several categories:</p><ul><li>📦 Ready-to-use Skills (documents, design, development, enterprise)</li><li>📋 Skills specification</li><li>🧩 Templates for creating new Skills</li></ul><h3>What Skills Are Available?</h3><p><strong>Document Processing</strong></p><ul><li>pdf — PDF operations (extract text, merge, split, fill forms)</li><li>docx — Word document creation and editing</li><li>pptx — PowerPoint presentation creation</li><li>xlsx — Excel data analysis</li></ul><p><strong>Creative Design</strong></p><ul><li>brand-guidelines — Apply brand guidelines</li><li>frontend-design — Frontend UI design</li><li>canvas-design — Visual poster design</li><li>algorithmic-art — p5.js algorithmic art</li></ul><p><strong>Advanced</strong></p><ul><li>mcp-builder — MCP server development guide</li><li>webapp-testing — Playwright web testing</li></ul><p>All of these are <strong>ready to use out of the box</strong>.</p><h3>Quick Installation Guide</h3><h3>Method 1: Install in Claude Code (Recommended)</h3><p>Open your terminal and enter these commands:</p><pre># 1. Register the official Skills repository as a marketplace<br>/plugin marketplace add anthropics/skills</pre><pre># 2. Install the Skill packages you need<br>/plugin install document-skills@anthropic-agent-skills<br>/plugin install example-skills@anthropic-agent-skills</pre><p>Or use interactive installation:</p><ol><li>Type /plugin</li><li>Select Browse and install plugins</li><li>Select anthropic-agent-skills</li><li>Select document-skills or example-skills</li><li>Click Install now</li></ol><p>Once installed, you can use it like this:</p><blockquote><em>“Use the PDF skill to extract all form fields from this contract.”</em></blockquote><p>Claude will know exactly what you mean.</p><h3>Method 2: Use in Claude.ai Web Version</h3><p>Paid users (Pro/Team/Enterprise) can use official Skills directly:</p><ol><li>Go to Claude.ai settings page</li><li>Find the Skills section</li><li>Enable official Skills or upload custom Skills</li></ol><h3>Method 3: Via API</h3><p>Developers can call Skills via API. See <a href="https://docs.claude.com/en/api/skills-guide">Skills API Quickstart</a> for details.</p><h3>Create Your Own Skill</h3><p>This is the fun part.</p><p><strong>You don’t need to know how to code.</strong></p><p>A Skill only needs a folder and a Markdown file.</p><h3>Step 1: Create the Folder</h3><pre>my-company-style/<br>└── SKILL.md</pre><h3>Step 2: Write SKILL.md</h3><pre>---<br>name: my-company-style<br>description: Apply company brand guidelines including colors, fonts, and layout. Auto-activates when users request documents, presentations, or designs.<br>---</pre><pre># Company Style Guide</pre><pre>## Brand Colors<br>- Primary: #1E40AF (Navy Blue)<br>- Secondary: #10B981 (Green)<br>- Background: #F9FAFB (Light Gray)</pre><pre>## Typography<br>- Headings: Noto Sans TC Bold<br>- Body: Noto Sans TC Regular<br>- Code: JetBrains Mono</pre><pre>## Layout Principles<br>- Heading to body spacing: 24px<br>- Paragraph spacing: 16px<br>- Maximum width: 800px</pre><pre>## Usage Examples<br>- When creating product documents, automatically apply the above standards<br>- When making presentations, use brand colors</pre><p>That’s it.</p><p>Put this folder somewhere Claude can read it, and it will automatically apply your style.</p><p><strong>Required Fields:</strong></p><ul><li>name: Unique identifier (lowercase, hyphen-separated)</li><li>description: <strong>Critical!</strong> Tells Claude when to use this Skill</li></ul><h3>Advanced Tip: Automatic Skill Triggering</h3><p>The description field is crucial — it determines when Claude will use this Skill. Write it well, and Claude will auto-activate at the right moment. Write it poorly, and you’ll still need to specify it manually.</p><h3>Good Description Example</h3><pre>description: When users request slides, presentations, or pitch decks, automatically apply company brand guidelines including standard colors, fonts, and layouts.</pre><h3>Bad Description Example</h3><pre>description: Brand guidelines</pre><p><strong>The key is: clearly state “under what circumstances” to use this Skill.</strong></p><h3>Why Skills Beat Prompt Templates</h3><p>You might be thinking: “How is this different from saving my prompts?”</p><p>Very different.</p><p><strong>= Prompt Template =</strong></p><ul><li>Manually paste every time</li><li>Single conversation only</li><li>Hard to maintain and update</li><li>Text only</li><li>Claude’s responses vary</li><li>Everyone does their own thing</li></ul><p><strong>= Skills =</strong></p><ul><li>Auto-detect and apply</li><li>Persists across conversations</li><li>Version control, team sharing</li><li>Can include scripts, example files</li><li>Standardized, consistent quality</li><li>Shared workflows</li></ul><p>Skills are <strong>system-level</strong> capability extensions, not temporary prompt hacks.</p><h3>FAQ</h3><p><strong>Q: Do Skills increase API costs?</strong></p><p>Skill content counts toward context, so technically there’s a slight increase in token usage. But it’s usually negligible.</p><p><strong>Q: Can I use multiple Skills simultaneously?</strong></p><p>Yes. Claude determines which Skills to use based on context.</p><p><strong>Q: Do Skills affect Claude’s core capabilities?</strong></p><p>No. Skills are additive, not replacements. Claude’s original capabilities remain intact.</p><h3>Take Action</h3><p>If you use Claude daily, spending 10 minutes to create a Skill can save you hundreds of repeated explanations in the future.</p><p>Start with your most repetitive tasks:</p><ol><li>Document formatting standards</li><li>Code style guides</li><li>Communication tone settings</li><li>Domain-specific knowledge</li></ol><p>Pick one and start writing today.</p><h3>Resources</h3><ul><li><a href="https://github.com/anthropics/skills">GitHub: anthropics/skills</a> — Official Skills repository</li><li><a href="https://support.claude.com/en/articles/12512176-what-are-skills">What Are Skills?</a> — Official documentation</li><li><a href="https://support.claude.com/en/articles/12512180-using-skills-in-claude">Using Skills in Claude</a> — Usage guide</li><li><a href="https://support.claude.com/en/articles/12512198-creating-custom-skills">Creating Custom Skills</a> — Detailed tutorial</li><li><a href="https://anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills">Official Blog</a> — Design philosophy</li></ul><p><em>If this article helped you, feel free to clap, comment, and share.</em></p><p><em>Questions? See you in the comments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66c6c4c0fffd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude Skills 5 分鐘學會為 AI 擴充專業能力【2025 指南】]]></title>
            <link>https://medium.com/@lukechi/claude-skills-5-%E5%88%86%E9%90%98%E5%AD%B8%E6%9C%83%E7%82%BA-ai-%E6%93%B4%E5%85%85%E5%B0%88%E6%A5%AD%E8%83%BD%E5%8A%9B-2025-%E6%8C%87%E5%8D%97-b57e138cb680?source=rss-bf7dd692afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b57e138cb680</guid>
            <category><![CDATA[anthropic-claude]]></category>
            <category><![CDATA[claude-skills]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Luke Chi]]></dc:creator>
            <pubDate>Tue, 23 Dec 2025 14:45:41 GMT</pubDate>
            <atom:updated>2025-12-23T14:45:41.822Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kG83A_AjoO6OvuSwMbMChg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bM6wrxKsQ0nlT9Doz6Exdg.png" /></figure><h3>你是否也有這樣的困擾？</h3><p>每次使用 AI 工具，你都要重新解釋一遍：「我們公司的品牌色是深藍色 #1E40AF」，「文件標題要用 Noto Sans TC Bold」，「程式碼要遵循 Airbnb style guide」</p><p>一次、兩次、十次……</p><p><strong>如果 Claude 能記住這些，該有多好？</strong></p><p>好消息是 — — 現在可以了。</p><h3>什麼是 Claude Skills？</h3><p><strong>Skills（技能）</strong> 是 Anthropic 推出的功能，讓你可以把專業知識「打包」給 Claude。簡單來說，Skill 就是一份說明書，告訴 Claude：</p><blockquote><em>「當使用者要做 X 的時候，請按照這個方式執行。」</em></blockquote><p>一旦設定好，Claude 就會自動套用 — — 不需要每次都重複說明。這不是 prompt template。這是<strong>可重複使用的專業知識模組</strong>。</p><h3>Skills 能做什麼？</h3><p>應用場景範例</p><p>📄 文件處理</p><ul><li>用公司品牌指南建立 PDF、DOCX、PPTX</li></ul><p>📊 資料分析</p><ul><li>按照組織的分析流程處理數據</li></ul><p>🎨 創意設計</p><ul><li>生成符合設計系統的 UI 元件</li></ul><p>🛠️ 技術任務</p><ul><li>測試網頁應用、建立 MCP 伺服器</li></ul><p>💼 企業流程</p><ul><li>撰寫內部公告、會議紀錄</li></ul><h3>實際案例：我如何用 Skills 提升 3 倍效率</h3><p>讓我分享一個真實的使用場景。我每週要撰寫技術文件，格式要求很嚴格：</p><ul><li>標題層級不能超過三層</li><li>程式碼區塊要標註語言</li><li>每個章節要有簡短摘要</li><li>專有名詞第一次出現時要加註英文</li></ul><p>以前，我要在每次對話開頭貼上一大段說明。現在，我只需要一句話：</p><blockquote><em>「幫我寫一份 API 文件」</em></blockquote><p>Claude 就會自動套用我的文件規範。</p><p><strong>這就是 Skills 的威力。</strong></p><h3>官方 Skills 倉庫</h3><p>📍 <strong>GitHub</strong>: <a href="https://github.com/anthropics/skills">https://github.com/anthropics/skills</a></p><p>Anthropic 在 GitHub 上開源了一整套 Skills，目前已經累積超過 <strong>21,000 顆星</strong>。</p><p>這些技能分為幾個類別：</p><ul><li>📦 多種即用型 Skills（文件、設計、開發、企業）</li><li>📋 Skills 規格說明</li><li>🧩 建立新 Skill 的模板</li></ul><h3>官方提供了哪些 Skills？</h3><p><strong>文件處理</strong></p><ul><li>pdf — PDF 操作（提取文字、合併、分割、填表）</li><li>docx — Word 文件生成與編輯</li><li>pptx — PowerPoint 投影片製作</li><li>xlsx — Excel 資料分析</li></ul><p><strong>創意設計</strong></p><ul><li>frontend-design — 前端 UI 設計</li><li>canvas-design — 視覺海報設計</li><li>algorithmic-art — p5.js 演算法藝術</li><li>`brand-guidelines` — 品牌指南套用</li></ul><p><strong>進階範例</strong></p><ul><li>mcp-builder — MCP 伺服器開發指南</li><li>webapp-testing — Playwright 網頁測試</li></ul><p>這些都是<strong>即裝即用</strong>的。</p><h3>快速安裝教學</h3><h3>方法一：在 Claude Code 中安裝（推薦）</h3><p>打開終端機，輸入以下指令：</p><pre># 1. 先註冊官方 Skills 倉庫作為 marketplace<br>/plugin marketplace add anthropics/skills</pre><pre># 2. 安裝你需要的 Skill 套件<br>/plugin install document-skills@anthropic-agent-skills<br>/plugin install example-skills@anthropic-agent-skills</pre><p>或者透過互動式安裝：</p><ol><li>輸入 /plugin</li><li>選擇 Browse and install plugins</li><li>選擇 anthropic-agent-skills</li><li>選擇 document-skills 或 example-skills</li><li>點選 Install now</li></ol><p>完成後，你可以這樣用：</p><blockquote><em>「用 PDF skill 從這份合約提取所有表單欄位」</em></blockquote><p>Claude 會知道你在說什麼。</p><h3>方法二：在 Claude.ai 網頁版使用</h3><p>付費用戶（Pro/Team/Enterprise）可以直接使用官方提供的 Skills：</p><ol><li>進入 Claude.ai 設定頁面</li><li>找到 Skills 區塊</li><li>啟用官方 Skill 或上傳自訂 Skill</li></ol><h3>方法三：透過 API 使用</h3><p>開發者可以透過 API 呼叫 Skills，詳見 <a href="https://docs.claude.com/en/api/skills-guide">Skills API Quickstart</a></p><h3>寫一個屬於你的 Skill</h3><p>這是最有趣的部分。</p><p><strong>你不需要會寫程式。</strong></p><p>一個 Skill 只需要一個資料夾和一個 Markdown 檔案。</p><h3>步驟一：建立資料夾</h3><pre>my-company-style/<br>└── SKILL.md</pre><h3>步驟二：撰寫 SKILL.md</h3><pre>---<br>name: my-company-style<br>description: 套用公司品牌指南，包含色彩、字型、排版規範。當使用者要求建立文件、投影片、設計稿時自動啟用。<br>---</pre><pre># 公司風格指南</pre><pre>## 品牌色彩<br>- 主色：#1E40AF（深藍）<br>- 輔色：#10B981（綠色）<br>- 背景：#F9FAFB（淺灰）</pre><pre>## 字型規範<br>- 標題：Noto Sans TC Bold<br>- 內文：Noto Sans TC Regular<br>- 程式碼：JetBrains Mono</pre><pre>## 排版原則<br>- 標題與內文間距：24px<br>- 段落間距：16px<br>- 最大寬度：800px</pre><pre>## 使用範例<br>- 建立產品文件時，自動套用以上規範<br>- 製作投影片時，使用品牌色彩</pre><p>就這樣。</p><p>把這個資料夾放到 Claude 能讀取的位置，它就會自動套用你的風格。</p><p><strong>必填欄位說明：</strong></p><ul><li>name：唯一識別名稱（小寫、用連字號分隔）</li><li>description：<strong>關鍵！</strong> 告訴 Claude 何時該使用這個 Skill</li></ul><h3>進階技巧：讓 Skill 自動觸發</h3><p>Skill 的 description 欄位非常重要——它決定了 Claude 何時會使用這個技能。寫得好，Claude 會在適當時機自動啟用。寫得不好，你還是得手動指定。</p><h3>好的 description 範例</h3><pre>description: 當使用者要求建立投影片、簡報、presentation 時，自動套用公司品牌指南，包含標準色彩、字型、版面配置。</pre><h3>不好的 description 範例</h3><pre>description: 品牌指南</pre><p><strong>關鍵是：說清楚「什麼情況下」要用這個 Skill。</strong></p><h3>常見問題</h3><p><strong>Q: Skills 會增加 API 費用嗎？</strong></p><p>Skills 的內容會計入 context，所以技術上會增加一點 token 使用量。但通常可以忽略不計。</p><p><strong>Q: 可以同時啟用多個 Skills 嗎？</strong></p><p>可以。Claude 會根據情境判斷要使用哪些 Skills。</p><p><strong>Q: Skills 會影響 Claude 的基本能力嗎？</strong></p><p>不會。Skills 是加法，不是取代。Claude 的原有能力完全保留。</p><h3>開始行動</h3><p>如果你每天都在用 Claude，花 10 分鐘建立一個 Skill，可以幫你省下未來幾百次的重複說明。</p><p>從最常重複的工作開始：</p><ol><li>文件格式規範</li><li>程式碼風格指南</li><li>溝通語氣設定</li><li>專業領域知識</li></ol><p>選一個，今天就動手寫。</p><h3>資源連結</h3><ul><li><a href="https://github.com/anthropics/skills">GitHub: anthropics/skills</a> — 官方 Skills 倉庫</li><li><a href="https://support.claude.com/en/articles/12512176-what-are-skills">什麼是 Skills？</a> — 官方說明</li><li><a href="https://support.claude.com/en/articles/12512180-using-skills-in-claude">如何使用 Skills</a> — 使用教學</li><li><a href="https://support.claude.com/en/articles/12512198-creating-custom-skills">建立自訂 Skills</a> — 詳細教學</li><li><a href="https://anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills">官方部落格</a> — 設計理念</li></ul><p><em>如果這篇文章對你有幫助，歡迎拍手、留言、分享。<br>有任何問題，留言區見。</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b57e138cb680" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>