Metadata-Version: 2.4
Name: agskillmanager
Version: 1.0.0
Summary: A governed, framework-agnostic, asyncio-first Skill lifecycle for AI agents.
Keywords: agents,agent-skills,skills,governance,approval,provenance,langchain,langgraph,agno,crewai,mcp,yaml
Author: S MUNI HARISH
Author-email: S MUNI HARISH <samamuniharish@gmail.com>
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: AsyncIO
Classifier: Framework :: Pydantic :: 2
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Dist: agxai>=1.0.2,<2
Requires-Dist: feedback-manager>=0.1.2,<0.2
Requires-Dist: mcp-capability-router>=1.0.0,<2
Requires-Dist: packaging>=26.3
Requires-Dist: pydantic>=2.14.3,<3
Requires-Dist: pyyaml>=6.0.3,<7
Requires-Dist: refresh-engine>=1.0.0,<2
Requires-Dist: agskillmanager[langchain,otel,postgres] ; extra == 'all'
Requires-Dist: langchain-core>=1.7.7,<2 ; extra == 'langchain'
Requires-Dist: xstructured>=1.0.0,<2 ; extra == 'langchain'
Requires-Dist: opentelemetry-api>=1.45.2,<2 ; extra == 'otel'
Requires-Dist: opentelemetry-sdk>=1.45.2,<2 ; extra == 'otel'
Requires-Dist: psycopg[binary,pool]>=3.3.8,<4 ; extra == 'postgres'
Requires-Python: >=3.12
Project-URL: Homepage, https://github.com/smuniharish/agskillmanager
Project-URL: Documentation, https://agskillmanager.readthedocs.io/
Project-URL: Changelog, https://github.com/smuniharish/agskillmanager/blob/master/CHANGELOG.md
Project-URL: Issues, https://github.com/smuniharish/agskillmanager/issues
Project-URL: Repository, https://github.com/smuniharish/agskillmanager
Provides-Extra: all
Provides-Extra: langchain
Provides-Extra: otel
Provides-Extra: postgres
Description-Content-Type: text/markdown

<p align="center">
  <img src="https://raw.githubusercontent.com/smuniharish/agskillmanager/master/docs/assets/logo.svg" width="80" alt="AG Skill Manager">
</p>

# agskillmanager

**Governed, framework-agnostic Skill lifecycle management for AI agents.**

[![CI](https://github.com/smuniharish/agskillmanager/actions/workflows/ci.yml/badge.svg)](https://github.com/smuniharish/agskillmanager/actions/workflows/ci.yml)
[![PyPI](https://img.shields.io/pypi/v/agskillmanager)](https://pypi.org/project/agskillmanager/)
[![Documentation](https://readthedocs.org/projects/agskillmanager/badge/?version=latest)](https://agskillmanager.readthedocs.io/en/latest/)
[![Python](https://img.shields.io/badge/python-3.12%20%7C%203.13%20%7C%203.14%20%7C%203.15-blue)](https://github.com/smuniharish/agskillmanager/blob/master/pyproject.toml)
[![Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)](https://github.com/smuniharish/agskillmanager/actions/workflows/ci.yml)
[![Typed](https://img.shields.io/badge/typing-typed-blue)](https://github.com/smuniharish/agskillmanager/blob/master/src/skill_manager/py.typed)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/smuniharish/agskillmanager/blob/master/LICENSE)

Reusable instructions become application assets: validated, discoverable, versioned,
reviewable and ready to compose. Skill Manager produces a typed `SkillBundle`;
your agent framework owns execution.

## Why Skill Manager?

- Canonical YAML and typed, validated domain models.
- Immutable revision identity, dependency resolution and provenance lineage.
- Async ABC extension points for storage, discovery, generation and telemetry.
- Human approval, rejection and feedback-informed regeneration.
- MCP capability resolution, refresh scheduling and bounded caches.
- Fully configured downstream runtimes stay injectable, including their stores,
  policies, plugins and transport options.
- No LangChain or LangGraph dependency in core. Works with plain Python, Agno,
  CrewAI or any runtime that consumes instructions.

## Install

Python 3.12 through 3.15.

```console
pip install agskillmanager
pip install "agskillmanager[langchain]"     # xstructured generation and embeddings
pip install "agskillmanager[postgres,otel]" # PostgreSQL and OpenTelemetry
pip install "agskillmanager[all]"
```

## Quickstart

```python
import asyncio

from skill_manager import Skill, SkillManager, SkillMetadata


async def main() -> None:
    async with SkillManager() as manager:
        skill = await manager.register_skill(
            Skill(
                metadata=SkillMetadata(
                    name="incident-review",
                    version="1.0.0",
                    description="Review incidents using verified evidence.",
                ),
                instructions=(
                    "Separate confirmed facts from hypotheses.",
                    "Report unresolved risks explicitly.",
                ),
            )
        )
        matches = await manager.discover("review incident", top_k=1)
        bundle = await manager.build_bundle(matches)
        print(skill.skill_id)
        print("\n".join(bundle.instructions))


asyncio.run(main())
```

Add a `FilesystemSkillSource` for YAML persistence, or inject a PostgreSQL registry
for a shared catalog. Enable `require_human_approval=True` when generating untrusted
instructions. Restart-safe review needs durable registry and feedback storage.

## Customize without losing downstream options

| Runtime | Inject through | Configure in that runtime |
|---|---|---|
| feedback-manager | `feedback_manager=` | Storage, routing, policies and learning |
| mcp-capability-router | `mcp_runtime=` | Registry, retrieval, transport, auth, resilience |
| refresh-engine | `refresh_engine=` | Source, operation, fingerprint, storage and events |
| agxai | `xai_runtime=` | Provenance, disclosure, explanation and plugins |
| xstructured | `XStructuredSkillGenerator(...)` | Runnable, repair and structured-output options |

Caller-created collaborators remain caller-owned. See the full
[customization matrix](https://agskillmanager.readthedocs.io/en/latest/integrations/customization/).

## Explore

- [Documentation](https://agskillmanager.readthedocs.io/en/latest/)
- [Runnable examples](https://github.com/smuniharish/agskillmanager/tree/master/examples):
  plain Python, LangGraph, LangChain, deepagents, approval, PostgreSQL, MCP and OTel.
- [API reference](https://agskillmanager.readthedocs.io/en/latest/api/manager/)
- [Agent Skills](https://github.com/smuniharish/agskillmanager/tree/master/agskillmanager-skills)
- [Contributing](https://github.com/smuniharish/agskillmanager/blob/master/CONTRIBUTING.md)
- [Security](https://github.com/smuniharish/agskillmanager/blob/master/SECURITY.md)
- [Changelog](https://github.com/smuniharish/agskillmanager/blob/master/CHANGELOG.md)

## Development

```console
uv sync --locked --all-extras --all-groups
uv run --no-sync ruff check .
uv run --no-sync ruff format --check .
uv run --no-sync pyrefly check
uv run --no-sync pytest
uv run --no-sync zensical build --strict
```

CI measures 100% line and branch coverage with a PostgreSQL service, checks Python
3.12–3.15, validates docs and verifies a core wheel without optional frameworks.
Service/model examples are live-tested when their documented environment variables
are set. Never commit credentials.

Licensed under [Apache-2.0](https://github.com/smuniharish/agskillmanager/blob/master/LICENSE).
