Skip to content

Create, Evaluate, and Connect AI Skills

update README.md

Jiang Chenf0f9b0640d4c
diff --git a/README.md b/README.md
index 2c6a5ee..6bd18d6 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,11 @@ SkillNet is an open infrastructure for creating, evaluating, and organizing AI s
- **πŸ” Search**: Find skills using keywords match or semantic search.
- **πŸ“¦ One-Line Installation**: Download skill packages directly from GitHub repositories.
-- **✨ Skill Creation**: Automatically convert local files (agent execution logs, conversation logs ...) or GitHub repositories into structured, reusable `skill` packages using LLMs.
+- **✨ Skill Creation**: Automatically convert various sources into structured, reusable `skill` packages using LLMs:
+ - Execution trajectories / conversation logs
+ - GitHub repositories
+ - Office documents (PDF, PPT, Word)
+ - Direct text prompts
- **πŸ“Š Evaluation**: Evaluate and score skills for quality assurance (Safety, Completeness, Excutability, Modifiability, Cost-Aware).
diff --git a/skillnet-ai/README.md b/skillnet-ai/README.md
index 46c36f5..1f0822b 100644
--- a/skillnet-ai/README.md
+++ b/skillnet-ai/README.md
@@ -12,7 +12,11 @@
- **πŸ” Search**: Find skills using keywords match or semantic search.
- **πŸ“¦ One-Line Installation**: Download skill packages directly from GitHub repositories.
-- **✨ Skill Creation**: Automatically convert local files (agent execution logs, conversation logs ...) or GitHub repositories into structured, reusable `skill` packages using LLMs.
+- **✨ Skill Creation**: Automatically convert various sources into structured, reusable `skill` packages using LLMs:
+ - Execution trajectories / conversation logs
+ - GitHub repositories
+ - Office documents (PDF, PPT, Word)
+ - Direct text prompts
- **πŸ“Š Evaluation**: Evaluate and score skills for quality assurance (Safety, Completeness, Excutability, Modifiability, Cost-Aware).
---
@@ -111,7 +115,7 @@ for path in created_paths:
print(f"- {path}")
```
-### 4.1 Create from GitHub Repository
+#### 4.2 Create from GitHub Repository
Convert an existing GitHub repository into a skill package.
```python
@@ -123,6 +127,28 @@ created_paths = client.create(
)
```
+#### 4.3 Create from Office Documents
+Convert PDF, PowerPoint, or Word documents into skill packages.
+
+```python
+# Create skill from a PDF document
+created_paths = client.create(
+ office_file="./docs/user_guide.pdf",
+ output_dir="./created_skills"
+)
+```
+
+#### 4.4 Create from Prompt
+Generate a skill directly from a text description.
+
+```python
+# Create skill from a prompt description
+created_paths = client.create(
+ prompt="Create a skill for web scraping that extracts article titles and content",
+ output_dir="./created_skills"
+)
+```
+
### 5. Skill Evaluation
Assess the Safety, Completeness, Executability, Modifiability and Cost-Aware of a skill. Supports both remote GitHub URLs and local directories.
@@ -193,19 +219,25 @@ skillnet download <private_url> --token <your_github_token>
### 3. Create Skills (`create`)
-Analyze local file (execution trajectory, conversation log) or GitHub repository and automatically generate a structured Skill Package using LLMs.
+Generate structured Skill Packages from various sources using LLMs.
Requirement: Ensure API_KEY is set in your environment variables.
```bash
-# Generate a skill from a trajectory file
-skillnet create ./logs/trajectory.txt --output-dir ./generated_skills
+# From a trajectory file
+skillnet create ./logs/trajectory.txt -d ./generated_skills
+
+# From a GitHub repository
+skillnet create --github https://github.com/owner/repo
+
+# From an office document (PDF, PPT, Word)
+skillnet create --office ./docs/guide.pdf
-# Specify a specific LLM model
-skillnet create ./logs/chat_history.txt --model gpt-4o
+# From a direct prompt
+skillnet create --prompt "Create a skill for extracting tables from images"
-# Generate a skill from a GitHub repository
-skillnet create --github https://github.com/owner/repo --output-dir ./generated_skills
+# Specify a custom model
+skillnet create --office report.pdf --model gpt-4o
```
### 4. Evaluate Skills (`evaluate`)
diff --git a/skillnet-ai/pyproject.toml b/skillnet-ai/pyproject.toml
index b4163bd..2f3b9ad 100644
--- a/skillnet-ai/pyproject.toml
+++ b/skillnet-ai/pyproject.toml
@@ -21,16 +21,7 @@ dependencies = [
"pydantic>=2.0.0",
"tqdm>=4.0.0",
"typer>=0.9.0",
- "rich>=13.0.0"
-]
-
-[project.optional-dependencies]
-office = [
- "PyPDF2>=3.0.0",
- "python-docx>=0.8.11",
- "python-pptx>=0.6.21"
-]
-all = [
+ "rich>=13.0.0",
"PyPDF2>=3.0.0",
"python-docx>=0.8.11",
"python-pptx>=0.6.21"