Files
tool-notes/QUICKSTART.md
Timmy 55e05c323c 新增 Playwright Claude Code plugin 安裝筆記
安裝 playwright@claude-plugins-official,新增獨立筆記並於 README、
SUMMARY、QUICKSTART 建立索引,與既有 Python 版 Playwright 筆記區分。

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

99 lines
1.8 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)