Agent skill

Claim Agent Ownership

by Prismer-AI in Prismer-AI/PrismerCloud

Orchestrator skill for resolving multi-daemon binding contention.

MITAuto-check passed

Install Claim Agent Ownership

skills CLI
$ npx skills add Prismer-AI/PrismerCloud --skill claim-agent-ownership -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Prismer-AI/PrismerCloud claim-agent-ownership --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Prismer-AI/PrismerCloud.git skills-src && mkdir -p .claude/skills && cp -r skills-src/sdk/cloud/catalog/skills/claim-agent-ownership .claude/skills/claim-agent-ownership && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
claim-agent-ownership
GitHub stars
1.6k
Token cost
~3k tokens
SKILL.md length
1,017 words
Files
1
Skills in repo
88
Repo updated
First seen
Licence
MIT

At a glance

Orchestrator skill for resolving multi-daemon binding contention.

  • Works in 4 steps: flips im_agent_bindings.boundDaemonId to… → writes an audit row with… → returns the in-flight task count on the… → …
  • SKILL.md covers When to use, API, Workflow and Operating Rules, plus 4 more sections
  • Calls curl; reaches prod.docbrew.cn; needs PRISMER_API_KEY

What it does

Claim Agent Ownership is an agent skill from Prismer-AI/PrismerCloud. Orchestrator skill for resolving multi-daemon binding contention. Use when you (the orchestrator) detect an agent.binding.contested sync event indicating two daemons are racing for the same agent — explicitly rebind ownership to a chosen target daemon so subsequent dispatches route deterministically. Implements Gap G-2-⑤ on top of the Wave 2-B2 /api/im/agent-bindings/:agentImUserId/rebind endpoint.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The licence is MIT.

Example prompts

  • “/claim-agent-ownership”

Requirements

  • A credential in PRISMER_API_KEY

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. flips im_agent_bindings.boundDaemonId to the chosen target daemon
  2. writes an audit row with boundBy='user-explicit' (or 'orchestrator')
  3. returns the in-flight task count on the previous owner so the orchestrator can
  4. emits a sync event (agent.binding.rebound) so other daemons drop their hosting

What it can do on your machine

Read from SKILL.md and the folder at commit e5d9444. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • prod.docbrew.cn

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • PRISMER_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Claim Agent Ownership loads about 3k tokens when it runs. Until then it costs about 107 tokens; SKILL.md has 1,017 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~107
When it runs · the whole SKILL.md, loaded when a task matches
~3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Prismer-AI/PrismerCloud at commit e5d9444, republished under its MIT licence (© Prismer-AI). 1,017 words, ~2,990 tokens.

Download SKILL.mdSave it as .claude/skills/claim-agent-ownership/SKILL.md (or your agent's skills folder).
name
claim-agent-ownership
description
Orchestrator skill for resolving multi-daemon binding contention. Use when you (the orchestrator) detect an `agent.binding.contested` sync event indicating two daemons are racing for the same agent — explicitly rebind ownership to a chosen target daemon so subsequent dispatches route deterministically. Implements Gap G-2-⑤ on top of the Wave 2-B2 `/api/im/agent-bindings/:agentImUserId/rebind` endpoint.
scope
common
applies_to
hermes, claude-code, openclaw, codex
phaseModel.defaultPhase
tool_use
version
1

Claim Agent Ownership

When two daemons (typically Mac Studio at home + a k8s pod) both run agent.host.declare for the same agent, the first one wins ownership and the second registers a contested binding. The user UI surfaces a "binding contested" badge and the cloud's resolveAgentDaemonRoute keeps routing dispatches to the original owner — but a human-driven or orchestrator-driven decision is needed to converge.

This skill is the orchestrator's tool for that decision. It calls the server's authoritative rebind endpoint, which atomically:

  1. flips im_agent_bindings.boundDaemonId to the chosen target daemon
  2. writes an audit row with boundBy='user-explicit' (or 'orchestrator')
  3. returns the in-flight task count on the previous owner so the orchestrator can wait / drain before redirecting traffic
  4. emits a sync event (agent.binding.rebound) so other daemons drop their hosting state for the agent

When to use

  • A sync event with type agent.binding.contested arrives in your inbox.
  • A user explicitly asks "the agent is bouncing between machines — pin it to my laptop".
  • You (orchestrator) decide to migrate an agent off a misbehaving daemon (high error rate, stale heartbeats, etc.) and a target is available.
  • Devices panel shows >1 daemon claiming the same agent and the user requests arbitration.

Do not use it for:

  • Healthy single-daemon bindings (no contention — nothing to claim).
  • Agents the orchestrator does not own / has no permission for (server rejects 403).
  • Routing decisions that should be reversible at the chat-message level (use metadata.daemonId overrides in single dispatches instead).

API

There is no generic cloud im get / cloud im post subcommand in the runtime CLI contract described here (sdk/cloud/ and sdk/prismer/). A dedicated cloud agent rebind verb is not landed either. The skill calls the cloud HTTP endpoint directly via curl (or the equivalent fetch from the orchestrator's MCP runtime), authenticating with the daemon API key already present in the environment as $PRISMER_API_KEY:

Before a write, resolve the actual workspace, agent ID, target daemon ID and authorized identity from the current runtime. aip-identity is not a bundled prerequisite; use the available identity/read-only binding interface. Missing identity or unavailable endpoint is a stop condition, not permission to invent IDs or switch accounts. Confirm migration impact and drain in-flight work.

bash
# Inspect the current bindings first.
curl -fsS \
  -H "Authorization: Bearer $PRISMER_API_KEY" \
  "$PRISMER_CLOUD_BASE/api/im/workspaces/<workspaceId>/agent-bindings"

# Issue the rebind. Requires workspace owner / active orchestrator / admin.
curl -fsS \
  -X POST \
  -H "Authorization: Bearer $PRISMER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"targetDaemonId":"<daemonId>","targetDaemonKind":"local","reason":"<short reason>"}' \
  "$PRISMER_CLOUD_BASE/api/im/agent-bindings/<agentImUserId>/rebind"

PRISMER_CLOUD_BASE defaults to the cloud the daemon paired with (https://prod.docbrew.cn in prod, http://127.0.0.1:3000 in local dev).

For pure-API use (orchestrator runtime, MCP tool, etc.), the underlying call is:

http
POST /api/im/agent-bindings/:agentImUserId/rebind
Authorization: Bearer <daemon api key>
Content-Type: application/json

{
  "targetDaemonId":   "daemon-mac-studio-01",   // required, must exist in workspace
  "targetDaemonKind": "local",                  // optional: 'k8s' | 'local' | 'edge'
  "targetDaemonLabel": "Mac Studio (home)",     // optional display label
  "reason":           "user prefers desktop daemon while on home network"
}

Successful response:

json
{
  "ok": true,
  "data": {
    "binding": {
      "agentImUserId":     "u_agent_ceo",
      "boundDaemonId":     "daemon-mac-studio-01",
      "boundDaemonKind":   "local",
      "boundDaemonLabel":  "Mac Studio (home)",
      "boundBy":           "user-explicit",
      "boundAt":           "2026-05-22T16:30:00.000Z"
    },
    "inFlightTaskCount":   3,
    "previousDaemonId":    "daemon-k8s-pod-7f4"
  }
}

Failure modes worth handling explicitly:

StatusCode (in body)Meaning
400target daemon ... not registeredTarget daemonId not in im_containers for this workspace.
400 / missing fieldtargetDaemonId is requiredBody parse / missing required field — surface as developer error.
403ForbiddenCaller is not workspace owner / orchestrator / admin.
404Agent not found ...Agent has no im_agent_cards row (deleted? wrong id?).
404No binding row exists ...Agent never ran host.declare. Tell the daemon to declare first.
409target daemon ... is stoppedTarget container has stoppedAt set — pick a different target.

Workflow

  1. Subscribe to agent.binding.contested sync events. The orchestrator's sync inbox delivers these out of band; the skill consumes them.
  2. Resolve the target daemon. Read the binding list and pick the daemon you want to keep — usually the one with:
    • smaller lastDispatchAt skew (fresher),
    • matching device kind to user preference (local vs k8s),
    • lower contestCount (less flapping).
  3. Decide whether to drain. If inFlightTaskCount > 0 on the previous owner, surface this to the user ("3 tasks finishing on the old daemon before switching"). The orchestrator should usually let those finish — the rebind takes effect for subsequent dispatches, in-flight tasks complete via the existing route.
  4. Call rebind. Pass targetDaemonId + reason. Optional kind/label improve UI readability.
  5. Verify. Read /workspaces/:wsId/agent-bindings again and confirm boundDaemonId matches your target. If still divergent, the daemon may have re-declared between read and write — repeat once.
Show full SKILL.md (400 more words)Show less

Operating Rules

  • Never rebind to a daemon you cannot see in the workspace listing. The server validates via im_containers — calling with a fictional id returns 400. Don't guess.
  • Always supply a reason. It's persisted in the audit trail and surfaces in the Devices panel ("rebound by orchestrator at HH:MM: <reason>"). Empty reason becomes the default 'unspecified' which is opaque to the user.
  • One rebind per binding per minute (orchestrator self-limit). The endpoint is not throttled, but flapping rebinds spam sync events and confuse the user. If the contest re-fires within 60s of a rebind, escalate to the human — don't auto-rebind again.
  • Wait for the dispatch in-flight count to drain before declaring "done" if the user is observing. The cloud routes new dispatches immediately, but the prior daemon's outstanding tasks still finish on it.

Output reporting

After successfully calling rebind:

[claim-agent-ownership] rebound agent=<agentImUserId> from=<previousDaemonId>
                       to=<targetDaemonId> in-flight-on-previous=<n>
                       reason="<reason>"

Then surface to the user as a chat message: who you rebound, where to, why, and how many tasks are still finishing on the old daemon (if any).

After a 4xx/5xx failure: report the HTTP status + the server's error code + message verbatim. Do not silently retry on 400/403/404 — those need human attention.

Backing capabilities

  • Server endpoint: POST /api/im/agent-bindings/:agentImUserId/rebind (Wave 2-B2, src/im/api/agent-bindings.ts)
  • Data model: IMAgentBinding (migration 410, fields: boundDaemonId, boundDaemonKind, boundDaemonLabel, boundBy, contestCount, contestedSince)
  • Sync event consumed: agent.binding.contested — emitted by AgentBindingService when a second daemon declares an agent already bound to a different daemon.
  • Sync event emitted (server-side): agent.binding.rebound — broadcast after successful rebind so all daemons + UI consumers drop stale routing state.
  • Audit trail: Each rebind writes an IMTaskLog-style entry with boundBy='user-explicit' / 'orchestrator' and the supplied reason; visible in the Devices panel.

Examples

Example 1 — Orchestrator handling a contest event
Inbox event: { type: 'agent.binding.contested', agentImUserId: 'u_agent_ceo',
               existingDaemonId: 'daemon-k8s-pod-7f4',
               contendingDaemonId: 'daemon-mac-studio-01' }

Orchestrator inspects bindings:
  curl -H "Authorization: Bearer $PRISMER_API_KEY" \
    "$PRISMER_CLOUD_BASE/api/im/workspaces/ws_abc/agent-bindings"

Decision: user is on home network, prefer Mac Studio (local).

Action:
  curl -X POST -H "Authorization: Bearer $PRISMER_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"targetDaemonId":"daemon-mac-studio-01","targetDaemonKind":"local",
         "reason":"user on home network, preferring local daemon"}' \
    "$PRISMER_CLOUD_BASE/api/im/agent-bindings/u_agent_ceo/rebind"

Response: boundDaemonId='daemon-mac-studio-01', inFlightTaskCount=2
Orchestrator messages user: "Pinned Team Manager agent to your Mac Studio. 2 tasks finishing on
                            the cloud pod first."
Example 2 — User explicit "pin agent X to laptop"
User: "Make sure DesignAgent always runs on my laptop, not the k8s pod."

Orchestrator (after reading bindings):
  curl -X POST -H "Authorization: Bearer $PRISMER_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"targetDaemonId":"daemon-laptop-9a","targetDaemonKind":"local",
         "reason":"user-explicit: pin to laptop"}' \
    "$PRISMER_CLOUD_BASE/api/im/agent-bindings/u_design_agent/rebind"
Example 3 — Failure to handle gracefully
Orchestrator tries to rebind to a daemon that just went offline:
  POST .../rebind { targetDaemonId: "daemon-k8s-pod-7f4", ... }
  ← 409 { error: "target daemon daemon-k8s-pod-7f4 is stopped" }

Orchestrator should:
  1. Re-read /workspaces/<wsId>/agent-bindings to find a live alternative.
  2. If only one daemon remains and it's already the current owner, do nothing.
  3. Otherwise retry with the live candidate.

Anti-patterns

  • ❌ Calling rebind on every contested event without thinking — flap creates user confusion. Wait until the user signals preference or a clear health signal arrives.
  • ❌ Supplying targetDaemonKind / targetDaemonLabel that contradict the server's inference (e.g. claiming kind=k8s for a deviceType=local container). The server trusts the body so misuse leads to a wrong-shaped UI badge.
  • ❌ Treating inFlightTaskCount > 0 as a hard error — it's informational. The cloud has already redirected new dispatches; existing in-flight work simply finishes on the old route.
  • ❌ Re-binding while another orchestrator is also working on the same workspace without coordination. Use the workspace's orchestrator lease (orchestratorAgentId) to make sure you're the active arbiter before mutating bindings.

© Prismer-AI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in sdk/cloud/catalog/skills/claim-agent-ownership of Prismer-AI/PrismerCloud.

Open the folder on GitHubat commit e5d9444

Compare with similar skills

Claim Agent Ownership next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Claim Agent Ownership compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Claim Agent Ownership this skillPrismer-AI/PrismerCloud1.6k—~3kAutomated safety check: PassMIT
Content To Pipelinetech-leads-club/agent-skills7k—~6.3kAutomated safety check: PassCustom licence
Claimsruvnet/ruflo74k1 repos~1.1kAutomated safety check: PassMIT
Content Productionalirezarezvani/claude-skills28k1 repos~2.8kAutomated safety check: PassMIT
Orchestratesickn33/agentic-awesome-skills47k1 repos~692Automated safety check: PassMIT
Content Creatorsickn33/agentic-awesome-skills47k1 repos~2.5kAutomated safety check: PassMIT

Similar skills

  • Content To Pipeline

    tech-leads-club/agent-skills

    When the user wants to turn content into revenue, build a content-led GTM motion, reverse engineer distribution, or repurpose content across platforms.

    7k GitHub stars~6.3k tokensUpdated 2 days ago
    Writing & ContentAuto-check passed
  • Claims

    ruvnet/ruflo

    Claims-based authorization for agents and operations. An agent skill from ruvnet/ruflo.

    74k GitHub starsUsed in 1 repo~1.1k tokens
    Backend & APIsAuto-check passed
  • Content Production

    alirezarezvani/claude-skills

    Full content production pipeline — takes a topic from blank page to published-ready piece.

    28k GitHub starsUsed in 1 repo~2.8k tokens
    Writing & ContentAuto-check passed
  • Orchestrate

    sickn33/agentic-awesome-skills

    Coordinate focused subagents on substantial work, keep their ownership non-overlapping, and integrate verified results.

    47k GitHub starsUsed in 1 repo~692 tokens
    Agent WorkflowsAuto-check passed
  • Content Creator

    sickn33/agentic-awesome-skills

    Drafts and reviews audience-specific content from supplied brand examples, with local scripts for brand voice and SEO diagnostics, channel templates and a content calendar.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Writing & ContentAuto-check passed
  • Run team-based orchestration for agent squads: work items with owners and scope, agent Kanban state, branch isolation, control pane visibility, and merge gates.

    277k GitHub starsUsed in 1 repo~1.2k tokens
    Agent WorkflowsAuto-check passed

More from Prismer-AI/PrismerCloud

All 88 skills in this repo
  • Prismer Google Workspace

    Prismer-AI/PrismerCloud

    Gives an agent account-scoped access to Gmail, Calendar, Drive, Contacts, Docs and Sheets through the gws CLI or a bundled Python client.

    1.6k GitHub starsUsed in 3 repos~4.2k tokens
    Auto-check passed
  • Prismer Skill Creator

    Prismer-AI/PrismerCloud

    Walks an agent through creating, importing, editing, validating, testing and publishing Prismer Skills with a fixed workflow and bundled scripts.

    1.6k GitHub stars~2.6k tokensUpdated today
    Auto-check: notes
  • Himalaya Email CLI

    Prismer-AI/PrismerCloud

    Operates a mailbox from the terminal with the external Himalaya CLI over IMAP, SMTP, Notmuch or Sendmail, separate from any built-in email gateway adapter.

    1.6k GitHub starsUsed in 2 repos~2.3k tokens
    Auto-check passed
  • Prismer Image Generation

    Prismer-AI/PrismerCloud

    Generates one image from a text prompt with a bundled Node.js helper and delivers it once as the attachment to the current Prismer reply.

    1.6k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Manim Explainer Videos

    Prismer-AI/PrismerCloud

    Produces 3Blue1Brown-style explainer animations with Manim Community Edition for math, algorithms, equations and architecture diagrams, with planning and rendering references.

    1.6k GitHub starsUsed in 2 repos~3.1k tokens
    Auto-check passed
  • Prismer Role Builder

    Prismer-AI/PrismerCloud

    Creates or updates Prismer role templates from a persona, SOP or job description, and turns a role into a working agent that runs its first task through a bundled script.

    1.6k GitHub stars~2.3k tokensUpdated today
    Auto-check: notes

Questions about Claim Agent Ownership

What does Claim Agent Ownership do?

Orchestrator skill for resolving multi-daemon binding contention. Claim Agent Ownership is an agent skill from Prismer-AI/PrismerCloud. Orchestrator skill for resolving multi-daemon binding contention.

How do I install Claim Agent Ownership in Claude Code?

Run `npx skills add Prismer-AI/PrismerCloud --skill claim-agent-ownership -a claude-code`. Or copy the skill folder (sdk/cloud/catalog/skills/claim-agent-ownership in Prismer-AI/PrismerCloud) into .claude/skills/claim-agent-ownership in your project. Claude Code loads it when a task matches its description.

How do I install Claim Agent Ownership in Codex?

Run `npx skills add Prismer-AI/PrismerCloud --skill claim-agent-ownership -a codex`. Or copy the skill folder (sdk/cloud/catalog/skills/claim-agent-ownership in Prismer-AI/PrismerCloud) into .agents/skills/claim-agent-ownership in your project. Codex loads it when a task matches its description.

Can I use Claim Agent Ownership in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Prismer-AI/PrismerCloud --skill claim-agent-ownership -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/claim-agent-ownership, .gemini/skills/claim-agent-ownership, .github/skills/claim-agent-ownership and .opencode/skills/claim-agent-ownership in your project.

What does Claim Agent Ownership need to run?

Going by SKILL.md and its folder, Claim Agent Ownership needs the command-line tools its instructions call (curl) and credentials named PRISMER_API_KEY. Our summary lists: A credential in PRISMER_API_KEY.

Does Claim Agent Ownership access the network?

SKILL.md names 1 domain. In commands or code: prod.docbrew.cn; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Claim Agent Ownership safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Claim Agent Ownership use?

Claim Agent Ownership is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Claim Agent Ownership use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Claim Agent Ownership?

Skills that share tags, products or a category with Claim Agent Ownership: Content To Pipeline (tech-leads-club/agent-skills, 7k stars), Claims (ruvnet/ruflo, 74k stars), Content Production (alirezarezvani/claude-skills, 28k stars) and Orchestrate (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Claim Agent Ownership?

Prismer-AI (a GitHub organization) maintains it in Prismer-AI/PrismerCloud, which has 1,555 GitHub stars. The repository holds 88 skills in this directory. The repository was last updated on September 30, 2026.

Source: Prismer-AI/PrismerCloud on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.