ask-matt
MAmattpocock/skills337k近 7 天新增 4,978 个 star
Search, install, publish, review, and update Marketplace plugins — Skills, MCP connectors, and Experts/Squads (专家/专家团) — through the unified plugin API. Load after octo-shared.
The marketplace is one backend with a single catalog surface: every asset is a
plugin with a plugin_type. All commands authenticate with the active
credential and send its Space context; a bf_* User Bot is resolved to its owner
and authoritative Bot Space by the backend. Unified catalog operations use
/market/api/v1/plugins*; helper operations such as categories, uploads, probes,
and icon presigns use other routes under /market/api/v1/*.
| plugin_type | was | read via |
|---|---|---|
skill | Skill ZIP | skills.md |
connector | MCP listing | mcp.md |
expert | Expert (专家) | expert.md |
expert_team | Squad (专家团) | expert.md |
octo-cli marketplace plugin list --scene-code default --plugin-type skill --q "<kw>"
octo-cli marketplace plugin get --plugin-id <id> --include-relations
scene-code is default. Catalog listing requires --scene-code and
--plugin-type; the owned all-types view is the exception:
octo-cli marketplace plugin list --scene-code default --mode mine
Use immutable plugin_id and review_id values, never names.
Creating with plugin upsert or skill plugin import saves a draft and a
version snapshot; it does not expose the plugin to the Space catalog. Saving an owner's draft for a version-managed Skill,
Expert, or Expert Team leaves its published version in place. For a published
Space listing, submit the draft for review to release the changes. Published
Space connectors use the reviewed update route. Version labels use
MAJOR.MINOR.PATCH (each numeric component is 1–9 digits) and may not move
backward.
Draft saves (plugin upsert) and Skill imports (plugin import) may omit
version: create uses the existing default/package selection and update preserves
the backend's draft-selection rules. For skill, expert and expert_team,
formal publication (plugin publish or plugin review-request create) requires
an explicit MAJOR.MINOR.PATCH version, including private publication. Choose it
at publication time: it may differ from the provisional draft label. The CLI
does not copy a label from the draft or auto-increment it. The server checks
release collisions, upgrade ordering and authorization. Connector behavior is
unchanged.
Before a live publish/review with an omitted or malformed label, the CLI reads
plugin get to identify the resource type and refuses versioned types before
sending the write. A lookup error or unknown type also stops the write. Valid
explicit labels need no extra read. --dry-run remains a network-free preview;
resource-type validation is deferred until execution. If a server rejects a
legacy write with versioned_api_required, follow its hint to update octo-cli
and use the Plugin APIs; neither the error nor this CLI updates itself.
After verifying a saved draft, publish it explicitly:
octo-cli marketplace plugin publish --plugin-id <plugin-id> \
--version 1.2.0 --changelog "What changed"
private plugin's listing state becomes published immediately, but it stays
owner-only and is not exposed in the Space catalog.space plugin follows the authenticated Space's review policy. Automatic
approval is enabled by default when no override is stored, so publication
completes immediately. When automatic approval is disabled, the plugin remains
a draft with pending_review; save the returned review_id for the owner/admin
decision flow.display_status as the user-facing state: draft, pending_review,
published, rejected, or delisted. listing_state is the lower-level
listing axis.Applicants can inspect or cancel their requests:
octo-cli marketplace plugin review-request list --mode mine --status pending
octo-cli marketplace plugin review-request get <review-id>
octo-cli marketplace plugin review-request cancel <review-id>
Space owners/admins review the frozen submission, not mutable live draft data:
octo-cli marketplace plugin review-request list --mode space --status pending
octo-cli marketplace plugin review-request get <review-id>
octo-cli marketplace plugin review-request approve <review-id>
octo-cli marketplace plugin review-request reject <review-id> --reason "Explain the required correction"
A Space owner/admin can take published Space content down; this leaves the plugin editable and eligible for a later publish:
octo-cli marketplace plugin delist --plugin-id <plugin-id> --reason "Policy or maintenance reason"
For a version-managed Skill, Expert or Expert Team (including a published Space resource), read the owner's editable draft, save conditionally, then publish the revision returned by that save. Published Space connectors still use the reviewed update route. An older server without the draft endpoint cannot run this workflow.
set -e
octo-cli marketplace plugin draft get --plugin-id "$id" > current.json
before=$(jq -er '(.data.data // .data).draft_revision' current.json)
# Build edit.json from this draft's writable plugin fields and complete relations.
# Preserve attachments, relation IDs, pins and draft_changelog unless intentionally edited.
octo-cli marketplace plugin upsert --data @edit.json --expected-draft-revision "$before" > saved.json
saved=$(jq -er '(.data.data // .data).draft_revision' saved.json)
octo-cli marketplace plugin publish --plugin-id "$id" --version "$version" \
--changelog "$notes" --expected-draft-revision "$saved"
Stop if a command fails or the revision is missing. On a conflict, read the
draft again and reconcile the competing edits before saving or publishing. Do
not retry with the check removed or use another editor's newer revision to
publish your old edits. Read plugin get after publication to verify the
released content (or check the review if the submission is pending).
Marketplace mutations are not transport-retried. A gateway failure may mean the
server committed the operation, so RESULT_UNKNOWN must be resolved by reading
state before retrying:
plugin list --scene-code default --plugin-type skill --mode mine --page 1 --page-size 100 through the complete owned Skill list,
re-passing --page-size 100 on every page, and compare manifest_json.name
against the stable machine name. Follow the detailed procedure in skills.md.
For experts, expert teams, and connectors, walk plugin list --scene-code default --plugin-type <type> --mode mine --page 1 --page-size 100 until a
short page is returned, re-passing --page-size 100 on every page, and
compare each row's plugin_name exactly with the title submitted by the
create request.
Do not assume manifest_json.name is a machine identity for those non-Skill
types. For every asset type, if multiple rows match exactly, stop as
ambiguous and ask the user which plugin_id is authoritative; never pick a
row automatically. Retry the create only after the relevant scan reaches a
short page with zero exact matches;plugin draft get --plugin-id <id> and compare the
intended version, hashes, and content; use plugin version list where useful;plugin get --plugin-id <id> and inspect display_status /
review_id, then list owned review requests;--q matches human-facing plugin_name and manifest-description substrings,
not the stable manifest_json.name; a page defaults to 20 rows. Keep the same
explicit --page-size on every request, and continue through a short page even
after finding an exact match. Only then decide whether the match is unique;
never stop at the first exact match.
plugin list uses --page / --page-size (default 20, max 100); there is no
--page-all. Filters are --category-id, --q, repeatable --tag, --mode mine, and --sort (newest, oldest, updated, name, placement, views,
installs, downloads, comprehensive).
plugin review-request list and plugin version list are offset-paged with
--page / --page-size (default 20, max 100); neither supports --page-all.
To inspect a complete review queue or version history, keep the same page size
and continue through a short page.
plugin-category list requires --scene-code and --plugin-type.
plugin-tag list accepts optional --scene-code, --plugin-type, --q,
--mode mine, and --limit (default 50, max 100).
Load only the reference matching the task: connector mcp.json + probe,
skill attachment tree + upload/import, or expert/team AGENTS.md + relations.
For a non-paginated command, normalize before reading fields:
payload=$(octo-cli marketplace plugin get --plugin-id <id> | jq -c '.data.data // .data')
Do not apply that to {data:[...], pagination:{...}}; the CLI exposes items at
.data and pagination at ._pagination.
${VAR} placeholders.MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
OBobra/superpowers331k近 7 天新增 4,772 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star