setup

Featured

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 498 stars 8 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 94/100

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

Skill Content

# Setup Reached through `/wenlan`: bare `/wenlan` starts this when Wenlan is not ready, and so does asking to set up or fix it. Self-healing setup. Goal: two user actions max: install plugin, type `/wenlan`. Default backend is local memory: no local model, no API key, no prompts. ## 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 "${WENLAN_HOST:-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}/.claude-plugin/plugin.json" "${CLAUDE_PLUGIN_ROOT}/scripts/version-drift.sh" --health-url "${WENLAN_HOST:-http://127.0.0.1:7878}/api/health" --manifest "$PLUGIN_JSON" ``` It prints one line, `daemon=<v> expected=<v> release=<v> result=<result>`, comparing numerically per component with build metadata (`+g<sha>`) stripped. `older` means the daemon is older than the plugin. - `result=same`: continue to doctor. - If the probe cannot run because the runtime is down: continue to bootstrap. - `result=unknown` with a healthy runtime (manifest unreadable or no version reported): continue to doctor; the next `/wenlan` will report the mismatch again if one exists. - If mismatch, check the direction before repairing. `result=newer...

Details

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

Similar Skills

Semantically similar based on skill content — not just same category