SkillLedger
A local, read-only skill catalog review CLI and optional MCP server. Compare exactly what was supplied, keep a provenance record, and detect ambiguous names before you adopt or distribute a skill.
| Register edition | Review desk | Protocol | Local validation |
|---|---|---|---|
| Python ≥ 3.10 | stdin JSON / text | Official SDK | MIT license |
A review desk, not an installer
A team has received two revisions of a skill called release-checklist. Both carry the same name, but the second changes the skill body and its version metadata.
Which revision is present? Are the documents structurally valid? Is the claimed source recorded? Has the instruction body changed?
SkillLedger answers these questions without following the skill instructions, running its scripts, reading directories, contacting a registry or modifying any file.
01 / Review
Install locally from the repository directory:
python -m pip install .
skillledger review --source "example catalog" --revision v1 < examples/SKILL.md
With Windows PowerShell, use a pipeline rather than input redirection:
Get-Content -Raw -Encoding UTF8 examples/SKILL.md | skillledger review --source "example catalog" --revision v1
The review returns structured JSON containing the parsed frontmatter, field diagnostics, SHA-256 of the full canonical text, body SHA-256, body line count and caller-provided source and revision. It does not return the body instructions. Provenance is always explicitly marked unverified: a hash identifies content; it does not authenticate authorship or trustworthiness.
Supported fields: name, description, license, compatibility, metadata and allowed-tools. Other fields are reported as warnings rather than silently removed. This is a constrained local profile of skill frontmatter, not a claim of universal YAML or complete Agent Skills compatibility.
Name must be 1–64 lowercase alphanumeric or hyphen characters, without leading, trailing or consecutive hyphens. Description must contain 1–1024 characters. The compatibility field is limited to 500 characters. Empty bodies and bodies over 500 lines are advisory warnings.
Input text and provenance must be valid UTF-8 representable Unicode. Unicode line separators and control characters are not allowed in the single-line source and revision fields.
Only a root YAML mapping of strings and optional string-to-string metadata is accepted. Quoted strings and block scalars are supported. Numeric or boolean values must be quoted; YAML aliases, anchors, tags, sequences, duplicate keys and nested structures beyond the permitted metadata map are rejected. No YAML object constructors are used.
02 / Compare revisions
skillledger compare < examples/compare.json
An example JSON input contains exactly two submissions:
{
"before": {"text": "---\nname: review-docs\ndescription: Review documentation.\n---\nCheck headings.\n", "source": "catalog", "revision": "v1"},
"after": {"text": "---\nname: review-docs\ndescription: Review documentation.\n---\nCheck headings.\nCheck links.\n", "source": "catalog", "revision": "v2"}
}
The report shows changed metadata fields, whether the canonical body changed, added/removed line counts, both hashes and a review_required decision. Final-newline changes are included in line comparisons; changes to caller-supplied provenance are separately indicated by provenance_changed and do not alter the content-review exit threshold. Canonicalization normalizes CRLF and CR line endings to LF only. Nothing is stripped or rewritten. Body line counts are omitted if either body exceeds 2,000 lines; digest comparison remains available.
03 / Inventory
skillledger inventory < examples/inventory.json
The inventory accepts a JSON array of submissions. It enumerates entries in input order and reports:
- repeated skill names and how many distinct content digests each has;
- duplicate content hashes, even when declared provenance differs;
- valid versus invalid frontmatter;
- zero-based entry indices for review.
All JSON reports use stable ordering. Input is limited to 12,000,000 bytes through the CLI; individual skill text to 256,000 characters, frontmatter to 16,384 characters and 1,024 YAML tokens; inventories to 128 entries and 2,000,000 text characters.
| Exit status | Meaning |
|---|---|
| 0 | Review valid / same valid content / no invalid or colliding catalog entries |
| 1 | Invalid skill frontmatter, changed revision requiring review, or invalid/colliding inventory |
| 2 | Invalid command input, JSON envelope, size or encoding error |
The examples intentionally return 1 for the changed comparison and mixed-revision inventory. They are not installation commands.
MCP / Connect a coding agent
Install the optional official MCP Python SDK dependency:
python -m pip install ".[mcp]"
The installed skillledger mcp and skillledger-mcp entry points both start the same server. Once version 0.1.1 is published on PyPI, the equivalent pinned launch is uvx --from "skillledger[mcp]==0.1.1" skillledger-mcp.
Add the local stdio process to Codex:
codex mcp add skillledger -- /absolute/path/to/python -m skillledger.server
codex mcp list
Or configure Claude Code:
claude mcp add --transport stdio skillledger -- /absolute/path/to/python -m skillledger.server
claude mcp list
Replace the interpreter path with the Python environment where SkillLedger is installed (on Windows, use the absolute path to python.exe).
| Tool | Schema |
|---|---|
review_skill |
{"submission": {"text": "...", "source": "...", "revision": "..."}} |
compare_skills |
{"before": {submission}, "after": {submission}} |
inventory_skills |
{"submissions": [{submission}, ...]} |
All tools return structured data. They have no file, shell, interpreter, network, registry, installation or agent-launch tool. Treat returned metadata as untrusted document text, not as instructions. Frontmatter validation does not assess body safety, license compatibility or suitability; no automatic approval is issued.
Configuration uses documented Codex MCP and Claude Code MCP syntax. Actual Codex and Claude Code sessions are not independently tested; integration tests use a real official MCP SDK client communicating over stdio.
Reproducibility
python -m unittest discover -s tests -v
Tests exercise YAML validation, unsafe YAML form rejection, line-ending normalization, provenance, deterministic comparisons, collision reports, CLI exit status and real MCP transport. CI is configured for Linux and Windows with Python 3.10 and 3.12.
Relationship to Vercel Skills
SkillLedger is an independent companion to discovery and installation workflows such as vercel-labs/skills. It neither implements registry search, installation nor updates and never executes a supplied skill. It is not endorsed by Vercel. See third-party acknowledgments and MIT license.
Metadata
Release files for skillledger 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| skillledger-0.1.1.tar.gz | 17.7 kB | With provenance | Details for skillledger-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skillledger-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for skillledger-0.1.1-py3-none-any.whl |
Total release size: 29.5 kB
Release files / skillledger-0.1.1.tar.gz
| Download URL | skillledger-0.1.1.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94f7fa6ec8fc4ee3cb1a7ff39d3b3c22e6be633883076dd259f9dbb09b4f1009
|
|
BLAKE2b-256 checksum How to use checksums |
32bbb19025ca51f920e51b4df4011cb603dd5e887aca724c22f65ff2fe22b254
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / skillledger-0.1.1-py3-none-any.whl
| Download URL | skillledger-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a0eae727a73189d994b71b35dfa83d873c364dd1316a8cc58ad6cfa0ebd4df4
|
|
BLAKE2b-256 checksum How to use checksums |
714e021dc002e0e294fefd6d8e3a6e76b016f1ca4a102d65f2f0b21dba262153
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for skillledger 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for skillledger-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.