Agent Skillsakazwz/hostc › hostc-public-preview

hostc-public-preview

GitHub

使用 hostc 为本地开发服务器生成临时公共预览 URL,支持分享 localhost、测试 webhook 或远程调试。

skills/hostc-public-preview/SKILL.md akazwz/hostc

Trigger Scenarios

public preview share local app expose localhost tunnel localhost webhook preview

Install

npx skills add akazwz/hostc --skill hostc-public-preview -g -y
More Options

Use without installing

npx skills use akazwz/hostc@hostc-public-preview

指定 Agent (Claude Code)

npx skills add akazwz/hostc --skill hostc-public-preview -a claude-code -g -y

安装 repo 全部 skill

npx skills add akazwz/hostc --all -g -y

预览 repo 内 skill

npx skills add akazwz/hostc --list

SKILL.md

Frontmatter
{
    "name": "hostc-public-preview",
    "metadata": {
        "short-description": "Expose localhost as a temporary public URL with hostc"
    },
    "description": "Use hostc when an agent needs to expose a local development server as a temporary public preview URL, share localhost with another device or teammate, test webhooks against a local app, or create a public tunnel for localhost. Trigger on public preview, share local app, expose localhost, tunnel localhost, webhook preview, remote preview, or similar requests."
}

Hostc Public Preview

Use hostc when the user or task needs a temporary public URL for a local development server.

Quick start

If the local app is running on port 3000:

npx hostc@latest 3000

Use the printed public URL for previews, webhook callbacks, mobile-device testing, or sharing the local app with another person.

Self-hosted server

If the user has their own hostc server:

HOSTC_SERVER_URL=https://hostc.example.com npx hostc@latest 3000

For persistent config:

npx hostc@latest config set server-url https://hostc.example.com
npx hostc@latest 3000

Agent workflow

  1. Confirm or infer the local port from the dev server output.
  2. Prefer npx hostc@latest <port> so the CLI stays compatible with the current protocol.
  3. Wait for hostc to print the public URL.
  4. Give the user the public URL and keep the command running while the preview is needed.
  5. If the tunnel fails, first check that the local server is reachable on the requested port.
  6. To stop the preview, terminate the running hostc process. In an interactive terminal this is usually Ctrl+C. If the agent started hostc as a background process, stop or kill that process.

Safety notes

  • Do not expose sensitive admin panels, database consoles, credential dashboards, or private internal services unless the user explicitly asks and understands the risk.
  • Treat the public URL as temporary. Do not use it as a permanent production endpoint.
  • If hostc reports a protocol mismatch, ask the user to run npx hostc@latest <port> or upgrade their installed CLI.
  • If the local service is unavailable, fix the local server first; hostc cannot proxy a port that is not serving traffic.

Version History

  • 3a28c19 Current 2026-07-24 22:13

Metadata

Files
0
Version
3a28c19
Hash
501e26f0
Indexed
2026-07-24 22:13

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 00:55
浙ICP备14020137号-1 $mapa de visitantes$