Логотип Connect App

Connect App

Организация
nominal-io
connect-app

Scaffold a Nominal Connect app (app.connect YAML + Python scripts) from a high-level description of its UI and behavior. Use when the user asks to create a new Connect app, or to turn a description of a monitoring, control, or test UI into a runnable app with wired-up Python scripts, message-bus commands, and streaming.

Обзор

Издательnominal-io
Репозиторийskills
Название навыкаconnect-app
Звёзды
40
Форки
0
Встроенные файлы
6
ЛицензияApache-2.0
Ссылки
  • Инструкции в формате Markdown

    Файл SKILL.md, который модель загружает по необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 6

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Опубликовано на GitHub: nominal-io. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Connect App в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/nominal-io/skills/tree/main/skills/connect-app
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Новый навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nominal-io/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/connect-app .claude/skills/connect-app
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Connect App в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Connect App, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Connect App не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими API-ключами.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Connect app

Scaffold Nominal Connect apps: a directory containing an app.connect YAML and supporting Python scripts that the user can open in the Connect desktop app.

Available tools and files

Resolve bundled references and assets relative to this skill's installed directory, using the host's resource interface or provided filesystem location. Resolve output files relative to the user's target project; these are separate locations.

Check whether the target directory and file-writing tools are available in this environment. If the user's local project is inaccessible, author a downloadable app directory or archive when supported; otherwise provide the named file contents and setup instructions. Continue to settle the spec before authoring. Running the app requires Nominal Connect and any target devices or services. Distinguish file/schema checks from a successful run in Connect, and state any runtime checks the user still needs to perform.

What a Connect app is

A Nominal Connect app is a directory containing:

  • app.connect — YAML declaring the UI (tabs, panes, forms, plots, buttons, canvases).
  • One or more Python scripts launched by the UI. Scripts read UI values, publish to the message bus, stream data back to plots, handle commands, and/or orchestrate test workflows.
  • Optional: requirements.txt, canvas YAMLs, DBC files, device config JSONs, images, README.md.

A user launches the app by opening its directory in Connect. On first load, Connect creates a .venv/ inside the directory and installs connect-python (plus anything in python.packages in app.connect). The user never runs pip install by hand.

Workflow

Step 1. Elicit the spec

Before writing anything, confirm:

  1. Where does the app live? Ask for the target directory if it isn't obvious from the request.
  2. What is the UI? Which tabs, what's in each tab (plots, forms, buttons, markdown), what widgets the user interacts with. Sketch a rough layout.
  3. What Python scripts? One per long-running device/driver, plus any one-shot "run once" scripts and any test workflows. Each script owns exactly one concern.
  4. What streams and topics? Name each data stream (plot stream_id) and each message-bus topic (<scope>/<action>). These are strings shared between YAML and Python.
  5. External deps? Hardware libraries (nominal-instro, pycan, etc.), the Devices panel, streaming persistence to Nominal Core.

If the user gave a freeform description and some of this is ambiguous, ask — don't guess on stream IDs or script boundaries, since they're load-bearing.

Step 2. Pick a starting point

  • Trivial / "hello world"-shaped app (one tab, a few widgets, one script): copy assets/hello-world/ into the target directory and modify in place.
  • Non-trivial app: start from a blank app.connect and build up, using references/patterns.md for the shape of each script.

If the user has existing Connect apps on disk, read those for house conventions before inventing your own. Do not copy a large app wholesale — it drags in unrelated UI. Take the layout idioms and leave the rest.

Step 3. Write app.connect

The grammar is large. Read references/app_connect_schema.md to get the full element catalog (tiles, grids, panes, inputs, displays, plots, actions).

Every app must remain editable in Connect's no-code UI builder. This is a hard requirement, not a preference — users rearrange apps by hand, and an app that has dropped out of the UI builder cannot be fixed without hand-editing YAML. Nothing warns you at load time when an app breaks one of these:

  • The top-level tiles must be exactly one tile, and it must be layout: tabs. Nest grids inside a tab; never hoist one to the top level.
  • No second layout: tabs anywhere below the root — one nested tabs container turns editing off for the whole app.
  • Every pane must contain exactly one element. Zero renders nothing; two or more locks that pane against editing.
  • Every pane must set should_fill: true.
  • lockdown: must be absent.

The one-element rule is the one that bites, because a useful pane usually needs several widgets. Collect them into a single form element — an element with inputs: counts as one element and can nest displays, inputs, and buttons together. To place widgets side by side, use a grid of one-element panes rather than one pane holding several elements.

Other invariants:

  • Every pane needs a unique UUIDv4 id. Generate one per pane at authoring time — uuidgen | tr '[:upper:]' '[:lower:]' (macOS/Linux) or python -c "import uuid; print(uuid.uuid4())" — and paste the result directly into the YAML. Never hardcode placeholder strings like 00000000-... or reuse IDs across panes; duplicates collide and make panes address the wrong widget.
  • Widget ids (the id: on inputs and buttons) are the keys scripts use with client.get_value(id). Use snake_case; must be unique across the app.
  • Stream IDs referenced in plots (stream_id: foo) are plain strings — scripts create them implicitly the first time they call client.stream("foo", ...).
  • on_click_action has three kinds: _kind: script (launches a Python script), _kind: message (publishes a dict to a message-bus topic, with $widget_id substituted from current UI values), and _kind: command (sends a registered command from the command registry).
  • For apps that persist data, populate streaming.persistence[] with the target dataset RID and the list of streams to upload.

Step 4. Write the Python scripts

Read references/connect_python_api.md for the full API surface and references/patterns.md for the five idioms (one-shot, long-running driver + UI, closed-loop controller, TestWorkflow orchestrator, Command Registry). Pick the pattern that matches each script's role and adapt it.

Conventions:

  • Every script starts with @connect_python.main wrapping a main(client) function.
  • logger = connect_python.get_logger(__name__) — this routes to Connect's logs panel.
  • For any hardware handle, register client.add_shutdown_callback(lambda: thing.close()) early.
  • Stream IDs, topics, and channel names are plain strings shared between YAML and Python, and nothing type-checks them. A driver script exports its own topic constant and command classes; a constants.py holds only what several scripts share. The YAML side has to match by hand.
  • Reading UI: client.get_value("id", default) or client.get_values() (all at once). Writing UI: client.set_value("id", value).
  • Streaming: client.stream(stream_id, timestamp, value, name="channel_name") for single-channel, client.stream(stream_id, timestamp, values=[...], names=[...]) for multi-channel.
  • Driver scripts take typed commands: declare @connect_python.Command classes, nest @connect_python.handle_command handlers inside main so they close over the open hardware handle, and end main with client.register_and_wait_for_commands() or the process exits. UI buttons reach them with _kind: command.
  • Raw message bus is the fallback for schema-less payloads: client.send_message(topic, dict) to publish, or with MessageBus(client) as bus: bus.subscribe_to_topic(...) to consume. Inside a loop use try_receive_message() (non-blocking) rather than wait_for_message().
  • For test workflows, subclass connect_python.TestWorkflow. Test methods (test_*) run in the order they are defined in the source file, not alphabetically, so give them descriptive names rather than ordering prefixes. Only methods in the class's own body are discovered — inherited test_* methods never run. Set self.asset_rid in start_workflow (using its client argument; self.client is not available yet there) to auto-upload to Nominal Core, and register safe-shutdown with self.add_cleanup(...) so it runs even when a step fails.

Step 5. Sanity-check

Before handing back:

  1. UI builder compatibility holds: top-level tiles is exactly one layout: tabs tile, no tabs container is nested below it, every pane holds exactly one element and sets should_fill: true, and there is no lockdown: key. Check this first — it is the easiest thing to break and the most disruptive to the user.
  2. Every widget id referenced in client.get_value/get_values has a matching input: entry in app.connect.
  3. Every stream_id used in client.stream appears in at least one plot, display: stream_value, or streaming.persistence[].streams[].
  4. Every topic an action targets is served by a script: _kind: message topics have a subscriber, and _kind: command topics have a registered command whose command_id matches.
  5. All pane ids are UUIDv4s and unique.
  6. Shutdown callbacks registered for anything that opens a hardware/network handle.

Do not attempt to run the app — it requires the Connect GUI on the user's machine and often physical hardware. Tell the user how to test manually (e.g. "open the directory in Connect, click Run on my_script.py, verify the plot populates").

Quick decision guide

  • User wants one button that runs a script and shows a result? → Pattern 1 in references/patterns.md. Start from assets/hello-world/.
  • User wants live readings from a device + UI to command it? → Pattern 2. One long-running script per device, exposing typed commands.
  • User wants live-tunable control loop? → Pattern 3. Control loop on a daemon thread, tunables applied by a command handler under a lock.
  • User wants an automated pass/fail test? → Pattern 4. TestWorkflow with test_* methods and a controls: test_workflow element. For a procedure with no pass/fail, use AutoSequenceWorkflow with step_* methods.
  • User wants the no-code Command Builder? → Pattern 5. Focus on the command schema; command_id in YAML is the snake_case of the class name.

Resources

Reporting back

When you finish, report concisely:

  • Where the app was written (absolute path).
  • Which scripts were created and their roles.
  • Stream IDs and message-bus topics used.
  • How to test manually (open directory in Connect, click Run on <script>, expected behavior).

Do not narrate intermediate file reads or summarize the full YAML — the user can open the files themselves.

Встроенные файлы

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Connect App?

Scaffold a Nominal Connect app (app.connect YAML + Python scripts) from a high-level description of its UI and behavior. Use when the user asks to create a new Connect app, or to turn a description of a monitoring, control, or test UI into a runnable app with wired-up Python scripts, message-bus commands, and streaming.

Зачем использовать Connect App в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Connect App — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Connect App в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/nominal-io/skills/tree/main/skills/connect-app. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Connect App?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Connect App?

С любым количеством. Если модель поддерживает навыки, вы можете использовать с ней Connect App: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama и другие — всё в TypingMind с вашими собственными ключами API.

Бесплатен ли навык ИИ Connect App?

Да. Навык опубликован на GitHub автором nominal-io по лицензии Apache-2.0. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это многоразовый набор инструкций, который объясняет модели ИИ, как выполнять конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты для вызова — код, который где-то выполняется и возвращает результат. Навык ИИ вместо этого даёт модели знания и порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇