Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Homebrew must be installed - skill will fail fast if missing. Install from: https://brew.sh
Skill Execution Process
When an agent executes this skill, follow these steps inline using the Bash tool. Do NOT clone this repository or run bash scripts - execute commands directly.
Step 1: Verify Homebrew
if ! command -v brew &>/dev/null; thenecho"ERROR: Homebrew is not installed. Install from: https://brew.sh"exit 1
fi
# Validate final configurationif jq empty "$OPENCODE_CONFIG" 2>/dev/null; thenecho"SUCCESS: JSON validation passed"elseecho"ERROR: JSON validation failed, restoring backup..."cp"$BACKUP_PATH""$OPENCODE_CONFIG"exit 1
fi
Step 10: Instruct User to Restart OpenCode
After successful configuration, tell the user:
✓ OpenCode configuration complete!
Next steps:
1. Close all OpenCode windows
2. Restart OpenCode from application menu or 'opencode' command
3. Verify MCP servers loaded: Check "MCP Servers" panel in sidebar
4. Test: Ask "Can you check my system information?" (tests linux-mcp-server)
Troubleshooting:
- Logs: ~/.config/opencode/logs/
- Config: ~/.config/opencode/opencode.json
- Backup: [backup path from step 6]
Goose Configuration (Optional)
If the user also wants to configure Goose, follow similar steps:
# Validate final configurationif yq eval'.'"$GOOSE_CONFIG" >/dev/null 2>&1; thenecho"SUCCESS: YAML validation passed"elseecho"ERROR: YAML validation failed, restoring backup..."cp"$BACKUP_PATH""$GOOSE_CONFIG"exit 1
fi
Goose Step 4: Instruct User to Restart Goose
✓ Goose configuration complete!
Next steps:
1. Exit Goose session: 'exit' command or Ctrl+D
2. Restart Goose from terminal: 'goose'
3. Verify extensions: Check startup messages for 'linux-mcp-server' loading
4. Test: Ask "Can you check my disk usage?" (tests linux-mcp-server)
Note: dosu MCP support for Goose is planned for Phase 4
Troubleshooting:
- Logs: ~/.config/goose/logs/
- Config: ~/.config/goose/config.yaml
- Backup: [backup path from Goose step 1]
Error Handling
If any step fails:
Restore from backup - Use the timestamped backup created in Step 6
Report clear error - Tell user exactly what failed and why
Provide remediation - Include exact commands to fix the issue
Example error message:
ERROR: linux-mcp-server installation failed
To fix:
1. Check Homebrew tap: brew tap ublue-os/tap
2. Try manual install: brew install ublue-os/tap/linux-mcp-server
3. Verify installation: ls /home/linuxbrew/.linuxbrew/bin/linux-mcp-server
4. Re-run this skill after fixing
Your config has been restored from backup: [backup path]
Success Criteria
After executing this skill successfully:
✅ jq, yq, and linux-mcp-server are installed
✅ OpenCode config contains dosu and linux-mcp-server MCP servers
✅ Username is automatically detected and configured
✅ Existing user configuration is preserved (no overwriting)
✅ Timestamped backup created before any changes
✅ JSON/YAML validation passed
✅ User instructed to restart OpenCode with clear next steps