hivemind: Skill for Claude Code

.claude/skills/adding-an-agent-provider/SKILL.md

adding-an-agent-provider is a skill for Claude Code from dip497/hivemind. It costs 90 tokens per session (4,007 once invoked), scanned A, original, MIT.

A procedure for connecting a new command-line coding agent to hivemind. It covers researching the real command-line program, implementing the provider, detecting its status, wiring workers, and testing the full lifecycle.

In plain words
What is it for?
It helps add or finish support for coding-agent CLIs such as Kiro, Gemini, Amp, or Cursor, including capability checks, provider code, worker wiring, and human-driven lifecycle tests.
Why use it?
It prevents an agent from appearing integrated while silently failing to accept prompts, report status, handle approvals, or work as a background worker.

Skill for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Codex.

This is dip497/hivemind's own configuration. It tells Claude Code how to work on hivemind itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything hivemind configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dip497/hivemind. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dip497/hivemind/main/.claude/skills/adding-an-agent-provider/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dip497/hivemind

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adding-an-agent-provider

README.md
[![agentmods](https://agentmods.dev/badge/skills/dip497/hivemind/adding-an-agent-provider/github.svg)](https://agentmods.dev/skills/dip497/hivemind/adding-an-agent-provider)
Your own site
<a href="https://agentmods.dev/skills/dip497/hivemind/adding-an-agent-provider"><img src="https://agentmods.dev/badge/skills/dip497/hivemind/adding-an-agent-provider/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for adding-an-agent-provider

Your own site · 80×15
<a href="https://agentmods.dev/skills/dip497/hivemind/adding-an-agent-provider"><img src="https://agentmods.dev/badge/skills/dip497/hivemind/adding-an-agent-provider.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,007 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 55
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 56
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.04007
Opus 5.5 $0.00036 $0.01603
Sonnet 5.5 $0.00018 $0.00801
Haiku 4.5 $0.00009 $0.00401

Measured 4d ago against content hash 7b87a9e18081, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adding-an-agent-provider scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/adding-an-agent-provider/SKILL.md · 250 lines

How it starts

The opening of the file, as written. The whole thing — 250 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Adding an agent provider

Why this exists

An agent is one manifest — agent.yaml, plus the hook asset it ships if it injects hooks or resumes. That is not where agent PRs go wrong. They go wrong one step earlier — in what the author believed about the CLI.

A real example: a PR added an agent and stated "no hook system exposed, status is screen-scrape only". That CLI ships agentSpawn / userPromptSubmit / preToolUse / postToolUse / stop hooks with a JSON stdin contract and a blocking exit code — the same shape hivemind already consumes for claude. Nobody had run --help. The result would have shipped as a "fully-wired agent" that silently cannot be driven.

Today the capabilities you declare are what the control plane believes: declare turnSignal: true for a runtime that never reports a turn and hive ctl read times out on it; declare false and hive ctl workflow --agent <id> refuses up front with exit 7. A wrong capability is a wrong contract. This skill is the procedure that makes the declaration true: research first, tier second, manifest third, and a lifecycle proof that says out loud what works.

The rule

An agent is done when a human can drive it on the canvas and the control plane can drive it as a worker. If you can only reach the first, that is a legitimate PR — but it ships with turnSignal: false and a note, so the UI, the CLI and HCP all say so, never silently.

Nothing agent-specific is compiled into the app. Agents are published to the HiveHub registry and added to a user's machine automatically when their CLI is found. The authoring format for a PR is the same format a user writes by hand — a manifest cannot do anything a user's own file cannot.


Phase 1 — Probe the CLI (never skip, never infer)

Three rules:

  1. Probe the binary that is actually installed. --help beats memory, every time.
  2. Cite a source per answer — a doc URL, a --help line, a file you grepped.
  3. "I could not find it" is a valid answer. Write it that way. Never write "X does not exist" unless you looked and can say where you looked.

Read the full file on GitHub · 250 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +2 lines 7b87a9e18081
  2. 12d ago Changed · +17 lines 2293e6c0248f
  3. 1mo ago Changed · +35 lines 510b53500101
  4. 1mo ago Changed · -17 lines · +6 tokens per session 637af1e476c9
  5. 2mo ago First seen · 213 lines · 84 tokens per session scan A 6bf575ebc040

Subscribe to this mod's changes

adding-an-agent-provider is a skill published in the GitHub repository dip497/hivemind (17 stars, last pushed yesterday), licensed MIT. It adds 90 tokens to every session and 4,007 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

termcanvas-agent-sync-debugging

Diagnose TermCanvas agentmux nodes that fail to appear and terminal canvases that become janky, resize repeatedly, or show corrupted/unreadable xterm text as terminal count grows, plus duplicate terminal views created after a release relaunch. Use when a child agent is missing, restored terminals duplicate or move to…

lout33/termcanvas · 116 tokens

agentmux

Manage TermCanvas agentmux agents on a canvas. Use this whenever the user wants to inspect a TermCanvas canvas, operate the agent graph, spawn child agents, connect agents, delegate with ask, send prompts, read logs, stop or delete agents, understand AGENTMUX session state, or operate TermCanvas as an agent control…

lout33/termcanvas · 87 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

winapp-maui

Package and sign .NET MAUI Windows apps with winapp: publish the Windows head first, then point packaging at the resolved resizetizer manifest. Use for a MAUI MSIX or signed unpackaged build, MAUI packaging in CI, or 'manifest contains unresolved placeholders' errors from winapp package.

microsoft/winappCli · 68 tokens

winui-setup

Install and verify WinUI 3 prerequisites — .NET SDK 8.0.100+, WinApp CLI 0.7+, and Developer Mode; identify additional Native AOT and Windows Sandbox requirements. Use when the user asks to set up or repair the toolchain, or when another WinUI skill finds a missing or outdated prerequisite.

microsoft/winappCli · 73 tokens

vchart-development-assistant

A coding assistant for VChart, a JavaScript chart library used to build visualizations such as bar, line, and pie charts.

VisActor/VChart · 64 tokens