caro-shell
БесплатноБез исполняемых скриптовНе проверенUse this skill when the user needs a POSIX shell command synthesized from natural language — "how do I find/grep/awk/find files modified in the last hour"…
от wildcard★ 41 звезда на GitHubОб этом скилле
caro-shell — safe shell command inference via Caro
When to use
Trigger this skill when the user asks for help expressing a terminal task as a shell command, especially anything where:
- The user describes the goal in prose (
"find python files larger than 1MB modified this week","rotate these logs and gzip the old ones"). - The command is non-trivial enough that getting it wrong has consequences (
rm,dd,chmod,find -exec, anything piped tosudo). - The user is on a system where you don't have full context (BSD vs GNU userland, shell flavor, locale).
- The user explicitly asks for a "safe" or "validated" version of a shell command.
Don't use this skill for:
- Programs/scripts that need to live in a file (write the file directly).
- Commands the user has already typed and just wants explained (
man/tldrare better). - Pure questions like "what does
awkdo?" (answer directly). - Routine agent-internal shell work where the agent already knows the API surface:
git status,git add,git commit,gh pr view,bd create,npm install,cargo test,ls,cat,mkdir,find <known-pattern>. Caro adds friction without value when the agent already has full context. - Multi-line shell scripts (
bash -c '...'blocks with newlines). Caro is single-line synthesis; for scripts, write the file.
What caro provides
caro is a Rust CLI that converts natural language → POSIX shell commands using local LLMs (MLX on Apple Silicon, Candle CPU elsewhere). The default cargo install caro build ships with the embedded backend only. Every other backend (Ollama, vLLM, Exo, Mesh, AI-Horde, hybrid, and the hosted claude / openrouter / grok APIs) requires a custom build with --features remote-backends; caro --backend-info shows which ones the installed binary has (available vs not compiled). Every generated command goes through 52+ dangerous-pattern safety regexes before being shown to the user. Risk levels: CRITICAL, HIGH, MEDIUM, LOW.
How to invoke
Check it's installed:
command -v caro >/dev/null && caro --versionIf absent, surface the install snippet to the user and stop:
cargo install caro # or, if cargo isn't available: curl -fsSL https://caro.sh/install.sh | shGenerate (always
--dry-run):caro --dry-run "<the user's natural-language prompt>"Optional flags worth knowing:
Flag When (none — let caro pick default) Default for agents. caro picks embedded(local model, zero-cost, deterministic). Right choice for autonomous loops.--backend embeddedBe explicit about the local-model path --backend ollama --model-name qwen2.5-coder:7bOnly if the user explicitly asks for a local Ollama server and caro --backend-infolistsollamaasavailable--explainInclude a rationale — useful when the user asked WHY, not just WHAT --shell zsh(orbash/fish)Target a specific shell Non-embedded backends (
ollama,claude,openrouter,grok, …) only work in a binary built with--features remote-backends, plus that backend's server or API key (ANTHROPIC_API_KEY,OPENROUTER_API_KEY,XAI_API_KEY). The default binary rejects them withConfiguration error: Backend '<name>' requires the 'remote-backends' featureand exit 1 (#1081). Runcaro --backend-infobefore passing--backend; if the backend isnot compiled, drop the flag and use the default. There is nostaticbackend. The model flag is--model-name;--modelis a usage error. Do not pass--quieteither — it suppresses the safety information you need to surface.Detect synthesis failures before presenting — caro's output today has three known failure modes that look like success (audit 2026-05-16, tracking issue caro-bnr6). Before presenting any command from caro, run these tripwires:
- Empty
Command:block → caro produced nothing. Treat as failure. echo 'Unable to generate command'→ caro's refusal path wrapped inecho. Treat as failure.- Unsubstituted placeholders (
PID,directory/,output.tar.gz,archive.tar.gz, or any all-caps token that looks like a variable name) → caro returned a template, not a synthesized command. Treat as failure.
On any tripwire: tell the user "caro could not fully synthesize this; here's a hand-written suggestion, please double-check" and fall back to your own command synthesis with the BSD-vs-GNU caveats explicit.
- Empty
Parse caro's output — when caro successfully synthesizes, it prints the suggested command. Risk tier is only printed when the safety gate fires (block / CRITICAL). For commands that pass the gate, caro prints no tier today (tracking issue caro-b45s). Do not invent a tier.
Установить caro-shell в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл caro-shell?
Use this skill when the user needs a POSIX shell command synthesized from natural language — "how do I find/grep/awk/find files modified in the last hour", "kill the process on port 3000", "tar this up excluding .git", or any other terminal-task-as-prose. Shells out to the `caro` CLI for safety-validated command inference and presents the suggestion for explicit approval. Refuses to execute the command itself.
Как установить скилл caro-shell?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл caro-shell запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic