agentleFS
brianonbased-devbrianonbased-dev/HoloScript/.claude/skills/marketplace/SKILL.md

marketplace

Skill10 starsChanged 3 months agoMITView on GitHub

Agent-facing surface for @holoscript/marketplace-api. Use when publishing, searching, purchasing, downloading, installing, or verifying marketplace traits, skills, plugins, AST assets, and Hololand x402 economy routes.

  • Sends data out

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify signing keys and reputation:

    line 220
  2. Distinctive:

    Read the relevant route file before claiming a route does or does not exist.

    line 287
  3. Very specific:

    Use Authorization: Bearer $MARKETPLACE_AUTH_TOKEN for protected publish, rate, install, key, unpublish, and verification calls.

    line 288
  4. Very specific:

    Treat 402 as an expected x402 challenge, not a server failure.

    line 290
  5. Distinctive:

    Run this after editing the skill or marketplace route surface:

    line 298

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/marketplace - HoloScript Marketplace API

Command: $ARGUMENTS

You are the agent surface for @holoscript/marketplace-api. Do not rebuild marketplace, x402, plugin, skill, or AST asset flows ad hoc. Use the shipped Express routes in packages/marketplace-api/src/server.ts.

Source Files

SurfaceSourceMounted At
Traitspackages/marketplace-api/src/routes.ts/api/v1
Skillspackages/marketplace-api/src/skillRoutes.ts/api/v1/skills
Pluginspackages/marketplace-api/src/pluginRoutes.ts/api/v1
Hololand x402packages/marketplace-api/src/hololandRoutes.ts/api/v1
AST assetspackages/marketplace-api/src/economy/ast-licensing-middleware.ts/api/v1
Server wiringpackages/marketplace-api/src/server.tsroot app

Environment

Load credentials from the local environment first:

MARKETPLACE_API_URL="${MARKETPLACE_API_URL:-http://localhost:3000/api/v1}"
MARKETPLACE_AUTH_TOKEN="${MARKETPLACE_AUTH_TOKEN:-}"

Server startup:

pnpm --filter @holoscript/marketplace-api dev

Useful server env:

VariablePurpose
PORT / HOSTExpress listen address
CORS_ORIGINSComma-separated browser origins
TRUST_PROXY=trueEnable proxy trust behind Railway/nginx
DATABASE_URLUse Postgres trait registry instead of in-memory registry
MARKETPLACE_AUTH_TOKENBearer token for protected publish/rate/install/unpublish calls
X-Payment-ID headerReceipt id for paid skill/plugin downloads
X-PAYMENT headerBase64 x402 payload for AST asset retrieval

Health And Discovery

curl -s "$MARKETPLACE_API_URL/health"
curl -s "$MARKETPLACE_API_URL/metrics"
curl -s "$MARKETPLACE_API_URL/plugins-health"
curl -s "$MARKETPLACE_API_URL/skills/search?limit=5"

Canonical Routes

FlowMounted route
Trait search/publish/api/v1/traits
Trait download/api/v1/traits/<trait-id>/download
User verification read/api/v1/users/<user-id>/verification
Verification request/api/v1/verification
Skill search/api/v1/skills/search
Skill publish/api/v1/skills/publish
Skill purchase/api/v1/skills/<skill-id>/purchase
Skill download/api/v1/skills/<skill-id>/download
Skill install/api/v1/skills/<skill-id>/install
Plugin search/publish/api/v1/plugins
Plugin purchase/api/v1/plugins/<plugin-id>/purchase
Plugin download/api/v1/plugins/<plugin-id>/download
Plugin install planning/api/v1/plugins/<plugin-id>/install-plan
Plugin provenance verify/api/v1/plugins/<plugin-id>/provenance
Plugin signing keys/api/v1/keys
Hololand x402 callback/api/v1/payments/x402/callback
VRR twin creation/api/v1/create-vrr-twin
Quest creation/api/v1/create-quest
StoryWeaver mint/api/v1/mint-story_weaver-book
Business VRR twin read/api/v1/business/<business-id>/vrr-twin
Agent quest read/api/v1/agent/<agent-id>/quests
AST asset register/list/api/v1/ast-assets
AST asset manifest/api/v1/ast-assets/<asset-id>/manifest
AST asset gated source/api/v1/ast-assets/<asset-id>

Trait Flows

Search:

curl -s "$MARKETPLACE_API_URL/traits?q=physics&platform=web&verified=true&limit=10"
curl -s "$MARKETPLACE_API_URL/traits/popular?limit=10"
curl -s "$MARKETPLACE_API_URL/traits/recent?limit=10"

Publish requires Authorization: Bearer <token>:

curl -s -X POST "$MARKETPLACE_API_URL/traits" \
  -H "Authorization: Bearer $MARKETPLACE_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "demo_trait",
    "version": "1.0.0",
    "description": "Reusable trait published through the marketplace API.",
    "license": "MIT",
    "keywords": ["demo"],
    "platforms": ["web"],
    "category": "utility",
    "source": "trait demo_trait { }"
  }'

Download and stats:

curl -s "$MARKETPLACE_API_URL/traits/<trait-id>/download?version=1.0.0"
curl -s "$MARKETPLACE_API_URL/traits/<trait-id>/stats"

Verify a creator:

curl -s "$MARKETPLACE_API_URL/users/<user-id>/verification"
curl -s -X POST "$MARKETPLACE_API_URL/verification" \
  -H "Authorization: Bearer $MARKETPLACE_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type":"email","value":"creator@example.com"}'

Skill Marketplace Flows

Search and inspect:

curl -s "$MARKETPLACE_API_URL/skills/search?q=workflow&pricing=free&limit=10"
curl -s "$MARKETPLACE_API_URL/skills/categories"
curl -s "$MARKETPLACE_API_URL/skills/<skill-id>"

Publish:

curl -s -X POST "$MARKETPLACE_API_URL/skills/publish" \
  -H "Authorization: Bearer $MARKETPLACE_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d @skill-package.json

Purchase and download paid skills:

curl -i -X POST "$MARKETPLACE_API_URL/skills/<skill-id>/purchase" \
  -H "Authorization: Bearer $MARKETPLACE_AUTH_TOKEN"

curl -s "$MARKETPLACE_API_URL/skills/<skill-id>/download" \
  -H "Authorization: Bearer $MARKETPLACE_AUTH_TOKEN" \
  -H "X-Payment-ID: <x402-receipt-id>"

Install and verify:

curl -s -X POST "$MARKETPLACE_API_URL/skills/<skill-id>/install" \
  -H "Authorization: Bearer $MARKETPLACE_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"workspacePath":"C:/path/to/workspace"}'

curl -s -X POST "$MARKETPLACE_API_URL/skills/<skill-id>/test" \
  -H "Authorization: Bearer $MARKETPLACE_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Run the skill smoke prompt"}'

Plugin Marketplace Flows

Search and inspect:

curl -s "$MARKETPLACE_API_URL/plugins?q=renderer&signed=true&limit=10"
curl -s "$MARKETPLACE_API_URL/plugins/<plugin-id>"
curl -s "$MARKETPLACE_API_URL/plugins/<plugin-id>/versions"
curl -s "$MARKETPLACE_API_URL/plugins/<plugin-id>/provenance"

Publish:

curl -s -X POST "$MARKETPLACE_API_URL/plugins" \
  -H "Authorization: Bearer $MARKETPLACE_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d @plugin-package.json

Purchase, download, and install-plan:

curl -i -X POST "$MARKETPLACE_API_URL/plugins/<plugin-id>/purchase"

curl -s "$MARKETPLACE_API_URL/plugins/<plugin-id>/download?version=1.0.0" \
  -H "X-Payment-ID: <x402-receipt-id>"

curl -s -X POST "$MARKETPLACE_API_URL/plugins/<plugin-id>/install-plan" \
  -H "Content-Type: application/json" \
  -d '{"targetStudioVersion":"7.0.0","targetPlatform":"web","installDependencies":true}'

Verify signing keys and reputation:

curl -s -X POST "$MARKETPLACE_API_URL/keys" \
  -H "Authorization: Bearer $MARKETPLACE_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"publicKey":"<ed25519-or-rsa-public-key>","label":"creator laptop"}'

curl -s "$MARKETPLACE_API_URL/authors/<author-id>"

Hololand x402 Flows

Callback endpoint used by facilitators:

curl -s -X POST "$MARKETPLACE_API_URL/payments/x402/callback" \
  -H "Content-Type: application/json" \
  -d @x402-callback.json

Protected creation routes return 402 until a valid x402 payment is attached:

curl -i -X POST "$MARKETPLACE_API_URL/create-vrr-twin" \
  -H "Content-Type: application/json" \
  -d '{"business_id":"biz_123","geo_location":"33.4484,-112.0740","inventory_api":"https://example.com/inventory"}'

curl -i -X POST "$MARKETPLACE_API_URL/create-quest" \
  -H "Content-Type: application/json" \
  -d '{"business_id":"biz_123","narrative":"Guide visitors through the venue."}'

curl -i -X POST "$MARKETPLACE_API_URL/mint-story_weaver-book" \
  -H "Content-Type: application/json" \
  -d '{"world_id":"world_123"}'

Read-side routes:

curl -s "$MARKETPLACE_API_URL/business/<business-id>/vrr-twin"
curl -s "$MARKETPLACE_API_URL/agent/<agent-id>/quests"

AST Asset x402 Flows

Register and list:

curl -s -X POST "$MARKETPLACE_API_URL/ast-assets" \
  -H "Content-Type: application/json" \
  -d '{"source":"object demo { }","author":"agent","assetId":"demo-asset"}'

curl -s "$MARKETPLACE_API_URL/ast-assets"
curl -s "$MARKETPLACE_API_URL/ast-assets/<asset-id>/manifest"

Retrieve gated source:

curl -i "$MARKETPLACE_API_URL/ast-assets/<asset-id>"
curl -s "$MARKETPLACE_API_URL/ast-assets/<asset-id>" \
  -H "X-PAYMENT: <base64-x402-payload>"

Agent Rules

  • Read the relevant route file before claiming a route does or does not exist.
  • Use Authorization: Bearer $MARKETPLACE_AUTH_TOKEN for protected publish, rate, install, key, unpublish, and verification calls.
  • Treat 402 as an expected x402 challenge, not a server failure.
  • Preserve WWW-Authenticate, X-PAYMENT, X-PAYMENT-RESPONSE, and X-Payment-ID headers in payment flows.
  • For local smoke tests, prefer in-memory services through createApp() unless the task explicitly requires Postgres/Railway validation.

Smoke Verification

Run this after editing the skill or marketplace route surface:

pnpm verify:claude-plugin-skills
pnpm verify:marketplace-skill
pnpm --filter @holoscript/marketplace-api exec vitest run src/__tests__/server-startup.test.ts src/__tests__/SkillMarketplacePayment.test.ts src/__tests__/PluginMarketplace.test.ts

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.