agskillmanager 2.0.0__tar.gz → 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agskillmanager-2.0.0 → agskillmanager-3.0.0}/PKG-INFO +182 -136
- {agskillmanager-2.0.0 → agskillmanager-3.0.0}/README.md +169 -124
- {agskillmanager-2.0.0 → agskillmanager-3.0.0}/pyproject.toml +26 -42
- {agskillmanager-2.0.0 → agskillmanager-3.0.0}/pyproject.toml.orig +203 -209
- {agskillmanager-2.0.0 → agskillmanager-3.0.0}/src/skill_manager/__init__.py +188 -127
- agskillmanager-3.0.0/src/skill_manager/_async.py +38 -0
- agskillmanager-3.0.0/src/skill_manager/_boundary.py +133 -0
- agskillmanager-3.0.0/src/skill_manager/_frozen.py +141 -0
- agskillmanager-3.0.0/src/skill_manager/_lifecycle.py +138 -0
- agskillmanager-3.0.0/src/skill_manager/_optional.py +34 -0
- agskillmanager-3.0.0/src/skill_manager/_redaction.py +187 -0
- agskillmanager-3.0.0/src/skill_manager/_types.py +147 -0
- agskillmanager-3.0.0/src/skill_manager/_xai.py +265 -0
- agskillmanager-3.0.0/src/skill_manager/api.py +1813 -0
- agskillmanager-3.0.0/src/skill_manager/config.py +140 -0
- agskillmanager-3.0.0/src/skill_manager/discovery.py +335 -0
- {agskillmanager-2.0.0 → agskillmanager-3.0.0}/src/skill_manager/errors.py +109 -83
- agskillmanager-3.0.0/src/skill_manager/generation.py +93 -0
- agskillmanager-3.0.0/src/skill_manager/integrations/langchain.py +267 -0
- agskillmanager-3.0.0/src/skill_manager/models.py +356 -0
- agskillmanager-3.0.0/src/skill_manager/observability.py +149 -0
- agskillmanager-3.0.0/src/skill_manager/otel.py +153 -0
- agskillmanager-3.0.0/src/skill_manager/postgres.py +582 -0
- agskillmanager-3.0.0/src/skill_manager/registry.py +232 -0
- agskillmanager-3.0.0/src/skill_manager/requests.py +404 -0
- agskillmanager-3.0.0/src/skill_manager/resolution.py +244 -0
- agskillmanager-3.0.0/src/skill_manager/sources.py +622 -0
- agskillmanager-3.0.0/src/skill_manager/testing.py +569 -0
- agskillmanager-3.0.0/src/skill_manager/validation.py +138 -0
- agskillmanager-2.0.0/src/skill_manager/_optional.py +0 -18
- agskillmanager-2.0.0/src/skill_manager/_xai.py +0 -48
- agskillmanager-2.0.0/src/skill_manager/api.py +0 -969
- agskillmanager-2.0.0/src/skill_manager/config.py +0 -33
- agskillmanager-2.0.0/src/skill_manager/discovery.py +0 -275
- agskillmanager-2.0.0/src/skill_manager/generation.py +0 -83
- agskillmanager-2.0.0/src/skill_manager/integrations/langchain.py +0 -184
- agskillmanager-2.0.0/src/skill_manager/models.py +0 -307
- agskillmanager-2.0.0/src/skill_manager/observability.py +0 -67
- agskillmanager-2.0.0/src/skill_manager/otel.py +0 -107
- agskillmanager-2.0.0/src/skill_manager/postgres.py +0 -318
- agskillmanager-2.0.0/src/skill_manager/registry.py +0 -195
- agskillmanager-2.0.0/src/skill_manager/resolution.py +0 -187
- agskillmanager-2.0.0/src/skill_manager/sources.py +0 -175
- agskillmanager-2.0.0/src/skill_manager/testing.py +0 -362
- agskillmanager-2.0.0/src/skill_manager/validation.py +0 -95
- {agskillmanager-2.0.0 → agskillmanager-3.0.0}/LICENSE +0 -0
- {agskillmanager-2.0.0 → agskillmanager-3.0.0}/src/skill_manager/integrations/__init__.py +0 -0
- {agskillmanager-2.0.0 → agskillmanager-3.0.0}/src/skill_manager/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agskillmanager
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: A governed, framework-agnostic, asyncio-first Skill lifecycle for AI agents.
|
|
5
5
|
Keywords: agents,agent-skills,skills,governance,approval,provenance,langchain,langgraph,agno,crewai,mcp,yaml
|
|
6
6
|
Author: S MUNI HARISH
|
|
@@ -20,19 +20,20 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
20
20
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
21
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
22
|
Classifier: Typing :: Typed
|
|
23
|
-
Requires-Dist: agxai>=
|
|
24
|
-
Requires-Dist: feedback-manager>=0.1
|
|
25
|
-
Requires-Dist:
|
|
26
|
-
Requires-Dist:
|
|
27
|
-
Requires-Dist:
|
|
28
|
-
Requires-Dist:
|
|
29
|
-
Requires-Dist:
|
|
30
|
-
Requires-Dist:
|
|
23
|
+
Requires-Dist: agxai>=2.0.1,<3
|
|
24
|
+
Requires-Dist: feedback-manager>=0.3.1,<0.4
|
|
25
|
+
Requires-Dist: filelock>=4.3.2,<5
|
|
26
|
+
Requires-Dist: mcp-capability-router>=3.0.0,<4
|
|
27
|
+
Requires-Dist: packaging>=26.4,<27
|
|
28
|
+
Requires-Dist: pydantic>=2.14.4,<3
|
|
29
|
+
Requires-Dist: pyyaml>=6.0.4,<7
|
|
30
|
+
Requires-Dist: refresh-engine>=2.0.0,<3
|
|
31
|
+
Requires-Dist: retrievalloom>=1.0.0,<2
|
|
31
32
|
Requires-Dist: agskillmanager[langchain,otel,postgres] ; extra == 'all'
|
|
32
|
-
Requires-Dist: langchain-core>=1.
|
|
33
|
+
Requires-Dist: langchain-core>=1.9.0,<2 ; extra == 'langchain'
|
|
33
34
|
Requires-Dist: xstructured>=1.0.1,<2 ; extra == 'langchain'
|
|
34
|
-
Requires-Dist: opentelemetry-api>=1.45.
|
|
35
|
-
Requires-Dist: opentelemetry-sdk>=1.45.
|
|
35
|
+
Requires-Dist: opentelemetry-api>=1.45.3,<2 ; extra == 'otel'
|
|
36
|
+
Requires-Dist: opentelemetry-sdk>=1.45.3,<2 ; extra == 'otel'
|
|
36
37
|
Requires-Dist: psycopg[binary,pool]>=3.3.9,<4 ; extra == 'postgres'
|
|
37
38
|
Requires-Python: >=3.12, <3.15
|
|
38
39
|
Project-URL: Homepage, https://github.com/smuniharish/agskillmanager
|
|
@@ -46,127 +47,172 @@ Provides-Extra: otel
|
|
|
46
47
|
Provides-Extra: postgres
|
|
47
48
|
Description-Content-Type: text/markdown
|
|
48
49
|
|
|
49
|
-
<p align="center">
|
|
50
|
-
<img src="https://raw.githubusercontent.com/smuniharish/agskillmanager/master/docs/assets/logo.svg" width="80" alt="AG Skill Manager">
|
|
51
|
-
</p>
|
|
52
|
-
|
|
53
|
-
# agskillmanager
|
|
54
|
-
|
|
55
|
-
**Governed, framework-agnostic Skill lifecycle management for AI agents.**
|
|
56
|
-
|
|
57
|
-
[](https://github.com/smuniharish/agskillmanager/actions/workflows/ci.yml)
|
|
58
|
-
[](https://pypi.org/project/agskillmanager/)
|
|
59
|
-
[](https://agskillmanager.readthedocs.io/en/latest/)
|
|
60
|
-
[](https://github.com/smuniharish/agskillmanager/blob/master/pyproject.toml)
|
|
61
|
-
[](https://github.com/smuniharish/agskillmanager/actions/workflows/ci.yml)
|
|
62
|
-
[](https://github.com/smuniharish/agskillmanager/blob/master/src/skill_manager/py.typed)
|
|
63
|
-
[](https://github.com/smuniharish/agskillmanager/blob/master/LICENSE)
|
|
64
|
-
|
|
65
|
-
Reusable instructions become application assets: validated, discoverable, versioned,
|
|
66
|
-
reviewable and ready to compose. Skill Manager produces a typed `SkillBundle`;
|
|
67
|
-
your agent framework owns execution.
|
|
68
|
-
|
|
69
|
-
## Why Skill Manager?
|
|
70
|
-
|
|
71
|
-
- Canonical YAML and typed, validated domain models.
|
|
72
|
-
- Immutable revision identity, dependency resolution and provenance lineage.
|
|
73
|
-
- Async ABC extension points for storage, discovery, generation and telemetry.
|
|
74
|
-
- Hybrid keyword, fuzzy and BM25 Skill discovery powered by
|
|
75
|
-
[RetrievalLoom](https://pypi.org/project/retrievalloom/), with pluggable
|
|
76
|
-
embeddings, rerankers and NLI.
|
|
77
|
-
- Human approval, rejection and feedback-informed regeneration.
|
|
78
|
-
- MCP capability resolution, refresh scheduling and bounded caches.
|
|
79
|
-
- Fully configured downstream runtimes stay injectable, including their stores,
|
|
80
|
-
policies, plugins and transport options.
|
|
81
|
-
- No LangChain or LangGraph dependency in core. Works with plain Python, Agno,
|
|
82
|
-
CrewAI or any runtime that consumes instructions.
|
|
83
|
-
|
|
84
|
-
## Install
|
|
85
|
-
|
|
86
|
-
Python 3.12 through 3.14.
|
|
87
|
-
|
|
88
|
-
```console
|
|
89
|
-
pip install agskillmanager
|
|
90
|
-
pip install "agskillmanager[langchain]" # xstructured generation and embeddings
|
|
91
|
-
pip install "agskillmanager[postgres,otel]" # PostgreSQL and OpenTelemetry
|
|
92
|
-
pip install "agskillmanager[all]"
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## Quickstart
|
|
96
|
-
|
|
97
|
-
```python
|
|
98
|
-
import asyncio
|
|
99
|
-
|
|
100
|
-
from skill_manager import
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
|
|
154
|
-
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
50
|
+
<p align="center">
|
|
51
|
+
<img src="https://raw.githubusercontent.com/smuniharish/agskillmanager/master/docs/assets/logo.svg" width="80" alt="AG Skill Manager">
|
|
52
|
+
</p>
|
|
53
|
+
|
|
54
|
+
# agskillmanager
|
|
55
|
+
|
|
56
|
+
**Governed, framework-agnostic Skill lifecycle management for AI agents.**
|
|
57
|
+
|
|
58
|
+
[](https://github.com/smuniharish/agskillmanager/actions/workflows/ci.yml)
|
|
59
|
+
[](https://pypi.org/project/agskillmanager/)
|
|
60
|
+
[](https://agskillmanager.readthedocs.io/en/latest/)
|
|
61
|
+
[](https://github.com/smuniharish/agskillmanager/blob/master/pyproject.toml)
|
|
62
|
+
[](https://github.com/smuniharish/agskillmanager/actions/workflows/ci.yml)
|
|
63
|
+
[](https://github.com/smuniharish/agskillmanager/blob/master/src/skill_manager/py.typed)
|
|
64
|
+
[](https://github.com/smuniharish/agskillmanager/blob/master/LICENSE)
|
|
65
|
+
|
|
66
|
+
Reusable instructions become application assets: validated, discoverable, versioned,
|
|
67
|
+
reviewable and ready to compose. Skill Manager produces a typed `SkillBundle`;
|
|
68
|
+
your agent framework owns execution.
|
|
69
|
+
|
|
70
|
+
## Why Skill Manager?
|
|
71
|
+
|
|
72
|
+
- Canonical YAML and typed, validated domain models.
|
|
73
|
+
- Immutable revision identity, dependency resolution and provenance lineage.
|
|
74
|
+
- Async ABC extension points for storage, discovery, generation and telemetry.
|
|
75
|
+
- Hybrid keyword, fuzzy and BM25 Skill discovery powered by
|
|
76
|
+
[RetrievalLoom](https://pypi.org/project/retrievalloom/), with pluggable
|
|
77
|
+
embeddings, rerankers and NLI.
|
|
78
|
+
- Human approval, rejection and feedback-informed regeneration.
|
|
79
|
+
- MCP capability resolution, refresh scheduling and bounded caches.
|
|
80
|
+
- Fully configured downstream runtimes stay injectable, including their stores,
|
|
81
|
+
policies, plugins and transport options.
|
|
82
|
+
- No LangChain or LangGraph dependency in core. Works with plain Python, Agno,
|
|
83
|
+
CrewAI or any runtime that consumes instructions.
|
|
84
|
+
|
|
85
|
+
## Install
|
|
86
|
+
|
|
87
|
+
Python 3.12 through 3.14.
|
|
88
|
+
|
|
89
|
+
```console
|
|
90
|
+
pip install agskillmanager
|
|
91
|
+
pip install "agskillmanager[langchain]" # xstructured generation and embeddings
|
|
92
|
+
pip install "agskillmanager[postgres,otel]" # PostgreSQL and OpenTelemetry
|
|
93
|
+
pip install "agskillmanager[all]"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Quickstart
|
|
97
|
+
|
|
98
|
+
```python
|
|
99
|
+
import asyncio
|
|
100
|
+
|
|
101
|
+
from skill_manager import (
|
|
102
|
+
BuildBundleRequest,
|
|
103
|
+
DiscoverSkillsRequest,
|
|
104
|
+
RegisterSkillRequest,
|
|
105
|
+
Skill,
|
|
106
|
+
SkillManager,
|
|
107
|
+
SkillMetadata,
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
async def main() -> None:
|
|
112
|
+
async with SkillManager() as manager:
|
|
113
|
+
skill = await manager.register_skill(
|
|
114
|
+
RegisterSkillRequest(
|
|
115
|
+
skill=Skill(
|
|
116
|
+
metadata=SkillMetadata(
|
|
117
|
+
name="incident-review",
|
|
118
|
+
version="1.0.0",
|
|
119
|
+
description="Review incidents using verified evidence.",
|
|
120
|
+
),
|
|
121
|
+
instructions=(
|
|
122
|
+
"Separate confirmed facts from hypotheses.",
|
|
123
|
+
"Report unresolved risks explicitly.",
|
|
124
|
+
),
|
|
125
|
+
)
|
|
126
|
+
)
|
|
127
|
+
)
|
|
128
|
+
matches = await manager.discover(DiscoverSkillsRequest(query="review incident", top_k=1))
|
|
129
|
+
bundle = await manager.build_bundle(BuildBundleRequest(skills=tuple(matches)))
|
|
130
|
+
print(skill.skill_id)
|
|
131
|
+
print("\n".join(bundle.instructions))
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
asyncio.run(main())
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Every operation takes exactly one validated request object, for example
|
|
138
|
+
`list_skills(SkillQuery())` or `refresh(RefreshRequest())`. Pass a
|
|
139
|
+
`SkillManagerSetup(sources=(FilesystemSkillSource(FilesystemSkillSourceConfig(...)),))`
|
|
140
|
+
for YAML persistence, or inject a PostgreSQL registry for a shared catalog. Enable
|
|
141
|
+
`require_human_approval=True` when generating untrusted instructions: pending Skills
|
|
142
|
+
are persisted to the source, and approvals are bound to the Skill's ID, revision
|
|
143
|
+
and content digest. The default feedback store is in memory, so agent approvals
|
|
144
|
+
cannot be verified after a restart and those Skills return to review; inject a
|
|
145
|
+
persistent feedback store for restart-safe approvals. Upgrading from 2.x? Read
|
|
146
|
+
[Migrating to 3.0](https://agskillmanager.readthedocs.io/en/latest/getting-started/migration/).
|
|
147
|
+
|
|
148
|
+
## Hardened by default
|
|
149
|
+
|
|
150
|
+
- Strict YAML (duplicate keys rejected), bounded documents, and filesystem sources
|
|
151
|
+
that reject symlinks and write atomically.
|
|
152
|
+
- Credential-like keys rejected at any depth; deeply immutable models.
|
|
153
|
+
- Conditional source writes under a cross-process lock and compare-and-swap
|
|
154
|
+
registries: a stale manager gets `SkillConflictError`, never overwrites newer work.
|
|
155
|
+
- Failed writes restore the exact previous state; an uncompensated failure raises
|
|
156
|
+
`SkillRollbackError`. Approvals and rejections resume after partial failures.
|
|
157
|
+
Cancelled mutations finish before `CancelledError` is re-raised, and a closed
|
|
158
|
+
manager raises `SkillManagerClosedError`.
|
|
159
|
+
- Source limits enforced before every write; generated Skills revalidated deeply;
|
|
160
|
+
imported rejection evidence verified; injected components' error messages, custom
|
|
161
|
+
source locators and their errors withheld; custom backends' output revalidated.
|
|
162
|
+
- Mandatory, strict AGXAI evidence for every governed operation: an operation whose
|
|
163
|
+
evidence cannot be recorded is refused. Inject a durable `xai_runtime` for audits;
|
|
164
|
+
the default keeps evidence in memory.
|
|
165
|
+
- Bounded dependency resolution (`dependency_max_steps`) and capability resolution
|
|
166
|
+
concurrency (`capability_concurrency`).
|
|
167
|
+
|
|
168
|
+
## Container
|
|
169
|
+
|
|
170
|
+
```console
|
|
171
|
+
podman build -t agskillmanager:3.0.0 -f Containerfile .
|
|
172
|
+
podman run --rm agskillmanager:3.0.0
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
The multi-stage image runs as a non-root user and verifies the installation by default.
|
|
176
|
+
|
|
177
|
+
## Customize without losing downstream options
|
|
178
|
+
|
|
179
|
+
| Runtime | Inject through | Configure in that runtime |
|
|
180
|
+
|---|---|---|
|
|
181
|
+
| feedback-manager | `SkillManagerSetup(feedback_manager=...)` | Storage, routing, policies and learning |
|
|
182
|
+
| mcp-capability-router | `SkillManagerSetup(mcp_runtime=...)` | Registry, retrieval, transport, auth, resilience |
|
|
183
|
+
| refresh-engine | `SkillManagerSetup(refresh_engine=...)` | Source, operation, fingerprint, storage and events |
|
|
184
|
+
| agxai | `SkillManagerSetup(xai_runtime=...)` (strict or fail-closed, with a plugin) | Provenance, disclosure, explanation and plugins |
|
|
185
|
+
| retrievalloom | `SkillManagerSetup(discovery=RetrievalLoomDiscoveryProvider(RetrievalLoomDiscoveryConfig(...)))` | Embeddings, reranker, NLI, indexes, stores and retrieval config |
|
|
186
|
+
| xstructured | `GenerateSkillRequest(generator=XStructuredSkillGenerator(XStructuredSkillGeneratorConfig(...)))` | Runnable, repair and structured-output options |
|
|
187
|
+
|
|
188
|
+
Caller-created collaborators remain caller-owned. See the full
|
|
189
|
+
[customization matrix](https://agskillmanager.readthedocs.io/en/latest/integrations/customization/).
|
|
190
|
+
|
|
191
|
+
## Explore
|
|
192
|
+
|
|
193
|
+
- [Documentation](https://agskillmanager.readthedocs.io/en/latest/)
|
|
194
|
+
- [Runnable examples](https://github.com/smuniharish/agskillmanager/tree/master/examples):
|
|
195
|
+
plain Python, LangGraph, LangChain, approval, PostgreSQL, MCP and OTel.
|
|
196
|
+
- [API reference](https://agskillmanager.readthedocs.io/en/latest/api/manager/)
|
|
197
|
+
- [Agent Skills](https://github.com/smuniharish/agskillmanager/tree/master/agskillmanager-skills)
|
|
198
|
+
- [Contributing](https://github.com/smuniharish/agskillmanager/blob/master/CONTRIBUTING.md)
|
|
199
|
+
- [Security](https://github.com/smuniharish/agskillmanager/blob/master/SECURITY.md)
|
|
200
|
+
- [Changelog](https://github.com/smuniharish/agskillmanager/blob/master/CHANGELOG.md)
|
|
201
|
+
|
|
202
|
+
## Development
|
|
203
|
+
|
|
204
|
+
```console
|
|
205
|
+
uv sync --locked --all-extras --all-groups
|
|
206
|
+
uv run --no-sync ruff check .
|
|
207
|
+
uv run --no-sync ruff format --check .
|
|
208
|
+
uv run --no-sync pyrefly check
|
|
209
|
+
uv run --no-sync pytest
|
|
210
|
+
uv run --no-sync zensical build --strict
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
CI measures 100% line and branch coverage with a PostgreSQL service, checks Python
|
|
214
|
+
3.12–3.14, validates docs and verifies a core wheel without optional frameworks.
|
|
215
|
+
Service/model examples are live-tested when their documented environment variables
|
|
216
|
+
are set. Never commit credentials.
|
|
217
|
+
|
|
218
|
+
Licensed under [Apache-2.0](https://github.com/smuniharish/agskillmanager/blob/master/LICENSE).
|
|
@@ -1,124 +1,169 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/smuniharish/agskillmanager/master/docs/assets/logo.svg" width="80" alt="AG Skill Manager">
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
# agskillmanager
|
|
6
|
-
|
|
7
|
-
**Governed, framework-agnostic Skill lifecycle management for AI agents.**
|
|
8
|
-
|
|
9
|
-
[](https://github.com/smuniharish/agskillmanager/actions/workflows/ci.yml)
|
|
10
|
-
[](https://pypi.org/project/agskillmanager/)
|
|
11
|
-
[](https://agskillmanager.readthedocs.io/en/latest/)
|
|
12
|
-
[](https://github.com/smuniharish/agskillmanager/blob/master/pyproject.toml)
|
|
13
|
-
[](https://github.com/smuniharish/agskillmanager/actions/workflows/ci.yml)
|
|
14
|
-
[](https://github.com/smuniharish/agskillmanager/blob/master/src/skill_manager/py.typed)
|
|
15
|
-
[](https://github.com/smuniharish/agskillmanager/blob/master/LICENSE)
|
|
16
|
-
|
|
17
|
-
Reusable instructions become application assets: validated, discoverable, versioned,
|
|
18
|
-
reviewable and ready to compose. Skill Manager produces a typed `SkillBundle`;
|
|
19
|
-
your agent framework owns execution.
|
|
20
|
-
|
|
21
|
-
## Why Skill Manager?
|
|
22
|
-
|
|
23
|
-
- Canonical YAML and typed, validated domain models.
|
|
24
|
-
- Immutable revision identity, dependency resolution and provenance lineage.
|
|
25
|
-
- Async ABC extension points for storage, discovery, generation and telemetry.
|
|
26
|
-
- Hybrid keyword, fuzzy and BM25 Skill discovery powered by
|
|
27
|
-
[RetrievalLoom](https://pypi.org/project/retrievalloom/), with pluggable
|
|
28
|
-
embeddings, rerankers and NLI.
|
|
29
|
-
- Human approval, rejection and feedback-informed regeneration.
|
|
30
|
-
- MCP capability resolution, refresh scheduling and bounded caches.
|
|
31
|
-
- Fully configured downstream runtimes stay injectable, including their stores,
|
|
32
|
-
policies, plugins and transport options.
|
|
33
|
-
- No LangChain or LangGraph dependency in core. Works with plain Python, Agno,
|
|
34
|
-
CrewAI or any runtime that consumes instructions.
|
|
35
|
-
|
|
36
|
-
## Install
|
|
37
|
-
|
|
38
|
-
Python 3.12 through 3.14.
|
|
39
|
-
|
|
40
|
-
```console
|
|
41
|
-
pip install agskillmanager
|
|
42
|
-
pip install "agskillmanager[langchain]" # xstructured generation and embeddings
|
|
43
|
-
pip install "agskillmanager[postgres,otel]" # PostgreSQL and OpenTelemetry
|
|
44
|
-
pip install "agskillmanager[all]"
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Quickstart
|
|
48
|
-
|
|
49
|
-
```python
|
|
50
|
-
import asyncio
|
|
51
|
-
|
|
52
|
-
from skill_manager import
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
-
|
|
104
|
-
-
|
|
105
|
-
|
|
106
|
-
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/smuniharish/agskillmanager/master/docs/assets/logo.svg" width="80" alt="AG Skill Manager">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# agskillmanager
|
|
6
|
+
|
|
7
|
+
**Governed, framework-agnostic Skill lifecycle management for AI agents.**
|
|
8
|
+
|
|
9
|
+
[](https://github.com/smuniharish/agskillmanager/actions/workflows/ci.yml)
|
|
10
|
+
[](https://pypi.org/project/agskillmanager/)
|
|
11
|
+
[](https://agskillmanager.readthedocs.io/en/latest/)
|
|
12
|
+
[](https://github.com/smuniharish/agskillmanager/blob/master/pyproject.toml)
|
|
13
|
+
[](https://github.com/smuniharish/agskillmanager/actions/workflows/ci.yml)
|
|
14
|
+
[](https://github.com/smuniharish/agskillmanager/blob/master/src/skill_manager/py.typed)
|
|
15
|
+
[](https://github.com/smuniharish/agskillmanager/blob/master/LICENSE)
|
|
16
|
+
|
|
17
|
+
Reusable instructions become application assets: validated, discoverable, versioned,
|
|
18
|
+
reviewable and ready to compose. Skill Manager produces a typed `SkillBundle`;
|
|
19
|
+
your agent framework owns execution.
|
|
20
|
+
|
|
21
|
+
## Why Skill Manager?
|
|
22
|
+
|
|
23
|
+
- Canonical YAML and typed, validated domain models.
|
|
24
|
+
- Immutable revision identity, dependency resolution and provenance lineage.
|
|
25
|
+
- Async ABC extension points for storage, discovery, generation and telemetry.
|
|
26
|
+
- Hybrid keyword, fuzzy and BM25 Skill discovery powered by
|
|
27
|
+
[RetrievalLoom](https://pypi.org/project/retrievalloom/), with pluggable
|
|
28
|
+
embeddings, rerankers and NLI.
|
|
29
|
+
- Human approval, rejection and feedback-informed regeneration.
|
|
30
|
+
- MCP capability resolution, refresh scheduling and bounded caches.
|
|
31
|
+
- Fully configured downstream runtimes stay injectable, including their stores,
|
|
32
|
+
policies, plugins and transport options.
|
|
33
|
+
- No LangChain or LangGraph dependency in core. Works with plain Python, Agno,
|
|
34
|
+
CrewAI or any runtime that consumes instructions.
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
Python 3.12 through 3.14.
|
|
39
|
+
|
|
40
|
+
```console
|
|
41
|
+
pip install agskillmanager
|
|
42
|
+
pip install "agskillmanager[langchain]" # xstructured generation and embeddings
|
|
43
|
+
pip install "agskillmanager[postgres,otel]" # PostgreSQL and OpenTelemetry
|
|
44
|
+
pip install "agskillmanager[all]"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Quickstart
|
|
48
|
+
|
|
49
|
+
```python
|
|
50
|
+
import asyncio
|
|
51
|
+
|
|
52
|
+
from skill_manager import (
|
|
53
|
+
BuildBundleRequest,
|
|
54
|
+
DiscoverSkillsRequest,
|
|
55
|
+
RegisterSkillRequest,
|
|
56
|
+
Skill,
|
|
57
|
+
SkillManager,
|
|
58
|
+
SkillMetadata,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
async def main() -> None:
|
|
63
|
+
async with SkillManager() as manager:
|
|
64
|
+
skill = await manager.register_skill(
|
|
65
|
+
RegisterSkillRequest(
|
|
66
|
+
skill=Skill(
|
|
67
|
+
metadata=SkillMetadata(
|
|
68
|
+
name="incident-review",
|
|
69
|
+
version="1.0.0",
|
|
70
|
+
description="Review incidents using verified evidence.",
|
|
71
|
+
),
|
|
72
|
+
instructions=(
|
|
73
|
+
"Separate confirmed facts from hypotheses.",
|
|
74
|
+
"Report unresolved risks explicitly.",
|
|
75
|
+
),
|
|
76
|
+
)
|
|
77
|
+
)
|
|
78
|
+
)
|
|
79
|
+
matches = await manager.discover(DiscoverSkillsRequest(query="review incident", top_k=1))
|
|
80
|
+
bundle = await manager.build_bundle(BuildBundleRequest(skills=tuple(matches)))
|
|
81
|
+
print(skill.skill_id)
|
|
82
|
+
print("\n".join(bundle.instructions))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
asyncio.run(main())
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Every operation takes exactly one validated request object, for example
|
|
89
|
+
`list_skills(SkillQuery())` or `refresh(RefreshRequest())`. Pass a
|
|
90
|
+
`SkillManagerSetup(sources=(FilesystemSkillSource(FilesystemSkillSourceConfig(...)),))`
|
|
91
|
+
for YAML persistence, or inject a PostgreSQL registry for a shared catalog. Enable
|
|
92
|
+
`require_human_approval=True` when generating untrusted instructions: pending Skills
|
|
93
|
+
are persisted to the source, and approvals are bound to the Skill's ID, revision
|
|
94
|
+
and content digest. The default feedback store is in memory, so agent approvals
|
|
95
|
+
cannot be verified after a restart and those Skills return to review; inject a
|
|
96
|
+
persistent feedback store for restart-safe approvals. Upgrading from 2.x? Read
|
|
97
|
+
[Migrating to 3.0](https://agskillmanager.readthedocs.io/en/latest/getting-started/migration/).
|
|
98
|
+
|
|
99
|
+
## Hardened by default
|
|
100
|
+
|
|
101
|
+
- Strict YAML (duplicate keys rejected), bounded documents, and filesystem sources
|
|
102
|
+
that reject symlinks and write atomically.
|
|
103
|
+
- Credential-like keys rejected at any depth; deeply immutable models.
|
|
104
|
+
- Conditional source writes under a cross-process lock and compare-and-swap
|
|
105
|
+
registries: a stale manager gets `SkillConflictError`, never overwrites newer work.
|
|
106
|
+
- Failed writes restore the exact previous state; an uncompensated failure raises
|
|
107
|
+
`SkillRollbackError`. Approvals and rejections resume after partial failures.
|
|
108
|
+
Cancelled mutations finish before `CancelledError` is re-raised, and a closed
|
|
109
|
+
manager raises `SkillManagerClosedError`.
|
|
110
|
+
- Source limits enforced before every write; generated Skills revalidated deeply;
|
|
111
|
+
imported rejection evidence verified; injected components' error messages, custom
|
|
112
|
+
source locators and their errors withheld; custom backends' output revalidated.
|
|
113
|
+
- Mandatory, strict AGXAI evidence for every governed operation: an operation whose
|
|
114
|
+
evidence cannot be recorded is refused. Inject a durable `xai_runtime` for audits;
|
|
115
|
+
the default keeps evidence in memory.
|
|
116
|
+
- Bounded dependency resolution (`dependency_max_steps`) and capability resolution
|
|
117
|
+
concurrency (`capability_concurrency`).
|
|
118
|
+
|
|
119
|
+
## Container
|
|
120
|
+
|
|
121
|
+
```console
|
|
122
|
+
podman build -t agskillmanager:3.0.0 -f Containerfile .
|
|
123
|
+
podman run --rm agskillmanager:3.0.0
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
The multi-stage image runs as a non-root user and verifies the installation by default.
|
|
127
|
+
|
|
128
|
+
## Customize without losing downstream options
|
|
129
|
+
|
|
130
|
+
| Runtime | Inject through | Configure in that runtime |
|
|
131
|
+
|---|---|---|
|
|
132
|
+
| feedback-manager | `SkillManagerSetup(feedback_manager=...)` | Storage, routing, policies and learning |
|
|
133
|
+
| mcp-capability-router | `SkillManagerSetup(mcp_runtime=...)` | Registry, retrieval, transport, auth, resilience |
|
|
134
|
+
| refresh-engine | `SkillManagerSetup(refresh_engine=...)` | Source, operation, fingerprint, storage and events |
|
|
135
|
+
| agxai | `SkillManagerSetup(xai_runtime=...)` (strict or fail-closed, with a plugin) | Provenance, disclosure, explanation and plugins |
|
|
136
|
+
| retrievalloom | `SkillManagerSetup(discovery=RetrievalLoomDiscoveryProvider(RetrievalLoomDiscoveryConfig(...)))` | Embeddings, reranker, NLI, indexes, stores and retrieval config |
|
|
137
|
+
| xstructured | `GenerateSkillRequest(generator=XStructuredSkillGenerator(XStructuredSkillGeneratorConfig(...)))` | Runnable, repair and structured-output options |
|
|
138
|
+
|
|
139
|
+
Caller-created collaborators remain caller-owned. See the full
|
|
140
|
+
[customization matrix](https://agskillmanager.readthedocs.io/en/latest/integrations/customization/).
|
|
141
|
+
|
|
142
|
+
## Explore
|
|
143
|
+
|
|
144
|
+
- [Documentation](https://agskillmanager.readthedocs.io/en/latest/)
|
|
145
|
+
- [Runnable examples](https://github.com/smuniharish/agskillmanager/tree/master/examples):
|
|
146
|
+
plain Python, LangGraph, LangChain, approval, PostgreSQL, MCP and OTel.
|
|
147
|
+
- [API reference](https://agskillmanager.readthedocs.io/en/latest/api/manager/)
|
|
148
|
+
- [Agent Skills](https://github.com/smuniharish/agskillmanager/tree/master/agskillmanager-skills)
|
|
149
|
+
- [Contributing](https://github.com/smuniharish/agskillmanager/blob/master/CONTRIBUTING.md)
|
|
150
|
+
- [Security](https://github.com/smuniharish/agskillmanager/blob/master/SECURITY.md)
|
|
151
|
+
- [Changelog](https://github.com/smuniharish/agskillmanager/blob/master/CHANGELOG.md)
|
|
152
|
+
|
|
153
|
+
## Development
|
|
154
|
+
|
|
155
|
+
```console
|
|
156
|
+
uv sync --locked --all-extras --all-groups
|
|
157
|
+
uv run --no-sync ruff check .
|
|
158
|
+
uv run --no-sync ruff format --check .
|
|
159
|
+
uv run --no-sync pyrefly check
|
|
160
|
+
uv run --no-sync pytest
|
|
161
|
+
uv run --no-sync zensical build --strict
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
CI measures 100% line and branch coverage with a PostgreSQL service, checks Python
|
|
165
|
+
3.12–3.14, validates docs and verifies a core wheel without optional frameworks.
|
|
166
|
+
Service/model examples are live-tested when their documented environment variables
|
|
167
|
+
are set. Never commit credentials.
|
|
168
|
+
|
|
169
|
+
Licensed under [Apache-2.0](https://github.com/smuniharish/agskillmanager/blob/master/LICENSE).
|