aixand-skill-manager 0.1.0b0__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.
- aixand_skill_manager-0.1.0b0/.python-version +1 -0
- aixand_skill_manager-0.1.0b0/LICENSE +202 -0
- aixand_skill_manager-0.1.0b0/MANIFEST.in +9 -0
- aixand_skill_manager-0.1.0b0/PKG-INFO +259 -0
- aixand_skill_manager-0.1.0b0/README.md +240 -0
- aixand_skill_manager-0.1.0b0/dev.ps1 +19 -0
- aixand_skill_manager-0.1.0b0/dev.py +355 -0
- aixand_skill_manager-0.1.0b0/dev.sh +10 -0
- aixand_skill_manager-0.1.0b0/development-constraints.txt +6 -0
- aixand_skill_manager-0.1.0b0/development.toml +15 -0
- aixand_skill_manager-0.1.0b0/docs/README.md +15 -0
- aixand_skill_manager-0.1.0b0/docs/development.md +84 -0
- aixand_skill_manager-0.1.0b0/docs/github-sources.md +59 -0
- aixand_skill_manager-0.1.0b0/docs/managed.md +134 -0
- aixand_skill_manager-0.1.0b0/docs/projects.md +230 -0
- aixand_skill_manager-0.1.0b0/docs/prompt-manager-integration.md +67 -0
- aixand_skill_manager-0.1.0b0/docs/python-sdk.md +187 -0
- aixand_skill_manager-0.1.0b0/docs/storage.md +61 -0
- aixand_skill_manager-0.1.0b0/examples/csv-audit/.audit-settings +2 -0
- aixand_skill_manager-0.1.0b0/examples/csv-audit/SKILL.md +24 -0
- aixand_skill_manager-0.1.0b0/examples/csv-audit/assets/badge.png +0 -0
- aixand_skill_manager-0.1.0b0/examples/csv-audit/assets/sample.csv +4 -0
- aixand_skill_manager-0.1.0b0/examples/csv-audit/references/rules.md +8 -0
- aixand_skill_manager-0.1.0b0/examples/csv-audit/scripts/audit.py +33 -0
- aixand_skill_manager-0.1.0b0/examples/sdk_application.py +65 -0
- aixand_skill_manager-0.1.0b0/pyproject.toml +30 -0
- aixand_skill_manager-0.1.0b0/requirements-dev.lock +110 -0
- aixand_skill_manager-0.1.0b0/setup.cfg +4 -0
- aixand_skill_manager-0.1.0b0/src/aixand_skill_manager.egg-info/PKG-INFO +259 -0
- aixand_skill_manager-0.1.0b0/src/aixand_skill_manager.egg-info/SOURCES.txt +74 -0
- aixand_skill_manager-0.1.0b0/src/aixand_skill_manager.egg-info/dependency_links.txt +1 -0
- aixand_skill_manager-0.1.0b0/src/aixand_skill_manager.egg-info/entry_points.txt +2 -0
- aixand_skill_manager-0.1.0b0/src/aixand_skill_manager.egg-info/requires.txt +9 -0
- aixand_skill_manager-0.1.0b0/src/aixand_skill_manager.egg-info/top_level.txt +1 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/__init__.py +68 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/__main__.py +3 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/_managed.py +228 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/_paths.py +15 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/_source_process.py +51 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/_source_records.py +263 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/cli.py +158 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/codec.py +83 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/collections.py +155 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/contracts.py +280 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/errors.py +35 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/fs.py +242 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/github_source.py +111 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/managed.py +341 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/managed_cli.py +150 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/manager.py +664 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/metadata.py +57 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/project_cli.py +134 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/projects.py +1133 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/py.typed +0 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/sdk.py +496 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/source_cli.py +189 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/source_discovery.py +72 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/source_jobs.py +279 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/sources.py +721 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/store.py +59 -0
- aixand_skill_manager-0.1.0b0/src/skill_manager/windows_fs.py +98 -0
- aixand_skill_manager-0.1.0b0/tests/fixtures/pre_github_source_store.json +106 -0
- aixand_skill_manager-0.1.0b0/tests/fixtures/pre_prompt_sdk_store.json +119 -0
- aixand_skill_manager-0.1.0b0/tests/managed_lifecycle.py +365 -0
- aixand_skill_manager-0.1.0b0/tests/test_cli.py +82 -0
- aixand_skill_manager-0.1.0b0/tests/test_example.py +33 -0
- aixand_skill_manager-0.1.0b0/tests/test_filesystem_integration.py +69 -0
- aixand_skill_manager-0.1.0b0/tests/test_managed.py +177 -0
- aixand_skill_manager-0.1.0b0/tests/test_manager.py +481 -0
- aixand_skill_manager-0.1.0b0/tests/test_optional_github.py +166 -0
- aixand_skill_manager-0.1.0b0/tests/test_projects.py +600 -0
- aixand_skill_manager-0.1.0b0/tests/test_prompt_integration.py +280 -0
- aixand_skill_manager-0.1.0b0/tests/test_sdk.py +336 -0
- aixand_skill_manager-0.1.0b0/tests/test_sources.py +357 -0
- aixand_skill_manager-0.1.0b0/tests/test_windows_fs.py +25 -0
- aixand_skill_manager-0.1.0b0/tests/verify_installation.py +85 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.11
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
include dev.py dev.sh dev.ps1
|
|
3
|
+
recursive-include docs *
|
|
4
|
+
recursive-include examples *
|
|
5
|
+
recursive-include tests *.py
|
|
6
|
+
recursive-include tests/fixtures *.json
|
|
7
|
+
include dev.py dev.sh dev.ps1 development.toml requirements-dev.lock .python-version
|
|
8
|
+
global-exclude __pycache__ *.py[cod]
|
|
9
|
+
include development-constraints.txt
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aixand-skill-manager
|
|
3
|
+
Version: 0.1.0b0
|
|
4
|
+
Summary: Local native skill authoring, immutable whole-directory releases, and export
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Project-URL: Repository, https://github.com/Aixand/manager-suite
|
|
7
|
+
Project-URL: Issues, https://github.com/Aixand/manager-suite/issues
|
|
8
|
+
Requires-Python: >=3.11
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: aixand-prompt-manager<0.2,>=0.1.0b0
|
|
12
|
+
Requires-Dist: aixand-lib-filesystem<0.2,>=0.1.0b0
|
|
13
|
+
Requires-Dist: PyYAML<7,>=6.0.3
|
|
14
|
+
Provides-Extra: github
|
|
15
|
+
Requires-Dist: aixand-lib-github-source<0.2,>=0.1.0b0; extra == "github"
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: build<2,>=1; extra == "dev"
|
|
18
|
+
Dynamic: license-file
|
|
19
|
+
|
|
20
|
+
# Skill Manager
|
|
21
|
+
|
|
22
|
+
For automatic imports into manager-owned storage, publisher updates, user edits,
|
|
23
|
+
and reconciliation, use [managed registrations](docs/managed.md). Existing source
|
|
24
|
+
registration and draft APIs below retain their filesystem-authoring behavior.
|
|
25
|
+
|
|
26
|
+
Development and installation work from this directory independently of the
|
|
27
|
+
Manager Suite checkout. See [standalone development](docs/development.md).
|
|
28
|
+
|
|
29
|
+
Standalone local management of native `SKILL.md` directories. Installable as
|
|
30
|
+
`aixand-skill-manager==0.1.0b0`; import `skill_manager`; run `skill-manager` or
|
|
31
|
+
`python -m skill_manager`. Python 3.11+ and PyYAML 6.0.3–6.x are required. This MVP
|
|
32
|
+
uses descriptor-relative access and locks on POSIX; atomic directory commits use
|
|
33
|
+
Linux `renameat2(RENAME_NOREPLACE)` or macOS `renameatx_np(RENAME_EXCL)` with
|
|
34
|
+
filesystem support. Unsupported environments
|
|
35
|
+
receive a structured error before directory publication.
|
|
36
|
+
|
|
37
|
+
Skill Manager registers explicit sources, inspects and edits drafts, validates
|
|
38
|
+
native metadata, publishes whole-directory snapshots, compares versions, and
|
|
39
|
+
exports to an explicit consumer directory. It works independently of Agent Manager,
|
|
40
|
+
Suite, provider credentials, and model services.
|
|
41
|
+
|
|
42
|
+
Accepted-content updates, reconciliation, and history use the public package
|
|
43
|
+
lifecycle SDK from `aixand-prompt-manager>=0.1.0b0,<0.2`. The dependency is one-way:
|
|
44
|
+
Prompt Manager remains independently usable and does not import Skill Manager.
|
|
45
|
+
Native skill validation, manifests/blobs, release references, and filesystem
|
|
46
|
+
export remain owned here. Existing stores require no migration. See
|
|
47
|
+
[the integration contract](docs/prompt-manager-integration.md).
|
|
48
|
+
|
|
49
|
+
GitHub acquisition is optional: install `aixand-skill-manager[github]` to use the
|
|
50
|
+
standalone `aixand-lib-github-source` library. Creation, local imports, stored skills,
|
|
51
|
+
history, and releases work without it. Skill Manager owns its acquisition policy
|
|
52
|
+
and retained jobs. See
|
|
53
|
+
[GitHub sources](docs/github-sources.md).
|
|
54
|
+
|
|
55
|
+
Store locking and Windows pinned-path access use the standalone
|
|
56
|
+
`aixand-lib-filesystem` library. The `.locks/store.lock` path and locking
|
|
57
|
+
protocol coordinate concurrent store users.
|
|
58
|
+
|
|
59
|
+
## Install and verify
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
python3 -m venv /tmp/skill-manager-env
|
|
63
|
+
/tmp/skill-manager-env/bin/python -m pip install .
|
|
64
|
+
/tmp/skill-manager-env/bin/skill-manager --help
|
|
65
|
+
/tmp/skill-manager-env/bin/python -B -m unittest discover -s tests -v
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Use a temporary home during experiments. Selection order is explicit `Manager(home)`
|
|
69
|
+
or `--home`, then `SKILL_MANAGER_HOME`, then
|
|
70
|
+
`${XDG_DATA_HOME:-~/.local/share}/aixand/manager/skill`. Construction, listing an absent
|
|
71
|
+
store, and inspection do not create the store. Registration persists paths and
|
|
72
|
+
ownership metadata without copying source files. Sources default to read-only.
|
|
73
|
+
|
|
74
|
+
## Public library
|
|
75
|
+
|
|
76
|
+
The [version 1 Python SDK](docs/python-sdk.md) provides explicit per-skill handles,
|
|
77
|
+
registration returning effective content/status, and revision-pinned resolutions.
|
|
78
|
+
The [project connection workflow](docs/projects.md) adds nested collection import,
|
|
79
|
+
explicit project skill directories, guarded updates, project variants, and recovery.
|
|
80
|
+
The existing record APIs below retain JSON-compatible mapping/list results;
|
|
81
|
+
file reads return original bytes. `SkillError(code, message, *, uncertain=False,
|
|
82
|
+
operation_id=None, recovery=None)` exposes those attributes and `to_dict()`.
|
|
83
|
+
|
|
84
|
+
```python
|
|
85
|
+
from pathlib import Path
|
|
86
|
+
from skill_manager import Manager
|
|
87
|
+
|
|
88
|
+
m = Manager("/tmp/skill-store")
|
|
89
|
+
root = Path("/tmp/my-skills")
|
|
90
|
+
root.mkdir(exist_ok=True)
|
|
91
|
+
m.register_source("local", [root], writable=True, owner={"kind": "local"})
|
|
92
|
+
entry = m.create_draft("local", "review-notes", {
|
|
93
|
+
"SKILL.md": {"content": b"---\nname: review-notes\ndescription: Review notes when preparing a meeting.\n---\nRead the supplied notes.\n",
|
|
94
|
+
"executable": False},
|
|
95
|
+
"references/checklist.md": {"content": b"Check dates and unresolved actions.\n",
|
|
96
|
+
"executable": False},
|
|
97
|
+
})
|
|
98
|
+
edited = m.save_file(entry["id"], "references/checklist.md",
|
|
99
|
+
b"Check dates, owners, and unresolved actions.\n",
|
|
100
|
+
expected_digest=entry["digest"])
|
|
101
|
+
assert m.validate(edited["id"])["valid"]
|
|
102
|
+
release = m.release(edited["id"], "v1", expected_digest=edited["digest"])
|
|
103
|
+
resolved = m.resolve(release["reference"])
|
|
104
|
+
receipt = m.export(resolved["reference"], "/tmp/review-notes")
|
|
105
|
+
assert receipt["digest"] == release["digest"]
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
| Method | Arguments and behavior |
|
|
109
|
+
| --- | --- |
|
|
110
|
+
| `register_source` | `(identifier, paths, *, label=None, writable=False, owner=None, expected_revision=None)`; create-only with null guard; existing registration needs its observed revision. |
|
|
111
|
+
| `source`, `sources` | `(identifier)` / `()`; include location availability; corrupt registrations remain isolated in lists. |
|
|
112
|
+
| `unregister_source` | `(identifier, *, expected_revision)`; removes registration, retains files and releases. |
|
|
113
|
+
| `catalog` | `()`; source descriptors and source-scoped draft entries, with isolated diagnostics. |
|
|
114
|
+
| `show`, `read_file`, `validate` | `(entry_id_or_release)` / `(entry_id_or_release, relative_path)` / `(entry_id_or_release)`; inspection, bytes, and validation. |
|
|
115
|
+
| `create_draft` | `(source_id, name, files, *, path=None)`; each file supplies `content: bytes`, `executable: bool`; `path` selects a registered root when several exist. |
|
|
116
|
+
| `save_file` | `(entry_id, relative_path, content, *, executable=False, expected_digest)`; add/replace one file under a complete-draft guard. |
|
|
117
|
+
| `release` | `(entry_id, version, *, expected_digest)`; explicit publication; immutable label. |
|
|
118
|
+
| `resolve` | `(reference)`; validates captured manifest and blobs, independent of sources. |
|
|
119
|
+
| `releases` | `(source_id=None, name=None)`; retained versions, including removed sources, with isolated errors. |
|
|
120
|
+
| `diff` | `(before, after)`; draft IDs or release references; all file, permission, directory, and metadata changes. |
|
|
121
|
+
| `export` | `(reference, destination)`; absent package directory or identical existing package. |
|
|
122
|
+
|
|
123
|
+
Select drafts by the catalog `id`; names alone are ambiguous. Entry identity includes
|
|
124
|
+
the store, source ID, and canonical absolute package directory. Discovery checks a
|
|
125
|
+
registered root containing `SKILL.md`, otherwise its immediate directory children
|
|
126
|
+
containing `SKILL.md`. It never recursively searches projects. Missing registrations
|
|
127
|
+
and unavailable roots remain visible. Pointing at an existing skill supports direct
|
|
128
|
+
inspection; draft creation requires a collection root.
|
|
129
|
+
|
|
130
|
+
For an explicit fork of a plugin skill, read its files through `read_file`, retain
|
|
131
|
+
the manifest executable flags, and pass them to `create_draft` in a writable source.
|
|
132
|
+
Create any empty supporting directories separately; inspection and release capture
|
|
133
|
+
them. Ordinary catalog, inspection, and validation do not edit plugin caches.
|
|
134
|
+
|
|
135
|
+
Invalid frontmatter remains editable with `digest_kind="draft-files"`; the repair
|
|
136
|
+
digest covers all raw files and directories. Complete valid drafts use
|
|
137
|
+
`digest_kind="package"`. Publication requires complete metadata and containment
|
|
138
|
+
validation. Filesystem hazards without a safe digest require explicit filesystem
|
|
139
|
+
repair (for example, removing a symlink) before guarded editing. Deleting `SKILL.md`
|
|
140
|
+
removes an external directory from bounded discovery; restore it directly before
|
|
141
|
+
selecting the draft again. Existing published releases remain independent.
|
|
142
|
+
|
|
143
|
+
## CLI
|
|
144
|
+
|
|
145
|
+
Results are strict JSON by default; `--json` is accepted at each command. Errors
|
|
146
|
+
are JSON on stderr. Exit codes: 0 success, 2 validation/conflict/not-found or an
|
|
147
|
+
invalid validation result, 3 unsupported, 4 uncertain, 1 other operational failure.
|
|
148
|
+
Argument syntax errors are structured validation errors with exit 2. JSON inputs accept inline JSON or
|
|
149
|
+
`@PATH`; `none` is the explicit null revision token.
|
|
150
|
+
|
|
151
|
+
```sh
|
|
152
|
+
skill-manager --home /tmp/skill-store source register examples ./examples --json
|
|
153
|
+
skill-manager --home /tmp/skill-store source list --json
|
|
154
|
+
skill-manager --home /tmp/skill-store source show examples --json
|
|
155
|
+
skill-manager --home /tmp/skill-store catalog --json
|
|
156
|
+
# Copy the entry id and digest from the catalog result:
|
|
157
|
+
skill-manager --home /tmp/skill-store show ENTRY --json
|
|
158
|
+
skill-manager --home /tmp/skill-store show ENTRY --file assets/badge.png --json
|
|
159
|
+
skill-manager --home /tmp/skill-store validate ENTRY --json
|
|
160
|
+
skill-manager --home /tmp/skill-store release ENTRY --version v1 --expected-digest DIGEST --json
|
|
161
|
+
skill-manager --home /tmp/skill-store releases --source examples --name csv-audit --json
|
|
162
|
+
skill-manager --home /tmp/skill-store resolve examples/csv-audit@v1 --json
|
|
163
|
+
skill-manager --home /tmp/skill-store diff examples/csv-audit@v1 ENTRY --json
|
|
164
|
+
skill-manager --home /tmp/skill-store export examples/csv-audit@v1 /tmp/csv-audit --json
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Writable authoring also supports `draft create SOURCE NAME --files @files.json`
|
|
168
|
+
with `{ "SKILL.md": { "content_b64": "...", "executable": false } }`, and
|
|
169
|
+
`draft save ENTRY RELATIVE --file PATH --expected-digest DIGEST [--executable]`.
|
|
170
|
+
Remove a registration with `source unregister ID --expected-revision REV`.
|
|
171
|
+
Replacing a source registration requires that same guard; `--writable` is explicit
|
|
172
|
+
on each replacement.
|
|
173
|
+
|
|
174
|
+
## Format, release, and export contract
|
|
175
|
+
|
|
176
|
+
Native frontmatter follows the [Agent Skills specification](https://agentskills.io/specification).
|
|
177
|
+
Required fields are `name` and `description`; optional fields are `license`,
|
|
178
|
+
`compatibility`, string-to-string `metadata`, and string `allowed-tools`. The name
|
|
179
|
+
matches the package basename. Safe YAML rejects duplicate keys, custom object tags,
|
|
180
|
+
aliases, and anchors. Unknown fields belong inside `metadata`. These restrictions
|
|
181
|
+
keep validation deterministic and bounded. Instructions and supporting content
|
|
182
|
+
remain original bytes; validation never executes scripts or calls a model.
|
|
183
|
+
|
|
184
|
+
All symlinks and special files are rejected, including internal symlinks and resource
|
|
185
|
+
root ancestors that are symlinks. No-follow descriptor-relative reads recheck types
|
|
186
|
+
and containment. Portable paths reject absolute/drive paths, backslashes, traversal,
|
|
187
|
+
control characters, Windows reserved components, trailing dots/spaces, and case or
|
|
188
|
+
Unicode normalization collisions. Hidden regular files and all supporting directories,
|
|
189
|
+
including empty directories, are included.
|
|
190
|
+
|
|
191
|
+
The `skill-manager/package-1` manifest contains exactly `schema`, `name`, `metadata`,
|
|
192
|
+
sorted `directories`, and sorted `files`. Each file records `path`, raw byte `size`,
|
|
193
|
+
raw-byte `digest`, and `executable`. Any native execute bit means executable; exports
|
|
194
|
+
use 0755/0644 files and 0755 directories. Timestamps, ownership, and other permission
|
|
195
|
+
bits do not affect the identity. The package digest hashes the entire strict canonical
|
|
196
|
+
UTF-8 JSON manifest. Script-only, asset-only, executable-only, and directory-only
|
|
197
|
+
changes therefore change its identity. See [storage details](docs/storage.md).
|
|
198
|
+
|
|
199
|
+
Release references are `source/name@version` or `source/name@sha256:HEX`.
|
|
200
|
+
Resolve an older label explicitly to select its previous content. A label can never
|
|
201
|
+
be rebound. Repeating publication with the same label/content returns the original
|
|
202
|
+
record. Digest references require an existing publication in that source/name
|
|
203
|
+
namespace and return the lexicographically first matching label's captured
|
|
204
|
+
publication provenance. Source unregister/removal/reuse cannot rewrite that record.
|
|
205
|
+
|
|
206
|
+
Export requires an existing caller-owned parent and a destination basename equal to
|
|
207
|
+
the recorded name. The complete staged sibling package is verified before atomic
|
|
208
|
+
no-replace publication. Different existing content is a conflict; there is no merge
|
|
209
|
+
or overwrite. An identical existing package succeeds with `status="identical"`.
|
|
210
|
+
Failure preserves previous destination content, including a competing empty directory.
|
|
211
|
+
|
|
212
|
+
Limits: 4096 file/directory entries, 64 MiB per file, 256 MiB total bytes, 32 path
|
|
213
|
+
components, 4096 UTF-8 path bytes, 255 bytes per component, 1 MiB `SKILL.md` metadata
|
|
214
|
+
inspection, and 64 MiB per stored JSON record. Exceeding a limit gives an actionable
|
|
215
|
+
diagnostic. Captures hold bytes in memory. These are local MVP limits, not additional
|
|
216
|
+
requirements of the Agent Skills specification.
|
|
217
|
+
|
|
218
|
+
Store mutations use one advisory lock per canonical store, serializing revision
|
|
219
|
+
comparison and commit. Directory publication also rejects noncooperating competing
|
|
220
|
+
destinations. Source writers outside Skill Manager are detected through capture
|
|
221
|
+
checks; they do not participate in its advisory lock. Files are fsynced before
|
|
222
|
+
commit; full power-loss durability, hostile-writer synchronization across stores,
|
|
223
|
+
and automatic orphan-blob/staging garbage collection are outside this MVP.
|
|
224
|
+
|
|
225
|
+
The [CSV audit example](examples/csv-audit/SKILL.md) includes a script, reference,
|
|
226
|
+
CSV, binary PNG, hidden settings, and an empty supporting directory. Provider-native
|
|
227
|
+
activation and managed profile assignments belong to Agent Manager. No skill
|
|
228
|
+
flattening into developer instructions, remote synchronization, marketplace,
|
|
229
|
+
cloud hosting, or plugin-manager implementation is included.
|
|
230
|
+
|
|
231
|
+
## Local developer commands
|
|
232
|
+
|
|
233
|
+
Inside the manager-suites source checkout, run from this directory with
|
|
234
|
+
Python 3.11+ and uv:
|
|
235
|
+
|
|
236
|
+
```sh
|
|
237
|
+
./dev.sh develop --local
|
|
238
|
+
./dev.sh check
|
|
239
|
+
./dev.sh test
|
|
240
|
+
./dev.sh build
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Use `.\dev.ps1` on Windows. Each package owns its development environment and
|
|
244
|
+
helper; these commands do not invoke suite-wide checks. See the
|
|
245
|
+
[development guide](docs/development.md) for wheel-based setup without sibling
|
|
246
|
+
sources, lock updates, build outputs, and the separate suite release lifecycle.
|
|
247
|
+
|
|
248
|
+
### Default storage location
|
|
249
|
+
|
|
250
|
+
The default product directory is `${XDG_DATA_HOME:-~/.local/share}/aixand/manager/skill`.
|
|
251
|
+
Set `AIXAND_MANAGER_ROOT=/custom/managers` to use `/custom/managers/skill`
|
|
252
|
+
without changing the data location of unrelated applications. Unset, empty, or
|
|
253
|
+
relative `XDG_DATA_HOME` values fall back to `~/.local/share`.
|
|
254
|
+
Explicit CLI/SDK paths and product-specific environment overrides take precedence;
|
|
255
|
+
these paths are used directly. Existing configured storage paths remain supported.
|
|
256
|
+
Agent and Conversation config overrides remain separate from their state-home overrides.
|
|
257
|
+
Default path resolution creates no directories and does not move or adopt old stores.
|
|
258
|
+
To keep using an existing store, supply its original path explicitly. Native provider
|
|
259
|
+
homes connected by the user and operating-system temporary files retain their locations.
|