Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 to sudo).
  • 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 / tldr are better).
  • Pure questions like "what does awk do?" (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

  1. Check it's installed:

    command -v caro >/dev/null && caro --version
    

    If 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 | sh
    
  2. Generate (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 embedded Be explicit about the local-model path
    --backend ollama --model-name qwen2.5-coder:7b Only if the user explicitly asks for a local Ollama server and caro --backend-info lists ollama as available
    --explain Include a rationale — useful when the user asked WHY, not just WHAT
    --shell zsh (or bash/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 with Configuration error: Backend '<name>' requires the 'remote-backends' feature and exit 1 (#1081). Run caro --backend-info before passing --backend; if the backend is not compiled, drop the flag and use the default. There is no static backend. The model flag is --model-name; --model is a usage error. Do not pass --quiet either — it suppresses the safety information you need to surface.

  3. 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 in echo. 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.

  4. 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.

Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить caro-shell с