# Request paths

> What happens, step by step, when a skill is installed, published, reviewed and yanked.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://skills.docs.sypnia.com/architecture/request-paths/

For agents: Install: CLI POST /resolve → versions + sha256 + signature → GET download (302 CDN) → local sha256 + signature verify with the pinned key → show labels, ask if not instructions-only → write targets → lock. Publish: CLI local check → POST versions (stream to temp storage, size limits) → publisher unpacks safely (no symlinks, no absolute paths, no ..) → queue → checker (isolated, no network) → findings or signer (sha256, signature, store package at immutable key, record) → state listed/in-review/refused → e-mail to publisher owners. Review: reviewer reads in console, lists or refuses. Yank: person → state yanked, resolve skips it, lock installs warn. Remove (Sypnia, harmful): package deleted from storage and CDN, state removed, downloads 410, verify warns.

## Installing

### 1. Resolve

`skills add` sends the wanted ranges to `POST /resolve`. The registry answers with versions, hashes, signatures and what each one needs.

### 2. Download

For each version, `…/download` answers with a redirect to the package's immutable address on the CDN.

### 3. Verify

The CLI computes the package's SHA-256, compares it with the registry's answer, and checks the signature with the registry's pinned public key.

### 4. Ask and write

It shows the labels and asks when the skill is more than instructions. Then it unpacks into each target and writes the lock file.

## Publishing

### 1. Upload

The package streams to temporary storage. Size limits apply while it arrives.

### 2. Unpack safely

The publisher unpacks it with strict rules: no links, no absolute paths, no `..`, no more files or bytes than the limits allow.

### 3. Check

The version waits in a queue for the checker, which runs every automatic check in an isolated worker with no network.

### 4. Sign and store

A version that passes gets its SHA-256 and its signature, and the package is stored at an address that is never written again.

### 5. List or wait

Private, unlisted and safe updates are listed; a first public listing or a new public major goes to the review queue. The publisher's owners are e-mailed either way.

## Yanking and removing

- **Yank** (a publisher, with a person's session): the version's state changes; `resolve` stops choosing it; lock files that hold it still install and show the reason.
- **Remove** (Sypnia, for a harmful version): the package is deleted from storage and the CDN, downloads answer `410 removed`, and `skills verify` warns every project that has it.
