Skip to main content

skillship

Resolve, lock and deliver curated subsets ("distros") of Agent Skills, with their declared dependencies, as zips, skill uploads or commits to a recipient's skill or plugin repository.

It works on any repository of Agent Skills, including Claude Code plugin marketplaces, and the skills it delivers run in Claude Code, Claude Cowork and any other Agent Skills–compatible agent.

What Is This For

Typical use cases:

  • Hand a customer or partner the skills of one topic, together with every skill those skills depend on, and nothing else from your repository.
  • Keep that delivery current: a recipient gets a new zip, commit, pull request or merge request whenever the selected skills change.
  • Review what a recipient receives before it leaves: the resolved selection is a committed lock file, so a change to it shows up as a diff.
  • Take changes a recipient made to a delivered skill back into your source repository as patches.

Installation

pip install skillship
# or, with uv:
uv add skillship

Requires Python 3.10+.

To run it without installing, for example in CI:

uvx skillship --version

Usage

skillship reads from a source repo, the repository your skills are written in, and delivers to a target: an archive, an upload, or a recipient's repository. One recipient's selection is a distro.

Declare what each skill requires

A skill names the skills it cannot work without in its SKILL.md frontmatter. Each value is one whitespace-separated string, because the Agent Skills specification types metadata values as strings:

metadata:
  requires: >-
    billing-knowledge
    other-plugin:invoice-export
  suggests: >-
    other-plugin:tax-report

A bare name is a skill of the same plugin, and plugin:skill a skill of another plugin. skillship follows requires when it resolves a distro, and only reports suggests.

Describe a distro

A distro is a directory distros/<name>/ in the source repo. Its profile, distro.yaml, states what to deliver and where:

recipient: ACME GmbH
include:
  - billing:invoice-*
exclude:
  - billing:invoice-internal-audit
layout:
  shape: skills
targets:
  - type: archive
  - type: git
    url: https://github.com/acme/agent-skills.git
    branch: main
    mode: pull-request

The layout shape decides how the delivered tree looks:

Shape Delivered tree
skills skills/<skill>/, every skill side by side, without plugins
plugins plugins/<plugin>/ per source plugin that ships a skill, each with a generated plugin.json and README, and a .claude-plugin/marketplace.json listing them
plugin One plugin, plugins/<name>/, merging every shipped skill, with its plugin.json, README and marketplace.json

A generated plugin.json keeps the source plugin's fields except repository, homepage and component paths, and its dependencies name only plugins that ship, plus those of other marketplaces. layout.root puts the tree in a subdirectory, layout.marketplace names the marketplace (default: the distro name), and layout.name and layout.description describe the merged plugin.

plugin-extras.mcp: true delivers each shipping plugin's .mcp.json, CONNECTORS.md and connectors/, merged where the shape merges plugins. plugin-extras.readme: true adds a README listing the skills to the skills shape; the plugin shapes always generate one per plugin.

Lock, build and deliver

skillship lock acme        # resolve the profile into distros/acme/distro.lock.yaml
skillship build acme       # write the staging tree and archives to dist/
skillship deliver acme     # run every target of the profile
skillship drift acme       # report what the recipient changed since the last delivery

lock writes the exact set of skills and files a recipient receives, with the reason for each, into a lock file you commit. build and deliver read the lock and nothing else, and build refuses a lock that no longer matches the profile and the source repo.

The lock lists file paths, not their content: editing the text of a delivered file leaves it unchanged, while adding, removing or renaming a file or a skill, or changing what a skill requires, changes it. skillship lock --all --check in CI therefore fails exactly when a commit changes what a recipient receives.

lock also reports every mention of a skill that does not ship, in the delivered Markdown, outside templates/ and examples/. A mention is `/skill`, `plugin:skill` or "the `skill` skill"; a bare backticked name counts as an illustration. Each mention gets a status:

Status Meaning Blocks the lock
suggested A shipped skill lists it under suggests No
conditional The paragraph says "when installed" No
acknowledged The profile lists it under acknowledge: No
blocking None of the above Yes

For a blocking mention, lock prints the profile edits that fix it: an include: entry, with the skills it would pull in, or an acknowledge: entry.

build rewrites the delivered copy, never the source, and the lock counts the rewrites per file; skillship lock --explain prints each one:

  • A delivered SKILL.md keeps only the metadata.suggests entries that ship.
  • In the skills and plugin shapes, plugin-qualified names are flattened, because the source plugins no longer exist: /plugin:skill becomes /skill (or /<name>:skill in the merged plugin). An attribution after a skill's name loses its plugin (or names the merged plugin): "(`plugin` plugin)", "(`plugin` plugin, when installed)", "(`plugin`)", "…, `plugin` plugin)" and ", from the `plugin` plugin when installed". Only names of skills that ship are rewritten.

Any other mention of a source plugin in a flattened delivery blocks the lock, since rewriting it would mean guessing. Reword it in the source, or list the plugin's name under acknowledge: to deliver the mention as it is.

A relative link in delivered Markdown that resolves in the source repo but not in the delivered tree blocks the lock too, for example a skill linking its plugin's CONNECTORS.md while the MCP extras do not ship. lock names the fix: the include: or plugin-extras entry that ships the target, or a rewording of the link in the source. Links in templates/ and examples/ are not checked.

Deliver into a git repository

A git target delivers into a repository the recipient owns, as one signed commit (git commit -S, so your git configuration picks SSH or GPG):

targets:
  - type: git
    url: https://github.com/acme/agent-skills.git
    branch: main          # must exist; default: the repository's default branch
    mode: pull-request    # push (default) | pull-request (GitHub) | merge-request (GitLab)
    forge: github         # only when the URL's host does not say it

deliver clones the target branch, applies the delivery, commits, runs the gates (below) and only then pushes, or pushes the branch skillship/<distro> and opens a pull request with gh or a merge request with glab. It authenticates through your git credential helper and the gh or glab login. --dry-run does all of it in a scratch clone and pushes nothing. deliver refuses a source repo with uncommitted changes, because the delivery records the source commit it was made from.

.skillship.json, at the root of the target repo, records the delivery: the distro, the source commit, the lock digest, and for every file its ownership class and a SHA-256. The class decides what the next delivery does with the file:

Class Files On the next delivery
owned Delivered skills, generated plugin.json and README, owned target files Replaced, and removed when they stop shipping
seeded Seeded target files, a .gitlab-ci.yml skillship created Created when missing, never overwritten; a newer source version is announced to the recipient
merged .claude-plugin/marketplace.json Only the delivered plugins' entries change; the recipient's other plugins stay listed

What the last delivery wrote is taken from the source repo, not from the record: deliver rebuilds that delivery from the source commit the record names, and removes only its files that no longer ship, and drops only its plugins' marketplace entries. Anyone who can push to the target can edit the record, and an entry added there never makes a delivery delete a file. When the commit cannot be rebuilt, nothing is removed, and deliver says so.

A seeded file is the recipient's once created, so deliver never looks at it again, edited or not. When its template in the source repo changes, the next delivery announces it: the delivery commit's message, and the description of the pull or merge request, carry a patch from the version originally seeded to the new one. The recipient applies it with git apply -3, a three-way merge against that seeded version, which their history always holds: it keeps their edits, including changes taken from an earlier patch, and leaves conflict markers only where they and the template changed the same or adjacent lines. In push mode, a template change alone makes a delivery commit, so the announcement always reaches the target repo. The record keeps the commit a file was seeded from (seeded-from) and the version announced last (source-sha256), so each change is announced once.

Every other file of the target repo is never written. When the recipient versions a delivered plugin (version in its plugin.json), deliver keeps that version and raises its patch number whenever the plugin's files change; version: keep in the profile keeps it unchanged.

Target files. A source repo can give every git target in a plugin shape files of its own, such as the CI checks a plugin repository runs. They are listed in distros/skillship.yaml, shared by all distros, in named sets:

target-files:
  plugin-checks:
    gate: python templates/plugin-checks/run-plugin-checks.py --root {target} --shared-only --base {base}
    files:
      - from: templates/plugin-checks/      # a directory: its git-tracked files
        to: scripts/plugin-checks/
        ownership: owned
        rename: {readme.md: README.md}
      - from: templates/github/plugin-checks.yml
        to: .github/workflows/plugin-checks.yml
        when: {forge: github}
        ownership: seeded
      - from: templates/githooks/pre-commit
        to: .githooks/pre-commit
        mode: "755"
        ownership: seeded

The lock lists each target file with its ownership class. gate runs after the commit and before the push, split like a POSIX shell command line, with {target} replaced by the path of the target clone and {base} by origin/<branch>; a failure stops the delivery. It runs in the source repo, never in the clone, and should read the clone only as data: code the recipient wrote, such as checks of their own, would otherwise run on the sender's machine with the sender's credentials and signing key. Those checks run in the recipient's own CI. On GitLab, a delivered .gitlab/ci/*.yml job file needs an include: in .gitlab-ci.yml: skillship creates that file when the target has none, and otherwise prints the lines to add. A profile opts out of a set with target-files: {plugin-checks: false}.

Take recipient changes back

An owned file the recipient changed or deleted since the last delivery is drift, and deliver stops on it. skillship drift acme writes, for each changed file, a patch against the source repo into dist/acme/drift/, ready for git apply. The patch carries the recipient's change from the delivered copy back onto the source file as it was delivered, so a rewrite of the delivered copy, such as a flattened plugin name, never shows up as a change, and from there onto the source as it is today. Each file gets a verdict:

Verdict Meaning
clean The patch applies to the source as it is
conflicting The patch holds conflict markers to resolve
already upstream The source already holds the change
deleted The recipient deleted the file
generated skillship writes the file itself, so there is no source to patch
no base The delivered version cannot be rebuilt from the recorded source commit

Once the source holds the recipient's change, the next delivery writes what the recipient already has, and deliver no longer stops on that file; the same goes for a deleted file that no longer ships. To discard a recipient's change instead, deliver with --overwrite PATH.

Command Reference

Command Description
skillship lock <name> Resolves a distro's profile into its lock file and reports references that would dangle
skillship lock --all Does the same for every distro of the source repo
skillship lock … --check Fails when a lock is stale instead of rewriting it; meant for CI
skillship lock … --explain Prints every rewrite of the delivered copy as before/after lines
skillship build <name> [--out DIR] Builds the staging tree and archives from the lock into DIR (default dist/)
skillship deliver <name> [--target TYPE] [--dry-run] Runs the distro's targets, or those of one type; --dry-run pushes nothing and builds no archive
skillship deliver … --overwrite PATH Replaces a delivered file the recipient changed; repeatable
skillship drift <name> [--out DIR] Reports recipient-side changes to delivered files and writes merge-back patches to DIR/<name>/drift/
skillship -C DIR … Uses DIR as the source repo instead of the git work tree around the current directory
skillship --version Prints the installed version

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT — see LICENSE.

Metadata

Release files for skillship 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skillship 0.3.1
File Size Uploaded Provenance Actions
skillship-0.3.1.tar.gz 138.0 kB Without provenance Details for skillship-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skillship 0.3.1
File Interpreter ABI Platform Actions
skillship-0.3.1-py3-none-any.whl Python 3 none any Details for skillship-0.3.1-py3-none-any.whl

Total release size: 195.0 kB

Release files / skillship-0.3.1.tar.gz

Download URL skillship-0.3.1.tar.gz
Size 138.0 kB
Tags Source
SHA-256 checksum
How to use checksums
439e5c6af274337e7c7bb1cf69e00c9754ec3aaeb78c73055ecdcdedb7a1197a
BLAKE2b-256 checksum
How to use checksums
8707d0fdf103102a13b26152cc3bb2ffaa3c91f1227e641acda08b9ebffd8813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / skillship-0.3.1-py3-none-any.whl

Download URL skillship-0.3.1-py3-none-any.whl
Size 57.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
293ae8532a94b3073db90a5c93a7d82d4894c9a1164d1e0b09f2fd922eabfe27
BLAKE2b-256 checksum
How to use checksums
b3153db6c946c480d43e6c5a60253bb833a63c82ce5f588a1ba2f9f179c1e610
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for skillship 0.3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page