Skill Lens
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:
- Capability blindness — What skills exist, and which agents can see them?
- Precedence confusion — Why is Claude running an old global copy while Codex warns its context is full?
- 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, orinferred. When a behaviour is undocumented, Skill Lens saysambiguousinstead of inventing an answer. - JSON first. Every command supports
--jsonfor 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-lensand the Python package isskill_lens; the distribution is published asskill-lens-clibecause the bareskill-lensname was already taken on PyPI.
Status
Early development. The specification lives in
SKILL_LENS_SPECIFICATION.md and the build
proceeds by phase:
- Phase 0 — frozen models, lazy path resolution, 12 golden fixtures
- Phase 1 — metadata parser, streaming SHA-256 hasher, symlink canonicalization
- Phase 2 — registry loader, 3-axis resolver,
scan/why/agentscommands — ✅ reviewed and corrected: all 20 findings inPHASE2_FINDINGS.md(F-01 … F-20) are fixed and each is guarded by a regression test - Phase 3 — Rich presentation layer and
diff— unified diff between the differing variants of one name, pinned by a goldendiff_*.jsonand plain-text render snapshots forscan,whyanddiff— ✅ reviewed and corrected: all 4 findings inPHASE3_FINDINGS.md(D-01 … D-04) are fixed and each is guarded by a regression test - Phase 4 —
doctorhygiene checks, multi-agentcompare, and the live discovery adapter — pinned by goldendoctor_*.json/compare_*.jsonfixtures, render snapshots, and a live smoke test that runs with the sandbox off — ✅ reviewed and corrected: all 8 findings inPHASE4_FINDINGS.md(C-01 ... C-08) are fixed, three suggestions rejected with written reasons - Phase 5 — packaging and release readiness: a PEP 561
py.typedmarker, a locked reproducible install (uv.lock), a CI workflow running lint and tests on macOS and Linux across Python 3.11–3.14, aCHANGELOG.md, and verifiedpip/uvxinstalls — ✅ the first CI run caught and fixed two real cross-version bugs (a symlink loop and a permission-blocked directory both crashed old Pythons); the suite now passes on Python 3.11–3.14 — ✅ post-release hardening:tests/test_phase5_gate.pypins the packaging declarations (version sync, console script, wheel target, registry count, CI matrix vsrequires-python, and that CI can never publish) — ⏸️ not yet published: publishing is deliberately manual and deferred, with the exact steps recorded inPHASE5_WALKTHROUGH.md - Phase 6 — new scope, added after 0.1.0 and not in the original roadmap.
Two gaps that only appeared once the tool ran against a real machine:
— enforceable findings: a documented exit-code contract (
0clean,1findings,2bad usage) plus--fail-on {never,error,warning,info}ondoctorandscan, so the tool can gate a CI pipeline instead of only reporting. The default isnever, so 0.1.0 behaviour is unchanged. SeePHASE6_WALKTHROUGH.md— evidence integrity:dshandompwere the only agents with no source and entirely inferred rules. Both now cite their real vendor documentation — which revealed thatdshwas missing both user-level roots and thatomp's managed-skills folder was ranked above the folders that should win. All 10 agents now cite a source, and an enforced invariant guarantees it.
Current gate: 470 tests pass at 93% branch coverage, mypy strict clean,
ruff check . clean, ruff format --check . clean.
The Phase 6 plan is
PHASE6_PLAN.md; what shipped and what was wrong along the way is inPHASE6_WALKTHROUGH.md.
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.
Development
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest # run the test suite
pytest --cov=skill_lens # …with the coverage gate (fails under 90%)
mypy # strict type check of skill_lens/
ruff check . # lint
ruff format . # format
The coverage threshold lives in [tool.coverage.report] and the type-check
scope in [tool.mypy], both in pyproject.toml — one source of truth each, so
CI enforces exactly what a local run does.
Terminal output is pinned by plain-text snapshots under
tests/fixtures/snapshots/. After an intentional change to the presentation
layer, review the difference and regenerate them with:
pytest tests/test_render_snapshots.py --update-snapshots
The Phase 4 machine-readable contracts are pinned as JSON goldens under
tests/fixtures/golden/phase4/. A missing or stale golden fails the test --
regenerate only after reading the diff, with:
pytest tests/test_phase4_gate.py --update-goldens
All tests run against synthetic fixtures under temporary directories. The test
suite never reads your real ~/.claude, ~/.agents, or ~/.codex.
Releasing
Releases are manual and deliberate. Nothing publishes automatically and the CI workflow never uploads anything.
- Bump
versioninpyproject.tomland__version__inskill_lens/__init__.py, then refresh the lock withuv lock.test_phase5_gate.pyfails if those two versions ever disagree, andtest_changelog_documents_the_current_versionfails if the new version is not inCHANGELOG.mdunder a released heading. - Run the full gate:
pytest --cov=skill_lens,mypy,ruff check .,ruff format --check .. - Build and inspect the artifacts:
uv build --out-dir dist uvx twine check dist/* # metadata must PASS unzip -l dist/*.whl | grep registry/agents # must list all 10 agent TOMLs
- Smoke-test the exact artifact a user would receive:
uv venv /tmp/skill-lens-smoke --python 3.13 uv pip install --python /tmp/skill-lens-smoke dist/*.whl /tmp/skill-lens-smoke/bin/skill-lens --version /tmp/skill-lens-smoke/bin/skill-lens --help
- Publish — only when you mean it — using your own PyPI credentials:
uv publish # or: twine upload dist/*
- Tag the release, so the
[0.1.0]link at the foot ofCHANGELOG.mdresolves instead of 404ing. The tag name is not free-form: it must bev<version>to match that link.git tag -a v0.1.0 -m "skill-lens 0.1.0" git push origin v0.1.0
Publishing is irreversible: a version can be yanked on PyPI but never reused. There is deliberately no
v0.1.0tag yet — it is created in step 6, after the upload, so the tag always points at a commit that is actually released.
License
MIT © 2026 Hazem Samak
Metadata
Release files for skill-lens-cli 0.1.0
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 |
|---|---|---|---|---|
| skill_lens_cli-0.1.0.tar.gz | 218.8 kB | Without provenance | Details for skill_lens_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skill_lens_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for skill_lens_cli-0.1.0-py3-none-any.whl |
Total release size: 300.2 kB
Release files / skill_lens_cli-0.1.0.tar.gz
| Download URL | skill_lens_cli-0.1.0.tar.gz |
|---|---|
| Size | 218.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79604d1fb45e3edad7b3e582d785452849aeadc1ba35aed3ffbb49dd810af031
|
|
BLAKE2b-256 checksum How to use checksums |
4591cd017674525818036ac2b10f8247ef127ed51889e058b77847b3e1ae58c6
|
| 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.0-py3-none-any.whl
| Download URL | skill_lens_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 81.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b68037491317f1db5d340da4868aa97e473e34efee985044ed067213feadde04
|
|
BLAKE2b-256 checksum How to use checksums |
6f48c5d6cf36d59e234690295a743933f794bb34d4b541eeda55370ab5d8bf11
|
| 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.0
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.