# How it works

> From a folder on a publisher's machine to a pinned skill your agent reads.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://skills.docs.sypnia.com/start/how-it-works/

For agents: Flow: publisher writes folder (SKILL.md + skill.yaml) → skills check (local automatic checks) → skills publish uploads the package → registry runs automatic checks in an isolated worker (format, manifest matches files, hidden characters, secrets, undeclared scripts/hosts, AI review of instructions) → signs the version (sha256 + registry signature) → human review for public listing (Cloud) → listed. Install: skills add resolves the version, downloads the immutable package from the CDN, verifies hash and signature, shows the manifest, writes files to targets (.sypnia/skills/, .claude/skills/, …), records name, version, sha256 and signature in .sypnia/skills.lock. Nothing runs on install. The agent loads a skill only when a task matches its description.

### 1. A publisher writes a skill

A folder with a `SKILL.md` (when to use it, the steps, the checks) and a `skill.yaml` (its version and what it may touch). `skills check` runs the same automatic checks the registry runs, on the publisher's machine.

### 2. The registry checks and signs it

`skills publish` uploads the folder as one package. The registry checks it in an isolated worker that never runs the skill's files: the format, that the manifest matches the files, hidden characters, secrets, undeclared scripts or addresses. A good version gets its hash and the registry's signature.

### 3. A person reviews it for the marketplace

In Sypnia Cloud, a public skill is listed only after a reviewer reads it. Private skills and new versions of reviewed skills that touch nothing new are listed after the automatic checks.

### 4. You install it

`skills add` picks the version, downloads it, checks its hash and signature, shows you what it may touch, writes the files where your agent reads them, and records the exact version in `.sypnia/skills.lock`. Nothing runs.

### 5. Your agent uses it when it fits

The agent reads each skill's description and opens the skill only when a task matches it. Ten installed skills cost the agent nothing until one is needed.

## Where things live

| Thing                       | Where                                                                                               |
| --------------------------- | --------------------------------------------------------------------------------------------------- |
| The marketplace             | `https://skills.sypnia.com` **\[Cloud]**                                                            |
| The API                     | `https://skills.api.sypnia.com/v1` **\[Cloud]**, or your registry's address **\[Engine]**           |
| The MCP server              | `https://mcp.skills.sypnia.com` **\[Cloud]**                                                        |
| Packages                    | immutable files, one per version, served from a CDN                                                 |
| Skills you installed        | `.sypnia/skills/` and your agent's folder, such as `.claude/skills/`                                |
| What you installed, exactly | the `[skills]` table of `sypnia.toml` (what you asked for) and `.sypnia/skills.lock` (what you got) |
