Skip to main content

PyPI Python License CI

skillock 🔒

Install AI agent skills without wondering what they will read, run, or change.
Scan untrusted skills before they touch secrets, shell, or your agent directories.

User pains skillock solves

  • a skill reads .env, ~/.ssh/, or tokens during install
  • a skill runs exec, curl | sh, or destructive shell commands
  • an update changes files and you cannot see what drifted
  • the same vetted skill needs to land in multiple agents without manual copy/paste

Features

  • 🔒 Scan-before-install — 19 security rules (9 P0, 6 P1, 4 P2) check every file
  • 🔐 Supply-chain integrity — TOML lockfile with SHA-256 of every file
  • 🚫 Zero trust — P0 rules block install; P1 prompts; P2 notes only
  • 🔄 Symlink deploy — clean, reversible installation into agent directories
  • 🏷️ Pinned versions — resolves tags/commits/branches to immutable SHA
  • 🧩 Multi-agent — supports Claude, Codex, Agents, Cursor (or --agents all)
  • 📦 Zero runtime deps — Python ≥3.11, stdlib only (tomllib, hashlib, subprocess, pathlib)
  • 🛡️ MIT licensed

Install

# preview a skill without writing anything
uvx skillock add owner/repo --skill my-skill --agents claude,codex --dry-run

# one-off install (no global install needed)
uvx skillock add owner/repo --skill my-skill --agents claude,codex

# or install globally
uv tool install skillock

Commands

Command Description
add owner/repo[@tag] resolve → clone → scan → gate → deploy → lock
list installed skills, pinned refs, scan verdicts
update [skill] rescan + unified diff of every changed file, then upgrade
remove <skill> delete symlinks, store copy, lock entry
audit re-scan everything + verify SHA-256 of every installed file

Use skillock when

  • you already found a skill and want to vet it before install
  • you want Git-pinned, SHA-verified skill installs
  • you want one vetted skill deployed to multiple agents
  • you want a local-first workflow with no hosted registry dependency

What skillock is not

  • not a registry or marketplace for discovering skills
  • not a publishing platform for skill authors
  • not a general sync layer for every skills workflow
If you need... Reach for...
block risky skills before install skillock
discover or publish skills broadly a registry / package manager
author runtime skill libraries a framework

What Gets Blocked (P0 — Install Refused)

  • curl-pipe-shell — curl ... | sh, wget ... | bash
  • destructive-rm — rm -rf /, rm -fr, rm -Rf
  • sudo / privilege escalation — sudo, su, doas
  • code execution — eval(), exec(), Function(), os.system(), subprocess(..., shell=True)
  • pickle deserialization — pickle.load(), pickle.loads()
  • credential reads — .env, ~/.ssh/, AWS_SECRET, GH_TOKEN, etc.
  • hardcoded secrets — API keys, tokens, passwords in source

P1 warns and asks for confirmation; P2 prints notes only.
Full rule table: docs/spec.

Quick Demo

# This skill reads .env and uses exec() — BLOCKED (18 P0 findings)
uvx skillock add obra/superpowers --skill brainstorming --agents agents --yes

# Clean skill — installs successfully
uvx skillock add obra/superpowers --skill test-driven-development --agents agents --yes

Actual blocked run against obra/superpowers:

Real skillock blocked install demo

How It Works

  1. Resolve — GitHub repo + tag/commit/branch → pinned commit SHA
  2. Clone — shallow clone at pinned ref
  3. Scan — every file checked against 19 security rules (9 P0, 6 P1, 4 P2)
  4. Gate — P0 blocks install; P1 prompts; P2 notes
  5. Deploy — symlinks into agent directories (~/.claude/skills/, ~/.codex/agents/, etc.)
  6. Lock — TOML lockfile with SHA-256 of every file for integrity verification

Supported agents: claude, codex, agents, cursor (or --agents all)

Why

Most tools in this space optimize for discovery, sync, or publishing. skillock optimizes for one narrower job: stop untrusted skills before install, then pin and lock what passed.

Real incidents show skills are untrusted code:

Skills are prompts your agent executes — treat them like untrusted code.

Architecture

  • Zero runtime dependencies — Python ≥3.11, stdlib only (tomllib, hashlib, subprocess, pathlib)
  • POSIX — Linux, macOS, WSL
  • MIT license

Metadata

Release files for skillock 0.1.5

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

Source distribution (sdist)

Source distribution for skillock 0.1.5
File Size Uploaded Provenance Actions
skillock-0.1.5.tar.gz 290.6 kB Without provenance Details for skillock-0.1.5.tar.gz

Built distribution (wheel)

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

Total release size: 304.4 kB

Release files / skillock-0.1.5.tar.gz

Download URL skillock-0.1.5.tar.gz
Size 290.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d69d392bdc742768288d40f453244aa8ff06a9bc422289eb1299c545368f5181
BLAKE2b-256 checksum
How to use checksums
1c7872280ebae1fca9215f1760b1803a5251f01bc9b90a36796de7d3f1dcebb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / skillock-0.1.5-py3-none-any.whl

Download URL skillock-0.1.5-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fa8dcd448ebaa0dd86857036a9731afcb3381bf661e50907138dc9865731281
BLAKE2b-256 checksum
How to use checksums
15c29066040ed47411bb4a002d5ecb4c9804a68ee11430617293605ff404cdc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for skillock 0.1.5

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