lumi-view
Starts the wiki viewer and gives you an address to open in your browser: a map of the pages and how they relate, a list of every page, and a reader. Nothing…
от tronghieu★ 40 звёзд на GitHub
Установить lumi-view в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/lumi-view
Read README.md at the project root before this SKILL.md.
Role
You start the wiki's built-in viewer and tell the user where to open it. You do not open the page, read it, or describe its contents.
Context
- The viewer is a small local program,
_lumina/viewer/view.mjs. It serves the wiki at an address on the machine it runs on. It changes no file. - It runs only while its command runs. When the command ends, the viewer is gone and nothing is left behind.
- It reads the wiki from disk at each request. After the wiki changes, the user reloads the page in the browser. You restart nothing.
- After a Lumina update, a viewer that is still running serves the old version. It has to be stopped and started again. The
stale_serveranswer below is how you find out. - When it is ready it prints one line to standard output:
{"ok":true,"url":"http://127.0.0.1:<port>/","port":<port>,"reused":false}. "reused":truemeans a viewer for this wiki was already running. The command you ran then ends by itself, and the first viewer keeps serving.- When it cannot start it prints one line to the error stream,
{"error":"...","code":<n>,"reason":"..."}, and exits with that code. - Other lines may appear, such as a note that the usual port was taken. The line that matters is the first one that starts with
{, on either stream.
Instructions
Step 1 — Find the wiki root
The wiki root is the folder of the README.md you just read. It holds both wiki/ and _lumina/. If you have not found it yet, look in the current folder, then in each parent folder.
- No such folder: you are not inside a wiki. Say so and stop.
- The root has no
_lumina/viewer/view.mjs: this wiki was set up before the viewer existed. Go to "The viewer is not installed" and stop.
Use the root's full path in every command below.
Step 2 — Decide where the viewer has to run
The address works only on the computer where the viewer runs.
- You run on the user's own computer: go to Step 3.
- You run somewhere else (a remote session, a hosted agent, a container): do not start anything. Say that an address from this machine would not open in their browser. Then go to Step 5, and add that the two lines only work on a computer that holds this wiki folder.
- You cannot tell: go to Step 3, and say in your answer that the address opens only on the computer this session runs on.
Step 3 — Start it so that it keeps running
Run this with the wiki root as the working directory:
node _lumina/viewer/view.mjs
If your tool has no setting for the working directory, change into the wiki root first, as a separate command or line. Do not join the two with &&; some shells reject it.
Start it the way your host keeps a command running after the step returns: a background task or a background shell command. Do not wait for the command to finish. It does not finish. The way you start it must let you read what the command prints; if it cannot, go to Step 5.
Run this same step every time the user asks, even when you started a viewer earlier in the session. A second run answers at once with "reused":true and the same address.
If your host has no way to keep a command running, go to Step 5.
Step 4 — Read the answer
Wait up to 10 seconds for the first line that starts with {.
"ok":true— go to "Output Format" with theurl.- A line with
"reason"— find the reason below. Say the plain sentence to the user, then do the one action.
reason |
Say | Then |
|---|---|---|
bind_refused |
I am not allowed to use a local address from here. | Go to Step 5. |
stale_server |
A viewer from before the last update is still running for this wiki. | Go to "A viewer from an older version". |
no_workspace |
This folder is not a wiki. | Stop. |
no_free_port |
Every address the viewer may use is taken on this computer. | Pass on the message, which names the range. Stop. |
node_version |
The viewer needs Node 24 or newer. | Stop. |
internal |
The viewer failed to start. | Pass on the message. Stop. |
- The command ended with no such line, or printed something else — report what it printed and stop.
- No line after 10 seconds — end the command you started, say the viewer did not answer, and go to Step 5.
After a failure, do not run the command again to "try once more". The one exception is in "A viewer from an older version".
Step 5 — Hand the command to the user
Tell the user to run these two lines in a terminal on the computer that holds the wiki, and to open the address the second one prints in a browser on that same computer:
cd "<wiki root>"
node _lumina/viewer/view.mjs
Give them as two lines. They work that way in every shell.
Tell them:
- The viewer stops when they press Ctrl-C in that terminal.
- If the command prints an address and returns at once, a viewer is already running. That address is the one to open.
A viewer from an older version
The stale_server mess
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
FAQ
Что делает скилл lumi-view?
Starts the wiki viewer and gives you an address to open in your browser: a map of the pages and how they relate, a list of every page, and a reader. Nothing can be changed from the viewer. Use when the user asks to see, browse, open, or visualize the wiki or its graph, or asks for the viewer's address, or asks to stop the viewer.
Как установить скилл lumi-view?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lumi-view запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…