Index of every page on this site: llms.txt
All skills
remorses avatar

/kimaki-tunnel

@05b3a2b
by Tommy D. Rossiremorses/kimaki1.5k stars
123
Run it yourself

Share a local dev server with the user through a public URL. Localhost URLs are useless from Discord. Use when the user should open a localhost app in a browser, test a webhook or OAuth callback against a local server, or preview a dev server from Discord. Runs `kimaki tunnel` in a named background tuistory session. ALWAYS load before starting a dev server the user must open. Only for Kimaki Discord sessions.

  • 1 file
  • 2.7 KB
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/remorses/kimaki/kimaki-tunnel

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈107 tokens for metadata: the name and description. ≈590 when used: this file.

Description uses 5.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈428 characters, or 5.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Dev servers with tunnel access

Localhost URLs are useless from Discord. Wrap the dev server in kimaki tunnel to get a public https://<name>.<id>.opentunnel.xyz URL, and run it in a named background tuistory session so you can wait for output, read logs and stop it later. Name the session descriptively (e.g. projectname-dev) and reuse it. Run tuistory --help first (or bunx tuistory when it is not installed). Invoke kimaki directly, not via npx or bunx.

  • Validate on localhost. The agent runs on the same machine as the server, so playwriter, curl and tests must use the Local: URL. It is much faster. The tunnel URL is only for the user.
  • Use random names by default. Pass -t <name> only for services that are safe to be publicly discoverable.
  • kimaki tunnel detects the local port from the child output. Pass --port only when the server prints no detectable localhost URL.
  • kimaki tunnel injects KIMAKI_TUNNEL_URL into the child process. Wire the app to it so OAuth callbacks, webhook URLs and absolute links use the public URL.
  • The app gets Host: localhost:<port> and the public host in X-Forwarded-Host, so Vite needs no allowedHosts config.
  • The first run on a machine creates the tunnel and waits up to a minute for its certificate.
# start in a named background session, wait for output, then read the tunnel URL
tuistory launch "kimaki tunnel -- pnpm dev" -s myapp-dev
tuistory -s myapp-dev wait "/Tunnel: https/" --timeout 90000
tuistory read -s myapp-dev

# pass the public URL to the app (better-auth, Next.js, Vite; node reads process.env.KIMAKI_TUNNEL_URL)
tuistory launch "kimaki tunnel -- sh -c 'BETTER_AUTH_URL=\$KIMAKI_TUNNEL_URL exec pnpm dev'" -s myapp-dev
tuistory launch "kimaki tunnel -- sh -c 'APP_URL=\$KIMAKI_TUNNEL_URL exec pnpm dev'" -s myapp-dev

# fixed name (only for intentionally public-safe services)
tuistory launch "kimaki tunnel -t holocron -- pnpm dev" -s holocron-dev

# restart the server on a known port and keep the URL
tuistory launch "kimaki tunnel -t holocron -p 5173 --kill -- pnpm dev --port 5173" -s holocron-dev

# list sessions; stop with Ctrl+C, then close
tuistory sessions
tuistory -s myapp-dev press ctrl c
tuistory -s myapp-dev close

Share the printed public URL with the user as a clickable link. Stop the session when the user is done.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 05b3a2b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 20 hours ago.

Activeupdated last month

README badge

README badge for remorses/kimaki/kimaki-tunnel