Files
tool-notes/QUICKSTART.md
Timmy 05c8cc205e 新增 Context7 Claude Code plugin 安裝筆記
安裝 context7@claude-plugins-official,用於即時拉取 library 官方文件
避免 LLM 訓練資料過時造成的幻覺 API。於 README、SUMMARY、QUICKSTART
建立索引。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 12:18:19 +08:00

121 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# QUICKSTART
三個工具的最短上手路徑。詳細說明請看各自的 `*-notes.md`
---
## MarkItDown — 檔案轉 Markdown
```bash
pip install 'markitdown[all]'
markitdown document.pdf > output.md
```
Python
```python
from markitdown import MarkItDown
print(MarkItDown().convert("document.pdf").text_content)
```
👉 詳情:[markitdown-notes.md](./markitdown-notes.md)
---
## MemPalace — 本地記憶庫
```bash
pip install mempalace
mempalace init ~/projects/my_app # 初始化
mempalace mine ~/projects/my_app # 匯入專案內容
mempalace search "為什麼改用 GraphQL" # 搜尋
```
註冊到 Claude Code
```bash
claude mcp add mempalace -- python -m mempalace.mcp_server
```
👉 詳情:[mempalace-notes.md](./mempalace-notes.md)
---
## Playwright — 瀏覽器自動化
```bash
pip install playwright
playwright install chromium
```
最小範例(同步 API
```python
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch()
page = browser.new_page()
page.goto("https://example.com")
page.screenshot(path="out.png")
browser.close()
```
錄製操作自動產生程式碼:
```bash
playwright codegen https://example.com
```
👉 詳情:[playwright-notes.md](./playwright-notes.md)
---
## Playwright Plugin — Claude Code 操作瀏覽器
安裝(官方 marketplace一行搞定
```bash
claude plugin install playwright@claude-plugins-official
```
或在 Claude Code 對話內:
```text
/plugin install playwright@claude-plugins-official
```
重啟 Claude Code 後,直接請 Claude 做事:
> 打開 https://example.com截圖存 `out.png`,告訴我主標題。
確認安裝狀態:
```bash
claude plugin list
```
👉 詳情:[playwright-plugin-notes.md](./playwright-plugin-notes.md)
---
## Context7 Plugin — 即時文件查詢
安裝:
```bash
claude plugin install context7@claude-plugins-official
```
使用(在 prompt 尾端加上關鍵字):
> 幫我寫一段 Next.js middleware 檢查 cookie 中的 JWT。**use context7**
指定函式庫:
```text
use library /supabase/supabase for API and docs
```
👉 詳情:[context7-plugin-notes.md](./context7-plugin-notes.md)