360 Secure SkillHub
360 安全技能中心

skills-eval

面向技能目录的质量审计框架:从结构、内容、token 效率、激活可靠性和工具集成五个维度评分,生成合规检查结果与按优先级排序的改进计划;核心 Python 分析脚本和 Makefile 未随包提供。

分类:开发
athola
athola
热度 44.17
最近更新 2026-12-01 06:00:59

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add athola/nm-abstract-skills-eval
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
skills-eval
description
Evaluate Claude skill quality through auditing
version
1.10.3
triggers
["evaluation","improvement","skills","optimization","quality-assurance","tool-use","performance-metrics","reviewing or auditing skills"]
metadata
{"openclaw":{"homepage":"https://github.com/athola/claude-night-market/tree/master/plugins/abstract","emoji":"🦞","requires":{"config":["night-market.modular-skills"]}}}
source
claude-night-market
source_plugin
abstract

Night Market Skill: ported from claude-night-market/abstract. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Skills Evaluation and Improvement

When NOT To Use

  • Writing a new skill (use abstract:skill-authoring)
  • Evaluating hooks (use abstract:hooks-eval)
  • Evaluating rules (use abstract:rules-eval)

Overview

This framework audits Claude skills against quality standards to improve performance and reduce token consumption. Automated tools analyze skill structure, measure context usage, and identify specific technical improvements. Run verification commands after each audit to confirm fixes work correctly.

The scripts are in plugins/abstract/scripts/. skills_auditor.py provides structural analysis, while improvement_suggester.py builds a plan for one skill. compliance_checker.py reports standards findings. token_usage_tracker.py and tool_performance_analyzer.py measure tokens and tool run time.

Quick Start

Basic Audit

Run a full audit of all skills or target a specific file to identify structural issues.

# Audit all skills
make audit-all

# Audit specific skill
make audit-skill TARGET=path/to/skill/SKILL.md

Analysis and Optimization

Use skill_analyzer.py for complexity checks and token_estimator.py to verify the context budget.

make analyze-skill TARGET=path/to/skill/SKILL.md
make estimate-tokens TARGET=path/to/skill/SKILL.md

Improvements

Generate a prioritized plan and verify standards compliance using improvement_suggester.py and compliance_checker.py.

make improve-skill TARGET=path/to/skill/SKILL.md
make check-compliance TARGET=path/to/skill/SKILL.md

Evaluation Workflow

Start with make audit-all to inventory skills and identify high-priority targets. For each skill requiring attention, run analysis with analyze-skill to map complexity. Generate an improvement plan, apply fixes, and run check-compliance to verify the skill meets project standards. Finalize by checking the token budget for efficiency.

Evaluation and Optimization

Quality assessments use skills_auditor.py and improvement_suggester.py to generate reports. Performance analysis covers token use through token_usage_tracker.py and tool run time through tool_performance_analyzer.py. For standards compliance, compliance_checker.py reports findings and changes no files. Apply its fixes by hand.

Scoring and Prioritization

We evaluate skills across five dimensions: structure compliance, content quality, token efficiency, activation reliability, and tool integration. Scores above 90 represent production-ready skills, while scores below 50 indicate critical issues requiring immediate attention.

Improvements are prioritized by impact. Critical issues include security vulnerabilities or broken functionality. High-priority items cover structural flaws that hinder discoverability. Medium and low priorities focus on best practices and minor optimizations.

Structural Patterns

Deprecated: skills/shared/modules/ directories. Shared modules must be relocated into the consuming skill's own modules/ directory. The evaluator flags any remaining skills/shared/ as a structural warning.

Current: Each skill owns its modules at skills/<skill-name>/modules/. Cross-skill references use relative paths (e.g., ../skill-authoring/modules/description-writing.md).

Resources

Shared Modules: Cross-Skill Patterns

Skill-Specific Modules

  • Trigger Isolation Analysis: See modules/trigger-isolation-analysis.md
  • Authoring Checklist: See modules/authoring-checklist.md
  • Evaluation Workflows: See modules/evaluation-workflows.md
  • Advanced Tool Use Analysis: See modules/advanced-tool-use-analysis.md
  • Evaluation Framework: See modules/evaluation-framework.md
  • Integration Patterns: See modules/integration.md
  • Troubleshooting: See modules/troubleshooting.md
  • Pressure Testing: See modules/pressure-testing.md
  • Integration Testing: See modules/integration-testing.md
  • Performance Benchmarking: See modules/performance-benchmarking.md

Tools and Automation

  • Tools: Executable analysis utilities in scripts/ directory.

Exit Criteria

  • Every audited skill receives a score across all five dimensions (structure compliance, content quality, token efficiency, activation reliability, tool integration) summing to 100.
  • Any skill with a deprecated skills/shared/ module reference is listed as a structural warning in the audit output.
  • uv run abstract-skills check <skills-dir> exits 0 for skills reported as passing and 1 for any non-compliant report, confirming compliance agrees with the audit score.
  • An improvement plan is produced for any skill scoring below 75, with findings ordered by priority: critical > high > medium > low.