setup

Solid

Frictionless setup. Detects a missing local runtime, installs or repairs it, configures local memory, and verifies the full plugin -> MCP -> local runtime round-trip. Run after `/plugin install wenlan@7xuanlu-wenlan`, or any time the user says "set up wenlan", "is wenlan working", "fix wenlan".

AI & Automation 47 stars 5 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 83/100

Stars 20%
56
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /setup Self-healing setup. Goal: two user actions max: install plugin, type `/setup`. Default backend is local memory: no local model, no API key, no prompts. Local model and Anthropic key are opt-in upgrades documented in `/help`. ## Steps Run in order. Stop and report at the first failure that needs human attention. Otherwise, push through automatically. ### 1. Health probe ```bash for i in 1 2 3; do curl -fsS -m 3 http://127.0.0.1:7878/api/health && break sleep 1 done ``` - 200 OK: continue to version drift probe. - Anything else: continue to bootstrap. ### 2. Version drift probe Compare daemon version vs plugin manifest version: ```bash PLUGIN_JSON="${CLAUDE_PLUGIN_ROOT:-plugin}/.claude-plugin/plugin.json" [ -r "$PLUGIN_JSON" ] || PLUGIN_JSON=".claude-plugin/plugin.json" if command -v python3 >/dev/null 2>&1 && [ -r "$PLUGIN_JSON" ]; then RESP="$(curl -fsS -m 3 http://127.0.0.1:7878/api/health)" DAEMON_VER="$(printf '%s' "$RESP" | python3 -c 'import json,sys; print(json.load(sys.stdin).get("version",""))')" EXPECTED_VER="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1])).get("version",""))' "$PLUGIN_JSON")" RELEASE_VER="${EXPECTED_VER%%+*}" printf 'daemon=%s expected=%s release=%s\n' "$DAEMON_VER" "$EXPECTED_VER" "$RELEASE_VER" else echo "version_check=skipped" fi ``` - Same version: continue to doctor. - If the probe cannot run because the runtime is down: continue to bootstrap. - If `PLUGIN_JSON` is unreadable or `python3` is m...

Details

Author
7xuanlu
Repository
7xuanlu/wenlan
Created
3 months ago
Last Updated
today
Language
Rust
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category