شعار 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

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها nominal-io على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Connect App في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ 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؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق 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 مجانية؟

نعم. نشرها nominal-io على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇