agentsclimarketplace

Local llm setup

Skill richfrem/agent-plugins-skills/plugins/cli-agents/skills/local-llm-setup

repo for reusable plugins and skills

Install
npx -y skills add richfrem/agent-plugins-skills --skill local-llm-setup

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Cross-platform setup wizard for the local Gemma 4 12B inference stack. Automates llama-server installation (binary download or Metal/CUDA/Vulkan/ROCm compile), model download, routing proxy daemon install (launchd/systemd/NSSM), and Mode A/B validation. Covers Day 1 bootstrap and Day 2+ reconfiguration.

SKILL.md

3.4 KB, 791 tokens by cl100k_base, as published. Nobody here has run it

<example> <commentary>User wants to set up local Gemma 4 for the first time on a Mac.</commentary> User: Set up local LLM with Gemma 4 on my M1 Mac Agent: Detects Metal GPU, compiles llama-server from source, downloads gemma-4-12b-UD-Q4_K_XL.gguf, starts server, installs routing proxy via launchd, validates with a Mode B timing test (~2s). </example> <example> <commentary>User wants to test Mode B task delegation speed vs Mode A proxy.</commentary> User: Compare Mode B vs Mode A speed for local Gemma Agent: Runs `time python3 scripts/run_agent.py /dev/null /dev/null /tmp/t.md "hello" --cli llama` (~2s), then `time claude --model gemma-4-12b -p "hello"` (~30–60s cold), reports the delta. </example>

Primary Use Case: Mode B Task Delegation

Mode B is the fast path. run_agent.py sends a lean prompt directly to llama-server — no proxy overhead, no 29K system prompt. Measured: ~2s wall clock for a typical bounded task.

# Start llama-server (required for cli=llama)
python3 scripts/run_server.py
curl http://localhost:8089/health   # must return {"status":"ok"}

# Mode B task delegation — fast path (~2s)
time python3 scripts/run_agent.py agents/refactor-expert.md target.py output.md \
  "List the top 3 issues." --cli llama

# Mode B with custom max tokens
python3 scripts/run_agent.py /dev/null /dev/null /tmp/out.md \
  "Summarize this architecture decision." --cli llama --max-tokens 300

Available agent personas (pass as PERSONA_FILE):

PersonaRole
agents/refactor-expert.mdCode quality — SOLID/DRY smell taxonomy
agents/security-auditor.mdOWASP vulnerability audit
agents/architect-review.mdC4/SOLID structural review
agents/red-team-reviewer.mdAdversarial exploit analysis
agents/compliance-reviewer.mdCoding standards drift detection
agents/pr-reviewer.mdDiff review — ship/hold decision
agents/test-writer.mdUnit test generation
agents/debate-synthesizer.mdMulti-perspective synthesis
agents/output-validator.mdOutput guardrail / hallucination check
agents/self-critic.mdReflection loop — task-fit check
agents/performance-analyst.mdBottleneck and scale analysis

Mode A (Optional — Interactive Proxy)

Mode A routes Claude Code itself through Gemma via a proxy. It carries ~29K tokens of system prompt overhead per session, making the first turn 30–60s. Not recommended for task delegation — use Mode B instead.

python3 scripts/enable_global_routing.py   # install launchd/systemd/NSSM daemon
python3 scripts/disable_global_routing.py  # remove daemon

Co-located Scripts (scripts/)

ScriptPurpose
run_server.pyStart llama-server (authoritative params)
run_agent.pyTask router — Mode B, 6 backends
enable_global_routing.pyInstall Mode A proxy daemon
disable_global_routing.pyRemove Mode A proxy daemon
routing_proxy.pyMode A API compatibility proxy (port 4000)

What ships with it: 10 files

882 B alongside SKILL.md, 5 of them executable

evals/

Keep looking

Skills are one crate of 327,132. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.