Logo de Connect App

Connect App

Organisation
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.

Présentation

Éditeurnominal-io
Dépôtskills
Nom de la compétenceconnect-app
Étoiles
40
Forks
0
Fichiers inclus
6
LicenceApache-2.0
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont en simple Markdown, et non en code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • 6 fichiers inclus

    Des scripts, des modèles de documents et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par nominal-io sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Connect App dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Collez l’URL du dossier de la compétence indiquée ci-dessous, puis confirmez.
    https://github.com/nominal-io/skills/tree/main/skills/connect-app
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter → Via URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

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
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Connect App dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Connect App dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, Connect App n’est pas lié au modèle pour lequel cette compétence a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

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.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA 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.

Pourquoi utiliser Connect App sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Connect App se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Connect App dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/nominal-io/skills/tree/main/skills/connect-app. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Connect App ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Connect App ?

Autant que vous le souhaitez. Tant qu’un modèle prend en charge les compétences, vous pouvez utiliser Connect App avec lui : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Connect App est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par nominal-io sous licence Apache-2.0. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, modèles de documents ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇