Skip to content
Back to skills

Serve

ASecurity

Start the lantern web UI for a map, where the user answers, comments, approves and ends their turn. Use for `/lantern:serve [slug]`.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
ai-agentspythonbash

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add pavelvod/lantern --skill serve --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Serve?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Serve
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pavelvod-serve/badge)](https://www.skillsdirectory.com/skills/pavelvod-serve)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: serve
description: Start the lantern web UI for a map, where the user answers, comments, approves and ends their turn. Use for `/lantern:serve [slug]`.
disable-model-invocation: true
---

# lantern:serve — the UI

`L` is `../../bin/lantern.py` relative to this skill's base directory, as an absolute path. Slug omitted: use the only map in `.lantern/` (or `.dagmap/`). If there are several, ask which one.

Start it from the cwd that holds `.lantern/`, as a long-running process.

If `$HERDR_PANE_ID` is set, the user works in herdr: start it in a pane split to the right, so they can see it.

```bash
P=$(herdr pane split $HERDR_PANE_ID --direction right --cwd "$PWD" | jq -r '.result.pane.pane_id')
herdr pane run $P "python3 $L serve <slug>"
herdr pane wait-output $P --regex 'lantern: http|Error' --timeout 10000
```

Otherwise, run `python3 $L serve <slug>` as a background command and read its output until the `lantern: http://...` line or an error appears.

Give the user the URL from the `lantern: http://...` line, only after it appears. If the output shows `Address already in use`, another server holds port 8765: run it again with `--port 0`, which picks a free port and prints it. The server reads `ui.html` at startup: restart it after the UI changes. An open tab reloads itself when the server restarts.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.