sisyphus1212/v2ray_deploy/v2ray-deploy-local-client-guard

Claude Code and agent skill by sisyphus1212/v2ray_deploy

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Project-local deployment guard for v2ray client + v2ray_deploy local mode. Enforces explicit mode selection, outbound proxy listen check, and Telegram connectivity acceptance criteria.

Install

npx vskill@latest install sisyphus1212/v2ray_deploy/v2ray-deploy-local-client-guard

SKILL.md

The same SKILL.md was published earlier as sisyphus1212/v2ray_deploy/v2ray-deploy-local-client-guard.

v2ray-deploy-local-client-guard

Goal

When deploying on a target host, ensure all of the following are true:

  1. v2ray_deploy runs in local mode: --local True.
  2. Subscription service bind/port are explicit (PROXY_MGT_BIND / PROXY_MGT_PORT).
  3. Public proxy port is exposed on 0.0.0.0 (default expected: 18080).
  4. Hard acceptance command succeeds:
  • curl -I --max-time 15 -x http://127.0.0.1:8080 https://api.telegram.org/

Mandatory Safety Rules

  1. Always state mode explicitly before service changes:
  • local mode: --local True
  • remote mode: no --local True (high risk)
  1. Default to local mode only.
  2. If user requests v2ray-bench-autoswitch.timer or v2ray-bench-apply, warn that

this may restart v2ray.service and cause short interruption; require confirmation.

Execution Checklist (Host-Scoped)

  1. Confirm target host exists and is reachable via Ansible.
  2. Before deploying bench/timers, ask target host bandwidth (especially uplink/downlink cap) and confirm speed-test profile.
  • Default profile: --bytes 2000000 --timeout 20
  • If bandwidth is very low or shared with production traffic, reduce --bytes further or limit --max-nodes.
  1. Precheck v2ray installation:
  • verify /usr/local/bin/v2ray exists and systemctl status v2ray is available.
  • if missing, stop here and explicitly ask user to install v2ray first.
  1. Sync latest project code to target host.
  2. Ensure /etc/proxy_mgt.env contains:
  • PROXY_MGT_BIND=0.0.0.0 (or user-specified)
  • PROXY_MGT_PORT=5000 (or user-specified)
  1. Restart and verify v2ray-deploy-local.service.
  2. Verify /local-fast-ip from localhost and public IP.
  3. Verify v2ray inbound listeners:
  • local http proxy: 127.0.0.1:8080
  • public http proxy: 0.0.0.0:18080 (or user-specified)
  1. Run hard acceptance command:
  • curl -I --max-time 15 -x http://127.0.0.1:8080 https://api.telegram.org/
  1. Report pass/fail with exact command evidence.
  2. If proxy ports are changed, sync shell proxy env in /root/.bashrc:
  • update http_proxy/https_proxy/HTTP_PROXY/HTTPS_PROXY to the new HTTP port
  • update all_proxy/ALL_PROXY to the new SOCKS port
  • if no permission to read/write /root/.bashrc, stop immediately and notify user
  1. Verify v2ray-bench binaries include:
  • v2ray-bench-nodes
  • v2ray-bench-apply
  • v2ray-bench-autoswitch
  • v2ray-bench-show
  1. If v2ray-bench-show is missing but repository has subprojects/v2ray-bench/bin/v2ray-bench-show,

install it explicitly to /usr/local/bin/v2ray-bench-show with executable permission.

Recommended Verification Commands

bash
test -x /usr/local/bin/v2ray || echo "MISSING: /usr/local/bin/v2ray"
systemctl status v2ray --no-pager -n 5
systemctl is-active v2ray-deploy-local.service
systemctl is-active v2ray
ss -lntp | egrep ':5000 |:8080 |:18080 '
curl -sS --max-time 20 http://127.0.0.1:5000/local-fast-ip | head -n 3
curl -I --max-time 15 -x http://127.0.0.1:8080 https://api.telegram.org/
test -r /root/.bashrc -a -w /root/.bashrc || echo "NO_PERMISSION:/root/.bashrc"
ls -l /usr/local/bin/v2ray-bench-nodes /usr/local/bin/v2ray-bench-apply /usr/local/bin/v2ray-bench-autoswitch /usr/local/bin/v2ray-bench-show

Troubleshooting Notes

  1. If local endpoint is OK but public endpoint fails, verify current host public IP

(avoid DNS/NAT/stale-IP confusion).

  1. If :8080 cannot be exposed on 0.0.0.0, check port conflicts (common with Docker).
  2. Keep 127.0.0.1:8080 as the canonical health-check path even when public proxy uses

a different port (e.g. 18080).

  1. Current scripts/install.sh may omit v2ray-bench-show in some revisions; treat

/usr/local/bin/v2ray-bench-show as a required post-install check.

  1. If v2ray is not installed on target host, do not continue deployment validation;

notify user first, then continue only after installation is completed.

  1. If /root/.bashrc update is required but permission is missing, do not bypass with

alternative files; stop and ask user to grant permission or handle manually.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sisyphus1212/v2ray_deploy/v2ray-deploy-local-client-guard/badge)](https://verified-skill.com/skills/sisyphus1212/v2ray_deploy/v2ray-deploy-local-client-guard)

Something wrong with this skill or its page? Tell us.