Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Marketplace API

Canonical reference: docs/api-reference.md (generated endpoint directory) — this page is a task-oriented summary.

The Skills Marketplace allows users to publish, discover, and share agent skills.

Browse Skills

GET /api/v1/marketplace

List published skills. (POST to the same path publishes a skill — see Publish Skill.)

Query parameters:

ParameterDefaultDescription
sortcreated_atSort order: downloads or created_at (featured skills pin first)
tag—Filter by tag (singular)
limit50Max results (clamped 1..500; hostile values degrade to the default)
offset0Pagination offset (page/per_page also accepted)

Response — a flat {"skills": [...]} envelope (the marketplace deliberately does NOT use the {items, total, has_more} paginated shape, so a truncated page is not detectable from the response alone):

{
  "skills": [
    {"name": "code-review", "author_uuid": "user-uuid", "description": "...", "tags": ["code"], "downloads": 42, "featured": false, "avg_rating": 4.5, "rating_count": 2, "version": "1.0"}
  ]
}

Search Skills

GET /api/v1/marketplace/search?q=QUERY

Search by name or description.

Response:

{
  "skills": [ ]
}

Skill Detail

GET /api/v1/marketplace/:name

Get skill detail by name. Returns the first match.

{
  "skills": [ {"name": "code-review", "author_uuid": "user-uuid", "description": "...", "body": "skill content...", "downloads": 42, "created_at": 1745600000000} ]
}

GET /api/v1/marketplace/:name/:author

Get a specific skill, disambiguated by author UUID. (DELETE to the same path deletes the skill — see Delete Skill.)

Publish Skill

POST /api/v1/marketplace

Publish a skill. Auth required. The publish limiter (per-user, rpm 60 / burst 10) is DISABLED by default (rate_limit_enabled=false) — no 429s unless the operator enables it. There is no “10 publishes per hour” limit.

Request body:

{
  "name": "my-skill",
  "description": "Short description",
  "tags": ["tag1", "tag2"],
  "body": "Full SKILL.md content (max 4096 chars)",
  "version": "1.003.0",
  "triggers": [],
  "arguments": []
}

Reserved names (search, reports, dismiss, feature, rate, ratings) are rejected.

Response: 201 with {"status": "created", "name": "my-skill"}, or 200 with {"status": "updated", "name": "my-skill"} on update. 413 if body_too_large.

Delete Skill

DELETE /api/v1/marketplace/:name/:author

Delete a published skill. Author or admin only.

Response: 200 with {"status": "deleted"}; 403 if not the author or admin; 404 if not found.

Report Skill

POST /api/v1/marketplace/:name/:author/report

Report a skill for moderation. Auth required.

Request body: {"reason": "description of issue"}

Response: 201 with {"report_id": "..."}.

Admin: Reports

GET /api/v1/marketplace/reports

List pending reports. Admin only.

{
  "reports": [
    {"id": "...", "skill_name": "...", "author_uuid": "...", "reporter_uuid": "...", "reason": "...", "timestamp": 1745600000000}
  ]
}

Admin: Dismiss Report

POST /api/v1/marketplace/reports/:id/dismiss

Dismiss a report by id. Admin only.

Response: 200 with {"status": "dismissed"}.

Admin: Feature Skill

POST /api/v1/marketplace/feature

Feature or unfeature a skill. Admin only.

Request body: {"name": "...", "author": "...", "featured": true}

Rate Skill

POST /api/v1/marketplace/rate

Rate a skill. Auth required (401 authentication_required without a session), no rate limiter on this endpoint, one rating per user per skill.

Request body: {"name": "...", "author": "...", "rating": 5, "review": "..."}

Responses: 201 {"status": "created"} · 409 duplicate_rating (re-rating is a 409, not an update) · 400 missing_fields · 400 invalid_rating.

Skill Ratings

GET /api/v1/marketplace/ratings?name=NAME&author=AUTHOR

Get aggregate ratings for a skill. Both name and author are required — either missing answers 400 missing_name_or_author.

{"ratings": [{"user_uuid": "...", "rating": 5, "review": "...", "created_at": 1745600000000}], "avg_rating": 4.5, "rating_count": 1}