Skip to content
AGH RuntimeSkills

Marketplace

How to discover, install, update, and remove marketplace skills with AGH.

Audience
Operators running durable agent work
Focus
Skills guidance shaped for scanability, day-two clarity, and operator context.

AGH can install community skills from a marketplace registry into the same local skill hierarchy as manual skills. The default registry adapter is ClawHub.

Marketplace operations are available through the CLI and the daemon API. The web Skills page uses the daemon API for remote search, install, update, and removal; the CLI can perform the same operations without requiring the daemon to be running.

Configure the Registry

The default marketplace registry is clawhub. You can leave it implicit, or set it explicitly:

[skills.marketplace]
registry = "clawhub"

Use base_url only when you are pointing AGH at a compatible mirror or test registry:

[skills.marketplace]
registry = "clawhub"
base_url = "https://clawhub.ai/api/v1"

Validation rules:

SettingBehavior
no [skills.marketplace] sectionAGH uses the built-in ClawHub default when a marketplace command runs.
base_url without registryInvalid. The registry name is required when overriding the URL.
registry other than clawhubInvalid today.
base_url schemeMust be http or https, and must include a host.

Search the registry:

agh skill search "database migration" --limit 5

The default search limit is 20. Results include the slug, name, description, author, version, downloads, source, and package type when the registry returns those fields.

Use the slug for install commands:

@author/skill-name

Slugs must match @author/name. Version suffixes are not accepted in the user-facing slug syntax.

The web Marketplace tab performs the same remote search once a query is present. Empty search input does not call the registry because the current ClawHub search API requires a non-empty query.

Install

Install a marketplace skill:

agh skill install @author/refactor-checklist

Install behavior:

  1. AGH resolves the configured registry.
  2. It fetches marketplace detail for the slug.
  3. It downloads the archive into a temporary staging directory under $AGH_HOME/skills/.
  4. It verifies the archive shape and scans content before install.
  5. It computes a deterministic directory hash.
  6. It writes .agh-meta.json.
  7. It moves the skill into $AGH_HOME/skills/<parsed-skill-name>.

Installed marketplace skills then load from the global registry. If the same skill name already exists in a lower source, the higher-precedence source wins according to the normal skill hierarchy.

When installation runs through the daemon API, AGH refreshes the global skills registry before returning so /api/skills and the web Installed tab can reflect the new skill immediately.

After writing the files, AGH verifies that skill discovery can resolve the installed skill as a marketplace skill with matching provenance and an enabled state. If that verification fails, the CLI returns a classified marketplace unavailable error and the daemon API returns an unavailable response. Treat this as a local state problem, not a retry signal: enable a disabled skill, remove or rename a higher-precedence declaration, or remove the broken install directory and install again.

Daemon API

The daemon exposes marketplace skill operations under /api/skills/marketplace on both HTTP and UDS transports:

OperationEndpointBehavior
SearchGET /api/skills/marketplace/search?query=<text>&limit=<n>Searches remote marketplace skills.
InfoGET /api/skills/marketplace/info?slug=<@author/name>Returns full remote marketplace metadata for one skill.
InstallPOST /api/skills/marketplace/installInstalls a remote skill into $AGH_HOME/skills/.
UpdatePOST /api/skills/marketplace/updateChecks or applies updates for one skill or all marketplace-installed skills.
RemoveDELETE /api/skills/marketplace/{name}Removes one installed marketplace skill by local skill name.

Install, update, and remove mutations reject manual skills without marketplace provenance. Successful mutations refresh the daemon skills registry before returning.

Provenance And Verification

Marketplace provenance looks like this:

{
  "hash": "7c0f...",
  "registry": "clawhub",
  "slug": "@author/refactor-checklist",
  "version": "1.0.0",
  "installed_at": "2026-04-16T12:00:00Z"
}

All fields are required. AGH recomputes the installed directory hash on load. If the hash differs, the skill is treated as unsafe and does not enter the registry.

Marketplace content also goes through the same load-time scanner as local skills:

FindingOutcome
critical prompt injection, destructive command, or credential extraction patternSkill is blocked.
sensitive path reference or suspicious tool chainingWarning is logged; skill may load.
body over 50,000 charactersInfo warning is logged.

Marketplace skill MCP servers are blocked unless they are allowed in config.

[skills]
allowed_marketplace_mcp = [
  "@author/postgres-tools",
  "clawhub:@author/filesystem-tools"
]

Accepted consent keys are:

KeyExample
slug@author/postgres-tools
registry and slugclawhub:@author/postgres-tools
installed hash7c0f...

There is no interactive consent prompt today. Add allowlist entries deliberately, review the skill's SKILL.md, and inspect any mcp.json sidecar before allowing marketplace MCP servers.

Marketplace hooks use the same static model with skills.allowed_marketplace_hooks.

Update

Check one installed marketplace skill:

agh skill update refactor-checklist --check

Install the latest available version for one skill:

agh skill update refactor-checklist

Check every installed marketplace skill:

agh skill update --all --check

Update every installed marketplace skill:

agh skill update --all

Update behavior:

CaseBehavior
skill has no .agh-meta.jsonIt is not treated as marketplace-installed and cannot be updated by this command.
--checkAGH reports whether an update is available but does not replace files.
no updateStatus is already up to date.
update available and not check-onlyAGH installs the latest version through the same install pipeline.

Version Pinning

Use --version to request a specific marketplace archive version:

agh skill install @author/refactor-checklist --version 1.2.0

AGH records the installed version in .agh-meta.json for audit and update checks. Version suffixes are still not accepted in slugs; keep the slug as @author/name and pass the version with the flag.

Remove

Remove a marketplace-installed skill:

agh skill remove refactor-checklist

Remove only deletes skills with a valid .agh-meta.json sidecar. Manual user or workspace skills are rejected so the CLI does not silently delete locally authored work.

Inspect Installed Skills

List all visible skills:

agh skill list

List only marketplace skills:

agh skill list --source marketplace

Read full instructions:

agh skill view refactor-checklist

Inspect the winning path, resolver tier, and any shadowed declarations:

agh skill where refactor-checklist

Read one resource file inside the skill directory:

agh skill view refactor-checklist --file references/review-template.md

Resource reads must stay inside the skill directory. AGH rejects traversal and symlink escape attempts.

On this page