with one click
mcp-clone
Clone 參考 MCP Server 到 references/ 並自動分析可升級功能
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Clone 參考 MCP Server 到 references/ 並自動分析可升級功能
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Turn a journal / reference article PDF into a faithful, compile-verified LaTeX "article record" — metadata frontmatter + every theorem, definition and numbered equation (original numbers preserved) + references + flagged editorial notes — saved next to the PDF as year_author_title.tex. Reach for this whenever the user wants to transcribe, OCR, extract, "make a record of", or pull the theorems / equations out of a paper or PDF into LaTeX, or adds a reference PDF and wants it turned into a structured .tex — even when they literally say "OCR it": this skill checks for a text layer first and deliberately avoids OCR on born-digital PDFs, because re-recognizing rendered math is less accurate than reading the embedded text. Especially valuable for math-heavy papers where equation fidelity matters.
發布或更新 MCP Server 到官方 MCP Registry 及第三方平台(Glama、awesome-mcp-servers)
Unblock Apple notarization / signed releases when blocked by an updated or expired Apple Developer Program License Agreement (the notarytool / Transporter HTTP 403 "A required agreement is missing or has expired"). Accepts the pending agreement on developer.apple.com via Safari + AppleScript, then re-verifies and resumes the release. Use when: `xcrun notarytool` / `make release-signed` fails with 403 "required agreement", or user says "notarization blocked", "公證被擋", "Apple 協議過期", "accept apple agreement", "Program License Agreement", "notary 403", "release 卡在 Apple 協議". Do NOT use for 401 "Invalid credentials" (that is an app-specific-password / key problem — re-run `xcrun notarytool store-credentials`, a user-only action).
macOS native browser automation via Safari + AppleScript. Use when the user needs to automate websites that require login (Plaud, Elementor, banking, social media) — Safari preserves localStorage and cookies permanently. Also use when agent-browser fails due to session/auth issues, or when the user explicitly asks to use Safari. Triggers on: "login to site", "automate with Safari", "use Safari", "session expired with agent-browser", "Plaud upload", or any website automation where persistent auth is needed.
更新 Plugin 到最新版本(marketplace.json 同步 + marketplace update + plugin update + 安裝檢查)。當修改了任何 plugin 原始碼後需要同步、或用戶提到「更新 plugin」、「同步 plugin」、「plugin 沒生效」、「reload plugins」時使用。
LaTeX source 編譯前的 static check — punct_check(半形/全形標點)+ fonts_check(字型缺字,需既有 .log)+ source-level pattern audit。當用戶說「precompile check」「編譯前檢查」「跑 make check」「source audit」「掃半形標點」「掃缺字」時使用。對應暑期班 typesetting-checklist 的
| name | mcp-clone |
| description | Clone 參考 MCP Server 到 references/ 並自動分析可升級功能 |
| argument-hint | <github-url> [target-mcp-project] |
| allowed-tools | Bash(git:*), Bash(ls:*), Bash(mkdir:*), Bash(rm:*), Bash(gh:*), Read, Write, Edit, Grep, Glob, AskUserQuestion, Task, Skill, WebFetch |
| disable-model-invocation | true |
直接 clone 指定的 GitHub repo 到當前 MCP 專案的 references/ 資料夾,自動分析可借鏡的功能並產生升級建議。
搜尋競品請用 /mcp-tools:mcp-clone-references
手動升級分析請用 /mcp-tools:mcp-upgrade
$1 = GitHub URL(必要,如 https://github.com/user/repo)$2 = 目標 MCP 專案名稱(可選,如 che-apple-mail-mcp)
--list:列出所有 MCP 專案的 references動任何事之前先用 TaskCreate 建 todo list:
TaskCreate(name="locate_target", description="Phase 0: 解析 GitHub URL + 確認目標 + 驗證存在")
TaskCreate(name="clone_to_references", description="Phase 1: 建 references/ + .gitignore + clone + 驗證")
TaskCreate(name="create_readme", description="Phase 2: 寫 references/README.md 記錄 ref repo 資訊")
TaskCreate(name="auto_analyze", description="Phase 3: 快速掃描 ref + 比對自己的 MCP 專案")
完成每一步立即 TaskUpdate → completed。靜默完成 = 違規。
從 $1 提取:
REPO_OWNER: GitHub 使用者/組織名REPO_NAME: repo 名稱CLONE_URL: 完整 clone URL# 支援多種 URL 格式
# https://github.com/user/repo
# https://github.com/user/repo.git
# git@github.com:user/repo.git
情況 A:$2 有指定 → 直接使用
MCP_PROJECT_DIR=~/Library/CloudStorage/Dropbox/che_workspace/projects/mcp/$2
情況 B:cwd 是 MCP 專案(有 Package.swift 或 pyproject.toml 或 mcpb/)→ 使用 cwd
情況 C:都沒有 → 列出 ~/Library/CloudStorage/Dropbox/che_workspace/projects/mcp/ 下的 MCP 專案,讓使用者選
ls -d ~/Library/CloudStorage/Dropbox/che_workspace/projects/mcp/che-*/
使用 AskUserQuestion 讓使用者選擇目標專案。
ls "$MCP_PROJECT_DIR/Package.swift" "$MCP_PROJECT_DIR/pyproject.toml" "$MCP_PROJECT_DIR/package.json" 2>/dev/null
至少要有一個存在。
cd "$MCP_PROJECT_DIR"
mkdir -p references
建立 references/.gitignore:
# Reference source code - local only, do not commit
*
!.gitignore
!README.md
CLONE_DIR="references/$REPO_NAME"
if [ -d "$CLONE_DIR" ]; then
echo "references/$REPO_NAME 已存在"
# 詢問使用者:跳過 / 更新 (git pull) / 重新 clone
else
git clone --depth 1 "$CLONE_URL" "$CLONE_DIR"
fi
ls "$CLONE_DIR"
使用 WebFetch 取得 repo 的 GitHub 頁面資訊(或讀取 clone 下來的 README):
# 讀取 repo 的 README 取得描述
head -20 "$CLONE_DIR/README.md"
如果 references/README.md 不存在,建立新檔。如果已存在,附加新條目。
格式:
# References
參考用原始碼,僅供本地分析,不納入版本控制。
## 已 Clone 的參考專案
| Repo | URL | Language | Clone 日期 | 用途 |
|------|-----|----------|-----------|------|
| {REPO_NAME} | {GITHUB_URL} | {LANGUAGE} | {DATE} | 功能參考 |
啟動一個 Explore agent 分析參考 repo 的 MCP 功能:
分析重點:
1. 支援的 MCP tools 清單(名稱 + 功能描述 + 參數)
2. 核心架構和設計模式
3. 特色功能(error handling, i18n, batch ops, search 等)
4. 依賴和框架
啟動另一個 Explore agent 分析自己的專案:
分析重點:
1. 現有 MCP tools 清單
2. 已實作的功能
兩個 agent 平行執行。
等兩個 agent 都完成後,建立功能比較表:
## 功能比較
| 功能 | 自己 | {REPO_NAME} | 可借鏡? |
|------|------|-------------|---------|
| search_messages | ✅ | ✅ | - |
| move_messages | ❌ | ✅ | ✅ |
| flag_message | ❌ | ✅ | ✅ |
| batch_operations | ❌ | ✅ | ✅ |
| attachment_handling | 基本 | 完整 | ✅ |
基於 Phase 3 的比較結果,產生具體的升級建議:
# 升級建議:基於 {REPO_NAME} 參考分析
**專案**: {MCP_PROJECT_NAME}
**參考**: {REPO_NAME} ({GITHUB_URL})
**分析日期**: {DATE}
---
## 可借鏡的功能
### 高優先(核心缺失)
| 功能 | 參考實作 | 建議方式 | 複雜度 |
|------|----------|----------|--------|
| move_messages | mail_connector.py:678 | 新增 move_email tool | 中 |
### 中優先(體驗提升)
| 功能 | 參考實作 | 建議方式 | 複雜度 |
|------|----------|----------|--------|
### 低優先(進階功能)
| 功能 | 參考實作 | 建議方式 | 複雜度 |
|------|----------|----------|--------|
---
## 設計模式可借鏡
| 模式 | 參考做法 | 自己現況 | 建議 |
|------|----------|----------|------|
| Error handling | 自定義 Exception 類 | 通用 error | 引入分類 |
| Input validation | sanitize + escape | 部分 | 完善 |
---
## 下一步
- [ ] 確認要實作哪些功能
- [ ] 用 `/mcp-tools:mcp-upgrade features` 執行正式升級流程
- [ ] 完成後用 `/mcp-tools:mcp-deploy` 部署新版
報告儲存到 docs/reference-analysis-{REPO_NAME}.md。
mkdir -p "$MCP_PROJECT_DIR/docs"
使用 AskUserQuestion 詢問:
分析完成!發現 {N} 個可借鏡的功能。要怎麼處理?
選項:
/mcp-tools:mcp-upgrade features 正式升級如果選擇「執行 mcp-upgrade」:
Skill: mcp-tools:mcp-upgrade
Args: features
--list:列出所有 referencesecho "=== MCP 專案 References ==="
for project in ~/Library/CloudStorage/Dropbox/che_workspace/projects/mcp/che-*/; do
if [ -d "$project/references" ]; then
echo ""
echo "$(basename $project):"
for dir in "$project"/references/*/; do
if [ -d "$dir/.git" ]; then
REMOTE=$(git -C "$dir" remote get-url origin 2>/dev/null || echo "unknown")
echo " $(basename $dir) -> $REMOTE"
fi
done
fi
done
# Clone 指定 repo 到當前 MCP 專案
/mcp-tools:mcp-clone https://github.com/s-morgan-jeffries/apple-mail-mcp
# Clone 到指定 MCP 專案
/mcp-tools:mcp-clone https://github.com/user/repo che-apple-mail-mcp
# 列出所有 references
/mcp-tools:mcp-clone --list
/mcp-tools:mcp-clone <url> 直接 clone + 分析
│
├── 自動產生功能比較和升級建議
│
▼
/mcp-tools:mcp-upgrade features (可選)正式升級流程
│
▼
/mcp-tools:mcp-deploy 部署新版
| 命令 | 用途 | 輸入 |
|---|---|---|
/mcp-tools:mcp-clone | 給 URL,clone + 分析 | GitHub URL |
/mcp-tools:mcp-clone-references | 搜尋競品,批次 clone | 關鍵字 |
/mcp-tools:mcp-upgrade | 正式升級流程 | focus area |