Skip to main content

Skill Lens

CI

Your AI skills, in one place. And why each one is there.

Skill Lens is a local, read-only diagnostics and resolution engine for AI agent skills (SKILL.md and file-based skills). It is the which, brew doctor, and capability inspector for the skills scattered across your AI coding agents.

If you run more than one AI coding assistant — Codex, Claude Code, Antigravity, Pi, Grok, Qoder, Windsurf, OpenCode, and others — your machine slowly fills with skill folders, symlink farms, and shadowed copies. Skill Lens tells you what exists, where it lives, and which copy actually wins.

$ skill-lens scan

╭─────────────────────────── Skill Lens: Discovered Skills ───────────────────────────╮
│ Detected Agents: Codex, Claude Code, Antigravity, Pi, Grok, Qoder, Windsurf         │
│ Canonical Library: 83 skills (in ~/.agents/skills across 7 symlink farms)            │
│ Local Project Skills: 3  •  System/Bundled: 12  •  Plugin Skills: 600               │
╰─────────────────────────────────────────────────────────────────────────────────────╯

And when two copies of one skill have drifted apart, diff shows exactly how:

$ skill-lens diff deploy

╭─────────────── Diff: 'deploy' ────────────────╮
│ Copies: 2                                     │
│ Baseline: ~/.claude/skills/deploy (Variant A) │
╰───────────────────────────────────────────────╯

= ~/.claude/skills/deploy [Variant A] (user, valid)  baseline (no diff shown)
  Reference copy; every diff below is against it.

* ~/.agents/skills/deploy [Variant B] (user, valid)  1 file(s) differ
  SKILL.md modified
--- SKILL.md
+++ SKILL.md
@@ -1,7 +1,7 @@
 ---
 name: deploy
-description: Personal deploy.
+description: Shared-library deploy.

Why

Once you use several agents, three problems appear:

  1. Capability blindness — What skills exist, and which agents can see them?
  2. Precedence confusion — Why is Claude running an old global copy while Codex warns its context is full?
  3. Symlink & variant drift — Is this skill an identical shortcut to my shared library, or did someone edit a local copy?

Skill Lens answers all three with deterministic, offline logic grounded in how each agent actually resolves skills.

Design principles

  • 100% read-only. Skill Lens never creates, edits, moves, or deletes anything. It only looks.
  • Offline & deterministic. No AI calls, no telemetry, no network. Same input, same output.
  • Provenance over guesswork. Every precedence rule is tagged documented, empirical, or inferred. When a behaviour is undocumented, Skill Lens says ambiguous instead of inventing an answer.
  • JSON first. Every command supports --json for scripting and CI, with Rich formatting layered purely on top.

Commands

Command Purpose
skill-lens scan Inventory skills across detected agents, split by scope.
skill-lens why <skill> --agent <id> Explain why a skill resolves the way it does.
skill-lens agents List known agents, their collision policy and evidence.
skill-lens diff <skill> Unified diff of diverging variants of one skill.
skill-lens compare --agent A --agent B Compare two agents' capability surfaces: shared, diverged, or one-sided.
skill-lens doctor Hygiene checks: broken links, bad frontmatter, budget warnings, permission blocks.

All six commands are built and tested.

Every command accepts --json. doctor and scan also accept --fail-on to gate a pipeline — see Exit codes and CI use.

Install

Requires Python 3.11+ on macOS or Linux (Windows is out of scope for v1).

pip install skill-lens-cli

Package name note: the command is skill-lens and the Python package is skill_lens; the distribution is published as skill-lens-cli because the bare skill-lens name was already taken on PyPI.

Exit codes and CI use

doctor and scan can fail a pipeline. By default they exit 0 exactly as they always have — a report you read. Opt in with --fail-on:

skill-lens doctor --fail-on error      # exit 1 if any error-level finding
skill-lens scan   --fail-on warning    # exit 1 on any error or warning
Code Meaning
0 The command ran; nothing reached the threshold.
1 The command ran; findings reached the threshold.
2 Bad usage, unknown agent, or unreadable input.

Two things worth knowing: the report is always printed before the non-zero exit, so a gate never hides the evidence that tripped it; and --fail-on info fails on essentially every machine, because doctor reports normal setups as informational notes. Use error or warning for a gate. why, diff, compare and agents have no --fail-on — a missing skill is an answer, not a fault.

Status

Early development, and honest about it: the agent registry tags every precedence rule documented, empirical, or inferred, and says ambiguous rather than guessing. Six phases are complete and reviewed, and the current gate is 471 tests pass at 93% branch coverage, mypy strict clean, ruff check . clean, ruff format --check . clean.

The build record — every phase, the defects found in each review, and what is still open — lives in DEVELOPMENT.md.

Development

python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

pytest --cov=skill_lens       # test suite + the coverage gate (fails under 90%)
mypy                          # strict type check of skill_lens/
ruff check .                  # lint
ruff format .                 # format

The specification is SKILL_LENS_SPECIFICATION.md; the contributor guide, including how snapshots and goldens are regenerated and how a release is cut, is DEVELOPMENT.md.

All tests run against synthetic fixtures under temporary directories. The test suite never reads your real ~/.claude, ~/.agents, or ~/.codex.

License

MIT © 2026 Hazem Samak

Metadata

Release files for skill-lens-cli 0.1.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 skill-lens-cli 0.1.1
File Size Uploaded Provenance Actions
skill_lens_cli-0.1.1.tar.gz 220.0 kB Without provenance Details for skill_lens_cli-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skill-lens-cli 0.1.1
File Interpreter ABI Platform Actions
skill_lens_cli-0.1.1-py3-none-any.whl Python 3 none any Details for skill_lens_cli-0.1.1-py3-none-any.whl

Total release size: 299.3 kB

Release files / skill_lens_cli-0.1.1.tar.gz

Download URL skill_lens_cli-0.1.1.tar.gz
Size 220.0 kB
Tags Source
SHA-256 checksum
How to use checksums
263bb5ac9e40ee0b97dd701b22d82f98975cc6cf35a9a1f7cae93f4036c7168c
BLAKE2b-256 checksum
How to use checksums
942b32dd06933184009af1730c7d73db0e9c6d34066a2d5d490b292eb1a991d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / skill_lens_cli-0.1.1-py3-none-any.whl

Download URL skill_lens_cli-0.1.1-py3-none-any.whl
Size 79.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31dd61317c326aa473dfb44cd849b466b4090b158c8b10b9462e081da1dc58e9
BLAKE2b-256 checksum
How to use checksums
ba2361f86bf051bb954cbc56c97265727b7339378a42eaf76caa6ad5bdf17a4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for skill-lens-cli 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.

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