Metadata-Version: 2.5
Name: skill-lens-cli
Version: 0.3.0
Summary: A local, read-only diagnostics and resolution engine for AI agent skills (SKILL.md).
Project-URL: Homepage, https://github.com/Hazem-Samak/skill-lens
Project-URL: Repository, https://github.com/Hazem-Samak/skill-lens
Project-URL: Issues, https://github.com/Hazem-Samak/skill-lens/issues
Author: Hazem Samak
License-Expression: MIT
License-File: LICENSE
Keywords: agents,ai,claude-code,cli,codex,diagnostics,skill.md,skills
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Debuggers
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: pyyaml>=6.0.0
Requires-Dist: rich>=13.0.0
Requires-Dist: typer>=0.12.0
Provides-Extra: dev
Requires-Dist: mypy>=1.11.0; extra == 'dev'
Requires-Dist: pytest-cov>=5.0.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: ruff>=0.5.0; extra == 'dev'
Requires-Dist: textual>=8.2.8; extra == 'dev'
Requires-Dist: types-pyyaml>=6.0.12; extra == 'dev'
Provides-Extra: tui
Requires-Dist: textual>=8.2.8; extra == 'tui'
Description-Content-Type: text/markdown

# Skill Lens

[![CI](https://github.com/Hazem-Samak/skill-lens/actions/workflows/ci.yml/badge.svg)](https://github.com/Hazem-Samak/skill-lens/actions/workflows/ci.yml)

Find the skills your AI coding agents can see, which copy each agent uses, and
why. Skill Lens checks local `SKILL.md` files offline and leaves them untouched.

![Skill Lens 0.3.0 browses the skill inventory and compares agents in the terminal.](https://raw.githubusercontent.com/Hazem-Samak/skill-lens/main/docs/assets/skill-lens-0.3.0.gif)

## Quick start

Requires Python 3.11+ on macOS or Linux.

```sh
uv tool install skill-lens-cli
skill-lens scan
skill-lens search "release notes"
skill-lens doctor --suggest
```

`scan` shows detected agents and their skill inventory. `search` shows where
your words match, and `doctor --suggest` gives you a next step when a finding
supports one.

Already installed? Run `uv tool upgrade skill-lens-cli`. You can also install
with `pipx install skill-lens-cli` or use `pip install skill-lens-cli` in a
Python 3.11+ virtual environment. The package is `skill-lens-cli` and the
command is `skill-lens`.

## Browse in the terminal

```sh
uv tool install 'skill-lens-cli[tui]'
skill-lens
```

Press `/` to filter by name, description, or skill text. Press Enter to see
why an agent picks a skill, `d` to compare its copies, `h` for Doctor, and
`?` for the available keys. Press `r` to refresh the captured inventory.
`y` copies the focused content through the terminal clipboard (OSC 52).
`R` copies the captured Markdown report.

Copy sends one OSC 52 terminal escape sequence (no file, process or network
write); the terminal may ignore it, and tmux or GNU screen block it, so the
clipboard can stay unchanged.

The optional full-screen interface opens when the extra is installed and both
streams are interactive. Use `skill-lens --plain` for command help.

[Home inventory](https://raw.githubusercontent.com/Hazem-Samak/skill-lens/main/docs/assets/shot_home.png) ·
[Agent picker](https://raw.githubusercontent.com/Hazem-Samak/skill-lens/main/docs/assets/shot_compare_picker_ready.png) ·
[Claude Code vs. Pi Agent](https://raw.githubusercontent.com/Hazem-Samak/skill-lens/main/docs/assets/shot_compare_claude_vs_pi.png) ·
[Claude Code vs. Grok CLI](https://raw.githubusercontent.com/Hazem-Samak/skill-lens/main/docs/assets/shot_compare_claude_vs_grok.png)

## Commands

| Command | What it shows |
| --- | --- |
| `skill-lens scan` | Skills across detected agents, grouped by scope. |
| `skill-lens search <words> [--agent <id>]` | Matches in skill names, descriptions, and text, ranked in that order. |
| `skill-lens why <skill> --agent <id>` | Which copy an agent uses and the evidence behind that choice. |
| `skill-lens diff <skill>` | A unified diff between differing copies. |
| `skill-lens agents` | Known agents and the evidence for their precedence rules. |
| `skill-lens compare --agent A --agent B` | Skills two agents share and where their inventories differ. |
| `skill-lens doctor [--suggest]` | Broken links, metadata problems, budget warnings, and supported next steps. |
| `skill-lens report` | A shareable inventory and diagnostics report, with an optional agent comparison. |

All eight commands support `--json`. Doctor findings in JSON include a
nullable `suggestion` field. Suggestions are advice you can act on yourself.

```sh
skill-lens report --agent claude --agent codex
skill-lens report --json --output diagnostics.json
```

Reports use Markdown by default. `--output` creates one new file at the path
you choose and refuses an existing path. This is the only operation that
writes a file. Inspect a report for local paths before sharing it.

## Exit codes and CI use

`scan` and `doctor` can fail a pipeline when findings reach your chosen threshold.

```sh
skill-lens scan --fail-on warning
skill-lens doctor --fail-on error
```

| Code | Meaning |
| --- | --- |
| `0` | The command completed and no configured threshold was reached. |
| `1` | Findings reached the configured threshold. |
| `2` | Bad usage or a user-actionable input or output error. |

## Project links

[0.3.0 release](https://github.com/Hazem-Samak/skill-lens/releases/tag/v0.3.0) ·
[PyPI](https://pypi.org/project/skill-lens-cli/) ·
[Changelog](https://github.com/Hazem-Samak/skill-lens/blob/main/CHANGELOG.md) ·
[Development](https://github.com/Hazem-Samak/skill-lens/blob/main/DEVELOPMENT.md) ·
[MIT license](https://github.com/Hazem-Samak/skill-lens/blob/main/LICENSE)
