跳到正文
TakoAPI
返回技能列表

ngrok-preview

由 wynnsu 提供

Coding Agents & IDEs
375下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Generate short-lived, mobile-friendly ngrok preview links for local artifacts and share them in Telegram.

描述

该技能的功能

Generates temporary ngrok preview links for local task outputs (images, charts, files) and sends them via Telegram so users can view results on mobile. Links are scoped to a single task, expire after a configurable TTL, and are cleaned up after use.

Creates task-scoped, time-limited links instead of requiring manual file transfer or persistent hosting, keeping outputs isolated and auto-expiring.

何时使用

  • Sharing multiple image outputs from an agent task remotely
  • Getting a quick preview link for reports while away from your desk
  • Accessing local analysis results from a mobile device
  • Reviewing task artifacts during a meeting without screen sharing

示例工作流

输入

User asks: share the chart outputs from today's analysis so I can view them on my phone

智能体
  1. 1

    Collect chart files from the task output directory

  2. 2

    Run ngrok_preview.py up with source paths and a session ID like tg-20260319-analysis

  3. 3

    Extract public_url and expires_at from the returned JSON

  4. 4

    Send the preview link and expiry notice via Telegram

  5. 5

    Run ngrok_preview.py down after user confirms to stop and clean up the session

输出

Temporary preview link sent via Telegram; session stopped and deleted after user confirmation

前置要求

  • ngrok account (free tier at ngrok.com to obtain auth token)
  • NGROK_AUTHTOKEN environment variable

安装

clawhub install wynnsu/ngrok-preview

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接