TopRank Skills

Home / Claw Skills / Git / GitHub / skill-evolver
Official OpenClaw rules 54%

skill-evolver

自动分析和优化 Agent Skill 的工具 - 监控使用情况、评估健康度、生成改进建议

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 skill-evolver 技能。 若已安装,则直接安装 skill-evolver 技能。

Overview

Skill Key
harrylabs0913/harry-skill-evolver
Author
OpenClaw
Source Repo
openclaw/skills
Version
0.1.0
Source Path
skills/harrylabs0913/harry-skill-evolver
Latest Commit SHA
08f6bb6b315924a821f7078929467dfebd7f6676

Extracted Content

SKILL.md excerpt

# Skill Evolver

自动分析和优化 OpenClaw Agent Skills 的 Python CLI 工具。

## 功能特性

- 📊 **使用监控**: 记录技能调用次数、成功率、响应时间
- 🏥 **健康度评估**: 基于可靠性、性能、代码质量、用户满意度的综合评分
- 🔍 **代码分析**: 检查 SKILL.md 完整性、Python 语法、代码质量问题
- 💡 **改进建议**: 基于规则自动生成优化建议
- 📈 **报告生成**: 支持 JSON、Markdown、HTML 格式导出

## 安装

```bash
# 使用 clawhub 安装
clawhub install skill-evolver

# 或手动安装
cd ~/.openclaw/skills/skill-evolver
pip install -r requirements.txt
```

## 依赖

- Python 3.8+
- SQLite3 (内置)
- PyYAML
- GitPython (可选,用于 Git 操作)

## 使用方法

### CLI 命令

```bash
# 初始化数据库
skill-evolver init

# 分析单个技能
skill-evolver analyze <skill-name>

# 分析所有技能
skill-evolver analyze --all

# 查看详细分析
skill-evolver analyze <skill-name> --verbose

# 生成健康度报告
skill-evolver report <skill-name>

# 生成所有技能报告
skill-evolver report --all

# 导出报告
skill-evolver report <skill-name> -o report.json -f json
skill-evolver report <skill-name> -o report.md -f markdown
skill-evolver report <skill-name> -o report.html -f html

# 查看健康度评分
skill-evolver health <skill-name>
skill-evolver health --all

# 记录技能使用
skill-evolver log <skill-name> <action> --status success --duration 100

# 添加用户反馈
skill-evolver feedback <skill-name> 5 --comment "很好用"

# 清理旧数据
skill-evolver clear --days 90

# 列出已记录的技能
skill-evolver log --list
```

### Python API

```python
from skill_evolver import SkillMonitor, SkillAnalyzer, SkillReporter

# 监控技能使用
monitor = SkillMonitor()

# 方式 1: 手动记录
monitor.log_usage(
    skill_name="my-skill",
    action="process",
    status="success",
    duration_ms=150
)

# 方式 2: 使用上下文管理器
with monitor.track("my-skill", "process") as tracker:
    result = do_something()
    tracker.set_context({"input_size": len(data)})

# 方式 3: 使用装饰器
@monitor.track_decorator("my-skill")
def my_function():
    pass

# 分析技能代码
analyzer...

README excerpt

# Skill Evolver

自动分析和优化 OpenClaw Agent Skills 的 Python CLI 工具。

## 🎯 功能概述

Skill Evolver 帮助你:

- 📊 **监控技能使用情况** - 追踪调用次数、成功率、响应时间
- 🏥 **评估健康度** - 综合评分系统,快速识别问题技能
- 🔍 **分析代码质量** - 检查 SKILL.md 完整性、语法错误、代码规范
- 💡 **生成改进建议** - 基于规则自动提供优化方案
- 📈 **导出报告** - 支持 JSON、Markdown、HTML 格式

## 🚀 快速开始

### 安装

```bash
# 使用 clawhub 安装(推荐)
clawhub install skill-evolver

# 或手动克隆
git clone https://github.com/openclaw/skills/skill-evolver.git
cd skill-evolver
pip install -r requirements.txt
```

### 初始化

```bash
# 初始化数据库
skill-evolver init
```

### 基本使用

```bash
# 分析技能
skill-evolver analyze my-skill

# 生成健康度报告
skill-evolver report my-skill

# 查看所有技能健康度
skill-evolver health --all
```

## 📖 详细文档

完整使用说明请查看 [SKILL.md](./SKILL.md)

## 🛠️ 开发

### 环境要求

- Python 3.8+
- SQLite3 (内置)

### 安装依赖

```bash
pip install pyyaml gitpython pytest flake8
```

### 运行测试

```bash
python -m pytest tests/ -v
```

### 代码检查

```bash
python -m flake8 skill_evolver/ database/
```

## 📁 项目结构

```
skill-evolver/
├── SKILL.md              # 技能说明文档
├── package.json          # 包元数据
├── README.md             # 项目说明
├── skill_evolver/        # 主模块
│   ├── __init__.py       # 模块入口
│   ├── monitor.py        # 使用监控
│   ├── analyzer.py       # 代码分析
│   ├── reporter.py       # 报告生成
│   └── cli.py            # CLI 入口
├── database/
│   ├── __init__.py       # 数据库模块
│   └── models.py         # 数据模型
└── tests/                # 测试用例
    ├── test_database.py
    ├── test_analyzer.py
    ├── test_reporter.py
    └── test_cli.py
```

## 📊 健康度评分

综合评分由以下维度计算:

| 维度 | 权重 | 说明 |
|------|------|------|
| 可靠性 | 30% | 基于成功率 |
| 性能 | 20% | 基于响应时间 |
| 代码质量 | 30% | 基于代码分析 |
| 用户满意度 | 20% | 基于用户反馈 |

### 状态等级

- 🟢 **healthy**...

Related Claw Skills

heyixuan2

bambu-studio-ai

★ 41

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).

edholofy

dojo.md

★ 4

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning required.

lethehades

wps-macos-helper

★ 1

macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance

capt-marbles

geo-optimization

★ 1

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.

carev01

md-docs-search

★ 0

Full-text search across structured Markdown documentation archives using SQLite FTS5. Use when you need to search large collections of Markdown articles that are separated by "---" delimiters and contain source URLs (marked with "*Source:" pattern). Provides fast BM25-ranked search with automatic source URL extraction for citations. Ideal for research, documentation lookups, and knowledge base exploration. Requires indexing documentation first with `docs.py index`.

caqlayan

Tweet Processor

★ 0

Tweet Processor Skill