nemoclaw-contributor-onboard-messaging-channel

от nvidia

Проведите участников NemoClaw через добавление или проверку нового канала обмена сообщениями в архитектуре обмена сообщениями, ориентированной на манифест. Используйте при подключении канала для…

npx skills add https://github.com/nvidia/nemoclaw --skill nemoclaw-contributor-onboard-messaging-channel

Onboard Messaging Channel

Use this skill to add a messaging channel end-to-end without leaking channel-specific logic into core NemoClaw code.

Intake

Gather inputs progressively. Do not ask the full intake checklist in one message. Ask exactly one concise clarification at a time, choosing the earliest unresolved blocker:

  1. If the channel name is missing, ask for the channel name.
  2. If target agents are missing, ask whether the channel should support OpenClaw, Hermes, or both.
  3. If upstream references are missing, ask for the official docs link and source-of-truth implementation link or path. Include Telegram as the format example: docs https://docs.openclaw.ai/channels/telegram, source https://github.com/openclaw/openclaw/tree/main/extensions/telegram.
  4. After references are available, read them and the local messaging package before asking about credentials, plugin installs, reachability, or network policy.
  5. Ask follow-up questions one by one only for details that remain ambiguous after source analysis.

Use this intake checklist internally while analyzing source:

  • Channel name and target agents: OpenClaw, Hermes, or both. Treat unsupported agents as intentionally out of scope unless the user provides source evidence.
  • Official channel documentation link and source-of-truth implementation link or path. Prefer upstream extension/runtime code over README prose when they conflict.
  • Required credentials and config inputs: token environment variables, bot or app IDs, user IDs, workspace/guild/group IDs, allowlists, app secrets, webhook secrets, socket-mode/app tokens, QR pairing, callback URLs, or proxy settings.
  • Plugin or package install requirements: package name, install manager, version pinning, bundled versus external status, extension ID, and whether the package must be installed during image build.
  • Reachability or health evidence: endpoint or command, HTTP method, auth semantics, success response, invalid-credential response, transient-network behavior, and whether tests need a skip env var for fake credentials.
  • Network reachability: exact hostnames required at runtime, whether they are agent-only or bridge-only, and whether the policy should be opt-in.

When asking a follow-up, include the source-derived fact that made the question necessary. Example: "The upstream extension enables a webhook secret, but I do not see whether NemoClaw should prompt for it. Should this be a required input?"

Source Analysis

Before editing, read:

  • Root AGENTS.md and CONTRIBUTING.md.
  • src/lib/messaging/AGENTS.md.
  • The closest existing channel manifests and tests under src/lib/messaging/channels/.
  • The upstream docs and source code supplied by the user.

Compare the new channel to existing patterns:

  • Token plus API reachability: Telegram-style.
  • Multiple credentials, socket mode, or channel-owned conflicts: Slack-style.
  • Allowlists or scoped IDs: Discord-style.
  • QR or pairing flow with runtime status: WeChat or WhatsApp-style.
  • Agent-specific plugin install and config render: channels that require external agent extensions.

When docs and source disagree, implement from source code and note the inference in the final handoff.

Implementation Workflow

Start with the manifest. Add core code only when the manifest vocabulary cannot express a reusable concept.

  1. Add src/lib/messaging/channels/<channel>/manifest.ts with auth, inputs, credentials, policyPresets, render, runtime, agentPackages, state, and hooks as needed.

  2. Add channels/<channel>/template-resolver.ts only for derived render values, such as allowlist normalization, booleans, proxy URLs, or agent-specific schema differences.

  3. Add hooks under channels/<channel>/hooks/ only for enrollment, external reachability checks, QR capture, conflict checks, runtime status, or health probes that cannot be static manifest data.

  4. Register the manifest in channels/built-ins.ts, template resolver in channels/template-resolver.ts, and hook handlers in hooks/builtins.ts.

  5. Add nemoclaw-blueprint/policies/presets/<channel>.yaml when the manifest declares a policy preset. Keep messaging-specific egress opt-in unless the project policy says otherwise.

  6. Declare channel support only in src/lib/messaging/channels/<channel>/manifest.ts through supportedAgents. Do not edit agent manifests for channel availability unless a separate agent contract changed.

  7. Add agent package install metadata when the channel needs an external agent plugin. For OpenClaw plugin packages, use this shape unless source evidence says otherwise:

    agentPackages: [
      {
        id: "openclawPluginPackage",
        agent: "openclaw",
        manager: "openclaw-plugin",
        spec: "npm:@openclaw/<channel>@{{openclaw.version}}",
        pin: true,
        required: true,
      },
    ],
    
  8. Update docs for user-facing behavior, usually docs/manage-sandboxes/messaging-channels.mdx, command references, network policy references, and troubleshooting.

Quality Gates

  • Validate the runtime config schema from upstream code. Do not copy another channel's nested config shape blindly without source evidence.
  • If render enables a plugin entry, confirm the install source exists or document why it is bundled.
  • Keep Hermes unsupported when only OpenClaw source support exists, and vice versa.
  • Keep channel-specific conditionals out of onboard, rebuild, compiler, applier, and generated-config entrypoints unless the change is a general manifest capability.
  • Persist only non-secret state. Plans may contain placeholders, availability flags, and hashes, never raw tokens.
  • Mock external APIs in tests. Unit tests must not call real messaging providers.
  • Use a skip env var for live reachability hooks when fake credentials are valid for local tests.
  • Make policy hostnames exact and scoped to the channel preset.

Verification

Build one targeted Vitest invocation from only the files that cover the changed behavior. Omit unaffected paths from this example, then run the resulting command once per relevant change set:

npx vitest run \
  src/lib/messaging/channels/<channel> \
  src/lib/messaging/channels/manifests.test.ts \
  src/lib/messaging/channels/metadata.test.ts \
  src/lib/messaging/compiler/manifest-compiler.test.ts \
  test/messaging-build-applier.test.ts

Add channel-specific config render, hook, policy, and channel add/remove tests when those surfaces change. Rerun the targeted command after later edits or hook autofixes that can affect the tested behavior. Run npm run docs for documentation changes. Commit and push normally so pre-commit handles cheap structural and file-local checks and pre-push runs the path-scoped type checks. Treat successful hooks as verification and do not rerun their checks manually. If pre-commit, commit-msg, or pre-push hooks were skipped or unavailable, run npm run check:diff once to reproduce those checks. Refresh origin/main first. Reserve npm test for broad runtime or test-harness changes. Reserve npm run check for repo-wide validation or coverage-baseline changes.

Больше skills от nvidia

compileiq-debug
nvidia
Use when something is wrong: Search() hangs, all evaluations return INVALID_SCORE, scores aren't improving, every config returns the same number, ptxas errors…
official
create-github-pr
nvidia
Create GitHub pull requests using the gh CLI. Use when the user wants to create a new PR, submit code for review, or open a pull request. Trigger keywords -…
official
diagnose-perf
nvidia
First-responder performance triage for Isaac Sim and Isaac Lab. Identifies bottleneck category (GPU-bound, CPU-bound, VRAM, loading) using nvidia-smi and…
official
eagle3-review-logs
nvidia
Review EAGLE3 pipeline experiment logs from the launcher's experiments/ directory. Summarizes pass/fail status for all 4 tasks, diagnoses failures with root…
official
nemoclaw-maintainer-cross-issue-sweep
nvidia
Сканирует другие открытые задачи, чтобы найти те, которые данный PR может исправить или случайно сломать. Выводит возможности смежных исправлений и риски противоречий с указанием файла:строки…
official
karpathy-guidelines
nvidia
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes,…
official
fhir-basics
nvidia
Обучает агентов работе с API FHIR R4, доступным ресурсам, запросам с параметрами поиска и корректному разбору всех форматов ответов…
official
underdeclared-agent
nvidia
A helpful assistant agent
official