/three-ws-core:sell-an-agent-skillfrom three-ws-core
Publishes an agent skill to the three.ws marketplace with per-call pricing in $THREE or USDC, metered free trials, and payout management. Use when monetizing a skill or checking earnings.
Ships in three-ws-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A priced skill earns per call, not per install and not per month. Two rails credit the same author ledger: the public x402 endpoint any wallet can hit, and in-app calls from agents running on three.ws. The author's share routes to the author's own wallet at settlement, Solana first.
The promoted currency here is $THREE
(FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump). USDC is supported, and priced skills
default to USDC when no mint is named, so pass the $THREE mint explicitly when the user
wants to sell in $THREE.
Everything below needs an API key with write scope, minted at three.ws/dashboard/api:
export THREE_WS_KEY='sk_live_...'
Pick the right one before you start. They live in different tables and behave differently.
| Catalog skill (marketplace listing) | Agent skill price | |
|---|---|---|
| What it is | A row in the public skills catalog with a slug, schema, and content | A price attached to one capability of one agent you own |
| Who can call it | Anyone with a wallet, over x402 | Buyers of that agent's skill, in-app or via Solana Pay |
| Priced by | price_per_call_usd at publish | PUT /api/monetization/prices or bulk pricing |
| Browse at | three.ws/skills | The agent's page, Skills tab |
| Paid rail | GET /api/x402/skill-call?skill=<slug> | Purchase, trial, or in-app delegation |
Doing both is normal: publish the catalog listing so strangers can pay per call, and price it on your agent so the marketplace surfaces it too.
curl -s https://three.ws/api/skills \
-H "authorization: Bearer $THREE_WS_KEY" \
-H 'content-type: application/json' \
-d '{
"name": "Weather report",
"slug": "weather-report",
"description": "Current temperature and wind for any named place, spoken out loud.",
"category": "general",
"tags": ["weather", "voice"],
"is_public": true,
"price_per_call_usd": 0.25,
"schema_json": [
{
"function": {
"name": "reportWeather",
"parameters": {
"type": "object",
"properties": { "place": { "type": "string" } },
"required": ["place"]
}
}
}
],
"content": "When the user asks about weather at a named place, call reportWeather with that place name. Never guess the numbers."
}'
| Field | Rules |
|---|---|
name | 2 to 80 chars |
slug | lowercase, digits and hyphens, up to 60 chars, unique |
description | up to 500 chars, this is the catalog copy |
category | lowercase slug, up to 50 chars, default general |
tags | up to 20 tags, 40 chars each |
schema_json | at least one entry, each { "function": { "name", "parameters" } } |
content | up to 200000 chars, the instructions a buyer receives |
price_per_call_usd | 0 to 10. 0 publishes it free |
is_public | false keeps it unlisted while you test |
201 returns { "skill": { "id": ..., "slug": ... } }.
Browse or verify: GET /api/skills?sort=new (public, sorts popular, new, az).
GET /api/x402/skill-call?skill=<slug> is the paid endpoint:
402 Payment Required with a quote equal to
price_per_call_usd.There is no re-access grant: every invocation is a fresh payment. A free skill
(price_per_call_usd = 0) is rejected here with 409; free skills are fetched from
GET /api/skills/:id instead.
The split. The platform keeps 250 basis points (2.5%) by default, the same as the marketplace fee, and the code clamps the configurable rate at 5000 bps so a misconfiguration can never take more than half a call. Integer math on 6-decimal atomic units, with the platform absorbing the odd atomic, so rounding favors the author:
platform = floor(price * platformBps / 10000)
author = price - platform
A $0.25 call splits to $0.243750 for the author and $0.006250 for the platform.
Full mechanics: three.ws/docs/skill-royalties.
This is the per-agent price the marketplace and the agent page show.
curl -s -X PUT https://three.ws/api/monetization/prices \
-H "authorization: Bearer $THREE_WS_KEY" \
-H 'content-type: application/json' \
-d '{
"agent_id": "<agent uuid>",
"skill_name": "weather-report",
"price_usdc": 25000,
"currency_mint": "FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump",
"chain": "solana"
}'
Read the field name carefully. price_usdc is the human-unit amount of whatever
currency_mint you name, converted at 6 decimals. $THREE has 6 decimals, so 25000
means 25,000 $THREE. Leave currency_mint out and it defaults to USDC on Solana.
skill_name must match ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$.
GET /api/monetization/prices?agent_id=<uuid>DELETE /api/monetization/prices with { agent_id, skill_name }gate_type: "nft" plus
nft_collection_mint and no price.The bulk route carries the options the single-price route does not, and it replaces the agent's whole price list, so send every skill you want to keep priced:
curl -s -X PUT "https://three.ws/api/agents/<agent uuid>/skills-pricing" \
-H "authorization: Bearer $THREE_WS_KEY" \
-H 'content-type: application/json' \
-d '{
"prices": [
{
"skill": "weather-report",
"amount": 25000000000,
"currency_mint": "FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump",
"chain": "solana",
"trial_uses": 3,
"pricing_type": "fixed"
}
]
}'
amount here is atomic units (25,000 $THREE at 6 decimals is 25000000000), unlike
price_usdc above. Other fields: trial_uses 0 to 10 metered free runs,
time_pass_hours (1 to 720) with time_pass_amount for a timed pass, and
pricing_type: "pwyw" with minimum_amount for pay-what-you-want (the minimum cannot
exceed the suggested amount).
A trial only converts if the buyer can see it draining, so check both sides:
# The seller view: trials running on your skills, plus the revenue in the queue
curl -s "https://three.ws/api/marketplace/trial-status?role=seller" \
-H "authorization: Bearer $THREE_WS_KEY"
Guided walkthrough: three.ws/tutorials/sell-a-skill-with-a-trial.
# Set the payout wallet the settlement routes to
curl -s -X PUT https://three.ws/api/monetization/wallet \
-H "authorization: Bearer $THREE_WS_KEY" -H 'content-type: application/json' \
-d '{ "agent_id": "<agent uuid>", "solana_address": "<base58 address>", "preferred_network": "solana" }'
# Earnings across every rail
curl -s https://three.ws/api/users/me/earnings -H "authorization: Bearer $THREE_WS_KEY"
# Per-skill analytics for one agent
curl -s "https://three.ws/api/creators/skill-analytics?agent_id=<uuid>&days=30" \
-H "authorization: Bearer $THREE_WS_KEY"
The browser cockpit for all of it is Creator Studio at
three.ws/dashboard/creator: the royalty ledger
newest first, per-skill revenue, pricing rules, and withdrawals
(POST /api/monetization/withdrawals with { agent_id, amount_usdc }).
Use /api/users/me/earnings, not /api/users/earnings: the bare path is swallowed by
the /api/users/:id catch-all.
curl -s "https://three.ws/api/skills/license-onchain?wallet=<base58>&skill=weather-report&agent_id=<uuid>"
Public, no auth: it reads the license PDA from the Solana skill_license program and
reports owned, revoked, and an explorer link. Use it when a buyer disputes access or
when another service needs proof it can verify itself.
| Response | Meaning | Fix |
|---|---|---|
400 validation_error on publish | Slug is not lowercase-hyphen, or schema_json is empty | Follow the field table above |
409 on skill-call | The skill is free | Set a non-zero price_per_call_usd, or fetch it free from /api/skills/:id |
400 invalid mint address | currency_mint is not base58 | A typo becomes an unpayable listing, so the API refuses it |
403 forbidden | The agent belongs to another account | Price only agents the key's account owns |
| Price set but nothing sells | No trial, or the skill is unlisted | Check is_public, add trial_uses, and link the agent page |
What SKILL.md sets; muted values are Claude Code's defaults
The user has a capability and wants income from it. To author the skill first, use build-an-agent-skill. To sell a whole HTTP API instead of an agent skill, use monetize-service. To buy someone else's skill, use hire-an-agent.
Three short reads, in order
three-ws, agent-monetization, x402, skill-marketplace, crypto-payments
npx claudepluginhub nirholas/three.ws --plugin three-ws-core49 skills in this plugin
/anatomyExplain how a machine works as an interactive isometric 3D cutaway. Use when the user asks how an engine, turbine, reactor, pump, clock, motor or any mechanism works and wants to see it, or types "/anatomy <machine>", for example "/anatomy explain how a big airliner turbofan engine like the A380's makes thrust, interactive". Produces a shareable three.ws link with real moving parts, shader effects (fire, exhaust, plasma, water, steam, sparks, arcs), flows, a section cut, an exploded view and a guided tour./authenticate-walletSign in to the wallet. Use when you or the user want to log in, sign in, connect, or set up the wallet, or when any wallet operation fails with authentication or "not signed in" errors. This skill is a prerequisite before sending, trading, or funding./build-an-agent-skillWrite a real three.ws agent skill bundle (manifest.json + SKILL.md + tools.json + handlers.js) that gives a 3D agent a new capability, then install it on an agent and test it. Use when you or the user want to build, write, author, or code a custom skill, capability, tool, or ability for a three.ws agent or an <agent-3d> embed ("give my agent a new skill", "make my agent able to check the weather", "write a custom tool for my avatar", "add a gesture skill"). Covers the four-file bundle layout, the handler context API, the sandbox limits, trust policy, and how to install the bundle./connect-three-ws-mcpConnect any MCP client (Claude Code, Claude Desktop, the Agent SDK, or a custom one) to the three.ws MCP servers, so the model can generate 3D models and avatars, read and write agent data, and pay for services. Use when you or the user want to connect, add, install, configure, wire up, or debug three.ws MCP, an MCP server for 3D or avatars or agent wallets, a .mcp.json entry, or "give Claude access to three.ws". Also use to pick which of the hosted servers to add, and to test a connection that is not working./create-3d-avatarTurn a text prompt (or reference image) into a rigged, animation-ready 3D avatar (GLB). Use when you or the user want to create, generate, or make a 3D avatar, character, or humanoid figure that can be posed and animated, for example "make a 3D avatar of a knight", "generate a character I can animate", "create a rigged astronaut". Generates the mesh and adds a humanoid skeleton in one step. Returns a GLB URL plus a pose-studio link./create-a-three-ws-agentCreate a real three.ws AI agent (identity, 3D body, custodial Solana wallet, persona) from the command line and get its live public page. Use when you or the user want to create, build, deploy, launch, or set up an AI agent, a 3D agent, an on-chain agent, or "my own agent" on three.ws, attach a 3D body to an existing agent, edit an agent's persona or brain, or list the agents an account already owns. Returns the agent id, its Solana wallet address, and the public URL anyone can visit and chat with.Other plugins' skills for the same job