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ファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 6個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    nominal-ioがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルConnect AppをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/nominal-io/skills/tree/main/skills/connect-app
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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で使用

TypingMindのチャットでConnect Appを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にConnect Appを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Connect Appは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでConnect Appを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Connect Appはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにConnect Appをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/nominal-io/skills/tree/main/skills/connect-appを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Connect Appを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Connect Appは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもConnect Appを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Connect App」は無料ですか?

はい。nominal-ioがGitHubでApache-2.0ライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇