Logo: Skill Quality Evaluator

Skill Quality Evaluator

Communautéit
AnthonyAlcaraz
skill-quality-evaluator

Score a skill against SkillNet's five quality dimensions (safety, completeness, executability, maintainability, cost_awareness), compute a safety/executability-weighted composite, and gate skill retrieval so an agent pulls the most-relevant skill that ALSO clears a quality threshold. Use when a skill library has grown past a few dozen entries and retrieval is surfacing low-quality or unsafe skills alongside useful ones. NOT for routing (which skill matches this task? — that is rag-mcp-tool-selection), NOT for a library under ~20 curated skills (quality is still trivially auditable by hand), NOT a substitute for a security scanner (executability and safety scores are heuristics that flag review, not proofs).

Iwwersiicht

EditeurAnthonyAlcaraz
Repositoryagentic-graph-rag-skills
Skill-Nummskill-quality-evaluator
Stären
29
Forks
9
Matgeliwwert Dateien
3
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    AnthonyAlcaraz huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Skill Quality Evaluator an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/tool-orchestration/skill-quality-evaluator
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills.git /tmp/agentic-graph-rag-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-graph-rag-skills/skills/tool-orchestration/skill-quality-evaluator .claude/skills/skill-quality-evaluator
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Skill Quality Evaluator an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Skill Quality Evaluator automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Skill Quality Evaluator net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Skill Quality Evaluator

Overview

RAG and gateways (the two sibling Ch6 skills) solve the routing problem: which skill matches this task? They do not solve the quality problem: is this skill worth trusting once matched? Raw skill libraries accumulate junk. As a repository scales from dozens to hundreds to thousands of skills, retrieval quality degrades because the agent pulls low-quality or unsafe skills alongside the useful ones.

The chapter grounds this in two research anchors:

  • SkillsBench (DAIR.AI). Curated skills improve task performance by 16.2%. Self-generated skills — produced by agents without human review — show zero improvement over baseline. Quality matters more than quantity, and 2-3 focused skills per task is the optimal number.
  • SkillNet (2026). A repository of 200,000+ reusable skills, each rated across five quality dimensions. Agents using SkillNet-rated skills achieved 40% higher average rewards and 30% fewer execution steps across ALFWorld, WebShop, and ScienceWorld — held across multiple backbone models, confirming quality-rated retrieval is a model-agnostic infrastructure layer.

The five dimensions (Table 6-1) and the composite weighting:

DimensionWeightMaps to
safety2.0security scanning
completeness1.0dependency checking
executability2.0hallucinated-tool-call risk
maintainability1.0composability
cost_awareness1.0token economics (Ch8)

Composite = weighted mean with safety and executability at double weight, so a skill that hallucinates tool calls (low executability) or runs unconstrained shell commands (low safety) ranks low regardless of how well it documents.

When to Use

  • A skill library has grown past ~20 entries and mixed provenance (vendor, team-authored, agent-generated)
  • Retrieval is surfacing plausible-but-junk skills alongside good ones
  • You need a deployment knob (min_quality) that encodes organizational risk appetite (research 0.4 → production healthcare 0.8+)
  • You are integrating quality as a second ranking signal on top of relevance

Phrases that invoke this skill: "rate this skill", "quality gate", "SkillNet", "is this skill safe to use", "why did the agent pick a bad skill".

When NOT to Use

  • Routing / matching. Which skill fits the task is rag-mcp-tool-selection or the gateway. This skill assumes a matched candidate set and filters it.
  • Libraries under ~20 curated skills. The chapter's tip: start with a curated, quality-gated set (hundreds, not thousands). Below that, hand audit.
  • As a security scanner. safety and executability are heuristic scores that flag a skill for review; they are not a substitute for agent-shield / SkillSpector static analysis before install.
  • As a self-generation approver. SkillsBench shows self-generated skills score zero improvement; a passing composite does not license auto-install of agent-authored skills without human curation.

Process

StepInputActionOutputVerification
1Skills catalog JSON (each skill carries eval_safety/completeness/executability/maintainability/cost_awareness)lib.load_catalog(path)List of skill dictslen(catalog) > 0; each skill has all five eval_* keys in [0,1]
2One skill dictlib.SkillQuality.from_skill(skill).compositeComposite float in [0,1]Safety+executability weighted 2x; recompute by hand for one skill to confirm /7 mean
3Task description + cataloglib.retrieve_quality_gated(task, catalog, min_quality=0.6, top_k=3)Top-K skills passing the gate, ranked by relevance*qualityHard gate: eval_safety>0 AND eval_executability>0; soft gate: composite >= min_quality
4Same, varying min_qualitylib.retrieve_quality_gated(..., min_quality=0.8)Smaller/empty resultRaising the threshold monotonically shrinks the result set
5Catalog + a battery of task querieslib.monitor_gaps(catalog, queries, min_quality)Counts of no_relevant_skill vs low_quality_filtered eventsInterpret: many no-relevant = repository too small; many low-quality-filtered = gate too permissive OR catalog quality poor
6Selected skill(your agent runtime) loads the SKILL.md and executesTask resultIf the top skill still misbehaves, its eval_* ratings are stale — re-rate

Rationalizations

Agent rationalizationDocumented rebuttal
"More skills always help — just retrieve top-K by relevance."SkillsBench: self-generated (unrated) skills give zero improvement, and 2-3 focused skills per task is optimal. Relevance without a quality gate re-admits the junk that degrades retrieval at scale.
"Weight all five dimensions equally — it's simpler."The chapter weights safety and executability 2x deliberately: a skill that runs unconstrained shell commands or hallucinates tool calls is dangerous regardless of maintainability. Equal weighting lets a well-documented unsafe skill outrank a plain safe one.
"Rank by quality alone — always pick the highest-rated skill."The chapter ranks by relevance * quality multiplicatively. Pure quality ranking returns the best skill for the wrong task. Pure relevance returns the junk. The product is the point.
"Set min_quality once globally."The threshold is a per-deployment risk decision: 0.4 for research to cast a wide net, 0.8+ for production healthcare. One global value ignores that risk appetite differs by system.
"A high composite means the skill is safe to auto-install."Composite is a retrieval-ranking signal, not an install gate. Self-generated skills need human curation (SkillsBench) and static scanning (agent-shield/SkillSpector) before install regardless of score.

Red Flags

  • Every skill scores above min_quality. The ratings are inflated or the gate is too low; the monitor will show near-zero low_quality_filtered events even on a junk-laden catalog.
  • Safety or executability is 0 but the skill still ranks. The hard gate (eval_safety>0 AND eval_executability>0) is being bypassed — a zero on either dimension must exclude the skill entirely, not merely lower it.
  • Raising min_quality does not shrink results. The soft gate is not wired; the threshold knob is inert.
  • High no_relevant_skill AND high low_quality_filtered together. The repository is both too small and too junky — grow the curated set, do not just lower the gate.
  • CLI --help exits non-zero. SKILL.md / CLI mismatch; the multi-harness invariant is broken.

Non-Negotiable Verification

  1. Run the benchmark battery.

    python cli.py benchmark

    Confirm the gate admits high-quality skills and rejects the seeded low-quality ones across the task battery, and that raising --min-quality monotonically shrinks the admitted set.

  2. Hand-check one composite.

    python cli.py rate safe-readonly-sql-query

    Recompute (safety*2 + completeness + executability*2 + maintainability + cost_awareness) / 7 by hand and confirm it matches.

  3. Prove the hard gate.

    python cli.py retrieve "run a shell command to clean up disk" --json

    Confirm the seeded unsafe-shell-runner skill (eval_safety = 0) never appears, even when it is the most textually relevant.

  4. JSON round-trips.

    python cli.py retrieve "..." --json | python -c "import json,sys; json.load(sys.stdin)"

Security Posture

  • Prompt injection. Skill descriptions and synthetic_queries are used for relevance matching; treat them as untrusted if the catalog ingests community-contributed skills. A malicious skill could inflate its own eval_* ratings — ratings must come from an independent evaluator, not self-reported by the skill author. The # TODO(production): seam in lib.score_relevance and the rating-provenance note in load_catalog mark where to enforce this.
  • Data exfiltration. No network calls in lib.py; catalog is read from an explicit path.
  • Privilege escalation. The safety dimension is the flag for skills that execute shell / write files / hold broad credentials. A zero on safety hard- excludes; do not soften that gate to admit a convenient-but-unsafe skill.

Composition

  • Composes after rag-mcp-tool-selection / mcp-gateway-two-meta-tools: they return the relevant candidate set; this skill filters that set by quality.
  • Feeds graph-based retrieval — the composite maps to the Cypher relevance * quality DESC ordering in the chapter's Example 6-3.
  • Pairs with agent-shield / SkillSpector at the install boundary (this skill gates retrieval, those gate installation).
  • cost_awareness links directly to the Ch8 token-economics material.

Source Attribution

Distilled from Agentic GraphRAG (O'Reilly), Chapter 6 — Tool Orchestration, sections "Skills: The Judgment Layer", "Skill quality evaluation", "Integrating quality ratings into graph-based retrieval", and "Scale and retrieval". Named references:

  • SkillsBench (DAIR.AI) — 16.2% curated-skill improvement; zero for self-generated; 2-3 focused skills per task optimal
  • SkillNet (2026) — 200,000-skill repository; five-dimensional rating; 40% higher rewards / 30% fewer steps across ALFWorld, WebShop, ScienceWorld
  • SkillRL — 10-20x token compression per skill; 7B model at 89.9% on ALFWorld
  • Anthropic Agent Skills specification — SKILL.md progressive disclosure

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Skill Quality Evaluator?

Score a skill against SkillNet's five quality dimensions (safety, completeness, executability, maintainability, cost_awareness), compute a safety/executability-weighted composite, and gate skill retrieval so an agent pulls the most-relevant skill that ALSO clears a quality threshold. Use when a skill library has grown past a few dozen entries and retrieval is surfacing low-quality or unsafe skills alongside useful ones. NOT for routing (which skill matches this task? — that is rag-mcp-tool-selection), NOT for a library under ~20 curated skills (quality is still trivially auditable by hand),...

Firwat Skill Quality Evaluator op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Skill Quality Evaluator besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Skill Quality Evaluator an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/tool-orchestration/skill-quality-evaluator an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Skill Quality Evaluator benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Skill Quality Evaluator benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Skill Quality Evaluator domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Skill Quality Evaluator gratis?

Jo. AnthonyAlcaraz huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇