openeuler/skills部署指南:零基础也能搭建的AI协议开发环境
【免费下载链接】skillsWith the rapid advancement of AI, standard protocols for AI agents—such as MCP and Skill—are continuously emerging. This repository is established to accommodate current and future AI agent protocols and their associated tools, providing users with generation, testing, and optimization scripts to facilitate agent development and improve agent usability.项目地址: https://gitcode.com/openeuler/skills
前往项目官网免费下载:https://ar.openeuler.org/ar/
openEuler / skills是一个专注于AI代理协议(如MCP和Skill)的开发与优化工具集,提供生成、测试和优化脚本,帮助开发者轻松构建高效的AI代理应用。本指南将带你从零开始,快速搭建完整的开发环境,即使是没有经验的新手也能轻松完成。
📋 准备工作:环境与依赖检查
在开始部署前,请确保你的系统满足以下基本要求:
- 操作系统:Linux(推荐Ubuntu 20.04+或openEuler 22.03+)
- Python版本:3.8及以上
- 工具依赖:Git、pip(Python包管理工具)
快速检查命令
# 检查Python版本 python --version # 检查Git是否安装 git --version如果缺少上述工具,请使用系统包管理器安装(如apt install python3 git)。
🚀 第一步:获取项目代码
首先通过Git克隆官方仓库到本地:
git clone https://gitcode.com/openeuler/skills cd skills🔧 第二步:安装核心依赖
项目各模块通过requirements.txt管理依赖,我们需要为主要功能模块安装依赖:
1. 基础环境依赖
# 创建并激活虚拟环境(推荐) python -m venv venv source venv/bin/activate # Linux/Mac用户 # venv\Scripts\activate # Windows用户 # 安装基础依赖 pip install -r scene-skills/ag_skill/scripts/requirements.txt2. 功能模块依赖
根据需要开发的功能,安装对应模块的依赖:
- RAG模块:
pip install -r system-skills/rag/scripts/requirements.txt - 日志分析模块:
pip install -r scene-skills/log-gpt/scripts/ita_oeloggpt-master/requirements.txt - OEMate工具:
pip install -r scene-skills/oemate/scripts/requirements.txt
⚙️ 第三步:配置核心模块
RAG模块配置
- 复制配置文件模板:
cd system-skills/rag/scripts/rag cp config.toml.example config.toml - 编辑
config.toml,根据需求调整数据库路径、embedding模型等参数。
日志分析模块配置
- 进入日志分析模块目录:
cd scene-skills/log-gpt/scripts/ita_oeloggpt-master - 配置文件位于
model_server/loggpt_plugin/plugin.json,可根据实际场景修改插件参数。
✅ 第四步:验证部署结果
部署完成后,通过以下命令验证核心功能是否正常工作:
测试RAG模块
# 列出知识库 python system-skills/rag/scripts/rag.py list # 创建测试知识库 python system-skills/rag/scripts/rag.py create --kb_name "test_kb" --chunk_size 512测试日志分析模块
# 启动日志分析服务 cd scene-skills/log-gpt/scripts/ita_oeloggpt-master python app.py测试OEMate工具
# 获取访问令牌 python scene-skills/oemate/scripts/get_token.py # 列出分配给自己的issues python scene-skills/oemate/scripts/list_issues.py --assigned📝 常见问题解决
依赖安装失败
如果遇到pip install失败,尝试升级pip:
pip install --upgrade pip配置文件错误
确保所有配置文件路径正确,例如RAG模块的配置文件必须位于system-skills/rag/scripts/rag/config.toml。
命令执行权限
如果提示权限不足,检查文件执行权限或使用虚拟环境隔离依赖。
📚 扩展学习资源
- 官方文档:项目根目录下的
README.md - 场景技能说明:
scene-skills/scene-skills.md - 系统技能参考:
system-skills/system-skills.md - 工具链指南:
toolchain/toolchain.md
通过以上步骤,你已经成功搭建了openEuler / skills的开发环境。接下来可以根据具体需求,探索各模块的功能和使用方法,开始你的AI代理开发之旅!
【免费下载链接】skillsWith the rapid advancement of AI, standard protocols for AI agents—such as MCP and Skill—are continuously emerging. This repository is established to accommodate current and future AI agent protocols and their associated tools, providing users with generation, testing, and optimization scripts to facilitate agent development and improve agent usability.项目地址: https://gitcode.com/openeuler/skills
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考