vite-tunnel

vite-tunnel is a skill for Claude Code from YuDefine/nuxt-supabase-starter. It costs 62 tokens per session (1,046 once invoked), scanned A, original, MIT.

A guide for exposing a local Vite development server through a Cloudflare Named Tunnel, giving it a stable public web address.

In plain words
What is it for?
It helps test real login callbacks, cookies, webhooks, and shared previews from devices outside the development machine.
Why use it?
It lets phones, other computers, OAuth services, and webhook providers reach a local server during development.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit It helps test real login callbacks, cookies, webhooks, and shared previews from devices outside the development machine.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yudefine/nuxt-supabase-starter/vite-tunnel
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add YuDefine/nuxt-supabase-starter --skill vite-tunnel
Clone the repo
git clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starter

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vite-tunnel

README.md
[![agentmods](https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/vite-tunnel/github.svg)](https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/vite-tunnel)
Your own site
<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/vite-tunnel"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/vite-tunnel/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vite-tunnel

Your own site · 80×15
<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/vite-tunnel"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/vite-tunnel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,046 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.01046
Opus 5.5 $0.00025 $0.00418
Sonnet 5.5 $0.00012 $0.00209
Haiku 4.5 $0.00006 $0.00105

Measured 23d ago against content hash a559588b9094, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vite-tunnel scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. DELEGATE 依路線啟動 dev server(官方路線按 `t + Enter` 拉 tunnel;第三方路線等 plugin 的 ready log;獨立路線另啟 named tunnel),再跑 `curl -I https://<hostname>`。
template/.claude/skills/vite-tunnel/SKILL.md · 54 lines

What it actually says

本 skill 會改本機配置與外部 Cloudflare 資源。載入 skill 不代表已授權 DNS、token、OAuth provider 或對外開放;依本次既有授權執行,缺資源決策或帳號授權時才詢問。

步驟細節、範本與 Gotchas 的 SoT 是 cookbook ~/offline/clade/vendor/snippets/vite-tunnel/README.md(下稱 cookbook),本 skill 只排順序與判準。

SOP

Phase 1 -- 判定是否適用與路線

  1. READ 讀取情境、package.json、lockfile、void.config.ts 與實際載入的 Vite/Nuxt config。
  2. THINK 讀取 rules/路線選擇判準.md,判定改道或選定官方 Vite/第三方/獨立 cloudflared 路線;改道就依該規則轉去對應做法並結束本 skill。

Phase 2 -- 前置與憑證

  1. READ 讀取 cookbook § 採用步驟 第 1–2 步、§ 多 Cloudflare account 使用情境 與 § Token 管理。
  2. DELEGATE 取得 hostname、tunnel name 與實際 dev URL,驗 cloudflared 可執行,以實際 account/zone ID 核對選定 certificate 與目標 zone。
  3. DELEGATE 由專案指定且已授權的 secret store 取 token(指定 Notion 時用 ntn api);缺權限就列出精確缺少的 account/zone scope 交使用者授權。

Phase 3 -- 建立或重用 locally-managed tunnel(選用 helper 時)

  1. READ 讀取 cookbook § 採用步驟 第 3 步與 § 多 Cloudflare account 使用情境 § 程式層防護。
  2. DELEGATE 注入 CLOUDFLARE_API_KEY、設 CLOUDFLARE_ACCOUNT_ID/CLOUDFLARE_ZONE_NAME(非預設 certificate 另設 TUNNEL_ORIGIN_CERT)後跑 ~/offline/clade/vendor/snippets/vite-tunnel/bin/dev-tunnel-setup.sh <hostname> <project>-dev;遠端操作後失敗時先查現有資源再決定重跑,NEVER 自行刪除 tunnel 或 DNS 當回滾。

Phase 4 -- 接上 dev server

  1. READ 讀取 cookbook § 選擇實際載入的整合路線 中選定路線的小節(A/B/C)與 § 採用步驟 第 4–5 步。
  2. WRITE 依選定路線修改:第三方路線安裝 plugin 並只 merge generic 範本的 plugin 與 server.allowedHosts 兩塊;官方路線 merge workers 範本的 cloudflare({ tunnel });獨立 cloudflared 路線把 ingress 指向已驗證的 dev URL 並記錄 process handle。NEVER 覆蓋使用者既有的 vite.config.ts。

Phase 5 -- 註冊 OAuth callback

  1. DELEGATE 查出專案實際的 callback route。
  2. READ 讀取 references/OAuth-provider設定入口.md 找到該 provider 的設定位置。
  3. DELEGATE 依既有授權把 https://<hostname>/<實際-callback-path> 加進 provider 設定,保留仍在使用的 localhost callback;需要使用者本人登入或授權時才交給本人。

Phase 6 -- 啟動與驗收

  1. DELEGATE 依路線啟動 dev server(官方路線按 t + Enter 拉 tunnel;第三方路線等 plugin 的 ready log;獨立路線另啟 named tunnel),再跑 curl -I https://<hostname>。
  2. READ 讀取 rules/驗收與排障判準.md 逐條驗收;有一條沒過就照該規則查 cookbook § Gotchas 修正後從本 Phase step 1 重跑。
Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed a559588b9094
  2. 27d ago Changed · +1 lines · +3 tokens per session 8c180b2cfc33
  3. 1mo ago Changed · +2 lines · +32 tokens per session 95aadfffbaa0
  4. 1mo ago Changed · -89 lines a88d6d64628d
  5. 1mo ago Changed · -1 lines 4587ceb70816
  6. 1mo ago Changed 291cef7f90be
  7. 2mo ago Changed · -14 lines 7ceeec46b7e7
  8. 2mo ago Changed · +1 lines aa5426a1ba22
  9. 2mo ago Changed · +1 lines c5d896c9d789
  10. 2mo ago First seen · 153 lines · 27 tokens per session scan A 3bfe8a97293e

Subscribe to this mod's changes

vite-tunnel is a skill published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed 2d ago), licensed MIT. It adds 62 tokens to every session and 1,046 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

vite-tunnel compared with skills from other repositories

vite-tunnel next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vite-tunnelYuDefine/nuxt-supabase-starterSkill452d agoMITA62Claude Code
nw-investigation-techniquesnWave-ai/nWaveSkill63611d agoMITA21Claude Code
nw-par-critique-dimensionsnWave-ai/nWaveSkill63611d agoMITA37Claude Code
nw-deployment-strategiesnWave-ai/nWaveSkill63611d agoMITA57Claude Code
launchRune-kit/runeSkill962d agoMITA51Claude Code
watchdogRune-kit/runeSkill962d agoMITA44Claude Code
vercel-supabase-launch-checkohad6k/VibeRavenSkill65yesterdayMITA137Claude Code