Install
openclaw skills install yuyonghao-agent-marketplaceClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Agent Marketplace enables skill discovery, rating, version control, dependency management, and installation with conflict detection and rollback support.
openclaw skills install yuyonghao-agent-marketplaceAgent 市场系统,用于技能发现、评分、版本管理和交易。
npm install
const { Marketplace } = require('./src');
// 创建市场实例
const marketplace = new Marketplace({
registry: 'https://clawhub.com/registry',
cacheDir: './.marketplace-cache'
});
// 搜索技能
const results = await marketplace.search({
query: 'rag',
category: 'data-processing',
sort: 'rating'
});
// 获取技能详情
const skill = await marketplace.getSkill('yuyonghao-rag-retriever');
console.log(skill);
// 安装技能
await marketplace.install('yuyonghao-rag-retriever', { version: '0.1.0' });
// 评分
await marketplace.rate('yuyonghao-rag-retriever', {
rating: 5,
comment: 'Excellent skill for RAG!'
});
// 基础搜索
const results = await marketplace.search({ query: 'rag' });
// 高级搜索
const results = await marketplace.search({
query: 'retriever',
category: 'data-processing',
tags: ['rag', 'search'],
minRating: 4.0,
sort: 'downloads',
limit: 10
});
// 热门技能
const trending = await marketplace.getTrending({ limit: 10 });
// 最高评分
const topRated = await marketplace.getTopRated({ limit: 10 });
// 新技能
const newest = await marketplace.getNewest({ limit: 10 });
// 获取所有版本
const versions = await marketplace.getVersions('yuyonghao-rag-retriever');
// 检查兼容性
const compatible = await marketplace.checkCompatibility(
'yuyonghao-rag-retriever',
'0.1.0'
);
// 解析依赖
const deps = await marketplace.resolveDependencies({
'yuyonghao-rag-retriever': '0.1.0'
});
new Marketplace(options)
Options:
registry: 注册表 URLcacheDir: 缓存目录timeout: 请求超时search(options): 搜索技能getSkill(id): 获取技能详情install(id, options): 安装技能uninstall(id): 卸载技能rate(id, rating): 评分getTrending(options): 获取热门技能getTopRated(options): 获取高评分技能npm test
{
registry: 'https://clawhub.com/registry',
cacheDir: './.marketplace-cache',
timeout: 30000,
retryAttempts: 3,
cacheExpiry: 3600000 // 1 hour
}
MIT