agent-insight:基于 OpenTelemetry 的 Agent 观测与优化工程底座项目

可解决 Agent 运行黑盒、Skill 质量参差及经验沉淀难题,提供 Agent 全生命周期观测与自进化、Skill 开发闭环、智能 A/B 测评与诊断,框架无关且支持完全自托管。【此简介由AI生成】

Branch1Tags0

Skill-insight

Transform Agent Skills from "usable" to "excellent" — a full lifecycle platform for Skill generation, evaluation, and optimization based on execution data

npm License

简体中文 | English

Skill-insight Dashboard


Why Skill-insight

Skills are becoming a key enabler for Agent adoption, but three common problems arise in practice:

  • More Skills, worse experience: Similar documents generate redundant Skills. Studies show recall drops from 95% to below 30% when Skills exceed 40-50
  • Execution process invisible: Evaluation only checks "task completion" — even correct results may skip critical steps, hiding risks
  • Optimization by guesswork: Without execution data, improvement relies on trial-and-error based on outcomes, unable to pinpoint bottlenecks

Skill-insight is designed to solve these problems.

Core Features

🔨 Skill Generation — One-liner generation, batch deduplication

  • Generate Skills with a single sentence
  • Automatically deduplicate, merge similar content, and extract patterns during batch generation to reduce Skill proliferation
  • Support multiple data sources: Markdown, PDF, directories, URLs, etc.

📊 Multi-dimensional Evaluation & Execution Tracing

  • Cover multiple dimensions: effectiveness (accuracy, Skill recall, Skill improvement rate), efficiency (latency, call count), cost (Token, model cost, CPSR)
  • Automatically generate execution flowcharts, compare step-by-step with expected Skill workflow, mark deviations, redundancies, and skips
  • Support cross-comparison analysis from four dimensions: Skill, framework, model, and task
  • More metrics in Metrics Details

🔄 Data-driven Skill Self-optimization

  • Based on evaluation attribution results, automatically locate Skill defects and apply targeted fixes
  • Distinguish Skill design issues from model capability issues to avoid "fixing the wrong direction"
  • Form a continuous improvement loop: Evaluate → Attribute → Optimize → Re-evaluate

Supported Frameworks

Agent Framework Collection Method
OpenCode Native plugin
Claude Code Log bypass
OpenClaw Log bypass

Installation

# One-line install
npx @witty-ai/skill-insight install

# Package manager
npm i -g @witty-ai/skill-insight

Tip

After installation, visit the dashboard at http://localhost:3000 with default account admin.

Install from Source

git clone https://gitcode.com/openeuler/witty-skill-insight.git
cd witty-skill-insight
npm install

# Development mode
bash scripts/restart_dev.sh

# Production mode
bash scripts/restart.sh

# Configure data reporting path
curl -sSf http://<IP>:<PORT>/api/setup | bash

Mock Data for Development (Optional)

To populate /skill-opt with sample skills + issues for local dev (without running real evaluators or collecting traces):

# Seed mock data: 3 skills + 5 issues
# (pdf-extractor / doc-summarizer / chart-gen, all source='static')
npm run seed:skill-opt

# Clean mock data (cascade-deletes SkillVersion / Evaluation / SkillIssue)
npm run clean:skill-opt

All seeded rows are owned by user='skill-insight@huawei.com' (the default account). Both scripts are idempotent — safe to re-run. See script headers for implementation details.

Quick Start

The following example uses OpenCode to demonstrate the complete Generate → Evaluate → Optimize workflow.

Prerequisites: Skill-insight platform and OpenCode installed.

Step 1: Install Skill Toolkit

npx skills add https://gitcode.com/openeuler/witty-skill-insight.git

Step 2: Generate Skill

In OpenCode terminal, enter:

Generate a Skill from the case document Docker-application-hang-case.pdf

Step 3: Execute Task

Place the generated Skill in OpenCode's Skill directory, then execute:

My locally deployed Docker application sometimes hangs. Use the relevant skill to analyze the cause and provide a report

Step 4: View Results

After task completion, click View Details in the Skill Insight card on the top-right of OpenCode terminal to jump to the platform and view execution details.

Step 5: Deep Evaluation (optional)

To use deep evaluation capabilities like accuracy, Skill recall, and failure attribution:

  1. Click ⚙️ Eval Config on the top-left of the platform homepage, add evaluation model configuration (supports DeepSeek / OpenAI / Anthropic / custom)
  2. Click Dataset Management on the top-right, configure user questions, expected answers, and expected Skills

Step 6: Optimize Skill

In OpenCode terminal, enter:

/si-optimizer <path-to-Skill-to-optimize>

After optimization, the Skill will be automatically loaded into OpenCode's Skill directory. Restart OpenCode and execute the same task again to compare before/after optimization results on the platform.

Documentation

Detailed usage guides in docs/guide directory.

Contributing

Before contributing code, please sign the CLA and follow the Code Contribution Guide.


Join the Community Issue | intelligence@openeuler.org

Introduction

可解决 Agent 运行黑盒、Skill 质量参差及经验沉淀难题,提供 Agent 全生命周期观测与自进化、Skill 开发闭环、智能 A/B 测评与诊断,框架无关且支持完全自托管。【此简介由AI生成】

Customize your domain