# Send Ngrok Preview to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ngrok-preview",
    "name": "Ngrok Preview",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/wynnsu/ngrok-preview",
    "canonicalUrl": "https://clawhub.ai/wynnsu/ngrok-preview",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/ngrok-preview",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ngrok-preview",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/troubleshooting.md",
      "scripts/ngrok_preview.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "ngrok-preview",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T18:39:35.418Z",
      "expiresAt": "2026-05-07T18:39:35.418Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ngrok-preview",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ngrok-preview",
        "contentDisposition": "attachment; filename=\"ngrok-preview-1.0.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "ngrok-preview"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ngrok-preview"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ngrok-preview",
    "downloadUrl": "https://openagent3.xyz/downloads/ngrok-preview",
    "agentUrl": "https://openagent3.xyz/skills/ngrok-preview/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ngrok-preview/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ngrok-preview/agent.md"
  }
}
```
## Documentation

### ngrok-preview

Provide a temporary preview window for task outputs. Keep it fast, scoped, and easy: generate link -> send link -> close link.

### One-time setup

Install ngrok if missing.
Configure auth token once:

ngrok config add-authtoken "$NGROK_AUTHTOKEN"
ngrok config check

If token is not preconfigured, pass --auth-token when running the script.

### Per-task workflow

Collect only task artifacts (images/charts/files) for this request.
Create a session-scoped temporary preview link.
Send the link with explicit expiry in Telegram.
Stop and delete the preview session after user confirms or task ends.

Use this command from the skill directory:

python3 scripts/ngrok_preview.py up \\
  --title "<task title>" \\
  --session-id "<task-id>" \\
  --ttl-minutes 120 \\
  --source "<artifact-path-1>" \\
  --source "<artifact-path-2>"

The command returns JSON including:

public_url
expires_at
session_id
stop_command

### Session ID convention (context binding)

Use IDs that map to the current conversation/task:

tg-<date>-<topic>
task-<short-request-id>

This keeps each link tied to one task context.

### Telegram send pattern

After up succeeds, send a concise message:

🔗 Temporary preview link (valid for <X> minutes)
<public_url>

Scope: artifacts from this task only
This link will be cleaned up after expiry

If not currently in Telegram, still return the same link format in the active channel.

### Safety boundaries

Publish only task-specific outputs, never broad directories (do not expose workspace root).
Keep TTL short (default 120 minutes; use shorter when possible).
Treat link as temporary access, not persistent hosting.
Stop session when no longer needed:

python3 scripts/ngrok_preview.py down --session-id "<task-id>" --delete-session-dir

Periodically clear expired sessions:

python3 scripts/ngrok_preview.py cleanup

### Command quick reference

# List sessions
python3 scripts/ngrok_preview.py status

# Create preview (auto-generate session id)
python3 scripts/ngrok_preview.py up \\
  --title "image results" \\
  --source ./outputs/result-1.png \\
  --source ./outputs/result-2.png

# Stop latest session
python3 scripts/ngrok_preview.py down

### Troubleshooting

If link creation fails, check references/troubleshooting.md and follow the minimum recovery sequence.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: wynnsu
- Version: 1.0.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T18:39:35.418Z
- Expires at: 2026-05-07T18:39:35.418Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/ngrok-preview)
- [Send to Agent page](https://openagent3.xyz/skills/ngrok-preview/agent)
- [JSON manifest](https://openagent3.xyz/skills/ngrok-preview/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/ngrok-preview/agent.md)
- [Download page](https://openagent3.xyz/downloads/ngrok-preview)