skill-insight

Understand what your AI agent's skills are actually being used for — with usage reports, success/failure tracking, and unused-skill recommendations. Part of the Hal Stack 🦞

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "skill-insight" with this command: npx skills add yingy4/skill-insight

Skill Insight 🦞

By Hal Labs — Part of the Hal Stack

What it does: Analyzes skill usage data you already have. Generates reports, tracks success/failure, identifies dead weight. It does not automatically collect data for you.

The Honest Scope

This skill is a data analysis and reporting tool. It assumes usage data already exists. If you don't collect any, the reports will be empty.

What it CAN do well:

  • Generate readable usage reports (daily/weekly/monthly)
  • Track success vs failure rates per skill
  • Recommend which zero-use skills to uninstall
  • Work fully automatically for script-type skills (cron scan)

What it CANNOT do automatically:

  • Detect route-type skill calls — these happen inside the AI's reasoning, never appearing in session text
  • Know which skills you actually use without you telling it

Setup is required. See the section below.

Quick Setup (3 steps)

Step 1 — Add skills to your registry

# Start with your installed skills:
bash scripts/add_skill.sh <skill-name> <category> <description>
# Example: bash scripts/add_skill.sh fullstack-dev development "Backend architecture"

Step 2 — Choose a data collection method

This is the critical part. Pick one that matches your workflow:

Option A: For script-type skills only (easiest, automatic)

# Add to crontab -e:
0 9 * * * cd ~/.openclaw/workspace/skills/skill-insight && bash scripts/cron_wrapper.sh >> ~/.local/log/skill-insight.log 2>&1

This runs daily and scans your session history for skill scripts that were executed via exec commands. Works for script access_type skills. Will NOT detect route-type skills.

Option B: For route-type skills (requires agent cooperation)

Add to your agent's HEARTBEAT.md or equivalent:

# After any skill executes successfully:
bash scripts/record.sh <skill-name> "<what you used it for>" --lang en

# If it failed:
bash scripts/record_outcome.sh --skill <skill-name> --scene "<what>" failed "<reason>" --lang en

Option C: Manual (lowest effort, most incomplete)

# After any skill call, run:
bash scripts/record.sh <skill-name> "<scene>"

Step 3 — Generate reports

bash scripts/report.sh --period week --lang zh   # Chinese
bash scripts/report.sh --period week --lang en   # English
bash scripts/analyze.sh --period 7               # Unused skill analysis

How Data Collection Works

Understanding access_type helps you know what's covered:

access_typeExampleAuto-scan works?Manual record needed?
scriptbash meeting.sh, bash ai_news_cron.sh✅ Yes (cron scan)✅ Appreciated
routeSkill triggered by description match❌ NoRequired
toolMCP tool, built-in tool❌ No❌ Not applicable

If most of your skills are route-type (most OpenClaw skills), Option B is the only way to get meaningful data.

Setting Up Auto-Record for Route-Type Skills

If your agent supports HEARTBEAT.md or similar periodic scripts, add this:

### Skill Usage Tracking
- After any skill is used: `bash scripts/record.sh <skill-name> "<scene>" --lang en`
- If skill failed: `bash scripts/record_outcome.sh --skill <skill-name> --scene "<scene>" failed --lang en`
- Daily: `bash scripts/report.sh --period today --lang en`

For OpenClaw agents with proactive agent protocols (WAL/Working Buffer), the record call can be inserted after the WAL write step.

Commands Reference

# Record a skill invocation
bash scripts/record.sh <skill> <scene>              # success by default
bash scripts/record.sh <skill> <scene> skipped     # explicitly skipped

# Update outcome
bash scripts/record_outcome.sh <id> failed <reason>
bash scripts/record_outcome.sh --skill <name> --scene <pattern> failed <reason>

# Reports
bash scripts/report.sh --period today|week|month|all [--lang en|zh]
bash scripts/analyze.sh --period 7|30 [--lang en|zh]

# Registry
bash scripts/add_skill.sh <name> <category> <description> [installed]

# Session scan (script-type only)
bash scripts/scan_sessions.py [--lang en|zh]

Output Language

Use --lang en for English, --lang zh for Chinese. Falls back to English if unset.

Architecture

skill-insight/
├── scripts/
│   ├── record.sh / .py        # Record an invocation
│   ├── record_outcome.sh / .py   # Update outcome
│   ├── report.sh / .py        # Usage report
│   ├── analyze.sh / .py       # Unused skill analysis
│   ├── scan_sessions.sh / .py # Session scanner (script-type only)
│   ├── add_skill.sh / .py    # Add to registry
│   ├── cron_wrapper.sh        # Daily cron wrapper
│   ├── i18n.py               # Translations
│   └── path_utils.py          # Path resolution
├── data/                      # ← Your data (NOT published)
│   ├── skill_registry.json
│   └── usage.json
├── sample/                    # Example data
└── SKILL.md

Philosophy

You can't optimize what you don't measure.

This skill answers: which skills am I actually using? Which ones are dead weight? Is this skill reliable?

The goal isn't to use every skill — it's to know which ones earn their place.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

evo-soul

Installs once on a primary agent to automatically propagate behavioral DNA across communicating OpenClaw agents without manual setup or side effects.

Registry SourceRecently Updated
Automation

Boheng Investment Workflow

投资研究多智能体决策系统 - 8位专业分析师并行研究,加权投票给出投资建议。支持A股股票/基金/ETF/可转债。支持真实财报数据(baostock)或基础行情数据。⚠️ 风险提示:分析结果仅供学习参考,不构成投资建议。

Registry SourceRecently Updated
Automation

Kaiqiao

Agent行为校准器,让AI学会"什么时候该问、该干、该拦、该说话"。 Triggers: 模糊需求, 反复确认, 方向有坑, 等结果, 授权信号, 偏好过时 Does NOT trigger: 简单指令, 明确方向, 授权明确, 小事/容错高 Output: 符合"四件事"标准的行为输出(问/干/拦/反馈)

Registry SourceRecently Updated
Automation

Moltbillboard

MoltBillboard is a 1,000×1,000 pixel billboard built for AI agents. Agents register once, top up credits via Stripe, and claim pixels (optionally animated) t...

Registry SourceRecently Updated
1.8K2tech8in