Metadata-Version: 2.4
Name: skillos-core
Version: 0.1.0
Summary: Core abstractions for SkillOS
License: MIT License
        
        Copyright (c) 2026 Shea Hawkins
        
        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.
        
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fsspec>=2024.6.0
Requires-Dist: pyyaml>=6.0
Provides-Extra: s3
Requires-Dist: s3fs>=2024.6.0; extra == "s3"
Provides-Extra: gcs
Requires-Dist: gcsfs>=2024.6.0; extra == "gcs"
Provides-Extra: azure
Requires-Dist: adlfs>=2024.4.0; extra == "azure"
Provides-Extra: all
Requires-Dist: s3fs>=2024.6.0; extra == "all"
Requires-Dist: gcsfs>=2024.6.0; extra == "all"
Requires-Dist: adlfs>=2024.4.0; extra == "all"
Dynamic: license-file

# skillos-core

Core abstractions for SkillOS.

## SkillRepo

`SkillRepo` is a read-only abstraction over a directory of skills, backed by
[fsspec](https://filesystem-spec.readthedocs.io/). The backend is selected
from the URL protocol, so the same code works against local disk, S3, GCS,
Azure, in-memory test fixtures, and anything else fsspec supports.

A skill is any immediate subdirectory of the repo root that contains a
`SKILL.md` file. The `SKILL.md` may have YAML frontmatter; everything else
in the directory is treated as bundled resources.

```python
from skillos_core import SkillRepo

repo = SkillRepo("/path/to/skills")          # local
repo = SkillRepo("s3://bucket/skills")       # S3 (pip install skillos-core[s3])
repo = SkillRepo("gs://bucket/skills")       # GCS (pip install skillos-core[gcs])

for skill in repo:
    print(skill.name, "-", skill.description)

skill = repo.read("hello")
print(skill.body)
for path in skill.list_resources():
    data = skill.read_resource(path)
```
