Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

🪪Register a Skill Package

Audience: Nexus adopters and integrators.

Goal: Register a Talus Agent Package (TAP) skill package and verify the Agent-to-DAG binding, authority, and durable revision that execution will use.

Publication and registration are separate boundaries. A TAP publication may publish a Move package and DAG and produce a publish artifact; a registry-only path may create the artifact from an already published DAG. Neither path creates a SkillRecord. The Skill becomes discoverable only after nexus tap bind or nexus tap register-skill succeeds. This guide begins with the artifact produced by Define an Agent Package or the TAP publication guides and performs that registration boundary.

Prerequisites

  • A Bash/POSIX-compatible shell plus jq, curl, and coreutils-compatible sha256sum, stat, and mktemp for the documented checks. Node.js 18 or later is needed only for the hosted Nexus API tutorial or its React example.

  • Verify the shell tools with the Developer Setup check before using the commands below.

  • A validated skill config — run nexus tap validate-skill --config … first (see Define an agent package).

  • Complete Developer Setup's protected-signer gate before this mutation path. Without provider-approved protected import and nexus conf set --help verification, stop at query-only SDK/Explorer/API inspection and do not run publishing or registration commands.

  • After that gate is complete, use a configured Nexus environment (nexus conf) and signer SUI address balance verified with nexus gas balance and funded with nexus gas deposit for publishing and registration. Use an owned gas coin only for an explicit gas-coin flag; use AgentPaymentVault only when the skill is agent-funded.

  • Every fixed tool referenced by the config already registered (see Build an off-chain tool or Build an on-chain tool).

What "publish" and "register" mean

Two on-chain surfaces are involved:

  • The tool registry indexes each shared Tool record by FQN and Tool ID. Your skill's fixed-tool FQNs must already be registered here, while the Tool owner capabilities remain separately transferred custody.

  • The agent registry holds agents and their skills. Registering a skill writes a SkillRequirement — payment policy, schedule policy, fixed tools, input commitment — against an agent and allocates the skill a monotonically increasing skill id local to that agent.

Publishing is the step that publishes the DAG and packages the config plus the fetched DAG data into a publish artifact — a self-contained JSON that the register step consumes. Every skill also carries an interface revision so that a later update-skill can supersede an earlier registration without breaking callers who pinned the old revision.

The artifact is the user-facing package of the skill contract: DAG binding, interface revision, payment policy, schedule policy, input commitment, and fixed-tool requirements. On-chain, SkillRequirement stores those requirements, and registration checks each fixed-tool FQN against the ToolRegistry; it does not by itself prove the stored registry ID or DAG membership matches, so read back the requirement, selected DAG vertices, Tool IDs, and schemas before relying on the dependency.

Create an owned Agent record from inspected inputs
Phase 1: Create an owned Agent identity. Keyed fact: create-agent writes the Agent identity to AgentRegistry; published DAG ID binding enters the independent Skill artifact phase.
Assemble payment, fixed Tool, and Skill artifact inputs
Phase 2: Assemble payment, fixed Tool, and Skill artifact inputs.
Register the artifact and persist its SkillRecord
Phase 3: Register the artifact and persist its SkillRecord.

The first figure shows the owned-agent registration data that becomes the skill contract: a published DAG, payment and schedule policies, and fixed-tool requirements are serialized into one artifact. The next figure shows the separate CLI transaction sequence that creates the Agent, writes the artifact, and stores the resulting SkillRecord.

Step 1 — Publish the skill

Publish the TAP package, its DAG, and the publish artifact in one step:

This publishes the DAG to the active network, then writes the publish artifact to the path you give with --out. Keep the artifact — the register step reads it.

If you need finer control (for example, to build an artifact from an already-published DAG), assemble it explicitly instead:

The --payment-mode is user-funded or agent-funded; supply --agent-funded-max-budget-mist only for the agent-funded case. Repeat --fixed-tool once per pinned tool; the artifact retains the supplied registry ID and FQN, while the pinned on-chain check requires the FQN to be registered at transaction time and the client/operator must verify the ID and DAG vertex separately. --recurrence-kind, --min-interval-ms, and --max-occurrences set the schedule policy (defaulting to a single once run).

Step 2 — Register the skill against an agent

You have two paths, matching the ones in Define an agent package:

  • New agent, first skill, atomically:

    This creates a Talus agent and registers the skill from the artifact in a single transaction. Note the returned agent id and skill id.

  • Existing agent, additional skill:

    register-skill attaches the skill to an existing agent and allocates the next skill id.

Embedded-agent packages use the same agent registry semantics but keep the Agent inside their own package state and attach it to the registry from package code rather than through the sender-owned create-agent flow.

On-chain, agent_registry::create_agent creates the nexus_interface::agent::Agent, binds it to the registry, and stores the registry-side agent record. The demo TAP package uses agent_registry::attach_embedded_agent when an example keeps the Agent inside its own state object.

For scripts that keep the two operations separate:

Step 3 — Confirm the registration

Read the registered skill's live requirements back from the agent registry:

This fetches the on-chain SkillRequirement — payment policy, schedule policy, and fixed tools — so you can confirm it matches your config. Inspect the whole agent registry as JSON with:

Use this check before execution and scheduling. update-skill changes the active skill contract and bumps the revision; callers should know which (agent_id, skill_id, revision) they are targeting.

For multi-skill demos, inspect each returned skill ID explicitly:

Step 4 — Update a skill (later)

When you change the DAG or a policy, build a new artifact and update the existing skill in place, bumping the interface revision:

An update replaces the active registry contract and increments the interface revision; it is not blocked solely because an older Task is still open. Existing durable Task or Execution records retain the revision copied into their historical evidence. The registry classifies each immutable Task snapshot as Current, Inactive, Stale, or Missing: deactivating a matching contract makes direct admission abort with no durable rejection or Execution, and reactivation of that unchanged contract permits retry; advancing a revision, pinned DAG, or policy produces Stale, while removing the Agent or skill record produces Missing. Stale and Missing are permanent for that snapshot, and the explicit rejection path can record StaleSkillContract; close an idle Task and create a new Task when work must adopt the new contract, because Missing cannot be repaired by reactivation. Record the targeted (agent_id, skill_id, revision) rather than assuming an open Task follows the update. This is different from separately registered Tool FQNs such as @1 and @2.

Step 5 — Fund the vault for agent-funded skills

If the skill is agent-funded, deposit into the agent vault before anyone executes it:

A user-funded skill needs no vault — the submitting signer supplies the address-funded Task reserve when creating the Task, and the configured refund_recipient remains the address-funded return destination.

Verification checklist

Your skill is registered and executable when:

  • nexus tap publish-skill … wrote a publish artifact and published the DAG;

  • nexus tap bind … or nexus tap register-skill … returned an agent id and skill id;

  • nexus tap requirements --agent-id … --skill-id … shows the expected payment policy, schedule policy, and fixed tools;

  • if agent-funded, nexus tap vault balance … shows a balance covering the skill's max budget.

Common failure modes

Symptom
Likely cause and fix

Publish fails validating the config

The config did not pass validate-skill. Fix it (see Define an agent package) and re-publish.

Register fails on a fixed tool

The fixed-tool FQN is not registered. Confirm the FQN, registry ID, selected DAG vertex, and immutable schema with nexus tool inspect --tool-fqn … and the DAG/requirements readbacks; the registration check itself is FQN-only.

Wrong skill id

Skill ids are agent-local and allocated in order. Re-read them with nexus tap registry show or nexus tap requirements.

Update rejected

The --skill-id does not exist on that agent, or the interface revision did not advance. Re-check the artifact's interface revision.

Agent-funded execution later fails

The vault balance is below the skill's max budget. Top it up with nexus tap vault deposit.

Next guides

Last updated