Create, Evaluate, and Connect AI Skills
Python ai-agentsai-skillsartificial-intelligenceknowledge-graphlarge-language-modelsnatural-language-processingopenkgskillnetskills
update README.md
LiamLYYY7609ae9a7dd9
diff --git a/README.md b/README.mdindex 6bd18d6..4b78fdd 100644--- a/README.md+++ b/README.md@@ -35,7 +35,7 @@ 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 various sources into structured, reusable `skill` packages using LLMs:+- **✨ Skill Creation**: Automatically convert various sources into structured, reusable `skills` using LLMs:- Execution trajectories / conversation logs- GitHub repositories- Office documents (PDF, PPT, Word)@@ -167,17 +167,16 @@ except Exception as e:```#### 4. Create Skills-Turn local Trajectory or GitHub repository into a polished Skill Package (SKILL.md, scripts, etc.).+Turn local trajectory, gitHub repository, office documents or text description into a polished Skill Package (SKILL.md, scripts, etc.).```python-# 1. Create from Local Trajectory+# 1. Create skill from Local Trajectory# Prepare your trajectory (e.g., a conversation log string)trajectory_log = """User: I need to rename all .jpg files in this folder to .png.Agent: I will write a python script to iterate through the folder...Agent: Script executed. Renamed 5 files."""-# Generate Skill, Returns a list of paths to the generated skill folderscreated_paths = client.create(trajectory_content=trajectory_log,@@ -185,13 +184,25 @@ created_paths = client.create(model="gpt-4o")-# 2. Create from GitHub Repository+# 2. Create skill from GitHub Repositorycreated_paths = client.create(github_url="https://github.com/zjunlp/DeepKE",output_dir="./created_skills",model="gpt-4o")+# 3. Create skill from a office documents (PDF, Word, PPT)+created_paths = client.create(+ office_file="./docs/user_guide.pdf",+ output_dir="./created_skills"+)++# 4. 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"+)+print(f"Created {len(created_paths)} new skills.")for path in created_paths:print(f"- {path}")@@ -259,19 +270,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.+Create structured Skill 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`)