rusticai-skills 0.2.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.
- rusticai_skills-0.2.0/PKG-INFO +254 -0
- rusticai_skills-0.2.0/README.md +232 -0
- rusticai_skills-0.2.0/pyproject.toml +79 -0
- rusticai_skills-0.2.0/src/rustic_ai/skills/__init__.py +49 -0
- rusticai_skills-0.2.0/src/rustic_ai/skills/executor.py +365 -0
- rusticai_skills-0.2.0/src/rustic_ai/skills/marketplace.py +359 -0
- rusticai_skills-0.2.0/src/rustic_ai/skills/models.py +175 -0
- rusticai_skills-0.2.0/src/rustic_ai/skills/parser.py +331 -0
- rusticai_skills-0.2.0/src/rustic_ai/skills/toolset.py +622 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rusticai-skills
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Agent Skills support for Rustic AI - load, parse, and execute skills from the Agent Skills ecosystem
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Author: Dragonscale Industries Inc.
|
|
7
|
+
Author-email: dev@dragonscale.ai
|
|
8
|
+
Requires-Python: >=3.13,<3.14
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Provides-Extra: test
|
|
12
|
+
Requires-Dist: gitpython (>=3.1.0,<4.0.0)
|
|
13
|
+
Requires-Dist: httpx (>=0.28.0,<0.29.0)
|
|
14
|
+
Requires-Dist: pyyaml (>=6.0.0,<7.0.0)
|
|
15
|
+
Requires-Dist: rusticai-core (>=1.1.0,<1.2.0)
|
|
16
|
+
Requires-Dist: rusticai-llm-agent (>=1.1.0,<1.2.0)
|
|
17
|
+
Project-URL: Homepage, https://www.rustic.ai/
|
|
18
|
+
Project-URL: Repository, https://github.com/dragonscale-ai/rustic-ai
|
|
19
|
+
Project-URL: Rustic AI Core, https://pypi.org/project/rusticai-core/
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# Rustic AI Skills
|
|
23
|
+
|
|
24
|
+
Agent Skills support for the Rustic AI framework. This module provides tools for discovering, installing, parsing, and executing Agent Skills from various sources including GitHub repositories and local directories.
|
|
25
|
+
|
|
26
|
+
## Overview
|
|
27
|
+
|
|
28
|
+
Agent Skills are a standardized format for packaging reusable capabilities that AI agents can invoke. This module implements:
|
|
29
|
+
|
|
30
|
+
- **SKILL.md Parser**: Parse skill definitions in the [Agent Skills](https://agentskills.io) format
|
|
31
|
+
- **Skill Marketplace**: Discover and install skills from GitHub repositories, Git URLs, or local directories
|
|
32
|
+
- **Script Executor**: Securely execute skill scripts (Python, Shell, JavaScript, etc.)
|
|
33
|
+
- **SkillToolset**: Integrate skills with the ReActAgent as executable tools
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
cd skills
|
|
39
|
+
poetry install --with dev
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Quick Start
|
|
43
|
+
|
|
44
|
+
### Discover and Install Skills
|
|
45
|
+
|
|
46
|
+
```python
|
|
47
|
+
from rustic_ai.skills import SkillMarketplace
|
|
48
|
+
|
|
49
|
+
# Initialize marketplace
|
|
50
|
+
marketplace = SkillMarketplace()
|
|
51
|
+
|
|
52
|
+
# Add Anthropic's official skills (pre-configured)
|
|
53
|
+
# marketplace.add_source("anthropic", "github", "anthropics/skills")
|
|
54
|
+
|
|
55
|
+
# Add a custom source
|
|
56
|
+
marketplace.add_source(
|
|
57
|
+
name="my-skills",
|
|
58
|
+
source_type="github",
|
|
59
|
+
location="myorg/agent-skills",
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
# Discover available skills
|
|
63
|
+
skills = marketplace.discover()
|
|
64
|
+
for skill in skills:
|
|
65
|
+
print(f"{skill.name}: {skill.description}")
|
|
66
|
+
|
|
67
|
+
# Install a skill
|
|
68
|
+
marketplace.install("pdf")
|
|
69
|
+
|
|
70
|
+
# List installed skills
|
|
71
|
+
installed = marketplace.list_installed()
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Use Skills with ReActAgent
|
|
75
|
+
|
|
76
|
+
```python
|
|
77
|
+
from pathlib import Path
|
|
78
|
+
from rustic_ai.skills import SkillToolset
|
|
79
|
+
from rustic_ai.llm_agent.react import ReActAgent, ReActAgentConfig
|
|
80
|
+
|
|
81
|
+
# Create toolset from installed skill
|
|
82
|
+
toolset = SkillToolset.from_path(Path("/tmp/rustic-skills/pdf"))
|
|
83
|
+
|
|
84
|
+
# Configure ReActAgent with the skill
|
|
85
|
+
config = ReActAgentConfig(
|
|
86
|
+
model="gpt-4",
|
|
87
|
+
toolset=toolset,
|
|
88
|
+
system_prompt=toolset.get_system_prompt_addition(),
|
|
89
|
+
)
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Use Multiple Skills
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
from rustic_ai.skills import SkillToolset
|
|
96
|
+
|
|
97
|
+
# Load multiple skills at once
|
|
98
|
+
toolset = SkillToolset.from_paths([
|
|
99
|
+
Path("/tmp/rustic-skills/pdf"),
|
|
100
|
+
Path("/tmp/rustic-skills/csv"),
|
|
101
|
+
Path("/tmp/rustic-skills/web-search"),
|
|
102
|
+
])
|
|
103
|
+
|
|
104
|
+
# Get combined system prompt
|
|
105
|
+
system_prompt = toolset.get_combined_system_prompt()
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Parse Skills Directly
|
|
109
|
+
|
|
110
|
+
```python
|
|
111
|
+
from pathlib import Path
|
|
112
|
+
from rustic_ai.skills import SkillParser, parse_skill
|
|
113
|
+
|
|
114
|
+
# Parse a skill folder
|
|
115
|
+
skill = parse_skill(Path("./my-skill"))
|
|
116
|
+
|
|
117
|
+
print(f"Name: {skill.name}")
|
|
118
|
+
print(f"Description: {skill.description}")
|
|
119
|
+
print(f"Scripts: {[s.name for s in skill.scripts]}")
|
|
120
|
+
print(f"Instructions:\n{skill.instructions}")
|
|
121
|
+
|
|
122
|
+
# Lazy load metadata only (for efficient discovery)
|
|
123
|
+
metadata = SkillParser.parse_metadata_only(Path("./my-skill"))
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Execute Scripts Directly
|
|
127
|
+
|
|
128
|
+
```python
|
|
129
|
+
from rustic_ai.skills import ScriptExecutor, ExecutionConfig
|
|
130
|
+
|
|
131
|
+
# Configure executor
|
|
132
|
+
config = ExecutionConfig(
|
|
133
|
+
timeout_seconds=60,
|
|
134
|
+
env_vars={"API_KEY": "secret"},
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
executor = ScriptExecutor(config)
|
|
138
|
+
|
|
139
|
+
# Execute inline code
|
|
140
|
+
result = executor.execute_inline(
|
|
141
|
+
code='print("Hello from skill")',
|
|
142
|
+
language="python",
|
|
143
|
+
args={"input": "test"},
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
if result.success:
|
|
147
|
+
print(result.output)
|
|
148
|
+
else:
|
|
149
|
+
print(f"Error: {result.error}")
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Skill Format
|
|
153
|
+
|
|
154
|
+
Skills follow the [Agent Skills specification](https://agentskills.io):
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
my-skill/
|
|
158
|
+
├── SKILL.md # Required: Skill definition
|
|
159
|
+
├── scripts/ # Optional: Executable scripts
|
|
160
|
+
│ ├── process.py
|
|
161
|
+
│ └── setup.sh
|
|
162
|
+
├── references/ # Optional: Reference documents
|
|
163
|
+
│ └── api-docs.md
|
|
164
|
+
└── assets/ # Optional: Template files, configs
|
|
165
|
+
└── template.json
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### SKILL.md Format
|
|
169
|
+
|
|
170
|
+
```markdown
|
|
171
|
+
---
|
|
172
|
+
name: my-skill
|
|
173
|
+
description: What this skill does and when to use it
|
|
174
|
+
allowed-tools: Read, Write, Bash
|
|
175
|
+
model: gpt-4
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
# My Skill
|
|
179
|
+
|
|
180
|
+
Instructions for how to use this skill...
|
|
181
|
+
|
|
182
|
+
## Usage
|
|
183
|
+
|
|
184
|
+
1. Step one
|
|
185
|
+
2. Step two
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
## Components
|
|
189
|
+
|
|
190
|
+
### Models
|
|
191
|
+
|
|
192
|
+
- `SkillMetadata`: Lightweight metadata from SKILL.md frontmatter
|
|
193
|
+
- `SkillDefinition`: Full skill definition with scripts, references, assets
|
|
194
|
+
- `SkillScript`: Executable script with interpreter info
|
|
195
|
+
- `SkillReference`: Reference document with lazy loading
|
|
196
|
+
- `SkillSource`: Configuration for a skill source (GitHub, local, Git)
|
|
197
|
+
- `SkillRegistry`: Registry of discovered skills
|
|
198
|
+
|
|
199
|
+
### Parser
|
|
200
|
+
|
|
201
|
+
- `SkillParser`: Parse SKILL.md files and discover resources
|
|
202
|
+
- `parse_skill()`: Convenience function for full parsing
|
|
203
|
+
- `parse_skill_metadata()`: Convenience function for metadata-only parsing
|
|
204
|
+
|
|
205
|
+
### Marketplace
|
|
206
|
+
|
|
207
|
+
- `SkillMarketplace`: Discover and install skills from various sources
|
|
208
|
+
- Supports GitHub repositories (via GitPython)
|
|
209
|
+
- Supports local directories
|
|
210
|
+
- Supports arbitrary Git URLs
|
|
211
|
+
|
|
212
|
+
### Executor
|
|
213
|
+
|
|
214
|
+
- `ScriptExecutor`: Execute scripts with timeout and sandboxing
|
|
215
|
+
- `ExecutionConfig`: Configuration for script execution
|
|
216
|
+
- `ExecutionResult`: Result of script execution
|
|
217
|
+
- Supports Python, Shell, JavaScript, TypeScript, Ruby
|
|
218
|
+
|
|
219
|
+
### Toolset
|
|
220
|
+
|
|
221
|
+
- `SkillToolset`: Convert skills to ReActToolset for use with ReActAgent (supports single or multiple skills)
|
|
222
|
+
- `MarketplaceSkillToolset`: Auto-install skills from marketplace
|
|
223
|
+
- `ScriptToolParams`: Parameters for script-based tools
|
|
224
|
+
|
|
225
|
+
## Testing
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
# Run all tests
|
|
229
|
+
poetry run pytest
|
|
230
|
+
|
|
231
|
+
# Run with coverage
|
|
232
|
+
poetry run pytest --cov=rustic_ai.skills
|
|
233
|
+
|
|
234
|
+
# Run specific test file
|
|
235
|
+
poetry run pytest tests/test_parser.py
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
## Development
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
# Format code
|
|
242
|
+
poetry run tox -e format
|
|
243
|
+
|
|
244
|
+
# Lint code
|
|
245
|
+
poetry run tox -e lint
|
|
246
|
+
|
|
247
|
+
# Run all checks
|
|
248
|
+
poetry run tox
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
## License
|
|
252
|
+
|
|
253
|
+
Apache-2.0
|
|
254
|
+
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# Rustic AI Skills
|
|
2
|
+
|
|
3
|
+
Agent Skills support for the Rustic AI framework. This module provides tools for discovering, installing, parsing, and executing Agent Skills from various sources including GitHub repositories and local directories.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
Agent Skills are a standardized format for packaging reusable capabilities that AI agents can invoke. This module implements:
|
|
8
|
+
|
|
9
|
+
- **SKILL.md Parser**: Parse skill definitions in the [Agent Skills](https://agentskills.io) format
|
|
10
|
+
- **Skill Marketplace**: Discover and install skills from GitHub repositories, Git URLs, or local directories
|
|
11
|
+
- **Script Executor**: Securely execute skill scripts (Python, Shell, JavaScript, etc.)
|
|
12
|
+
- **SkillToolset**: Integrate skills with the ReActAgent as executable tools
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
cd skills
|
|
18
|
+
poetry install --with dev
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Quick Start
|
|
22
|
+
|
|
23
|
+
### Discover and Install Skills
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
from rustic_ai.skills import SkillMarketplace
|
|
27
|
+
|
|
28
|
+
# Initialize marketplace
|
|
29
|
+
marketplace = SkillMarketplace()
|
|
30
|
+
|
|
31
|
+
# Add Anthropic's official skills (pre-configured)
|
|
32
|
+
# marketplace.add_source("anthropic", "github", "anthropics/skills")
|
|
33
|
+
|
|
34
|
+
# Add a custom source
|
|
35
|
+
marketplace.add_source(
|
|
36
|
+
name="my-skills",
|
|
37
|
+
source_type="github",
|
|
38
|
+
location="myorg/agent-skills",
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
# Discover available skills
|
|
42
|
+
skills = marketplace.discover()
|
|
43
|
+
for skill in skills:
|
|
44
|
+
print(f"{skill.name}: {skill.description}")
|
|
45
|
+
|
|
46
|
+
# Install a skill
|
|
47
|
+
marketplace.install("pdf")
|
|
48
|
+
|
|
49
|
+
# List installed skills
|
|
50
|
+
installed = marketplace.list_installed()
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Use Skills with ReActAgent
|
|
54
|
+
|
|
55
|
+
```python
|
|
56
|
+
from pathlib import Path
|
|
57
|
+
from rustic_ai.skills import SkillToolset
|
|
58
|
+
from rustic_ai.llm_agent.react import ReActAgent, ReActAgentConfig
|
|
59
|
+
|
|
60
|
+
# Create toolset from installed skill
|
|
61
|
+
toolset = SkillToolset.from_path(Path("/tmp/rustic-skills/pdf"))
|
|
62
|
+
|
|
63
|
+
# Configure ReActAgent with the skill
|
|
64
|
+
config = ReActAgentConfig(
|
|
65
|
+
model="gpt-4",
|
|
66
|
+
toolset=toolset,
|
|
67
|
+
system_prompt=toolset.get_system_prompt_addition(),
|
|
68
|
+
)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Use Multiple Skills
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
from rustic_ai.skills import SkillToolset
|
|
75
|
+
|
|
76
|
+
# Load multiple skills at once
|
|
77
|
+
toolset = SkillToolset.from_paths([
|
|
78
|
+
Path("/tmp/rustic-skills/pdf"),
|
|
79
|
+
Path("/tmp/rustic-skills/csv"),
|
|
80
|
+
Path("/tmp/rustic-skills/web-search"),
|
|
81
|
+
])
|
|
82
|
+
|
|
83
|
+
# Get combined system prompt
|
|
84
|
+
system_prompt = toolset.get_combined_system_prompt()
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Parse Skills Directly
|
|
88
|
+
|
|
89
|
+
```python
|
|
90
|
+
from pathlib import Path
|
|
91
|
+
from rustic_ai.skills import SkillParser, parse_skill
|
|
92
|
+
|
|
93
|
+
# Parse a skill folder
|
|
94
|
+
skill = parse_skill(Path("./my-skill"))
|
|
95
|
+
|
|
96
|
+
print(f"Name: {skill.name}")
|
|
97
|
+
print(f"Description: {skill.description}")
|
|
98
|
+
print(f"Scripts: {[s.name for s in skill.scripts]}")
|
|
99
|
+
print(f"Instructions:\n{skill.instructions}")
|
|
100
|
+
|
|
101
|
+
# Lazy load metadata only (for efficient discovery)
|
|
102
|
+
metadata = SkillParser.parse_metadata_only(Path("./my-skill"))
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Execute Scripts Directly
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
from rustic_ai.skills import ScriptExecutor, ExecutionConfig
|
|
109
|
+
|
|
110
|
+
# Configure executor
|
|
111
|
+
config = ExecutionConfig(
|
|
112
|
+
timeout_seconds=60,
|
|
113
|
+
env_vars={"API_KEY": "secret"},
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
executor = ScriptExecutor(config)
|
|
117
|
+
|
|
118
|
+
# Execute inline code
|
|
119
|
+
result = executor.execute_inline(
|
|
120
|
+
code='print("Hello from skill")',
|
|
121
|
+
language="python",
|
|
122
|
+
args={"input": "test"},
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
if result.success:
|
|
126
|
+
print(result.output)
|
|
127
|
+
else:
|
|
128
|
+
print(f"Error: {result.error}")
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Skill Format
|
|
132
|
+
|
|
133
|
+
Skills follow the [Agent Skills specification](https://agentskills.io):
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
my-skill/
|
|
137
|
+
├── SKILL.md # Required: Skill definition
|
|
138
|
+
├── scripts/ # Optional: Executable scripts
|
|
139
|
+
│ ├── process.py
|
|
140
|
+
│ └── setup.sh
|
|
141
|
+
├── references/ # Optional: Reference documents
|
|
142
|
+
│ └── api-docs.md
|
|
143
|
+
└── assets/ # Optional: Template files, configs
|
|
144
|
+
└── template.json
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### SKILL.md Format
|
|
148
|
+
|
|
149
|
+
```markdown
|
|
150
|
+
---
|
|
151
|
+
name: my-skill
|
|
152
|
+
description: What this skill does and when to use it
|
|
153
|
+
allowed-tools: Read, Write, Bash
|
|
154
|
+
model: gpt-4
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
# My Skill
|
|
158
|
+
|
|
159
|
+
Instructions for how to use this skill...
|
|
160
|
+
|
|
161
|
+
## Usage
|
|
162
|
+
|
|
163
|
+
1. Step one
|
|
164
|
+
2. Step two
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Components
|
|
168
|
+
|
|
169
|
+
### Models
|
|
170
|
+
|
|
171
|
+
- `SkillMetadata`: Lightweight metadata from SKILL.md frontmatter
|
|
172
|
+
- `SkillDefinition`: Full skill definition with scripts, references, assets
|
|
173
|
+
- `SkillScript`: Executable script with interpreter info
|
|
174
|
+
- `SkillReference`: Reference document with lazy loading
|
|
175
|
+
- `SkillSource`: Configuration for a skill source (GitHub, local, Git)
|
|
176
|
+
- `SkillRegistry`: Registry of discovered skills
|
|
177
|
+
|
|
178
|
+
### Parser
|
|
179
|
+
|
|
180
|
+
- `SkillParser`: Parse SKILL.md files and discover resources
|
|
181
|
+
- `parse_skill()`: Convenience function for full parsing
|
|
182
|
+
- `parse_skill_metadata()`: Convenience function for metadata-only parsing
|
|
183
|
+
|
|
184
|
+
### Marketplace
|
|
185
|
+
|
|
186
|
+
- `SkillMarketplace`: Discover and install skills from various sources
|
|
187
|
+
- Supports GitHub repositories (via GitPython)
|
|
188
|
+
- Supports local directories
|
|
189
|
+
- Supports arbitrary Git URLs
|
|
190
|
+
|
|
191
|
+
### Executor
|
|
192
|
+
|
|
193
|
+
- `ScriptExecutor`: Execute scripts with timeout and sandboxing
|
|
194
|
+
- `ExecutionConfig`: Configuration for script execution
|
|
195
|
+
- `ExecutionResult`: Result of script execution
|
|
196
|
+
- Supports Python, Shell, JavaScript, TypeScript, Ruby
|
|
197
|
+
|
|
198
|
+
### Toolset
|
|
199
|
+
|
|
200
|
+
- `SkillToolset`: Convert skills to ReActToolset for use with ReActAgent (supports single or multiple skills)
|
|
201
|
+
- `MarketplaceSkillToolset`: Auto-install skills from marketplace
|
|
202
|
+
- `ScriptToolParams`: Parameters for script-based tools
|
|
203
|
+
|
|
204
|
+
## Testing
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
# Run all tests
|
|
208
|
+
poetry run pytest
|
|
209
|
+
|
|
210
|
+
# Run with coverage
|
|
211
|
+
poetry run pytest --cov=rustic_ai.skills
|
|
212
|
+
|
|
213
|
+
# Run specific test file
|
|
214
|
+
poetry run pytest tests/test_parser.py
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
## Development
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
# Format code
|
|
221
|
+
poetry run tox -e format
|
|
222
|
+
|
|
223
|
+
# Lint code
|
|
224
|
+
poetry run tox -e lint
|
|
225
|
+
|
|
226
|
+
# Run all checks
|
|
227
|
+
poetry run tox
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
## License
|
|
231
|
+
|
|
232
|
+
Apache-2.0
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["poetry-core"]
|
|
3
|
+
build-backend = "poetry.core.masonry.api"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "rusticai-skills"
|
|
7
|
+
version = "0.2.0"
|
|
8
|
+
description = "Agent Skills support for Rustic AI - load, parse, and execute skills from the Agent Skills ecosystem"
|
|
9
|
+
authors = [{name = "Dragonscale Industries Inc.", email = "dev@dragonscale.ai"}]
|
|
10
|
+
license = "Apache-2.0"
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
requires-python = ">=3.13,<3.14"
|
|
13
|
+
urls = { Homepage = "https://www.rustic.ai/", Repository = "https://github.com/dragonscale-ai/rustic-ai", "Rustic AI Core" = "https://pypi.org/project/rusticai-core/" }
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
[tool.poetry]
|
|
17
|
+
packages = [{ include = "rustic_ai", from = "src" }]
|
|
18
|
+
|
|
19
|
+
[tool.poetry.dependencies]
|
|
20
|
+
rusticai-core = { version = "1.1.0"}
|
|
21
|
+
rusticai-llm-agent = { version = "1.1.0"}
|
|
22
|
+
gitpython = "^3.1.0"
|
|
23
|
+
pyyaml = "^6.0.0"
|
|
24
|
+
httpx = "^0.28.0"
|
|
25
|
+
|
|
26
|
+
[tool.poetry-monorepo.deps]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
[tool.poetry.group.dev]
|
|
30
|
+
optional = true
|
|
31
|
+
|
|
32
|
+
[tool.poetry.group.dev.dependencies]
|
|
33
|
+
pytest = "^8.3.4"
|
|
34
|
+
black = { version = "^24.2.0", extras = ["jupyter"] }
|
|
35
|
+
flake8 = "^7.1.2"
|
|
36
|
+
tox = "^4.24.1"
|
|
37
|
+
isort = "^6.0.0"
|
|
38
|
+
mypy = "^1.15.0"
|
|
39
|
+
flaky = "^3.8.1"
|
|
40
|
+
pytest-asyncio = "^0.26.0"
|
|
41
|
+
rusticai-testing = { version = "1.1.0"}
|
|
42
|
+
rusticai-litellm = { version = "1.1.0"}
|
|
43
|
+
shortuuid = "^1.0.13"
|
|
44
|
+
|
|
45
|
+
[tool.poetry.extras]
|
|
46
|
+
test = ["pytest"]
|
|
47
|
+
|
|
48
|
+
[tool.black]
|
|
49
|
+
line-length = 120
|
|
50
|
+
target-version = ['py313']
|
|
51
|
+
include = '\.pyi?$'
|
|
52
|
+
exclude = '''
|
|
53
|
+
/(
|
|
54
|
+
\.git
|
|
55
|
+
| \.mypy_cache
|
|
56
|
+
| \.tox
|
|
57
|
+
| \.venv
|
|
58
|
+
| _build
|
|
59
|
+
| buck-out
|
|
60
|
+
| build
|
|
61
|
+
| dist
|
|
62
|
+
)/
|
|
63
|
+
'''
|
|
64
|
+
|
|
65
|
+
[tool.mypy]
|
|
66
|
+
python_version = "3.13"
|
|
67
|
+
ignore_missing_imports = true
|
|
68
|
+
check_untyped_defs = true
|
|
69
|
+
plugins = "pydantic.mypy"
|
|
70
|
+
explicit_package_bases = true
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
[tool.isort]
|
|
74
|
+
profile = "black"
|
|
75
|
+
force_sort_within_sections = true # For the sorting order issues
|
|
76
|
+
lines_between_sections = 1 # For the newline issue
|
|
77
|
+
known_third_party = ["pydantic", "git", "yaml", "httpx"]
|
|
78
|
+
known_first_party = ["rustic_ai.core", "rustic_ai.llm_agent"]
|
|
79
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Public API for rustic_ai.skills."""
|
|
2
|
+
|
|
3
|
+
from .executor import (
|
|
4
|
+
ExecutionConfig,
|
|
5
|
+
ExecutionResult,
|
|
6
|
+
ScriptExecutor,
|
|
7
|
+
SkillScriptRunner,
|
|
8
|
+
)
|
|
9
|
+
from .marketplace import MarketplaceError, SkillMarketplace
|
|
10
|
+
from .models import (
|
|
11
|
+
SkillAsset,
|
|
12
|
+
SkillDefinition,
|
|
13
|
+
SkillMetadata,
|
|
14
|
+
SkillReference,
|
|
15
|
+
SkillRegistry,
|
|
16
|
+
SkillScript,
|
|
17
|
+
SkillSource,
|
|
18
|
+
)
|
|
19
|
+
from .parser import SkillParseError, SkillParser, parse_skill, parse_skill_metadata
|
|
20
|
+
from .toolset import (
|
|
21
|
+
MarketplaceSkillToolset,
|
|
22
|
+
ScriptToolParams,
|
|
23
|
+
SkillToolset,
|
|
24
|
+
create_skill_toolset,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
"ExecutionConfig",
|
|
29
|
+
"ExecutionResult",
|
|
30
|
+
"ScriptExecutor",
|
|
31
|
+
"SkillScriptRunner",
|
|
32
|
+
"MarketplaceError",
|
|
33
|
+
"SkillMarketplace",
|
|
34
|
+
"SkillAsset",
|
|
35
|
+
"SkillDefinition",
|
|
36
|
+
"SkillMetadata",
|
|
37
|
+
"SkillReference",
|
|
38
|
+
"SkillRegistry",
|
|
39
|
+
"SkillScript",
|
|
40
|
+
"SkillSource",
|
|
41
|
+
"SkillParseError",
|
|
42
|
+
"SkillParser",
|
|
43
|
+
"parse_skill",
|
|
44
|
+
"parse_skill_metadata",
|
|
45
|
+
"MarketplaceSkillToolset",
|
|
46
|
+
"ScriptToolParams",
|
|
47
|
+
"SkillToolset",
|
|
48
|
+
"create_skill_toolset",
|
|
49
|
+
]
|