skill-graphs 0.1.3__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.
- skill_graphs-0.1.3/LICENSE +21 -0
- skill_graphs-0.1.3/PKG-INFO +118 -0
- skill_graphs-0.1.3/README.md +103 -0
- skill_graphs-0.1.3/pyproject.toml +25 -0
- skill_graphs-0.1.3/setup.cfg +4 -0
- skill_graphs-0.1.3/skill_graphs/__init__.py +0 -0
- skill_graphs-0.1.3/skill_graphs/skill_graph_utilities.py +91 -0
- skill_graphs-0.1.3/skill_graphs.egg-info/PKG-INFO +118 -0
- skill_graphs-0.1.3/skill_graphs.egg-info/SOURCES.txt +9 -0
- skill_graphs-0.1.3/skill_graphs.egg-info/dependency_links.txt +1 -0
- skill_graphs-0.1.3/skill_graphs.egg-info/top_level.txt +2 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Knuckles Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: skill-graphs
|
|
3
|
+
Version: 0.1.3
|
|
4
|
+
Summary: A collection of skill graphs for AI agents
|
|
5
|
+
Author-email: Audel Rouhi <knucklessg1@gmail.com>
|
|
6
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
7
|
+
Classifier: License :: Public Domain
|
|
8
|
+
Classifier: Environment :: Console
|
|
9
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
|
|
16
|
+
# Skill Graphs - Indexed Agent Knowledge
|
|
17
|
+
|
|
18
|
+

|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
*Version: 0.1.3*
|
|
22
|
+
|
|
23
|
+
## Overview
|
|
24
|
+
|
|
25
|
+
Skill Graphs is a dedicated repository for structured, documentation-based skills. It is designed to host "knowledge graphs" transformed from technical documentation, APIs, and web crawls, specifically for use with Pydantic AI Agents.
|
|
26
|
+
|
|
27
|
+
## Enabling Skill Graphs
|
|
28
|
+
|
|
29
|
+
By default, all skill-graphs included in this package are **disabled**. You can enable specific skill-graphs by setting their corresponding environment variables to `True`.
|
|
30
|
+
|
|
31
|
+
| Skill Directory | Description | Enable Flag |
|
|
32
|
+
|:----------------|:------------|:-------------|
|
|
33
|
+
| `aws-docs` | AWS Documentation | `AWS_DOCS_ENABLE=True` |
|
|
34
|
+
| `azure-docs` | Azure Documentation | `AZURE_DOCS_ENABLE=True` |
|
|
35
|
+
| `c-docs` | C Language Documentation | `C_DOCS_ENABLE=True` |
|
|
36
|
+
| `chakra-ui-docs` | Chakra UI Documentation | `CHAKRA_UI_DOCS_ENABLE=True` |
|
|
37
|
+
| `chromadb-docs` | ChromaDB Documentation | `CHROMADB_DOCS_ENABLE=True` |
|
|
38
|
+
| `couchbase-docs` | Couchbase Documentation | `COUCHBASE_DOCS_ENABLE=True` |
|
|
39
|
+
| `django-docs` | Django Documentation | `DJANGO_DOCS_ENABLE=True` |
|
|
40
|
+
| `docker-docs` | Docker Documentation | `DOCKER_DOCS_ENABLE=True` |
|
|
41
|
+
| `falkordb-docs` | FalkorDB Documentation | `FALKORDB_DOCS_ENABLE=True` |
|
|
42
|
+
| `fastapi-docs` | FastAPI Documentation | `FASTAPI_DOCS_ENABLE=True` |
|
|
43
|
+
| `fastmcp-docs` | FastMCP Documentation | `FASTMCP_DOCS_ENABLE=True` |
|
|
44
|
+
| `flask-docs` | Flask Documentation | `FLASK_DOCS_ENABLE=True` |
|
|
45
|
+
| `framer-docs` | Framer Motion Documentation | `FRAMER_DOCS_ENABLE=True` |
|
|
46
|
+
| `gcp-docs` | GCP Documentation | `GCP_DOCS_ENABLE=True` |
|
|
47
|
+
| `go-docs` | Go Documentation | `GO_DOCS_ENABLE=True` |
|
|
48
|
+
| `huggingface-docs` | Hugging Face Documentation | `HUGGINGFACE_DOCS_ENABLE=True` |
|
|
49
|
+
| `java-docs` | Java Documentation | `JAVA_DOCS_ENABLE=True` |
|
|
50
|
+
| `langchain-docs` | LangChain Documentation | `LANGCHAIN_DOCS_ENABLE=True` |
|
|
51
|
+
| `laravel-docs` | Laravel Documentation | `LARAVEL_DOCS_ENABLE=True` |
|
|
52
|
+
| `linux-docs` | Linux Documentation | `LINUX_DOCS_ENABLE=True` |
|
|
53
|
+
| `mariadb-docs` | MariaDB Documentation | `MARIADB_DOCS_ENABLE=True` |
|
|
54
|
+
| `material-ui-docs` | Material UI Documentation | `MATERIAL_UI_DOCS_ENABLE=True` |
|
|
55
|
+
| `matplotlib-docs` | Matplotlib Documentation | `MATPLOTLIB_DOCS_ENABLE=True` |
|
|
56
|
+
| `minio-docs` | MinIO Documentation | `MINIO_DOCS_ENABLE=True` |
|
|
57
|
+
| `mongodb-docs` | MongoDB Documentation | `MONGODB_DOCS_ENABLE=True` |
|
|
58
|
+
| `mssql-docs` | MS SQL Server Documentation | `MSSQL_DOCS_ENABLE=True` |
|
|
59
|
+
| `neo4j-docs` | Neo4j Documentation | `NEO4J_DOCS_ENABLE=True` |
|
|
60
|
+
| `nestjs-docs` | NestJS Documentation | `NESTJS_DOCS_ENABLE=True` |
|
|
61
|
+
| `nextjs-docs` | Next.js Documentation | `NEXTJS_DOCS_ENABLE=True` |
|
|
62
|
+
| `nodejs-docs` | Node.js Documentation | `NODEJS_DOCS_ENABLE=True` |
|
|
63
|
+
| `numpy-docs` | NumPy Documentation | `NUMPY_DOCS_ENABLE=True` |
|
|
64
|
+
| `pandas-docs` | Pandas Documentation | `PANDAS_DOCS_ENABLE=True` |
|
|
65
|
+
| `postgres-docs` | PostgreSQL Documentation | `POSTGRES_DOCS_ENABLE=True` |
|
|
66
|
+
| `pydantic-ai-docs` | Pydantic AI Documentation | `PYDANTIC_AI_DOCS_ENABLE=True` |
|
|
67
|
+
| `pydantic-docs` | Pydantic Documentation | `PYDANTIC_DOCS_ENABLE=True` |
|
|
68
|
+
| `python-docs` | Python Documentation | `PYTHON_DOCS_ENABLE=True` |
|
|
69
|
+
| `pytorch-docs` | PyTorch Documentation | `PYTORCH_DOCS_ENABLE=True` |
|
|
70
|
+
| `qdrant-docs` | Qdrant Documentation | `QDRANT_DOCS_ENABLE=True` |
|
|
71
|
+
| `radix-ui-docs` | Radix UI Documentation | `RADIX_UI_DOCS_ENABLE=True` |
|
|
72
|
+
| `react-docs` | React Documentation | `REACT_DOCS_ENABLE=True` |
|
|
73
|
+
| `reactrouter-docs` | React Router Documentation | `REACTROUTER_DOCS_ENABLE=True` |
|
|
74
|
+
| `redis-docs` | Redis Documentation | `REDIS_DOCS_ENABLE=True` |
|
|
75
|
+
| `redux-docs` | Redux Documentation | `REDUX_DOCS_ENABLE=True` |
|
|
76
|
+
| `remix-docs` | Remix Documentation | `REMIX_DOCS_ENABLE=True` |
|
|
77
|
+
| `rust-docs` | Rust Documentation | `RUST_DOCS_ENABLE=True` |
|
|
78
|
+
| `scikit-learn-docs` | Scikit-learn Documentation | `SCIKIT_LEARN_DOCS_ENABLE=True` |
|
|
79
|
+
| `scipy-docs` | SciPy Documentation | `SCIPY_DOCS_ENABLE=True` |
|
|
80
|
+
| `shadcn-docs` | shadcn/ui Documentation | `SHADCN_DOCS_ENABLE=True` |
|
|
81
|
+
| `svelte-docs` | Svelte Documentation | `SVELTE_DOCS_ENABLE=True` |
|
|
82
|
+
| `tanstack-docs` | TanStack Documentation | `TANSTACK_DOCS_ENABLE=True` |
|
|
83
|
+
| `temporal-docs` | Temporal Documentation | `TEMPORAL_DOCS_ENABLE=True` |
|
|
84
|
+
| `tensorflow-docs` | TensorFlow Documentation | `TENSORFLOW_DOCS_ENABLE=True` |
|
|
85
|
+
| `terraform-docs` | Terraform Documentation | `TERRAFORM_DOCS_ENABLE=True` |
|
|
86
|
+
| `testing-library-docs` | Testing Library Documentation | `TESTING_LIBRARY_DOCS_ENABLE=True` |
|
|
87
|
+
| `vercel-docs` | Vercel Documentation | `VERCEL_DOCS_ENABLE=True` |
|
|
88
|
+
| `vitejs-docs` | Vite Documentation | `VITEJS_DOCS_ENABLE=True` |
|
|
89
|
+
| `vuejs-docs` | Vue.js Documentation | `VUEJS_DOCS_ENABLE=True` |
|
|
90
|
+
|
|
91
|
+
## Installation
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
pip install skill-graphs
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Usage
|
|
98
|
+
|
|
99
|
+
Skill graphs are typically loaded using the `get_skill_graphs_path()` utility from `skill_graphs.skill_graph_utilities`.
|
|
100
|
+
|
|
101
|
+
```python
|
|
102
|
+
from skill_graphs.skill_graph_utilities import get_skill_graphs_path
|
|
103
|
+
from agent_utilities.agent_utilities import SkillsToolset
|
|
104
|
+
|
|
105
|
+
# Load enabled skill graphs
|
|
106
|
+
skills_directories = get_skill_graphs_path()
|
|
107
|
+
skills = SkillsToolset(directories=skills_directories)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Building New Skill Graphs
|
|
111
|
+
|
|
112
|
+
Use the `skill-graph-builder` from the `universal-skills` package to generate new graphs:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
python scripts/generate_skill.py https://ai.pydantic.dev pydantic-ai
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
By default, the builder will now target this repository if it is present in your workspace.
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Skill Graphs - Indexed Agent Knowledge
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+
|
|
6
|
+
*Version: 0.1.3*
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Skill Graphs is a dedicated repository for structured, documentation-based skills. It is designed to host "knowledge graphs" transformed from technical documentation, APIs, and web crawls, specifically for use with Pydantic AI Agents.
|
|
11
|
+
|
|
12
|
+
## Enabling Skill Graphs
|
|
13
|
+
|
|
14
|
+
By default, all skill-graphs included in this package are **disabled**. You can enable specific skill-graphs by setting their corresponding environment variables to `True`.
|
|
15
|
+
|
|
16
|
+
| Skill Directory | Description | Enable Flag |
|
|
17
|
+
|:----------------|:------------|:-------------|
|
|
18
|
+
| `aws-docs` | AWS Documentation | `AWS_DOCS_ENABLE=True` |
|
|
19
|
+
| `azure-docs` | Azure Documentation | `AZURE_DOCS_ENABLE=True` |
|
|
20
|
+
| `c-docs` | C Language Documentation | `C_DOCS_ENABLE=True` |
|
|
21
|
+
| `chakra-ui-docs` | Chakra UI Documentation | `CHAKRA_UI_DOCS_ENABLE=True` |
|
|
22
|
+
| `chromadb-docs` | ChromaDB Documentation | `CHROMADB_DOCS_ENABLE=True` |
|
|
23
|
+
| `couchbase-docs` | Couchbase Documentation | `COUCHBASE_DOCS_ENABLE=True` |
|
|
24
|
+
| `django-docs` | Django Documentation | `DJANGO_DOCS_ENABLE=True` |
|
|
25
|
+
| `docker-docs` | Docker Documentation | `DOCKER_DOCS_ENABLE=True` |
|
|
26
|
+
| `falkordb-docs` | FalkorDB Documentation | `FALKORDB_DOCS_ENABLE=True` |
|
|
27
|
+
| `fastapi-docs` | FastAPI Documentation | `FASTAPI_DOCS_ENABLE=True` |
|
|
28
|
+
| `fastmcp-docs` | FastMCP Documentation | `FASTMCP_DOCS_ENABLE=True` |
|
|
29
|
+
| `flask-docs` | Flask Documentation | `FLASK_DOCS_ENABLE=True` |
|
|
30
|
+
| `framer-docs` | Framer Motion Documentation | `FRAMER_DOCS_ENABLE=True` |
|
|
31
|
+
| `gcp-docs` | GCP Documentation | `GCP_DOCS_ENABLE=True` |
|
|
32
|
+
| `go-docs` | Go Documentation | `GO_DOCS_ENABLE=True` |
|
|
33
|
+
| `huggingface-docs` | Hugging Face Documentation | `HUGGINGFACE_DOCS_ENABLE=True` |
|
|
34
|
+
| `java-docs` | Java Documentation | `JAVA_DOCS_ENABLE=True` |
|
|
35
|
+
| `langchain-docs` | LangChain Documentation | `LANGCHAIN_DOCS_ENABLE=True` |
|
|
36
|
+
| `laravel-docs` | Laravel Documentation | `LARAVEL_DOCS_ENABLE=True` |
|
|
37
|
+
| `linux-docs` | Linux Documentation | `LINUX_DOCS_ENABLE=True` |
|
|
38
|
+
| `mariadb-docs` | MariaDB Documentation | `MARIADB_DOCS_ENABLE=True` |
|
|
39
|
+
| `material-ui-docs` | Material UI Documentation | `MATERIAL_UI_DOCS_ENABLE=True` |
|
|
40
|
+
| `matplotlib-docs` | Matplotlib Documentation | `MATPLOTLIB_DOCS_ENABLE=True` |
|
|
41
|
+
| `minio-docs` | MinIO Documentation | `MINIO_DOCS_ENABLE=True` |
|
|
42
|
+
| `mongodb-docs` | MongoDB Documentation | `MONGODB_DOCS_ENABLE=True` |
|
|
43
|
+
| `mssql-docs` | MS SQL Server Documentation | `MSSQL_DOCS_ENABLE=True` |
|
|
44
|
+
| `neo4j-docs` | Neo4j Documentation | `NEO4J_DOCS_ENABLE=True` |
|
|
45
|
+
| `nestjs-docs` | NestJS Documentation | `NESTJS_DOCS_ENABLE=True` |
|
|
46
|
+
| `nextjs-docs` | Next.js Documentation | `NEXTJS_DOCS_ENABLE=True` |
|
|
47
|
+
| `nodejs-docs` | Node.js Documentation | `NODEJS_DOCS_ENABLE=True` |
|
|
48
|
+
| `numpy-docs` | NumPy Documentation | `NUMPY_DOCS_ENABLE=True` |
|
|
49
|
+
| `pandas-docs` | Pandas Documentation | `PANDAS_DOCS_ENABLE=True` |
|
|
50
|
+
| `postgres-docs` | PostgreSQL Documentation | `POSTGRES_DOCS_ENABLE=True` |
|
|
51
|
+
| `pydantic-ai-docs` | Pydantic AI Documentation | `PYDANTIC_AI_DOCS_ENABLE=True` |
|
|
52
|
+
| `pydantic-docs` | Pydantic Documentation | `PYDANTIC_DOCS_ENABLE=True` |
|
|
53
|
+
| `python-docs` | Python Documentation | `PYTHON_DOCS_ENABLE=True` |
|
|
54
|
+
| `pytorch-docs` | PyTorch Documentation | `PYTORCH_DOCS_ENABLE=True` |
|
|
55
|
+
| `qdrant-docs` | Qdrant Documentation | `QDRANT_DOCS_ENABLE=True` |
|
|
56
|
+
| `radix-ui-docs` | Radix UI Documentation | `RADIX_UI_DOCS_ENABLE=True` |
|
|
57
|
+
| `react-docs` | React Documentation | `REACT_DOCS_ENABLE=True` |
|
|
58
|
+
| `reactrouter-docs` | React Router Documentation | `REACTROUTER_DOCS_ENABLE=True` |
|
|
59
|
+
| `redis-docs` | Redis Documentation | `REDIS_DOCS_ENABLE=True` |
|
|
60
|
+
| `redux-docs` | Redux Documentation | `REDUX_DOCS_ENABLE=True` |
|
|
61
|
+
| `remix-docs` | Remix Documentation | `REMIX_DOCS_ENABLE=True` |
|
|
62
|
+
| `rust-docs` | Rust Documentation | `RUST_DOCS_ENABLE=True` |
|
|
63
|
+
| `scikit-learn-docs` | Scikit-learn Documentation | `SCIKIT_LEARN_DOCS_ENABLE=True` |
|
|
64
|
+
| `scipy-docs` | SciPy Documentation | `SCIPY_DOCS_ENABLE=True` |
|
|
65
|
+
| `shadcn-docs` | shadcn/ui Documentation | `SHADCN_DOCS_ENABLE=True` |
|
|
66
|
+
| `svelte-docs` | Svelte Documentation | `SVELTE_DOCS_ENABLE=True` |
|
|
67
|
+
| `tanstack-docs` | TanStack Documentation | `TANSTACK_DOCS_ENABLE=True` |
|
|
68
|
+
| `temporal-docs` | Temporal Documentation | `TEMPORAL_DOCS_ENABLE=True` |
|
|
69
|
+
| `tensorflow-docs` | TensorFlow Documentation | `TENSORFLOW_DOCS_ENABLE=True` |
|
|
70
|
+
| `terraform-docs` | Terraform Documentation | `TERRAFORM_DOCS_ENABLE=True` |
|
|
71
|
+
| `testing-library-docs` | Testing Library Documentation | `TESTING_LIBRARY_DOCS_ENABLE=True` |
|
|
72
|
+
| `vercel-docs` | Vercel Documentation | `VERCEL_DOCS_ENABLE=True` |
|
|
73
|
+
| `vitejs-docs` | Vite Documentation | `VITEJS_DOCS_ENABLE=True` |
|
|
74
|
+
| `vuejs-docs` | Vue.js Documentation | `VUEJS_DOCS_ENABLE=True` |
|
|
75
|
+
|
|
76
|
+
## Installation
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
pip install skill-graphs
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Usage
|
|
83
|
+
|
|
84
|
+
Skill graphs are typically loaded using the `get_skill_graphs_path()` utility from `skill_graphs.skill_graph_utilities`.
|
|
85
|
+
|
|
86
|
+
```python
|
|
87
|
+
from skill_graphs.skill_graph_utilities import get_skill_graphs_path
|
|
88
|
+
from agent_utilities.agent_utilities import SkillsToolset
|
|
89
|
+
|
|
90
|
+
# Load enabled skill graphs
|
|
91
|
+
skills_directories = get_skill_graphs_path()
|
|
92
|
+
skills = SkillsToolset(directories=skills_directories)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Building New Skill Graphs
|
|
96
|
+
|
|
97
|
+
Use the `skill-graph-builder` from the `universal-skills` package to generate new graphs:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
python scripts/generate_skill.py https://ai.pydantic.dev pydantic-ai
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
By default, the builder will now target this repository if it is present in your workspace.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [ "setuptools>=80.9.0", "wheel",]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "skill-graphs"
|
|
7
|
+
version = "0.1.3"
|
|
8
|
+
description = "A collection of skill graphs for AI agents"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
classifiers = [ "Development Status :: 5 - Production/Stable", "License :: Public Domain", "Environment :: Console", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3",]
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
dependencies = [ ]
|
|
13
|
+
|
|
14
|
+
[[project.authors]]
|
|
15
|
+
name = "Audel Rouhi"
|
|
16
|
+
email = "knucklessg1@gmail.com"
|
|
17
|
+
|
|
18
|
+
[tool.setuptools]
|
|
19
|
+
include-package-data = true
|
|
20
|
+
|
|
21
|
+
[tool.setuptools.package-data]
|
|
22
|
+
universal_skills = [ "skills/**" ]
|
|
23
|
+
|
|
24
|
+
[tool.setuptools.packages.find]
|
|
25
|
+
where = [ ".",]
|
|
File without changes
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
#!/usr/bin/python
|
|
2
|
+
# coding: utf-8
|
|
3
|
+
|
|
4
|
+
import os
|
|
5
|
+
from importlib.resources import files, as_file
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
from openai import AsyncOpenAI
|
|
9
|
+
from pydantic_ai.providers.openai import OpenAIProvider
|
|
10
|
+
except ImportError:
|
|
11
|
+
AsyncOpenAI = None
|
|
12
|
+
OpenAIProvider = None
|
|
13
|
+
|
|
14
|
+
try:
|
|
15
|
+
from groq import AsyncGroq
|
|
16
|
+
from pydantic_ai.providers.groq import GroqProvider
|
|
17
|
+
except ImportError:
|
|
18
|
+
AsyncGroq = None
|
|
19
|
+
GroqProvider = None
|
|
20
|
+
|
|
21
|
+
try:
|
|
22
|
+
from mistralai import Mistral
|
|
23
|
+
from pydantic_ai.providers.mistral import MistralProvider
|
|
24
|
+
except ImportError:
|
|
25
|
+
Mistral = None
|
|
26
|
+
MistralProvider = None
|
|
27
|
+
|
|
28
|
+
try:
|
|
29
|
+
from pydantic_ai.models.anthropic import AnthropicModel
|
|
30
|
+
from anthropic import AsyncAnthropic
|
|
31
|
+
from pydantic_ai.providers.anthropic import AnthropicProvider
|
|
32
|
+
except ImportError:
|
|
33
|
+
AnthropicModel = None
|
|
34
|
+
AsyncAnthropic = None
|
|
35
|
+
AnthropicProvider = None
|
|
36
|
+
|
|
37
|
+
__version__ = "0.1.3"
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def get_skill_graph_package_name() -> str:
|
|
41
|
+
"""
|
|
42
|
+
Returns the package name of skill_graphs.
|
|
43
|
+
"""
|
|
44
|
+
return "skill_graphs"
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def to_boolean(val) -> bool:
|
|
48
|
+
if isinstance(val, bool):
|
|
49
|
+
return val
|
|
50
|
+
return str(val).lower() in ("true", "1", "t", "y", "yes")
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
# Default enablement state for specific skill-graphs.
|
|
54
|
+
SKILL_DEFAULTS = {
|
|
55
|
+
# Documentation graphs are False by default globally, but can be overridden here if needed.
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def _get_enabled_paths(sub_dir: str, default_enabled: bool = True) -> list[str]:
|
|
60
|
+
"""
|
|
61
|
+
Helper to return absolute paths of items in a sub-directory that are enabled via env vars.
|
|
62
|
+
Checks inside the package directory.
|
|
63
|
+
"""
|
|
64
|
+
try:
|
|
65
|
+
base_dir = files(get_skill_graph_package_name()) / sub_dir
|
|
66
|
+
with as_file(base_dir) as path:
|
|
67
|
+
abs_path = str(path)
|
|
68
|
+
except Exception:
|
|
69
|
+
return []
|
|
70
|
+
|
|
71
|
+
enabled_paths = []
|
|
72
|
+
if os.path.exists(abs_path):
|
|
73
|
+
for item in os.listdir(abs_path):
|
|
74
|
+
item_path = os.path.join(abs_path, item)
|
|
75
|
+
if os.path.isdir(item_path):
|
|
76
|
+
# Check for specific override in SKILL_DEFAULTS
|
|
77
|
+
item_default = SKILL_DEFAULTS.get(item, default_enabled)
|
|
78
|
+
|
|
79
|
+
env_var_name = f"{item.upper().replace('-', '_')}_ENABLE"
|
|
80
|
+
is_enabled = to_boolean(os.environ.get(env_var_name, item_default))
|
|
81
|
+
if is_enabled:
|
|
82
|
+
enabled_paths.append(item_path)
|
|
83
|
+
return enabled_paths
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def get_skill_graphs_path() -> list[str]:
|
|
87
|
+
"""
|
|
88
|
+
Returns a list of absolute paths pointing to the individual enabled skill-graphs
|
|
89
|
+
within the repository package.
|
|
90
|
+
"""
|
|
91
|
+
return _get_enabled_paths("skill_graphs", default_enabled=False)
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: skill-graphs
|
|
3
|
+
Version: 0.1.3
|
|
4
|
+
Summary: A collection of skill graphs for AI agents
|
|
5
|
+
Author-email: Audel Rouhi <knucklessg1@gmail.com>
|
|
6
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
7
|
+
Classifier: License :: Public Domain
|
|
8
|
+
Classifier: Environment :: Console
|
|
9
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
|
|
16
|
+
# Skill Graphs - Indexed Agent Knowledge
|
|
17
|
+
|
|
18
|
+

|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
*Version: 0.1.3*
|
|
22
|
+
|
|
23
|
+
## Overview
|
|
24
|
+
|
|
25
|
+
Skill Graphs is a dedicated repository for structured, documentation-based skills. It is designed to host "knowledge graphs" transformed from technical documentation, APIs, and web crawls, specifically for use with Pydantic AI Agents.
|
|
26
|
+
|
|
27
|
+
## Enabling Skill Graphs
|
|
28
|
+
|
|
29
|
+
By default, all skill-graphs included in this package are **disabled**. You can enable specific skill-graphs by setting their corresponding environment variables to `True`.
|
|
30
|
+
|
|
31
|
+
| Skill Directory | Description | Enable Flag |
|
|
32
|
+
|:----------------|:------------|:-------------|
|
|
33
|
+
| `aws-docs` | AWS Documentation | `AWS_DOCS_ENABLE=True` |
|
|
34
|
+
| `azure-docs` | Azure Documentation | `AZURE_DOCS_ENABLE=True` |
|
|
35
|
+
| `c-docs` | C Language Documentation | `C_DOCS_ENABLE=True` |
|
|
36
|
+
| `chakra-ui-docs` | Chakra UI Documentation | `CHAKRA_UI_DOCS_ENABLE=True` |
|
|
37
|
+
| `chromadb-docs` | ChromaDB Documentation | `CHROMADB_DOCS_ENABLE=True` |
|
|
38
|
+
| `couchbase-docs` | Couchbase Documentation | `COUCHBASE_DOCS_ENABLE=True` |
|
|
39
|
+
| `django-docs` | Django Documentation | `DJANGO_DOCS_ENABLE=True` |
|
|
40
|
+
| `docker-docs` | Docker Documentation | `DOCKER_DOCS_ENABLE=True` |
|
|
41
|
+
| `falkordb-docs` | FalkorDB Documentation | `FALKORDB_DOCS_ENABLE=True` |
|
|
42
|
+
| `fastapi-docs` | FastAPI Documentation | `FASTAPI_DOCS_ENABLE=True` |
|
|
43
|
+
| `fastmcp-docs` | FastMCP Documentation | `FASTMCP_DOCS_ENABLE=True` |
|
|
44
|
+
| `flask-docs` | Flask Documentation | `FLASK_DOCS_ENABLE=True` |
|
|
45
|
+
| `framer-docs` | Framer Motion Documentation | `FRAMER_DOCS_ENABLE=True` |
|
|
46
|
+
| `gcp-docs` | GCP Documentation | `GCP_DOCS_ENABLE=True` |
|
|
47
|
+
| `go-docs` | Go Documentation | `GO_DOCS_ENABLE=True` |
|
|
48
|
+
| `huggingface-docs` | Hugging Face Documentation | `HUGGINGFACE_DOCS_ENABLE=True` |
|
|
49
|
+
| `java-docs` | Java Documentation | `JAVA_DOCS_ENABLE=True` |
|
|
50
|
+
| `langchain-docs` | LangChain Documentation | `LANGCHAIN_DOCS_ENABLE=True` |
|
|
51
|
+
| `laravel-docs` | Laravel Documentation | `LARAVEL_DOCS_ENABLE=True` |
|
|
52
|
+
| `linux-docs` | Linux Documentation | `LINUX_DOCS_ENABLE=True` |
|
|
53
|
+
| `mariadb-docs` | MariaDB Documentation | `MARIADB_DOCS_ENABLE=True` |
|
|
54
|
+
| `material-ui-docs` | Material UI Documentation | `MATERIAL_UI_DOCS_ENABLE=True` |
|
|
55
|
+
| `matplotlib-docs` | Matplotlib Documentation | `MATPLOTLIB_DOCS_ENABLE=True` |
|
|
56
|
+
| `minio-docs` | MinIO Documentation | `MINIO_DOCS_ENABLE=True` |
|
|
57
|
+
| `mongodb-docs` | MongoDB Documentation | `MONGODB_DOCS_ENABLE=True` |
|
|
58
|
+
| `mssql-docs` | MS SQL Server Documentation | `MSSQL_DOCS_ENABLE=True` |
|
|
59
|
+
| `neo4j-docs` | Neo4j Documentation | `NEO4J_DOCS_ENABLE=True` |
|
|
60
|
+
| `nestjs-docs` | NestJS Documentation | `NESTJS_DOCS_ENABLE=True` |
|
|
61
|
+
| `nextjs-docs` | Next.js Documentation | `NEXTJS_DOCS_ENABLE=True` |
|
|
62
|
+
| `nodejs-docs` | Node.js Documentation | `NODEJS_DOCS_ENABLE=True` |
|
|
63
|
+
| `numpy-docs` | NumPy Documentation | `NUMPY_DOCS_ENABLE=True` |
|
|
64
|
+
| `pandas-docs` | Pandas Documentation | `PANDAS_DOCS_ENABLE=True` |
|
|
65
|
+
| `postgres-docs` | PostgreSQL Documentation | `POSTGRES_DOCS_ENABLE=True` |
|
|
66
|
+
| `pydantic-ai-docs` | Pydantic AI Documentation | `PYDANTIC_AI_DOCS_ENABLE=True` |
|
|
67
|
+
| `pydantic-docs` | Pydantic Documentation | `PYDANTIC_DOCS_ENABLE=True` |
|
|
68
|
+
| `python-docs` | Python Documentation | `PYTHON_DOCS_ENABLE=True` |
|
|
69
|
+
| `pytorch-docs` | PyTorch Documentation | `PYTORCH_DOCS_ENABLE=True` |
|
|
70
|
+
| `qdrant-docs` | Qdrant Documentation | `QDRANT_DOCS_ENABLE=True` |
|
|
71
|
+
| `radix-ui-docs` | Radix UI Documentation | `RADIX_UI_DOCS_ENABLE=True` |
|
|
72
|
+
| `react-docs` | React Documentation | `REACT_DOCS_ENABLE=True` |
|
|
73
|
+
| `reactrouter-docs` | React Router Documentation | `REACTROUTER_DOCS_ENABLE=True` |
|
|
74
|
+
| `redis-docs` | Redis Documentation | `REDIS_DOCS_ENABLE=True` |
|
|
75
|
+
| `redux-docs` | Redux Documentation | `REDUX_DOCS_ENABLE=True` |
|
|
76
|
+
| `remix-docs` | Remix Documentation | `REMIX_DOCS_ENABLE=True` |
|
|
77
|
+
| `rust-docs` | Rust Documentation | `RUST_DOCS_ENABLE=True` |
|
|
78
|
+
| `scikit-learn-docs` | Scikit-learn Documentation | `SCIKIT_LEARN_DOCS_ENABLE=True` |
|
|
79
|
+
| `scipy-docs` | SciPy Documentation | `SCIPY_DOCS_ENABLE=True` |
|
|
80
|
+
| `shadcn-docs` | shadcn/ui Documentation | `SHADCN_DOCS_ENABLE=True` |
|
|
81
|
+
| `svelte-docs` | Svelte Documentation | `SVELTE_DOCS_ENABLE=True` |
|
|
82
|
+
| `tanstack-docs` | TanStack Documentation | `TANSTACK_DOCS_ENABLE=True` |
|
|
83
|
+
| `temporal-docs` | Temporal Documentation | `TEMPORAL_DOCS_ENABLE=True` |
|
|
84
|
+
| `tensorflow-docs` | TensorFlow Documentation | `TENSORFLOW_DOCS_ENABLE=True` |
|
|
85
|
+
| `terraform-docs` | Terraform Documentation | `TERRAFORM_DOCS_ENABLE=True` |
|
|
86
|
+
| `testing-library-docs` | Testing Library Documentation | `TESTING_LIBRARY_DOCS_ENABLE=True` |
|
|
87
|
+
| `vercel-docs` | Vercel Documentation | `VERCEL_DOCS_ENABLE=True` |
|
|
88
|
+
| `vitejs-docs` | Vite Documentation | `VITEJS_DOCS_ENABLE=True` |
|
|
89
|
+
| `vuejs-docs` | Vue.js Documentation | `VUEJS_DOCS_ENABLE=True` |
|
|
90
|
+
|
|
91
|
+
## Installation
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
pip install skill-graphs
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Usage
|
|
98
|
+
|
|
99
|
+
Skill graphs are typically loaded using the `get_skill_graphs_path()` utility from `skill_graphs.skill_graph_utilities`.
|
|
100
|
+
|
|
101
|
+
```python
|
|
102
|
+
from skill_graphs.skill_graph_utilities import get_skill_graphs_path
|
|
103
|
+
from agent_utilities.agent_utilities import SkillsToolset
|
|
104
|
+
|
|
105
|
+
# Load enabled skill graphs
|
|
106
|
+
skills_directories = get_skill_graphs_path()
|
|
107
|
+
skills = SkillsToolset(directories=skills_directories)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Building New Skill Graphs
|
|
111
|
+
|
|
112
|
+
Use the `skill-graph-builder` from the `universal-skills` package to generate new graphs:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
python scripts/generate_skill.py https://ai.pydantic.dev pydantic-ai
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
By default, the builder will now target this repository if it is present in your workspace.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|