---
title: "Publish a hosted resource package into a workspace"
method: POST
path: "/workspaces/{slug}/imports/resource-package"
---

# Publish a hosted resource package into a workspace

`POST /workspaces/{slug}/imports/resource-package`

## Request

- Base URL: `https://superskill.sh/api`
- URL: `https://superskill.sh/api/workspaces/{slug}/imports/resource-package`
- Auth: HTTP bearer

Requires WORKSPACES_ENABLED=true and a workspace token with resource:publish or legacy publish scope. Packages at most 8 MiB of bounded text files from a skill, plugin, workflow, MCP server, command pack, scripts, docs or source bundle into workspace archive storage. This does not grant a public Verified harness badge.

## Path parameters

- `slug` string, required

## Request body

- object
  - `name` string
  - `title` string
  - `summary` string
  - `resourceType` 'harness' | 'skill' | 'plugin' | 'workflow' | 'mcp_server' | 'service_endpoint' | 'agent_team' | 'subagent_pack' | 'command_pack' | 'config' | 'guide' | 'framework' | 'agent_runtime'
  - `sourceUrl` string
  - `worksWith` string[]
  - `tags` string[]
  - `files` object[], required
    - `path` string, required
    - `content` string, required
    - `truncated` boolean

## Response `201`

Workspace-hosted agent resource package

- object
  - `resource` Resource
    - `id` string, required
    - `identity` object, required
    - `sourceCatalogId` string
    - `title` string, required
    - `summary` string, required
    - `summaryOriginal` string
    - `resourceType` 'harness' | 'skill' | 'plugin' | 'workflow' | 'mcp_server' | 'service_endpoint' | 'agent_team' | 'subagent_pack' | 'command_pack' | 'config' | 'guide' | 'framework' | 'agent_runtime' | 'directory', required
    - `sourcePlatform` string, required
    - `canonicalUrl` string, required
    - `mirror` object
      - `platform` 'github'
      - `owner` string
      - `repo` string
      - `fullName` string
      - `url` string
      - `cloneUrl` string
      - `defaultBranch` string
      - `defaultBranchOnly` boolean
      - `fork` boolean
      - `sourceUrl` string
      - `status` 'ready' | 'pending' | 'failed'
      - `syncedAt` string
      - `error` string
    - `upstreamId` string
    - `upstreamOwner` string
    - `upstreamRepo` string
    - `creatorName` string
    - `licenseStatus` 'permissive' | 'copyleft' | 'proprietary' | 'unknown' | 'blocked' | 'manual_review', required
    - `licenseName` string
    - `sourceCheckedAt` string, required: Date upstream existence/activity was checked. This is not product install verification.
    - `sourceCheckMethod` 'github_api' | 'marketplace_api' | 'manual_research'
    - `sourceCheckStatus` 'active' | 'stale' | 'archived' | 'unavailable', required
    - `lastSeenAt` string, required
    - `installability` 'open_only' | 'importable' | 'installable' | 'verified', required
    - `tags` string[], required
    - `worksWith` string[], required
    - `upstreamPopularity` object
    - `onlyHarnessSignals` object
    - `popularityScore` number, required
    - `popularityBreakdown` object
    - `trust` object, required
      - `sourceChecked` boolean
      - `securityScan` 'pass' | 'warn' | 'fail' | 'not_scanned'
      - `installVerifiedAt` string: SuperSkill install verification evidence, when present.
      - `gateVerifiedAt` string
      - `riskTier` string
    - `release` ResourceRelease
      - `version` string, required
      - `artifactDigest` string, required
      - `archiveSize` integer, required
      - `trust` 'unreviewed', required
    - `nativeInstall` NativeHarnessInstall: Exact anonymous native-harness install tuple. It is local catalog evidence, not managed approval or a Verified badge.
      - `kind` 'native_harness', required
      - `resourceId` string, required
      - `ref` string, required
      - `version` string, required
      - `artifactDigest` string, required
      - `snapshot` true, required
      - `totalFileCount` integer, required
      - `archiveTruncated` false, required
      - `securityScan` 'pass', required
      - `scanner` 'static-v2', required
      - `scannedArtifactDigest` string, required
      - `riskTier` string, required
      - `permissions` object, required
      - `license` string, required
      - `managedApproval` false, required
      - `archiveUrl` string, uri, required
      - `commands` object, required
        - `codex` string, required
        - `claudeCode` string, required
    - `workspaceApproval` object
      - `workspaceSlug` string
      - `workspaceName` string
      - `collectionSlug` string
      - `sourceResourceId` string
      - `approvalState` 'pending_review' | 'approved' | 'approved_with_warning' | 'blocked' | 'blocked_by_scan' | 'deprecated'
      - `approvedBy` string
      - `approvedAt` string
      - `note` string
      - `riskSnapshot` object
    - `actions` object[], required
    - `source` object
  - `archive` object
    - `url` string
    - `fileName` string
  - `hosted` boolean
  - `verified` false
  - `next` string

## Other responses

- `400`: Bad request
- `401`: Authorization required
- `403`: Authorization was provided but is not allowed for this action
- `404`: Resource not found
- `413`: Request validation failed before any durable mutation

---

[API](https://skmtc.dev/superskill/apis/superskill-api.md) · [All operations](https://skmtc.dev/superskill/apis/superskill-api/llms.txt) · [OpenAPI document](https://skmtc.dev/superskill/apis/superskill-api/revisions/ced2d2d1f217?raw)
