بنقرة واحدة
mcp-clone-references
Clone 競品 MCP Server 原始碼到 references/ 進行分析
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Clone 競品 MCP Server 原始碼到 references/ 進行分析
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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-references |
| description | Clone 競品 MCP Server 原始碼到 references/ 進行分析 |
| argument-hint | ["search-query"] |
| allowed-tools | Bash(gh:*), Bash(git:*), Bash(ls:*), Bash(mkdir:*), Bash(rm:*), Read, Write, Edit, Grep, Glob, AskUserQuestion, Task |
| disable-model-invocation | true |
搜尋並 clone 相關 MCP Server 的原始碼到 references/ 資料夾,用於競品分析。
$1 = 搜尋關鍵字(可選,如 calendar、apple reminders)
--list:列出已 clone 的 references--clean:清除 references/ 資料夾動任何事之前先用 TaskCreate 建 todo list:
TaskCreate(name="detect_project", description="Phase 0: 確認 MCP 專案 + 推斷搜尋關鍵字")
TaskCreate(name="search_competitors", description="Phase 1: GitHub 搜尋 + 補充搜尋 + 讓使用者選")
TaskCreate(name="setup_references_folder", description="Phase 2: 建 references/ + .gitignore")
TaskCreate(name="clone_selected_repos", description="Phase 3: 逐一 clone + 驗證")
TaskCreate(name="competitor_analysis", description="Phase 4 (可選): 分析競品")
TaskCreate(name="report", description="Phase 5: 完成報告")
完成每一步立即 TaskUpdate → completed。靜默完成 = 違規。
pwd
ls -la
判斷依據(至少符合一項):
Package.swift 存在(Swift MCP)package.json 存在且含 mcp 相關依賴(TypeScript MCP)pyproject.toml 存在且含 mcp 相關依賴(Python MCP)mcpb/manifest.json 存在如果使用者沒指定 $1,從專案資訊推斷:
README.md 或 mcpb/manifest.json 取得專案描述calendar、reminders、apple mail)mcp {keyword} 或 mcp server {keyword}向使用者確認推斷的搜尋關鍵字後再繼續。
使用 gh search repos 搜尋相關 MCP servers:
gh search repos "{search-query} mcp" \
--sort stars \
--order desc \
--limit 20 \
--json fullName,description,stargazersCount,language,updatedAt \
--jq '.[] | "\(.stargazersCount)⭐ \(.fullName) [\(.language)] - \(.description)"'
如果結果不夠,可嘗試不同關鍵字組合:
# 更廣泛的搜尋
gh search repos "{keyword} mcp server" --sort stars --limit 10 ...
gh search repos "{keyword} model context protocol" --sort stars --limit 10 ...
將搜尋結果呈現給使用者,格式如下:
## 搜尋結果
| # | Stars | Repo | Language | Description |
|---|-------|------|----------|-------------|
| 1 | 3000 | supermemoryai/apple-mcp | TypeScript | ... |
| 2 | 1100 | mattt/iMCP | Swift | ... |
| ...
請選擇要 clone 的 repos(輸入編號,用逗號分隔,例如 `1,2,4`):
使用 AskUserQuestion 讓使用者選擇。
排除自己的 repo:如果搜尋結果包含當前專案,自動排除。
mkdir -p references
如果 references/.gitignore 不存在,建立:
# Competitor source code - local reference only
*
!.gitignore
重要:這確保競品原始碼不會被 commit 到自己的 repo。
對每個選定的 repo:
REPO_NAME=$(echo "{full_name}" | cut -d'/' -f2)
# 如果已存在,跳過或詢問是否更新
if [ -d "references/$REPO_NAME" ]; then
echo "⚠️ references/$REPO_NAME 已存在"
# 詢問使用者:跳過 / 更新 (git pull) / 重新 clone
else
git clone --depth 1 "https://github.com/{full_name}.git" "references/$REPO_NAME"
fi
使用 --depth 1 減少下載量(只需原始碼,不需完整歷史)。
ls -la references/
使用 AskUserQuestion 詢問:
已 clone {N} 個 repos。要執行自動競品分析嗎?
- 是,分析所有 repos
- 否,我自己看
對每個 clone 的 repo,啟動一個平行的 Task agent 進行分析:
分析重點:
1. Architecture: 語言、框架、核心設計模式
2. Tools: 完整工具清單、參數、功能
3. Limitations: 致命弱點、缺少的功能
4. Unique features: 值得學習的獨特設計
5. Code quality: 錯誤處理、i18n、日期處理、測試
同時啟動對自己專案的分析 agent,用於比較。
所有 agent 完成後,將結果整合為 docs/COMPETITIVE_ANALYSIS.md:
--list:列出已 clone 的 referencesecho "=== References ==="
for dir in 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
--clean:清除 references# 先確認
echo "將刪除 references/ 下所有 clone 的 repos"
# AskUserQuestion 確認
rm -rf references/*/
# 保留 .gitignore
# 競品 Clone 完成
## 已 clone 的 repos
| Repo | Stars | Language | Path |
|------|-------|----------|------|
| supermemoryai/apple-mcp | 3000 | TypeScript | references/apple-mcp/ |
| mattt/iMCP | 1100 | Swift | references/iMCP/ |
| ... | ... | ... | ... |
## 資料夾結構
references/
├── .gitignore # 防止 commit 競品程式碼
├── apple-mcp/ # --depth 1 clone
├── iMCP/
└── ...
## 下一步
- 瀏覽原始碼:`ls references/{repo}/`
- 執行分析:重新執行 `/mcp-clone-references` 選擇分析
- 撰寫比較文件:結果會寫入 `docs/COMPETITIVE_ANALYSIS.md`
# 搜尋並 clone calendar 相關 MCP servers
/mcp-clone-references calendar
# 搜尋並 clone apple reminders 相關
/mcp-clone-references apple reminders
# 自動推斷關鍵字
/mcp-clone-references
# 列出已 clone 的 repos
/mcp-clone-references --list
# 清除 references
/mcp-clone-references --clean
| 命令 | 用途 | 使用時機 |
|---|---|---|
/mcp-clone-references | Clone 競品原始碼 | 開發初期,了解市場 |
/mcp-upgrade | 分析並提議升級 | 借鏡競品後改善自己 |
/mcp-deploy | 編譯打包發布 | 改善完成後發布 |