/core:cross-platform-archive-agentfrom 個人流程:共同層
Generate optimal compression commands based on target extraction platform. Automatically excludes OS-specific metadata and system junk files. Supports macOS, Windows, and Linux as both build and target platforms. Use when the user asks to compress/archive files or folders (e.g., "壓縮", "打包", "archive", "zip", "tar").
Ships in 個人流程:共同層. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
根據 target extraction platform 自動產生最佳壓縮指令,並排除跨平台垃圾檔。
從使用者的自然語言中提取:
| 欄位 | 說明 | 範例 |
|---|---|---|
path | 要壓縮的檔案或資料夾路徑 | ./project、src/ |
target_platform | 解壓縮的目標平台(使用者指定) | windows、macos、linux |
dry_run | 是否為模擬模式 | 偵測到「模擬」、「dry-run」、「不要真的壓縮」 |
支援的自然語言指令格式:
壓縮 <路徑>
壓縮 <路徑> 成 zip
壓縮 <路徑> 成 tar.gz
壓縮 <路徑>,解壓平台是 windows
壓縮 <路徑>,給 linux 用
模擬壓縮 <路徑>
偵測優先順序:
Build platform 影響指令可用性(如
tar在 Windows 原生環境可能需要 WSL),但不影響排除規則,排除規則只依target_platform決定。
格式對照表:
| Target Platform | 格式 | 工具 |
|---|---|---|
windows | .zip | zip |
macos | .tar.gz | tar |
linux | .tar.gz | tar |
輸出檔名規則:
輸出檔名 = basename(path) + 對應副檔名
範例:./project → project.zip,./src/ → src.tar.gz
Ignore Rules:
macos: .DS_Store, __MACOSX, ._*
windows: Thumbs.db, Desktop.ini
linux: .directory, .Trash-*
common: .git, .gitignore, .env
組合邏輯:
excludes = common + 所有「非 target_platform」的 OS 規則
各 target 的排除組合:
| Target | 排除項目 |
|---|---|
windows | common + macos 規則 + linux 規則 |
macos | common + windows 規則 + linux 規則 |
linux | common + macos 規則 + windows 規則 |
Pattern 語法差異:
| 工具 | 寫法 | 說明 |
|---|---|---|
zip | -x "**/pattern" | 需加 **/ 前綴以遞迴比對子目錄 |
tar | --exclude='pattern' | 預設比對任意深度的檔名,無需路徑前綴 |
目錄排除:zip 用 **/.git/**(含內容),tar 用 --exclude='.git'(整個目錄)
zip -r <output>.zip <path> \
-x "**/.DS_Store" \
-x "**/__MACOSX/**" \
-x "**/._*" \
-x "**/.directory" \
-x "**/.Trash-*" \
-x "**/.git/**" \
-x "**/.gitignore" \
-x "**/.env"
tar \
--exclude='.DS_Store' \
--exclude='__MACOSX' \
--exclude='._*' \
--exclude='Thumbs.db' \
--exclude='Desktop.ini' \
--exclude='.git' \
--exclude='.gitignore' \
--exclude='.env' \
-czf <output>.tar.gz <path>
依照 target_platform 從範本中移除對應的平台排除項目(target 平台的垃圾檔不排除)。
直接輸出可執行的 CLI 壓縮指令(bash code block),附上簡短說明:
若偵測到以下關鍵字:模擬、dry-run、不要真的壓縮
僅輸出排除清單,不產生壓縮指令。格式如下:
[Dry Run] 排除清單(target: <platform>)
- <item 1>
- <item 2>
...
輸入: 壓縮 ./project,解壓平台是 windows
輸出:
zip -r project.zip project \
-x "**/.DS_Store" \
-x "**/__MACOSX/**" \
-x "**/._*" \
-x "**/.directory" \
-x "**/.Trash-*" \
-x "**/.git/**" \
-x "**/.gitignore" \
-x "**/.env"
輸入: 壓縮 ./src,給 linux 用
輸出:
tar \
--exclude='.DS_Store' \
--exclude='__MACOSX' \
--exclude='._*' \
--exclude='Thumbs.db' \
--exclude='Desktop.ini' \
--exclude='.git' \
--exclude='.gitignore' \
--exclude='.env' \
-czf src.tar.gz src
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alexanderchen5966/my_marketplace_plugin --plugin core6 skills in this plugin
/grillingGrill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases./grill-meA relentless interview to sharpen a plan or design./multiagent-handoff跨 AI agent 的專案接力:存狀態、接手、分派任務、回報、驗收(save / resume / delegate / report / review)。
適用 Claude Code、Codex、Copilot CLI、opencode、agy、Cursor 等任何能讀檔與執行 shell 的 agent。
觸發時機:/multiagent-handoff、交接、換手、接手、額度快用完、要交給 Codex/Copilot 繼續、
把任務分派給其他 agent、其他 agent 做完要驗收、讀 .handoff/、resume。
不適用:同一 session 內由 Claude 協調外部 CLI 實作+多模型 review(那是 ai-pair)。
Other plugins' skills for the same job