Metadata-Version: 2.4
Name: skillgen
Version: 0.2.1
Summary: Generate Agent Skills from llms.txt
Author: Mihir Srivastava
License: MIT License
        
        Copyright (c) 2026 Mihir Srivastava
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/mihir-s-05/skillgen
Project-URL: Repository, https://github.com/mihir-s-05/skillgen
Project-URL: Issues, https://github.com/mihir-s-05/skillgen/issues
Keywords: llms.txt,agent,skills,documentation,generator
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.31.0
Requires-Dist: PyYAML>=6.0
Requires-Dist: trafilatura>=1.8.0
Requires-Dist: beautifulsoup4>=4.12.0
Requires-Dist: mcp>=1.0.0
Provides-Extra: extras
Requires-Dist: markdownify>=0.11.6; extra == "extras"
Provides-Extra: test
Requires-Dist: pytest>=7.4; extra == "test"
Dynamic: license-file

# SkillGen
Turn any `llms.txt` into a ready-to-use Agent Skill.

SkillGen reads the curated links in `llms.txt`, optionally snapshots the content into `references/`, and generates a clean `SKILL.md` plus indexes and provenance metadata. It installs skills to `~/.agents/skills` by default (or `~/.claude/skills` with `--claude`).

## Quick start
```bash
pip install skillgen
# or for local development
pip install -e .
skillgen https://docs.example.com/llms.txt --out ./skills
```

## What you get
- `SKILL.md` with a concise description and trigger keywords
- `references/INDEX.md` and section indexes
- `references/catalog.json` and provenance files
- `manifest.json` for auditability

## Keyword generation
By default SkillGen uses deterministic heuristic keyword/description generation for fast, stable output.

Heuristic levels:
- `compact`: shortest description
- `balanced` (default): medium detail
- `verbose`: most detailed description with extra navigation cues

Heuristic level affects the `description` narrative in `SKILL.md` only. Keyword extraction stays stable across levels.

## Common flags
- `--name` override skill name
- `--include-optional` include Optional section links
- `--no-snapshot` generate link-only references
- `--allow-external` allow external domains
- `--heuristic-level compact|balanced|verbose`
- `--claude` install to `~/.claude/skills` instead of default path

## Install paths
- default: `~/.agents/skills`
- with `--claude`: `~/.claude/skills`

## Development
```bash
pip install -e .[test]
pytest
```
