scistudio-write-miniapp
Build or improve an interactive MiniApp for exploring project data, comparing results, or adjusting parameters with visible feedback. Use for a standalone…
от jiazhenz026★ 30 звёзд на GitHub
Установить scistudio-write-miniapp в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
scistudio-write-miniapp
1. What a MiniApp is
A MiniApp is a small interactive application you write for the user, opened on a
piece of their data. It is for exploration and interaction: the user moves its
controls, sees the effect at once, and tries analyses while the next step is still
unknown. Technically it is a panel folder whose page reads the data through the
panel SDK and may call functions in its own resident Python process (panel.py).
A MiniApp is not a workflow node: it produces no typed outputs and no lineage. When the exploration settles into a repeatable step, the user can convert it into an interactive workflow block; the MiniApp stays available.
| User needs | Route |
|---|---|
| To explore a result repeatedly, with visible feedback | MiniApp: this skill. |
| A reusable view of a data type in previews | scistudio-write-panel (preview panel). |
| One recorded decision during a workflow run | scistudio-write-panel (interactive panel) with scistudio-write-block. |
| A static figure of an output | scistudio-write-plot. |
| A computation that must be a reproducible workflow step | scistudio-write-block. |
2. Steps to write a MiniApp
For an existing MiniApp, focus on the requested change and reuse what still fits. These are working steps, not separate approval stages.
- Read the first request quickly. Read the creation brief when there is
one, and keep its source, folder,
id, and type. Take a quick look at the data (inspect_data), just enough to ask good questions; do not build yet. - Ask with a questionnaire. Replace the template page with a questionnaire built from the standard question components: what to show, which interaction, which settings matter. Give each question a few concrete alternative answers drawn from the data. Every answer is optional and every question offers "Decide for me". Run the questionnaire check; when it reports errors, fix every one and run it again until it passes. Only then tell the user in one sentence to fill it in and press Submit.
- Wait for the second round. In the in-app agent session, SciStudio tells you when the user submits. Over WebMCP, call the waiting tool; if it times out, tell the user your watch timed out and ask them to tell you once they have submitted. Then read the answers; treat "Decide for me" and unanswered questions as yours to choose sensibly.
- Check what already exists. Call
list_panels(kind="miniapp", data_type="<type>"). When the user wants to change an existing MiniApp, improve it; when the user wants a different app, write a new one. - Look at the real data. Use
get_block_output,inspect_data, andpreview_datato learn its type, shape, axes, units, and metadata, and what each dimension means. - Choose the main view and interaction. Decide how the data is shown (see the rules in §4), the primary controls with their starting values, and the visible result of using them, following the user's answers. The first view shows the data already loaded.
- Build it on the real source. Write
panel.jsonandindex.html, and addpanel.pyonly when the task needs Python. Wire every control to its visible effect, with loading, empty, and error states. - Validate and open. Call
validate_panel(path="panels/<panel_id>")and fix every error, thenopen_miniappon the intended block output and read the result for startup errors. - Look at it and try the main interaction. Screenshot the app, use it once (move the slider, click the button), screenshot again, and confirm the result changed on the data. Fix what fails and repeat the affected check. Leave the app open and tell the user what it does, which data it uses, and what you tested.
3. Anti-patterns
- Replacing the data with a summary the user did not ask for, such as a histogram of an image, which loses its spatial layout.
- Opening on a blank page that waits for unexplained configuration.
- Building the app straight from the first request of a new MiniApp without asking the questionnaire first.
- A questionnaire with required answers, no "Decide for me" option, or no Submit.
- Telling the user to fill in a questionnaire that has not passed the check.
- Hand-writing tables, pagers, loading states, or heatmaps that the prebuilt
components already provide, or importing a component that does not exist
(there is no
Slideror image viewer component). - Sampling, downsampling, or decimating data to show it, instead of paging or scrolling through all of it.
- Overwriting input data or editing workflows as a side effect of exploring.
- Reading a whole large dataset on every control change; letting an older calculation overwrite a newer result.
- Treating a MiniApp as a workflow step, or expecting its files to carry lineage.
- Reporting the app as working from a successful
open_miniappor one screenshot, without tryi
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл scistudio-write-miniapp?
Build or improve an interactive MiniApp for exploring project data, comparing results, or adjusting parameters with visible feedback. Use for a standalone data tool; use scistudio-write-plot for a static figure and scistudio-write-block for a workflow step.
Как установить скилл scistudio-write-miniapp?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scistudio-write-miniapp запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…