agentleFS
wookiya1364wookiya1364/scv-claude-code/skills/install-deps/SKILL.md

install-deps

Skill9 starsChanged 4 months agoMITView on GitHub

Detect missing SCV system dependencies (git, gh, glab, curl, jq, ffmpeg, python3) and either show OS-specific install commands or run them. Use whenever a command reports a missing external tool, or the user asks what SCV needs installed — not only when they type /scv:install-deps.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No code values before the user asks — identifiers the user acts on stay exact, after the plain summary.

    line 30
  2. Very specific:

    If the Result: line says All deps installed:

    line 54
  3. Very specific:

    After it returns, summarize the result in the user's language: how many tools installed, any failures, then re-run --check yourself to …

    line 92

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/scv:install-deps

Detect SCV's external CLI dependencies on the current machine and help the user install whatever is missing.

Language preference

Resolve the user's preferred language with this priority, then use it for ALL user-facing output (question text, summaries):

  1. scv/scv_settings.json — SCV_LANG (set by /scv:help's first-time setup).
  2. Auto-detect from the user's most recent message language.
  3. Default to English.

Technical identifiers (tool names like gh, glab, ffmpeg, command names, file paths, env var names) stay as-is. If scv/scv_settings.json SCV_LANG is unset, suggest /scv:help once to lock the preference (don't block — fall back to auto-detect / English for now).

Plain language first

Skip this section only when scv/scv_settings.json sets SCV_PLAIN_LANGUAGE=off (absent or any other value = on). The per-turn hook carries the answer shape; its body is contracts/writing.md 1–4: a bold topic line, the result first in a short lead without a bullet (no sentence or length count), then bullets — connected reasoning as one short paragraph. No code values before the user asks — identifiers the user acts on stay exact, after the plain summary. Bad: a paragraph of paths. Good: Topic / the result / - why. This governs everything the user reads.

Recording

Turns are recorded per core/contracts/recording.md.

Step 0 — Run --check

bash "${CLAUDE_PLUGIN_ROOT}/scripts/install-deps.sh" --check

Parse the output:

  • OS detected: and Package manager: lines tell you the user's environment.
  • Dependency check: block shows each tool with [✓] (installed), [✗] (missing — required/recommended tier), or [△] (missing — optional tier, graceful degrade).
  • The Result: line at the end is one of:
    • All deps installed. — exit 0, nothing to do.
    • All required tools installed. Some recommended/optional missing — ... — exit 0, partial.
    • REQUIRED tools missing: ... — exit 1.

Step 1 — Decide what to do

If the Result: line says All deps installed:

  • Tell the user "All SCV dependencies are installed." in their preferred language.
  • Stop.

Otherwise, ask the user one concise question to decide next action:

Question: "<n> dependencies are missing. What would you like to do?"
  (where <n> is the missing count from --check output)

Options:
[1] "Install now"
    description:
    "Run `install-deps.sh --install` to actually install the missing system tools.
     - Linux / macOS: sudo password may be prompted for apt / dnf / pacman.
     - Windows: winget will open its own confirmation dialog per package."

[2] "Just print the install commands (I'll run them myself)"
    description:
    "No installation is performed. The output of --check already shows the
     exact commands for the detected OS / package manager — copy and run them
     in your terminal as you see fit. Use this if you prefer reviewing each
     step or you don't want sudo to be invoked from a skill invocation."

[3] "Cancel — do nothing for now"
    description:
    "Exit without changes. SCV will keep running in graceful-degrade mode for
     missing optional tools (ffmpeg / python3). For missing required tools
     (git) or platform tools (gh / glab) the related skill invocations may fail
     until installed."

Answer handling:

  • [1] Install now:
    "${CLAUDE_PLUGIN_ROOT}/scripts/install-deps.sh" --install
    After it returns, summarize the result in the user's language: how many tools installed, any failures, then re-run --check yourself to verify (read-only — a next step, not a decision, contracts/choices.md 8).
  • [2] Print only: Tell the user the commands are already shown in Step 0's output, and remind them which OS-specific block applies. No further script invocation.
  • [3] Cancel: One-line confirmation. Stop.

Notes

  • The docs graph needs no install. scripts/graph.sh builds it from the repository with bash + jq (v0.51.0+); jq is already in the list above.
  • Idempotency: --check and --install are safe to re-run. --install skips already-installed tools.
  • Verification scope: install commands are documented per upstream packaging guides. The repository author has end-to-end-verified Linux/apt only. macOS / Windows / other Linux distros are best-effort — if a command needs adjustment, open an issue on the SCV repo.

Never

  • Auto-run --install without an explicit confirmation. The user must choose [1] Install now.
  • Modify the user's wrapper skill directory.
  • Suggest sudo commands for Windows (winget runs as user; admin elevation is per-package via the system dialog).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.