shelf Docs
On this page
shelf show <name> [options]
ArgumentDescription
<name>Skill name
OptionTypeDefaultDescription
--revision <revision>stringPrint this revision instead (hash, unique prefix, or latest; see shelf log)

Also takes the global options --json and --actor (CLI overview).

What it does

Without --revision, it prints the library copy: the latest revision, the number of revisions, the size of SKILL.md in tokens (characters / 4), the path, every file, then SKILL.md.

With --revision, it reads the snapshot from the object store instead: the revision's date, source and file list, then its SKILL.md. The revision is latest, a full hash (sha256:… or bare hex), or a unique prefix of at least 6 hex characters. Only this skill's revisions are candidates. See shelf log for the list.

Examples

terminal
shelf show pdf-tools
pdf-tools  rev ddad27dd34  (1 revisions, ~60 tokens)
path:  /home/me/.shelf/library/pdf-tools
files: SKILL.md

---
name: pdf-tools
description: "Extract text, tables and form fields from PDFs, and fill or merge PDF files. Use when a task involves reading or producing PDFs."
---

# pdf-tools

Describe when and how an agent should apply this skill.
terminal
shelf show pdf-tools --revision ddad27
pdf-tools  rev ddad27dd34  2026-10-07  library  (~60 tokens)
files: SKILL.md

---
name: pdf-tools
…

The header of an old revision says (latest) after the hash when it is the latest.

JSON output

json
{"schemaVersion":1,"ok":true,"data":{"name":"api-design","description":"Design HTTP APIs: resource naming, error envelopes, pagination and versioning. Use when adding or changing API endpoints.","revision":"sha256:d74c95b92cffd891a2c5de8a17c11ae8ed067d403dd8993f5c24e94625d29904","revisions":3,"tokens":83,"borrowers":2,"source":null,"loanDays":30,"customLoanDays":null,"path":"/home/me/.shelf/library/api-design","files":["SKILL.md"],"content":"---\nname: api-design\n…"}}

The fields of shelf catalog, plus path (the library directory), files (relative paths, sorted) and content (SKILL.md).

With --revision:

FieldMeaning
skillThe skill name.
revisionThe full hash.
sourcelibrary, promote, import or adopt.
createdAtWhen it was recorded.
latestWhether it is the library's latest revision.
parentThe previous revision's hash, or null.
filesRelative paths in the snapshot, sorted.
contentThe snapshot's SKILL.md.
tokensSKILL.md size estimate.

Errors

CodeWhen
SKILL_NOT_FOUNDNo skill by that name in the library (or it is archived, or invalid).
INVALID_ARGUMENTThe revision is shorter than 6 characters, ambiguous, or unknown. The hint lists candidates.
CONFLICTThe revision's snapshot is missing from the object store (run shelf doctor).
terminal
shelf show pdf-tools --revision dd
error: Revision "dd" is too short: use at least 6 characters of the hash
hint: Candidates: ddad27dd34. Run `shelf log pdf-tools` to list its revisions