collect-local
use this to pack the allowed files on the user's computer (macOS, Linux, or Windows) and copy the archive here, with fallbacks
от brokep★ 48 звёзд на GitHub
Установить collect-local в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
collect-local
Part of the Import Bot agent preset.
Collect local
Gets the allowed files from the user's computer onto this one. macOS, Linux, or Windows. Two or three cards. Nothing in the old tools changes. Redaction happens here, after the copy.
What is packed
For you: instructions, memory notes, project registries, scheduled tasks, session records, transcripts from the last 90 days, session databases (Hermes, OpenClaw), plugin skills, and connector names. Not packed: files the user attached, files the tools produced, audit keys, and the config files that can hold credentials (those are reduced to connector names on their computer first, with stock tools).
For the user, one line before the read: "I am copying your instructions, memories, projects, scheduled tasks, and recent conversations. I skip your attached files, anything the tools produced, and anything that looks like a password or key." Nothing more technical than that.
Already collected?
If /workspace/migration/raw/ exists from a run less than 24 hours old and this is not a resync, skip the pack and copy and go to parse-import. Say nothing about it.
Which computer
Your context lists the user's operating system. macOS and Linux run a bash command directly. Windows runs a PowerShell script that you first place in the user's temp folder. All of it runs on the user's machine: pass the machineId from ListMachines, as import-bot-setup describes.
macOS (one Shell call with the machineId)
A="$HOME/Library/Application Support/Claude"; T="${GB_OUT:-${TMPDIR:-/tmp}}/grokbot-import"; mkdir -p "$T"; OUT="$T/grokbot-import.tgz"; N="$T/connector-names.txt"; E="$T/collect-errors.txt"; : > "$N"; : > "$E"
for f in "$A/claude_desktop_config.json" "$HOME/.claude.json"; do [ -f "$f" ] && { echo "## $f"; osascript -l JavaScript -e 'ObjC.import("Foundation");var o=JSON.parse(ObjC.unwrap($.NSString.stringWithContentsOfFileEncodingError("'"$f"'",4,null))||"{}");var k=Object.keys(o.mcpServers||{});for(var p in (o.projects||{})){k=k.concat(Object.keys(o.projects[p].mcpServers||{}).map(function(x){return x+" (project "+p+")"}))};k.join("\n")' 2>>"$E"; } >> "$N"; done
[ -f "$HOME/.openclaw/openclaw.json" ] && { echo "## $HOME/.openclaw/openclaw.json"; osascript -l JavaScript -e 'ObjC.import("Foundation");var o=JSON.parse(ObjC.unwrap($.NSString.stringWithContentsOfFileEncodingError("'"$HOME/.openclaw/openclaw.json"'",4,null))||"{}");var k=[];["channels","connectors","plugins","mcpServers","tools"].forEach(function(s){var v=o[s];if(v&&typeof v==="object"){k=k.concat(Array.isArray(v)?v.map(function(x){return x&&(x.name||x.id)||String(x)}):Object.keys(v))}});k.join("\n")' 2>>"$E"; } >> "$N"
[ -f "$HOME/.codex/config.toml" ] && { echo "## $HOME/.codex/config.toml"; grep -oE '^:space:*\[mcp_servers\.[^].]+' "$HOME/.codex/config.toml" | sed 's/.*\[mcp_servers\.//'; } >> "$N"
[ -f "$HOME/.claude/settings.json" ] && { echo "## $HOME/.claude/settings.json"; grep -oE '"[a-zA-Z]*[cC]leanupPeriodDays"[^,}]*' "$HOME/.claude/settings.json"; } >> "$N"
[ -f "$HOME/.hermes/config.yaml" ] && { echo "## $HOME/.hermes/config.yaml"; grep -viE 'key|token|secret|password' "$HOME/.hermes/config.yaml" | grep -E '^[a-zA-Z_]+:|^\s+-\s' | head -60; } >> "$N"
for d in "$HOME/.cursor" "$HOME/.gemini" "$HOME/.local/share/opencode"; do [ -d "$d" ] && echo "## also-present $d" >> "$N"; done
( printf '%s\0' "$N"
for r in "$A/local-agent-mode-sessions" "$A/claude-code-sessions"; do [ -d "$r" ] && find "$r" -type f \( -name '*.md' -o -name '*.json' -o -name 'audit.jsonl' \) -not -path '*/uploads/*' -not -path '*/outputs/*' -not -path '*/skills-plugin/*' -not -path '*/rpm/*' -not -path '*/debug/*' -not -path '*/backups/*' -not -name '*.audit-key' -not -name 'host-creds-*' -not -name '.claude.json' -not -path '*/ccd-session-secrets/*' -size -5M -print0 2>>"$E"; done
[ "${GB_TRANSCRIPTS:-1}" = 1 ] && for r in "$A/local-agent-mode-sessions" "$A/claude-code-sessions"; do [ -d "$r" ] && find "$r" -type f -name '*.jsonl' -not -name 'audit.jsonl' -not -path '*/uploads/*' -not -path '*/outputs/*' -not -path '*/skills-plugin/*' -not -path '*/subagents/*' -mtime -90 -size -5M -print0 2>>"$E"; done
[ -d "$A/cowork_plugins" ] && find "$A/cowork_plugins" -type f \( -name '*.md' -o -name '*.json' -o -name '*.yaml' \) -size -5M -print0 2>>"$E"
for f in "$HOME/.claude/CLAUDE.md" "$HOME/.codex/AGENTS.md" "$HOME/.codex/AGENTS.override.md" "$HOME/.hermes/memories/MEMORY.md" "$HOME/.hermes/memories/USER.md"; do [ -f "$f" ] && printf '%s\0' "$f"; done
for d in "$HOME/.claude/skills" "$HOME/.claude/rules" "$HOME/.claude/commands" "$HOME/.claude/agents" "$HOME/.codex/memories" "$HOME/.codex/skills" "$HOME/.agents/skills" "$HOME/.hermes/skills" "$HOME/.openclaw/skills" "$HOME/.openclaw/workspace" "$HOME/Claude/Scheduled" "$HOME/Documents/Claude/Scheduled"; do [ -d "$d" ] && find "$d" -type f \( -name '*.md' -o -name '*.json' -o -name '*.yaml' \) -not -path '*/.git/*' -not -path '*/cred
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл collect-local?
use this to pack the allowed files on the user's computer (macOS, Linux, or Windows) and copy the archive here, with fallbacks
Как установить скилл collect-local?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл collect-local запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…