Versions and the lock file
What the [skills] table of sypnia.toml and skills.lock hold, how a version is chosen, and how its hash and signature are checked.
The [skills] table of sypnia.toml: what you asked for
Every Sypnia product keeps its settings in one file at the root of your repository, sypnia.toml, each in a table of its own. Skills reads and writes only [skills], and keeps the rest of the file and your comments as they are.
format = 1
project = "la-espiga"
[skills]
targets = ["sypnia", "claude"]
[skills.require]
"sypnia/sypnia-design-guide" = "^1.4.0"
"sypnia/sypnia-starter-shop" = "^1.0.0"
"laespiga/espiga-pos-import" = "^1.0.0"
[skills.registries]
default = "https://skills.api.sypnia.com/v1"| Field | What it is |
|---|---|
targets | where skills are written (Into a project) |
[skills.require] | each skill id (in quotes, because it holds a /) and its version range. skills add without a range writes ^ and the newest version |
[skills.registries] | where to fetch skills from: default, and optionally one registry per publisher, such as your company’s private registry |
Ranges work like npm’s: ^1.4.0 accepts any 1.x from 1.4.0, ~1.4.0 any 1.4.x, and 1.4.0 only that one.
.sypnia/skills.lock: what you got
lockVersion: 1
skills:
sypnia/sypnia-design-guide:
version: 1.4.0
registry: https://skills.api.sypnia.com/v1
sha256: 6f1c…e2a9
signature: { key: sk-2026-a, value: MEUCIQ…= }
touches: {}
sypnia/sypnia-cases:
version: 2.1.0
registry: https://skills.api.sypnia.com/v1
sha256: b03d…41c7
signature: { key: sk-2026-a, value: MEQCIF…= }
touches: {}
requiredBy: [sypnia/sypnia-design-guide]How a version is chosen
The highest listed version inside your range. Yanked versions are never chosen, unless the lock file already holds one: then it keeps working and you are warned (Updates).
How it is checked
- The hash. The CLI computes the SHA-256 of the downloaded package and compares it with the registry’s and, on
install --frozen, with the lock file’s. - The signature. The registry signs every version’s hash. The CLI checks it with the registry’s public key, read from
GET /keysthe first time and pinned in~/.config/sypnia/registries/. A new key is announced in advance and signed with the old one. - The files on disk.
skills verifyhashes the installed files again and reports any change.
If any of the three fails, nothing is written and the command exits with an error.