Skip to content
Back to skills

Setup

ASecurity

Diagnose and configure xllm cross-vendor advisors for THIS project: scan the machine for installed advisor CLIs and local models, then run a short Q&A to pin which provider+model+effort each role should use here, with recommended defaults. Use for "set up xllm", "xllm doctor", "configure advisors for this project", or when the ask or review skills cannot find providers.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
ai-agentsrustbashnodegit

Works with

  • claude code
  • cli

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add kimmingul/xllm --skill setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kimmingul-setup/badge)](https://www.skillsdirectory.com/skills/kimmingul-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: setup
description: >
  Diagnose and configure xllm cross-vendor advisors for THIS project: scan the
  machine for installed advisor CLIs and local models, then run a short Q&A to
  pin which provider+model+effort each role should use here, with recommended
  defaults. Use for "set up xllm", "xllm doctor", "configure advisors for this
  project", or when the ask or review skills cannot find providers.
---

# setup — Machine inventory + per-project advisor wizard (xllm)

## Resolve the advisor script

Claude Code: `"${CLAUDE_PLUGIN_ROOT}/scripts/xllm-advisor.js"`.
Codex / other hosts: the plugin root is two directories above this SKILL.md —
use `<plugin-root>/scripts/xllm-advisor.js`.

## Step 1 — Machine inventory (what CAN run here)

```bash
node <advisor.js> --inventory            # cached (24h TTL)
node <advisor.js> --inventory --refresh  # force re-probe
```

Reports per provider: installed, healthy, tier (strong/balanced/local),
relative cost, and for ollama the **actually pulled models** with their
server metadata (`model_details`: digest/size/remote markers). Cloud model
catalogs are not enumerated — for cloud CLIs, installed means the binary
responds. **Auth is unknown until observed**: a token-free probe reports
version/flag status only and keeps any earlier auth observation with its own
timestamp; only an observed failure vetoes a provider, and unknown is never
shown as success. Prove auth with `node <plugin-root>/scripts/smoke.mjs --live`.

## Step 2 — Project marker + artifact dirs

```bash
node <advisor.js> --remember
```

Writes `.xllm/xllm-advisor-path` (legacy `.grok/` honored) and creates
secret-redacting artifact dirs with a self-ignoring `.gitignore`.

## Step 3 — Per-project advisor wizard (posture packs)

Resolve pins deterministically; the skill only renders and confirms.

1. **Preview the recommended pack** (default `balanced`):

   ```bash
   node <advisor.js> --setup balanced --json
   ```

   The resolver returns `{ roles, warnings, evidence, recommended_packs }`.
   `balanced` leaves analysis/design OPEN (evidence-based routing) and pins at most a
   free local critic — a pin FREEZES routing, so packs pin only genuine
   constraints. `quality` = max-spend lock, `frugal` = cost lock, `local` =
   offline lock (also persists `execution_policy = "local-only"`), `skip` =
   clear pins. Other packs never silently relax an existing policy.

2. **Ask ONE question** using the host's UI, offering the first four of
   `recommended_packs` (always include `skip`). On Claude Code use
   AskUserQuestion with the resolver's top pack labeled "(Recommended)"; show the
   effort legend (Quick=low / Standard=medium / Deep=high) and one-line role
   glosses. Never invent cloud model names — cloud pins omit the model.

3. **Show the resolved preview** (roles + warnings + which stay OPEN and why),
   then on the user's accept:

   ```bash
   node <advisor.js> --setup <pack> --apply
   ```

   Partial tweak: `--role analysis=grok@high` (validated; one bad override writes
   nothing). Reverting: `node <advisor.js> --setup skip --apply` clears the
   posture pins. Verify with `node <advisor.js> --profile-show`.

Never send repository contents to advisors during setup — your analysis stays
local; only the resulting config is written.

## Step 4 — Execution policy (privacy)

`execution_policy` is `any` (default) or `local-only` in the project profile
(`node <advisor.js> --set-default execution_policy local-only`, or the `local`
pack). `local-only` is strict and fails closed: a provider counts as local only
when its location is verified (loopback endpoint plus trustworthy local model
metadata for Ollama; cloud CLIs and `:cloud` models are remote). `unknown` is
refused, not assumed local, and no `--ready`/`--allow-write` flag bypasses it.
An unrecognized policy value also fails closed.

xllm does not install process-discipline text into CLAUDE.md/AGENTS.md. If a
previous version installed its marker block, only the user removes it:
`node <advisor.js> --discipline remove [--target <path>]`. Never edit the user's
instruction files yourself.

## Step 5 — Summarize

Report: usable advisors now, what needs installing (`ollama serve`, missing
CLIs), pinned roles, the execution policy, and the
standing safety defaults — advisors read-only (`--allow-write` to opt in),
same-vendor nesting refused, artifacts redacted with
`--clean-artifacts [--older-than=DAYS]` retention.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.