# API Source: https://docs.skilldock.io/api OpenAPI-based overview of the SkillDock API for discovery, publishing, commerce, and payouts. ## Overview The canonical SkillDock API specification is available at: * [https://api.skilldock.io/openapi.json](https://api.skilldock.io/openapi.json) The spec is `OpenAPI 3.0.0` and currently reports: * Title: `Skilldock API` * Version: `0.1.0` It includes public discovery/search endpoints, auth flows (including CLI OAuth sessions), skill publishing/release endpoints, reviews, commerce/buy flows, seller balances/payouts, namespaces, and file downloads. ## API reference Use the OpenAPI spec as the source of truth for endpoint paths, request/response schemas, and error codes. ### Base URLs * API base URL: `https://api.skilldock.io` * OpenAPI JSON: `https://api.skilldock.io/openapi.json` ### Main endpoint groups in the current spec * Health and registry stats: * `/health` * `/v1/stats` * Discovery, tags, trends, and search: * `/v1/tags` * `/v1/skills` * `/trends` * `/v2/search` * `/v3/search` * Reviews and review media: * `/v1/skills/{namespace}/{slug}/reviews` * `/v1/reviews/{id}/images` * `/v1/reviews/{id}/flag` * `/v1/review-images/{id}` * Auth and CLI OAuth session flow: * `/v1/auth/google` * `/v1/me` * `/auth/cli/sessions` * `/auth/cli/sessions/{session_id}` * `/auth/google/start` * `/auth/google/callback` * Tokens: * `/v1/tokens` * `/v1/tokens/{token_id}` * Namespaces and membership: * `/v1/namespaces` * `/v1/namespaces/{slug}` * `/v1/me/namespaces` * Skills, releases, validation, and publishing-related resources: * `/v1/skills/validate` * `/v1/skills/{namespace}/{slug}` * `/v1/skills/{namespace}/{slug}/releases` * `/v1/skills/{namespace}/{slug}/releases/{version}` * `/v1/skills/{namespace}/{slug}/releases/{version}/SKILL.md` * `/v1/skills/{namespace}/{slug}/releases/{version}/properties` * `/v1/skills/to-prompt` * Commerce, pricing, purchase, invoices, and sales: * `/v1/skills/{namespace}/{slug}/commerce` * `/v1/skills/{namespace}/{slug}/prices` * `/v1/skills/{namespace}/{slug}/buy` * `/v1/skill-purchases/invoices/{invoice_id}` * `/v1/me/sales` * `/v1/skills/{namespace}/{slug}/sales` * Payout methods, balances, and payout requests: * `/v1/me/payout-methods` * `/v1/me/payout-methods/ton` * `/v1/me/payout-methods/stripe` * `/v1/me/balance` * `/v1/me/balance/transactions` * `/v1/me/payout-requests` * File downloads: * `/v1/files/{id}` * `/v1/files/{id}/download` ### Notes from the current schema * Payment provider enums in purchase flows include `ton` and `stripe`. * Payout method kinds include `ton_wallet` and `stripe`. * Many endpoints return standard error responses such as `400`, `401`, `403`, `404`, `409`, `429`, and `500` (with endpoint-specific variants like `413` for image upload size limits). ## SDK Use the OpenAPI spec to generate clients in your preferred language, or use the SkillDock CLI for common workflows. ### Current recommendation * For publish/install flows: use the `skilldock` CLI * For custom apps/services: generate a client from `https://api.skilldock.io/openapi.json` * For direct HTTP usage: call the API endpoints with a bearer token where required ## MCP MCP documentation for SkillDock API integrations is not published yet on this page. Until then, use one of these: * The OpenAPI spec directly * The `skilldock` CLI in tool-enabled environments ## Integration examples Examples below use the current public API shape from the OpenAPI spec. ### Public health check ```bash theme={null} curl https://api.skilldock.io/health ``` ### Registry stats ```bash theme={null} curl https://api.skilldock.io/v1/stats ``` ### Search public skills ```bash theme={null} curl "https://api.skilldock.io/v1/skills?q=docker&page=1&per_page=20" ``` ### Create CLI auth session (rate limited) ```bash theme={null} curl -X POST https://api.skilldock.io/auth/cli/sessions ``` ### Validate a local skill package payload (endpoint reference) ```bash theme={null} curl -X POST https://api.skilldock.io/v1/skills/validate ``` # SkillDock overview Source: https://docs.skilldock.io/index Install the SkillDock CLI, explore the API, and get help. ## What is SkillDock? SkillDock is a skills platform. Use the CLI and API to search, install, and publish skills. ## Quick install ```bash theme={null} pip install skilldock skilldock --version ``` ## Call the API * OpenAPI: [http://api.skilldock.io/openapi.json](http://api.skilldock.io/openapi.json) * Base URL: [https://api.skilldock.io](https://api.skilldock.io) * Auth: use your SkillDock token (Bearer). ## Basic CLI usage See the CLI quickstart: [https://skilldock.io/skill/skilldock/skilldock-cli-usage?output=plain](https://skilldock.io/skill/skilldock/skilldock-cli-usage?output=plain) Common commands: ```bash theme={null} skilldock auth login # browser auth skilldock skills search "docker" skilldock skill show skilldock/skilldock-publisher skilldock install acme/my-skill ``` ## Support * Email: [support@skilldock.io](mailto:support@skilldock.io) # Publish Source: https://docs.skilldock.io/publish How to publish SkillDock skills with the CLI, including auth, tokens, verification, and releases. ## Overview Install the publisher helper skill or open its listing: * `skilldock install skilldock/skilldock-publisher` * [https://skilldock.io/skill/skilldock/skilldock-publisher](https://skilldock.io/skill/skilldock/skilldock-publisher) This guide covers the end-to-end CLI workflow to authenticate, package, verify, and publish a skill release. ## How to publish ### Required Inputs Collect these values before running commands: * `BASE_URL` (default `https://api.skilldock.io`) * `OPENAPI_URL` (default `https://api.skilldock.io/openapi.json`) * `NAMESPACE` (publisher namespace, for example `myorg`) * `SLUG` (skill id, for example `my-skill`) * `VERSION` (release version, for example `1.2.3`) * `SKILL_PATH` (local folder containing `SKILL.md`) ### Auth once, then use a token Browser auth: ```bash theme={null} skilldock auth login ``` For headless environments: ```bash theme={null} skilldock auth login --no-open ``` Create and save a long-lived token (avoids repeated OAuth): ```bash theme={null} skilldock tokens create --save ``` Check active credential: ```bash theme={null} skilldock auth status ``` Manage tokens: ```bash theme={null} skilldock tokens list skilldock tokens revoke ``` ### Tags and links Tags: * `skilldock` * `cli` * `auth` * `oauth` * `publishing` * `releases` * `tokens` * `verification` * `troubleshooting` * `rate-limits` Listing / Home: * [https://skilldock.io/skill/skilldock/skilldock-publisher](https://skilldock.io/skill/skilldock/skilldock-publisher) ### 1) Install CLI via pip Use Python `3.10+`. ```bash theme={null} python3 -m pip install --upgrade skilldock skilldock --version ``` If multiple Python interpreters exist, use: ```bash theme={null} python3 -m pip show skilldock ``` ### 2) Configure API endpoint (if non-default) ```bash theme={null} skilldock config set --base-url "$BASE_URL" --openapi-url "$OPENAPI_URL" skilldock config show ``` ### 3) Authenticate with Google OAuth Run browser login: ```bash theme={null} skilldock auth login ``` Behavior: * The CLI creates an auth session. * The CLI prints an `auth_url` and opens the browser (or prints a `.../auth/google/start?session_id=...` link when `--no-open` is used). * After Google approval, the CLI polls until a token is issued. * The CLI stores the token in local SkillDock config. Validate auth: ```bash theme={null} skilldock auth status skilldock auth inspect ``` If browser auto-open fails or you are on a headless box: ```bash theme={null} skilldock auth login --no-open # Copy the printed https://api.skilldock.io/auth/google/start?session_id=... URL # Open it in a browser to approve, then wait for CLI to finish ``` If you hit HTTP `429` (rate limit is approximately 5 attempts/minute), wait a full minute before retrying. ### 4) Create and manage API tokens Create a long-lived token and save it as default: ```bash theme={null} skilldock tokens create --save ``` Create a scoped/expiring token: ```bash theme={null} skilldock tokens create --scope skills:write --scope skills:read --expires-in-days 90 --save ``` List tokens: ```bash theme={null} skilldock tokens list ``` Revoke a token (delete token credential): ```bash theme={null} skilldock tokens revoke ``` ### 5) Create a new local skill (manual scaffold) SkillDock currently packages existing folders. It does not provide a dedicated scaffold command. Create the folder: ```bash theme={null} mkdir -p "$SKILL_PATH" ``` Create the required `SKILL.md` file at the skill root: ```markdown theme={null} --- name: my-skill description: Clear trigger-oriented description of what this skill does and when to use it. --- # My Skill ## What It Does - Describe concrete behavior. ## Inputs - List required inputs. ## Workflow 1. Step one. 2. Step two. 3. Step three. ``` Optional files: * `requirements.txt` * Scripts used by the skill * `references/` or assets ### 6) Format a good skill Follow these rules: * Keep frontmatter minimal: `name` and `description` * Use a specific description that includes trigger conditions * Keep instructions procedural and command-first * Include required inputs and expected outputs * Keep runnable commands copy-paste safe * Keep the folder clean; avoid virtualenvs, build folders, and git metadata in the published artifact Packaging constraints enforced by the CLI packager: * `SKILL.md` must exist at skill root * Symbolic links are skipped * Common junk folders are excluded (`.git`, `.venv`, `venv`, `node_modules`, `dist`, `build`, caches) * Zip files larger than `10 MiB` emit a warning ### 7) Verify before publish Run package verification: ```bash theme={null} skilldock skill verify "$SKILL_PATH" ``` Use a dry-run upload to validate the publish payload without a network write: ```bash theme={null} skilldock skill upload \ --namespace "$NAMESPACE" \ --slug "$SLUG" \ --version "$VERSION" \ --path "$SKILL_PATH" \ --dry-run ``` ### 8) Publish new skill or release version Create the namespace if needed: ```bash theme={null} skilldock namespaces create "$NAMESPACE" skilldock namespaces list ``` Publish a release: ```bash theme={null} skilldock skill upload \ --namespace "$NAMESPACE" \ --slug "$SLUG" \ --version "$VERSION" \ --path "$SKILL_PATH" \ [--homepage-url https://example.com] ``` Publish a private release: ```bash theme={null} skilldock skill upload \ --namespace "$NAMESPACE" \ --slug "$SLUG" \ --version "$VERSION" \ --path "$SKILL_PATH" \ --visibility private \ [--homepage-url https://example.com] ``` Publish a new version: ```bash theme={null} VERSION=1.2.4 skilldock skill upload \ --namespace "$NAMESPACE" \ --slug "$SLUG" \ --version "$VERSION" \ --path "$SKILL_PATH" \ [--homepage-url https://example.com] ``` Homepage URL notes: * Optional; sent as a query param * Backend precedence: query > multipart > `SKILL.md` > existing DB * Validation: `http`/`https` only; length `<= 2048` * Leave blank to keep the existing value unchanged Dependencies: * Declare in `SKILL.md` frontmatter under `dependencies:` using semver ranges (for example `>=0.1.0 <0.2.0`) * Or pass repeatable `--dependency "namespace/skill@"` flags on upload * API precedence merges frontmatter + CLI flags; invalid or missing dependency skills fail upload * Self-dependency is rejected Examples: ```yaml theme={null} # Frontmatter example dependencies: - namespace: core skill: base-utils version_requirement: ">=1.2.0 <2.0.0" ``` ```bash theme={null} # CLI flag example skilldock skill upload \ --namespace "$NAMESPACE" \ --slug "$SLUG" \ --path "$SKILL_PATH" \ --dependency "core/base-utils@>=1.2.0 <2.0.0" \ --dependency "tools/lint@~2.0.0" ``` ### 9) Search existing skills Free-text search: ```bash theme={null} skilldock skills search "docker" ``` Filter by namespace or tag: ```bash theme={null} skilldock skills search --namespace "$NAMESPACE" --tag "python" ``` Machine-readable output: ```bash theme={null} skilldock skills search "docker" --json ``` ### 10) Download and install skills locally Install the latest version: ```bash theme={null} skilldock install acme/my-skill ``` Install an exact version: ```bash theme={null} skilldock install acme/my-skill --version 1.2.3 ``` Install to a custom directory (for example Codex home skills): ```bash theme={null} skilldock install acme/my-skill --skills-dir "$CODEX_HOME/skills" ``` Notes: * The install command downloads the release archive and resolves dependencies recursively * The CLI writes local manifest and lock files (`.skilldock.json`, `.skilldock.lock.json`) ### 11) Delete workflows Use the right delete path for the target object. Delete a local installed skill: ```bash theme={null} skilldock uninstall acme/my-skill ``` Delete an API token: ```bash theme={null} skilldock tokens list skilldock tokens revoke ``` Delete a remote release or remote skill: There is no dedicated high-level `skilldock skill delete` command. Use one of these patterns. Discover the delete operation from OpenAPI and call it by `operationId`: ```bash theme={null} skilldock ops # Identify the delete operation id for releases/skills, then: skilldock call --param namespace="$NAMESPACE" --param slug="$SLUG" --param version="$VERSION" ``` Use a low-level HTTP request when the API path is known: ```bash theme={null} skilldock request DELETE "/v1/skills/$NAMESPACE/$SLUG/releases/$VERSION" ``` If the API does not support that delete route, expect `404` or `405`. ### 12) Quick troubleshooting * `401 Unauthorized`: Run `skilldock auth login` or set a valid token * `403 Forbidden`: Token is valid but missing permission * `404 Not Found`: Wrong namespace/slug/version, or object is not visible * Token expired: Run `skilldock auth login` again Check active configuration: ```bash theme={null} skilldock config path skilldock config show ``` ## Revenue model For sold skills, SkillDock commission is **50%** of the sale price. * Provider share: **50%** * SkillDock commission: **50%** Read the Terms of Service for current legal and commercial terms: * [https://skilldock.io/terms](https://skilldock.io/terms) For commercial listing details, see [Commission model](/pricing#commission-model). ## API The publish workflow can be automated with the SkillDock API. OpenAPI specification: * [https://api.skilldock.io/openapi.json](https://api.skilldock.io/openapi.json) See the dedicated API guide for examples and integration patterns: [API](/api). ## Verification process Verification is an automatic background process that runs security and quality checks. These checks may run for: * Public skills * Private skills * Free skills * Paid/selling skills The purpose of verification is to reduce the risk of: * Illegal or policy-breaking content/behavior * Malicious behavior * Vulnerable or unsafe behavior * Quality issues that can harm users or integrations If suspicious or unsafe behavior is detected, a skill may be: * Frozen and made unavailable for installation * Removed from listings * Permanently deleted These actions may be applied without notification. If you believe an action was triggered by an error, contact support: * [support@skilldock.io](mailto:support@skilldock.io)